sysbsd.pp 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. {
  2. $Id$
  3. This file is part of the Free Pascal run time librar~y.
  4. Copyright (c) 2000 by Marco van de Voort
  5. member of the Free Pascal development team.
  6. See the file COPYING.FPC, included in this distribution,
  7. for details about the copyright.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. **********************************************************************}
  12. { These things are set in the makefile, }
  13. { But you can override them here.}
  14. { If you use an aout system, set the conditional AOUT}
  15. { $Define AOUT}
  16. Unit SysBSD;
  17. Interface
  18. {$I sysunixh.inc}
  19. Implementation
  20. {$I sysunix.inc}
  21. {
  22. $Log$
  23. Revision 1.2 2000-09-18 13:42:35 marco
  24. * FreeBSD support into 1.1
  25. Revision 1.1.2.1 2000/09/16 11:19:08 marco
  26. * Moved files from BSD to FreeBSD directory, with some small changes
  27. Revision 1.1.2.4 2000/09/16 11:10:43 marco
  28. * Introduced using sysunix and sysunixh
  29. Revision 1.1.2.3 2000/09/10 16:12:40 marco
  30. The rearrangement to linux for
  31. Revision 1.1.2.2 2000/08/05 18:33:29 peter
  32. * paramstr(0) fix for linux 2.0 kernels
  33. Revision 1.1.2.1 2000/07/14 07:33:15 michael
  34. + Fixed do_open call. Directory checking must not be performed
  35. Revision 1.1 2000/07/13 06:30:54 michael
  36. + Initial import
  37. Revision 1.49 2000/07/08 18:02:39 peter
  38. * do_open checks for directory, if directory then ioerror 2
  39. Revision 1.48 2000/06/30 22:14:03 peter
  40. * removed obsolete crtlib code
  41. * support EINTR for read/write to restart the syscall
  42. Revision 1.47 2000/05/11 17:55:13 peter
  43. * changed order of fpustate checking to first check the more
  44. specific states
  45. Revision 1.46 2000/05/08 14:27:36 peter
  46. * released newsignal
  47. * newsignal gives now better backtraces using the sigcontext eip/ebp
  48. fields
  49. Revision 1.45 2000/04/16 16:07:58 marco
  50. * BSD fixes
  51. Revision 1.44 2000/04/14 13:04:53 marco
  52. * Merged bsd/syslinux.pp and 1.43 linux/syslinux.pp to this file with ifdefs
  53. Revision 1.43 2000/04/07 14:56:36 peter
  54. * switch to direct asm if not correctfldcw defined
  55. Revision 1.42 2000/03/31 23:26:32 pierre
  56. * FPU needs reset for all SIGFPE even from integer division by zero
  57. Revision 1.41 2000/03/31 23:21:19 pierre
  58. * multiple exception handling works
  59. (for linux only if syslinux is compiled with -dnewsignal)
  60. Revision 1.40 2000/03/31 13:24:28 jonas
  61. * signal handling using sigaction when compiled with -dnewsignal
  62. (allows multiple signals to be received in one run)
  63. Revision 1.39 2000/03/25 12:28:37 peter
  64. * patch for getdir from Pierre
  65. Revision 1.38 2000/03/23 15:24:18 peter
  66. * remove handle check for do_close
  67. Revision 1.37 2000/02/09 16:59:32 peter
  68. * truncated log
  69. Revision 1.36 2000/02/09 12:17:51 peter
  70. * moved halt to system.inc
  71. * syslinux doesn't use direct asm anymore
  72. Revision 1.35 2000/02/08 11:47:09 peter
  73. * paramstr(0) support
  74. Revision 1.34 2000/01/20 23:38:02 peter
  75. * support fm_inout as stdoutput for assign(f,'');rewrite(f,1); becuase
  76. rewrite opens always with filemode 2
  77. Revision 1.33 2000/01/16 22:25:38 peter
  78. * check handle for file closing
  79. Revision 1.32 2000/01/07 16:41:41 daniel
  80. * copyright 2000
  81. Revision 1.31 2000/01/07 16:32:28 daniel
  82. * copyright 2000 added
  83. Revision 1.30 1999/12/01 22:57:31 peter
  84. * cmdline support
  85. Revision 1.29 1999/11/06 14:39:12 peter
  86. * truncated log
  87. Revision 1.28 1999/10/28 09:50:06 peter
  88. * use mmap instead of brk
  89. Revision 1.27 1999/09/10 15:40:35 peter
  90. * fixed do_open flags to be > $100, becuase filemode can be upto 255
  91. Revision 1.26 1999/09/08 16:14:43 peter
  92. * pointer fixes
  93. Revision 1.25 1999/07/28 23:18:36 peter
  94. * closedir fixes, which now disposes the pdir itself
  95. }