Jonas Maebe c9ce918485 * regenerated for darwin/x86_64 18 anni fa
..
Makefile c9ce918485 * regenerated for darwin/x86_64 18 anni fa
Makefile.fpc 9adb91a68d + support for make -jX by marking all Makefiles that need to be executed 18 anni fa
README 4ace790492 * remove $Log 20 anni fa
aineth.inc 02aaa32fb5 + Fix for var argument instead of pointer, reported by [email protected] 20 anni fa
aioh.inc e417e34496 * truncate log 20 anni fa
aliasesh.inc e417e34496 * truncate log 20 anni fa
allocah.inc e417e34496 * truncate log 20 anni fa
argph.inc 0a23786605 - reverted r4880 (wrong varargs reform) and r4838 (wrong removal of 19 anni fa
argzh.inc e417e34496 * truncate log 20 anni fa
asocketh.inc e417e34496 * truncate log 20 anni fa
asockiosh.inc e417e34496 * truncate log 20 anni fa
bconfnameh.inc e417e34496 * truncate log 20 anni fa
bdirenth.inc e417e34496 * truncate log 20 anni fa
bdlfcnh.inc e417e34496 * truncate log 20 anni fa
bfcntlh.inc e417e34496 * truncate log 20 anni fa
bfenvh.inc e417e34496 * truncate log 20 anni fa
binh.inc e417e34496 * truncate log 20 anni fa
bipch.inc e417e34496 * truncate log 20 anni fa
bmmanh.inc e417e34496 * truncate log 20 anni fa
bmsqh.inc e417e34496 * truncate log 20 anni fa
bnetdbh.inc e417e34496 * truncate log 20 anni fa
bpollh.inc e417e34496 * truncate log 20 anni fa
bresourceh.inc 921ab1f2d0 + Removed last VER1_0 defines 20 anni fa
bschedh.inc e417e34496 * truncate log 20 anni fa
bselecth.inc e417e34496 * truncate log 20 anni fa
bsemh.inc e417e34496 * truncate log 20 anni fa
bshmh.inc e417e34496 * truncate log 20 anni fa
bsockaddrh.inc e417e34496 * truncate log 20 anni fa
bsocket.inc 4bc085713f + Initial implementation 22 anni fa
bsocketh.inc 8a3268cddb + Last Borland Compatibility fixes 20 anni fa
bstatfsh.inc e417e34496 * truncate log 20 anni fa
bstath.inc e417e34496 * truncate log 20 anni fa
bstatvfsh.inc e417e34496 * truncate log 20 anni fa
bstroptsh.inc e417e34496 * truncate log 20 anni fa
btermiosh.inc e417e34496 * truncate log 20 anni fa
btimeh.inc e417e34496 * truncate log 20 anni fa
buioh.inc e417e34496 * truncate log 20 anni fa
bustath.inc e417e34496 * truncate log 20 anni fa
butmph.inc e417e34496 * truncate log 20 anni fa
butmpxh.inc e417e34496 * truncate log 20 anni fa
butsnameh.inc e417e34496 * truncate log 20 anni fa
bwaitflags.inc 4bc085713f + Initial implementation 22 anni fa
bwaitflagsh.inc e417e34496 * truncate log 20 anni fa
bwaitstatus.inc 4bc085713f + Initial implementation 22 anni fa
bwaitstatush.inc e417e34496 * truncate log 20 anni fa
cerrno.inc e417e34496 * truncate log 20 anni fa
crypth.inc 20087744ea * libc patches from Almindor 20 anni fa
ctypeh.inc e417e34496 * truncate log 20 anni fa
dirent.inc 4bc085713f + Initial implementation 22 anni fa
direnth.inc 8a3268cddb + Last Borland Compatibility fixes 20 anni fa
dlfcnh.inc 20087744ea * libc patches from Almindor 20 anni fa
endianh.inc e417e34496 * truncate log 20 anni fa
envzh.inc e417e34496 * truncate log 20 anni fa
errh.inc e417e34496 * truncate log 20 anni fa
errnoh.inc e417e34496 * truncate log 20 anni fa
errorh.inc e417e34496 * truncate log 20 anni fa
fcntlh.inc 0a23786605 - reverted r4880 (wrong varargs reform) and r4838 (wrong removal of 19 anni fa
fenvh.inc e417e34496 * truncate log 20 anni fa
fileh.inc e417e34496 * truncate log 20 anni fa
fmtmsgh.inc e417e34496 * truncate log 20 anni fa
fnmatchh.inc e417e34496 * truncate log 20 anni fa
fpmake.inc ec05423779 + Initial implementation 20 anni fa
fpmake.pp ec05423779 + Initial implementation 20 anni fa
fstabh.inc e417e34496 * truncate log 20 anni fa
gconfigh.inc e417e34496 * truncate log 20 anni fa
gconvh.inc e417e34496 * truncate log 20 anni fa
getopth.inc e417e34496 * truncate log 20 anni fa
glibc_versionh.inc e417e34496 * truncate log 20 anni fa
globh.inc e417e34496 * truncate log 20 anni fa
glue.inc ce02ae077c * fixed psize_t 20 anni fa
grph.inc e417e34496 * truncate log 20 anni fa
h2p 4ace790492 * remove $Log 20 anni fa
h2p1.sed 4bc085713f + Initial implementation 22 anni fa
h2p2.sed 4bc085713f + Initial implementation 22 anni fa
iconvh.inc 4bc085713f + Initial implementation 22 anni fa
igmph.inc e417e34496 * truncate log 20 anni fa
inttypesh.inc 4bc085713f + Initial implementation 22 anni fa
ioctl_typesh.inc e417e34496 * truncate log 20 anni fa
ioctlsh.inc e417e34496 * truncate log 20 anni fa
kerneldefs.pp 790a4fe2d3 * log and id tags removed 20 anni fa
kernelioctl.pp e417e34496 * truncate log 20 anni fa
kioctlsh.inc e417e34496 * truncate log 20 anni fa
langinfoh.inc e417e34496 * truncate log 20 anni fa
lib_namesh.inc 4bc085713f + Initial implementation 22 anni fa
libc.pp ae5cfedc13 * Redirected libc pthread_cond_t type to unixtype 18 anni fa
libgenh.inc e417e34496 * truncate log 20 anni fa
libintlh.inc e417e34496 * truncate log 20 anni fa
libio.inc e417e34496 * truncate log 20 anni fa
libioh.inc e417e34496 * truncate log 20 anni fa
limitsh.inc 921ab1f2d0 + Removed last VER1_0 defines 20 anni fa
local_limh.inc 4bc085713f + Initial implementation 22 anni fa
localeh.inc e417e34496 * truncate log 20 anni fa
malloch.inc e417e34496 * truncate log 20 anni fa
mcheckh.inc e417e34496 * truncate log 20 anni fa
mntenth.inc e417e34496 * truncate log 20 anni fa
monetaryh.inc 0a23786605 - reverted r4880 (wrong varargs reform) and r4838 (wrong removal of 19 anni fa
nashh.inc e417e34496 * truncate log 20 anni fa
nath.inc e417e34496 * truncate log 20 anni fa
nax25h.inc e417e34496 * truncate log 20 anni fa
nech.inc e417e34496 * truncate log 20 anni fa
netdbh.inc e417e34496 * truncate log 20 anni fa
netherh.inc e417e34496 * truncate log 20 anni fa
nethernet.inc 4bc085713f + Initial implementation 22 anni fa
netherneth.inc e417e34496 * truncate log 20 anni fa
nicmp6.inc 4bc085713f + Initial implementation 22 anni fa
nicmp6h.inc e417e34496 * truncate log 20 anni fa
nif_arph.inc e417e34496 * truncate log 20 anni fa
nif_ether.inc e417e34496 * truncate log 20 anni fa
nif_etherh.inc 4bc085713f + Initial implementation 22 anni fa
nif_fddih.inc e417e34496 * truncate log 20 anni fa
nif_packeth.inc e417e34496 * truncate log 20 anni fa
nif_ppp.inc 4bc085713f + Initial implementation 22 anni fa
nif_ppph.inc e417e34496 * truncate log 20 anni fa
nif_shaperh.inc e417e34496 * truncate log 20 anni fa
nif_trh.inc e417e34496 * truncate log 20 anni fa
nifh.inc e417e34496 * truncate log 20 anni fa
nigmph.inc e417e34496 * truncate log 20 anni fa
nin.inc 4bc085713f + Initial implementation 22 anni fa
nin_systmh.inc e417e34496 * truncate log 20 anni fa
ninh.inc e417e34496 * truncate log 20 anni fa
nip.inc 4bc085713f + Initial implementation 22 anni fa
nip6h.inc e417e34496 * truncate log 20 anni fa
nip_icmp.inc e417e34496 * truncate log 20 anni fa
nip_icmph.inc e417e34496 * truncate log 20 anni fa
niph.inc 6caa028202 + Wrong size for flags fields as reported by [email protected] 20 anni fa
nipxh.inc e417e34496 * truncate log 20 anni fa
nl_typesh.inc e417e34496 * truncate log 20 anni fa
nnetromh.inc e417e34496 * truncate log 20 anni fa
npacketh.inc e417e34496 * truncate log 20 anni fa
nroseh.inc e417e34496 * truncate log 20 anni fa
nroute.inc 4bc085713f + Initial implementation 22 anni fa
nrouteh.inc e417e34496 * truncate log 20 anni fa
nssh.inc e417e34496 * truncate log 20 anni fa
ntcph.inc e417e34496 * truncate log 20 anni fa
nudph.inc e417e34496 * truncate log 20 anni fa
nupdh.inc 50778076c3 initial import 20 anni fa
pathsh.inc 4bc085713f + Initial implementation 22 anni fa
posix1_limh.inc 4bc085713f + Initial implementation 22 anni fa
posix2_limh.inc e417e34496 * truncate log 20 anni fa
posixopth.inc 4bc085713f + Initial implementation 22 anni fa
printfh.inc e417e34496 * truncate log 20 anni fa
proutedh.inc e417e34496 * truncate log 20 anni fa
prwhodh.inc e417e34496 * truncate log 20 anni fa
ptalkdh.inc e417e34496 * truncate log 20 anni fa
pthread.inc 539436ed57 + Added missing criticalsection handlers 20 anni fa
pthreadh.inc 539436ed57 + Added missing criticalsection handlers 20 anni fa
pthreadtypesh.inc ae5cfedc13 * Redirected libc pthread_cond_t type to unixtype 18 anni fa
ptimedh.inc e417e34496 * truncate log 20 anni fa
ptyh.inc e417e34496 * truncate log 20 anni fa
pwdh.inc e417e34496 * truncate log 20 anni fa
regexh.inc e417e34496 * truncate log 20 anni fa
regexph.inc e417e34496 * truncate log 20 anni fa
saccth.inc e417e34496 * truncate log 20 anni fa
schedh.inc 4bc085713f + Initial implementation 22 anni fa
searchh.inc e417e34496 * truncate log 20 anni fa
semaphoreh.inc 0a23786605 - reverted r4880 (wrong varargs reform) and r4838 (wrong removal of 19 anni fa
sfsuidh.inc e417e34496 * truncate log 20 anni fa
sgttyh.inc e417e34496 * truncate log 20 anni fa
shadowh.inc e417e34496 * truncate log 20 anni fa
sigactionh.inc ecadd1758f + made sigaction record more kylix like 20 anni fa
sigcontexth.inc e417e34496 * truncate log 20 anni fa
siginfoh.inc 8a3268cddb + Last Borland Compatibility fixes 20 anni fa
signalh.inc 67b440333d + Fixed declaration of sisigemptyset and friends to use param by ref 19 anni fa
signumh.inc 4bc085713f + Initial implementation 22 anni fa
sigseth.inc 8a3268cddb + Last Borland Compatibility fixes 20 anni fa
sigstackh.inc e417e34496 * truncate log 20 anni fa
sigthreadh.inc e417e34496 * truncate log 20 anni fa
sioctlh.inc 0a23786605 - reverted r4880 (wrong varargs reform) and r4838 (wrong removal of 19 anni fa
sipch.inc e417e34496 * truncate log 20 anni fa
skdaemonh.inc e417e34496 * truncate log 20 anni fa
sklogh.inc e417e34496 * truncate log 20 anni fa
smmaph.inc 8ee32a1049 * fixed library name for shm_unlink,shm_open as per mariano podesta's suggestion. 19 anni fa
smounth.inc 4bc085713f + Initial implementation 22 anni fa
smsgh.inc e417e34496 * truncate log 20 anni fa
spawnh.inc e417e34496 * truncate log 20 anni fa
spermh.inc e417e34496 * truncate log 20 anni fa
spollh.inc e417e34496 * truncate log 20 anni fa
sptraceh.inc 0a23786605 - reverted r4880 (wrong varargs reform) and r4838 (wrong removal of 19 anni fa
squota.inc 4bc085713f + Initial implementation 22 anni fa
squotah.inc e417e34496 * truncate log 20 anni fa
sraw.inc e417e34496 * truncate log 20 anni fa
srawh.inc e417e34496 * truncate log 20 anni fa
srebooth.inc e417e34496 * truncate log 20 anni fa
sresourceh.inc e417e34496 * truncate log 20 anni fa
sscsi_ioctlh.inc e417e34496 * truncate log 20 anni fa
sscsih.inc e417e34496 * truncate log 20 anni fa
sselect.inc 216d27705d + Fixed some differences with Kylix libc 20 anni fa
sselecth.inc 216d27705d + Fixed some differences with Kylix libc 20 anni fa
ssemh.inc 0a23786605 - reverted r4880 (wrong varargs reform) and r4838 (wrong removal of 19 anni fa
ssendfileh.inc e417e34496 * truncate log 20 anni fa
ssgh.inc e417e34496 * truncate log 20 anni fa
sshmh.inc e417e34496 * truncate log 20 anni fa
ssocketh.inc 07cc362617 + Added overloaded calls with untyped buffer for send/recv calls. As reported by [email protected] 20 anni fa
sstat.inc aacae3fb55 * another bunch of *stat* wrappers 20 anni fa
sstatfsh.inc e417e34496 * truncate log 20 anni fa
sstath.inc aacae3fb55 * another bunch of *stat* wrappers 20 anni fa
sstatvfsh.inc e417e34496 * truncate log 20 anni fa
sswaph.inc e417e34496 * truncate log 20 anni fa
ssysctlh.inc e417e34496 * truncate log 20 anni fa
ssysinfoh.inc e417e34496 * truncate log 20 anni fa
ssyslog.inc 4bc085713f + Initial implementation 22 anni fa
ssyslogh.inc e417e34496 * truncate log 20 anni fa
stdinth.inc 921ab1f2d0 + Removed last VER1_0 defines 20 anni fa
stdio_exth.inc e417e34496 * truncate log 20 anni fa
stdio_limh.inc e417e34496 * truncate log 20 anni fa
stdioh.inc 0a23786605 - reverted r4880 (wrong varargs reform) and r4838 (wrong removal of 19 anni fa
stdlib.inc 4bc085713f + Initial implementation 22 anni fa
stdlibh.inc ffb55c4254 + Removed VER1_0 defines 20 anni fa
stime.inc e417e34496 * truncate log 20 anni fa
stimebh.inc e417e34496 * truncate log 20 anni fa
stimeh.inc a478052057 * gettimeofday(var tv;var tz) overload added 20 anni fa
stringh.inc e417e34496 * truncate log 20 anni fa
stroptsh.inc e417e34496 * truncate log 20 anni fa
sttydefaults.inc 4bc085713f + Initial implementation 22 anni fa
sttydefaultsh.inc e417e34496 * truncate log 20 anni fa
sucontexth.inc e417e34496 * truncate log 20 anni fa
suioh.inc e417e34496 * truncate log 20 anni fa
sun.inc 4bc085713f + Initial implementation 22 anni fa
sunh.inc e417e34496 * truncate log 20 anni fa
suserh.inc e417e34496 * truncate log 20 anni fa
sustath.inc e417e34496 * truncate log 20 anni fa
sutsnameh.inc e417e34496 * truncate log 20 anni fa
svlimith.inc e417e34496 * truncate log 20 anni fa
svtimesh.inc e417e34496 * truncate log 20 anni fa
swaith.inc e417e34496 * truncate log 20 anni fa
sysexitsh.inc e417e34496 * truncate log 20 anni fa
syslogh.inc e417e34496 * truncate log 20 anni fa
systypeshh.inc 8a3268cddb + Last Borland Compatibility fixes 20 anni fa
termios.inc 4bc085713f + Initial implementation 22 anni fa
termiosh.inc 4bc085713f + Initial implementation 22 anni fa
time.inc 4bc085713f + Initial implementation 22 anni fa
timeh.inc e9860e8c97 * solved bug #3860 with a union 20 anni fa
timesh.inc e417e34496 * truncate log 20 anni fa
timexh.inc 8a3268cddb + Last Borland Compatibility fixes 20 anni fa
ttyenth.inc e417e34496 * truncate log 20 anni fa
types.inc 216d27705d + Fixed some differences with Kylix libc 20 anni fa
typesh.inc 8a3268cddb + Last Borland Compatibility fixes 20 anni fa
ucontexth.inc 0a23786605 - reverted r4880 (wrong varargs reform) and r4838 (wrong removal of 19 anni fa
ulimith.inc 0a23786605 - reverted r4880 (wrong varargs reform) and r4838 (wrong removal of 19 anni fa
unistdh.inc 0a23786605 - reverted r4880 (wrong varargs reform) and r4838 (wrong removal of 19 anni fa
utimeh.inc 4bc085713f + Initial implementation 22 anni fa
utmph.inc e417e34496 * truncate log 20 anni fa
utmpxh.inc e417e34496 * truncate log 20 anni fa
wcharh.inc 0a23786605 - reverted r4880 (wrong varargs reform) and r4838 (wrong removal of 19 anni fa
wctypeh.inc e417e34496 * truncate log 20 anni fa
wordexph.inc e417e34496 * truncate log 20 anni fa
wordsizeh.inc 4bc085713f + Initial implementation 22 anni fa
xlocaleh.inc e417e34496 * truncate log 20 anni fa
xopen_limh.inc 4bc085713f + Initial implementation 22 anni fa

README

This is the FPC translation of the C library header files.
This unit is meant to
- Give full access to the GNU libc library functionality.
- Be compatible to Borland's Libc.pas unit.

There will often exist 2 versions of a function call: one with a
pointer type argument - this is the straight translation of a libc call.
One is with a var/const argument, this is a more 'pascal' like call,
which is usually also the way Borland did it.

Each C header file has been translated to an .inc file.
The translation of header file xxx.h is named xxxh.inc.
If macros were converted, they are in a file xxx.inc

All files are included in libc.pp and their origin is noted there.

the file glue.inc is meant to form a bridge between the pascal
and C types, and to take care of some problems in the ordering
of the header files.

The translation was done on a SuSE 8.1 machine:
Kernel version: 2.4.18
glibc version: 2.3

Note on the Libc errno variable. On recent systems the errno symbol is no
longer published in libc. It has been replaced by a __errno_location
pointer, with a macro in the C header files to mask this. The pascal
Libc files assume this by default. This also means you cannot set the
errno value directly, you must use the 'seterrno' procedure for that.
(see errno.inc)

The old mechanism of a published errno libc variable is still available
by setting the LIBC_OLDERRNO define when compiling the libc units.

Michael.