README 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. This is the FPC translation of the C library header files.
  2. This unit is meant to
  3. - Give full access to the GNU libc library functionality.
  4. - Be compatible to Borland's Libc.pas unit.
  5. There will often exist 2 versions of a function call: one with a
  6. pointer type argument - this is the straight translation of a libc call.
  7. One is with a var/const argument, this is a more 'pascal' like call,
  8. which is usually also the way Borland did it.
  9. Each C header file has been translated to an .inc file.
  10. The translation of header file xxx.h is named xxxh.inc.
  11. If macros were converted, they are in a file xxx.inc
  12. All files are included in libc.pp and their origin is noted there.
  13. the file glue.inc is meant to form a bridge between the pascal
  14. and C types, and to take care of some problems in the ordering
  15. of the header files.
  16. The translation was done on a SuSE 8.1 machine:
  17. Kernel version: 2.4.18
  18. glibc version: 2.3
  19. Note on the Libc errno variable. On recent systems the errno symbol is no
  20. longer published in libc. It has been replaced by a __errno_location
  21. pointer, with a macro in the C header files to mask this. The pascal
  22. Libc files assume this by default. This also means you cannot set the
  23. errno value directly, you must use the 'seterrno' procedure for that.
  24. (see errno.inc)
  25. The old mechanism of a published errno libc variable is still available
  26. by setting the LIBC_OLDERRNO define when compiling the libc units.
  27. Michael.