fpc/packages/base/libc
2004-01-05 23:34:21 +00:00
..
aineth.inc
aioh.inc
aliasesh.inc
allocah.inc
argph.inc
argzh.inc
asocketh.inc
asockiosh.inc
bconfnameh.inc
bdirenth.inc
bdlfcnh.inc
bfcntlh.inc
bfenvh.inc
binh.inc
bipch.inc
bmmanh.inc
bmsqh.inc
bnetdbh.inc
bpollh.inc
bresourceh.inc
bschedh.inc
bselecth.inc
bsemh.inc
bshmh.inc
bsockaddrh.inc
bsocket.inc
bsocketh.inc
bstatfsh.inc
bstath.inc + Patch from Johannes Berg for bug #2699 2003-11-24 21:58:27 +00:00
bstatvfsh.inc
bstroptsh.inc
btermiosh.inc
btimeh.inc
buioh.inc
bustath.inc
butmph.inc
butmpxh.inc
butsnameh.inc
bwaitflags.inc
bwaitflagsh.inc
bwaitstatus.inc
bwaitstatush.inc
crypth.inc
ctypeh.inc
dirent.inc
direnth.inc
dlfcnh.inc
endianh.inc
envzh.inc
errh.inc
errno.inc + Need to ifdef LIBC_OLDERRNO in implementation 2003-12-31 15:54:53 +00:00
errnoh.inc + Fixed errno_location problem 2003-12-31 10:46:08 +00:00
errorh.inc
fcntlh.inc
fenvh.inc
fileh.inc
fmtmsgh.inc
fnmatchh.inc
fstabh.inc
gconfigh.inc
gconvh.inc
getopth.inc
glibc_versionh.inc
globh.inc
glue.inc
grph.inc
h2p
h2p1.sed
h2p2.sed
iconvh.inc
igmph.inc
ineth.inc
inttypesh.inc
ioctl_typesh.inc
ioctlsh.inc
kerneldefs.pp
kernelioctl.pp
kioctlsh.inc
langinfoh.inc
lib_namesh.inc
libc.pp + Fixed errno_location problem 2003-12-31 10:46:08 +00:00
libgenh.inc
libintlh.inc
libio.inc
libioh.inc
limitsh.inc
local_limh.inc
localeh.inc
Makefile * regenerating the makefiles with some netbsd fixes + version upgrades 2004-01-05 23:34:21 +00:00
Makefile.fpc * fixed a few makefiles version numbers 2004-01-05 23:29:35 +00:00
malloch.inc
mcheckh.inc
mntenth.inc
monetaryh.inc
nashh.inc
nath.inc
nax25h.inc
nech.inc
netdbh.inc
netherh.inc
nethernet.inc
netherneth.inc
nicmp6.inc
nicmp6h.inc
nif_arph.inc
nif_ether.inc
nif_etherh.inc
nif_fddih.inc
nif_packeth.inc
nif_ppp.inc
nif_ppph.inc
nif_shaperh.inc
nif_trh.inc
nifh.inc
nigmph.inc
nin_systmh.inc
nin.inc
ninh.inc
nip6h.inc
nip_icmp.inc
nip_icmph.inc
nip.inc
niph.inc
nipxh.inc
nl_typesh.inc
nnetromh.inc
npacketh.inc
nroseh.inc
nroute.inc
nrouteh.inc
nssh.inc
ntcph.inc
nudph.inc
nupdh.inc
pathsh.inc
posix1_limh.inc
posix2_limh.inc
posixopth.inc
printfh.inc
proutedh.inc
prwhodh.inc
ptalkdh.inc + DELETE naming conflct 2003-06-26 13:54:30 +00:00
pthreadh.inc
pthreadtypesh.inc
ptimedh.inc
ptyh.inc
pwdh.inc
README + Fixed errno_location problem 2003-12-31 10:46:08 +00:00
regexh.inc
regexph.inc
saccth.inc
schedh.inc
searchh.inc
semaphoreh.inc
sfsuidh.inc
sgttyh.inc
shadowh.inc
sigactionh.inc
sigcontexth.inc
siginfoh.inc
signalh.inc
signumh.inc
sigseth.inc
sigstackh.inc
sigthreadh.inc
sioctlh.inc + Solved some more naming conflicts 2003-06-26 10:13:53 +00:00
sipch.inc
skdaemonh.inc
sklogh.inc
smmaph.inc
smounth.inc
smsgh.inc
spawnh.inc
spermh.inc
spollh.inc
sptraceh.inc
squota.inc
squotah.inc
sraw.inc
srawh.inc
srebooth.inc
sresourceh.inc
sscsi_ioctlh.inc
sscsih.inc + Fixed renaming conflict 2003-06-26 13:16:13 +00:00
sselect.inc
sselecth.inc
ssemh.inc
ssendfileh.inc
ssgh.inc
sshmh.inc
ssocketh.inc
sstat.inc
sstatfsh.inc
sstath.inc + Solved some more naming conflicts 2003-06-26 10:13:53 +00:00
sstatvfsh.inc
sswaph.inc
ssysctlh.inc
ssysinfoh.inc
ssyslog.inc
ssyslogh.inc
stdinth.inc
stdio_exth.inc
stdio_limh.inc
stdioh.inc + Solved some more naming conflicts 2003-06-26 10:13:53 +00:00
stdlib.inc
stdlibh.inc
stime.inc
stimebh.inc
stimeh.inc
stringh.inc + Solved some more naming conflicts 2003-06-26 10:13:53 +00:00
stroptsh.inc
sttydefaults.inc
sttydefaultsh.inc
sucontexth.inc
suioh.inc
sun.inc
sunh.inc
suserh.inc
sustath.inc
sutsnameh.inc
svlimith.inc
svtimesh.inc
swaith.inc
sysexitsh.inc
syslogh.inc
systypeshh.inc
termios.inc
termiosh.inc
time.inc
timeh.inc
timesh.inc
timexh.inc
ttyenth.inc
typesh.inc
ucontexth.inc
ulimith.inc
unistdh.inc + Fixed execve 2003-08-15 18:55:46 +00:00
utimeh.inc
utmph.inc
utmpxh.inc
wcharh.inc
wctypeh.inc
wordexph.inc
wordsizeh.inc
xlocaleh.inc
xopen_limh.inc

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.