peter 110fb12911 * regenerated 21 år sedan
..
Makefile 110fb12911 * regenerated 21 år sedan
Makefile.fpc 26b56d31ce * updated makefile.fpc versions to 1.9.7, regenerated makefiles 21 år sedan
README 5ac94f8092 + Fixed errno_location problem 22 år sedan
aineth.inc 3bf060e15c + Moved ineth.inc to aineth.inc as originally intended. Thanks to Sebastian Volland 22 år sedan
aioh.inc 4bc085713f + Initial implementation 22 år sedan
aliasesh.inc 4bc085713f + Initial implementation 22 år sedan
allocah.inc 4bc085713f + Initial implementation 22 år sedan
argph.inc 4bc085713f + Initial implementation 22 år sedan
argzh.inc 4bc085713f + Initial implementation 22 år sedan
asocketh.inc 4bc085713f + Initial implementation 22 år sedan
asockiosh.inc 4bc085713f + Initial implementation 22 år sedan
bconfnameh.inc 4bc085713f + Initial implementation 22 år sedan
bdirenth.inc 4bc085713f + Initial implementation 22 år sedan
bdlfcnh.inc 4bc085713f + Initial implementation 22 år sedan
bfcntlh.inc 5c2ad1c4ec + Fixed octal constants. Thanks to Martin Schreiber for reporting it 21 år sedan
bfenvh.inc 4bc085713f + Initial implementation 22 år sedan
binh.inc 4bc085713f + Initial implementation 22 år sedan
bipch.inc 4bc085713f + Initial implementation 22 år sedan
bmmanh.inc 4bc085713f + Initial implementation 22 år sedan
bmsqh.inc 4bc085713f + Initial implementation 22 år sedan
bnetdbh.inc 4bc085713f + Initial implementation 22 år sedan
bpollh.inc 4bc085713f + Initial implementation 22 år sedan
bresourceh.inc 4bc085713f + Initial implementation 22 år sedan
bschedh.inc 4bc085713f + Initial implementation 22 år sedan
bselecth.inc 4bc085713f + Initial implementation 22 år sedan
bsemh.inc 4bc085713f + Initial implementation 22 år sedan
bshmh.inc 4bc085713f + Initial implementation 22 år sedan
bsockaddrh.inc 4bc085713f + Initial implementation 22 år sedan
bsocket.inc 4bc085713f + Initial implementation 22 år sedan
bsocketh.inc 4bc085713f + Initial implementation 22 år sedan
bstatfsh.inc 4bc085713f + Initial implementation 22 år sedan
bstath.inc 6fc1eee56c + Fixed stat record as reported by Michalis Kamburelis 21 år sedan
bstatvfsh.inc 4bc085713f + Initial implementation 22 år sedan
bstroptsh.inc 4bc085713f + Initial implementation 22 år sedan
btermiosh.inc 4bc085713f + Initial implementation 22 år sedan
btimeh.inc 4bc085713f + Initial implementation 22 år sedan
buioh.inc 4bc085713f + Initial implementation 22 år sedan
bustath.inc 4bc085713f + Initial implementation 22 år sedan
butmph.inc 4bc085713f + Initial implementation 22 år sedan
butmpxh.inc 4bc085713f + Initial implementation 22 år sedan
butsnameh.inc 4bc085713f + Initial implementation 22 år sedan
bwaitflags.inc 4bc085713f + Initial implementation 22 år sedan
bwaitflagsh.inc 4bc085713f + Initial implementation 22 år sedan
bwaitstatus.inc 4bc085713f + Initial implementation 22 år sedan
bwaitstatush.inc 4bc085713f + Initial implementation 22 år sedan
cerrno.inc 07124634d3 + Moved to cerrno to avoid conflict with system unit 21 år sedan
crypth.inc 4bc085713f + Initial implementation 22 år sedan
ctypeh.inc 0e4c0cfd0b + Added isblank function. reported by Mario R. Carro 21 år sedan
dirent.inc 4bc085713f + Initial implementation 22 år sedan
direnth.inc 4bc085713f + Initial implementation 22 år sedan
dlfcnh.inc 4bc085713f + Initial implementation 22 år sedan
endianh.inc 4bc085713f + Initial implementation 22 år sedan
envzh.inc 4bc085713f + Initial implementation 22 år sedan
errh.inc 4bc085713f + Initial implementation 22 år sedan
errnoh.inc 5ac94f8092 + Fixed errno_location problem 22 år sedan
errorh.inc 4bc085713f + Initial implementation 22 år sedan
fcntlh.inc 4bc085713f + Initial implementation 22 år sedan
fenvh.inc 4bc085713f + Initial implementation 22 år sedan
fileh.inc 4bc085713f + Initial implementation 22 år sedan
fmtmsgh.inc 4bc085713f + Initial implementation 22 år sedan
fnmatchh.inc 4bc085713f + Initial implementation 22 år sedan
fstabh.inc 4bc085713f + Initial implementation 22 år sedan
gconfigh.inc 4bc085713f + Initial implementation 22 år sedan
gconvh.inc 4bc085713f + Initial implementation 22 år sedan
getopth.inc 4bc085713f + Initial implementation 22 år sedan
glibc_versionh.inc 4bc085713f + Initial implementation 22 år sedan
globh.inc 4bc085713f + Initial implementation 22 år sedan
glue.inc 4bc085713f + Initial implementation 22 år sedan
grph.inc 4bc085713f + Initial implementation 22 år sedan
h2p 4bc085713f + Initial implementation 22 år sedan
h2p1.sed 4bc085713f + Initial implementation 22 år sedan
h2p2.sed 4bc085713f + Initial implementation 22 år sedan
iconvh.inc 4bc085713f + Initial implementation 22 år sedan
igmph.inc 4bc085713f + Initial implementation 22 år sedan
inttypesh.inc 4bc085713f + Initial implementation 22 år sedan
ioctl_typesh.inc 4bc085713f + Initial implementation 22 år sedan
ioctlsh.inc 4bc085713f + Initial implementation 22 år sedan
kerneldefs.pp 4bc085713f + Initial implementation 22 år sedan
kernelioctl.pp 4bc085713f + Initial implementation 22 år sedan
kioctlsh.inc 4bc085713f + Initial implementation 22 år sedan
langinfoh.inc 4bc085713f + Initial implementation 22 år sedan
lib_namesh.inc 4bc085713f + Initial implementation 22 år sedan
libc.pp abf1ace89f * errno.inc -> cerrno.inc 21 år sedan
libgenh.inc 4bc085713f + Initial implementation 22 år sedan
libintlh.inc 4bc085713f + Initial implementation 22 år sedan
libio.inc 4bc085713f + Initial implementation 22 år sedan
libioh.inc 4bc085713f + Initial implementation 22 år sedan
limitsh.inc 4bc085713f + Initial implementation 22 år sedan
local_limh.inc 4bc085713f + Initial implementation 22 år sedan
localeh.inc 4bc085713f + Initial implementation 22 år sedan
malloch.inc 4bc085713f + Initial implementation 22 år sedan
mcheckh.inc 4bc085713f + Initial implementation 22 år sedan
mntenth.inc 4bc085713f + Initial implementation 22 år sedan
monetaryh.inc 4bc085713f + Initial implementation 22 år sedan
nashh.inc 4bc085713f + Initial implementation 22 år sedan
nath.inc 4bc085713f + Initial implementation 22 år sedan
nax25h.inc 4bc085713f + Initial implementation 22 år sedan
nech.inc 4bc085713f + Initial implementation 22 år sedan
netdbh.inc 4bc085713f + Initial implementation 22 år sedan
netherh.inc 4bc085713f + Initial implementation 22 år sedan
nethernet.inc 4bc085713f + Initial implementation 22 år sedan
netherneth.inc 4bc085713f + Initial implementation 22 år sedan
nicmp6.inc 4bc085713f + Initial implementation 22 år sedan
nicmp6h.inc 4bc085713f + Initial implementation 22 år sedan
nif_arph.inc 4bc085713f + Initial implementation 22 år sedan
nif_ether.inc 4bc085713f + Initial implementation 22 år sedan
nif_etherh.inc 4bc085713f + Initial implementation 22 år sedan
nif_fddih.inc 4bc085713f + Initial implementation 22 år sedan
nif_packeth.inc 4bc085713f + Initial implementation 22 år sedan
nif_ppp.inc 4bc085713f + Initial implementation 22 år sedan
nif_ppph.inc 4bc085713f + Initial implementation 22 år sedan
nif_shaperh.inc 4bc085713f + Initial implementation 22 år sedan
nif_trh.inc 4bc085713f + Initial implementation 22 år sedan
nifh.inc 4bc085713f + Initial implementation 22 år sedan
nigmph.inc 4bc085713f + Initial implementation 22 år sedan
nin.inc 4bc085713f + Initial implementation 22 år sedan
nin_systmh.inc 4bc085713f + Initial implementation 22 år sedan
ninh.inc 4bc085713f + Initial implementation 22 år sedan
nip.inc 4bc085713f + Initial implementation 22 år sedan
nip6h.inc 4bc085713f + Initial implementation 22 år sedan
nip_icmp.inc 4bc085713f + Initial implementation 22 år sedan
nip_icmph.inc 4bc085713f + Initial implementation 22 år sedan
niph.inc 4bc085713f + Initial implementation 22 år sedan
nipxh.inc 4bc085713f + Initial implementation 22 år sedan
nl_typesh.inc 4bc085713f + Initial implementation 22 år sedan
nnetromh.inc 4bc085713f + Initial implementation 22 år sedan
npacketh.inc 4bc085713f + Initial implementation 22 år sedan
nroseh.inc 4bc085713f + Initial implementation 22 år sedan
nroute.inc 4bc085713f + Initial implementation 22 år sedan
nrouteh.inc 4bc085713f + Initial implementation 22 år sedan
nssh.inc 4bc085713f + Initial implementation 22 år sedan
ntcph.inc 4bc085713f + Initial implementation 22 år sedan
nudph.inc 4bc085713f + Initial implementation 22 år sedan
nupdh.inc 4bc085713f + Initial implementation 22 år sedan
pathsh.inc 4bc085713f + Initial implementation 22 år sedan
posix1_limh.inc 4bc085713f + Initial implementation 22 år sedan
posix2_limh.inc 4bc085713f + Initial implementation 22 år sedan
posixopth.inc 4bc085713f + Initial implementation 22 år sedan
printfh.inc 4bc085713f + Initial implementation 22 år sedan
proutedh.inc 4bc085713f + Initial implementation 22 år sedan
prwhodh.inc 4bc085713f + Initial implementation 22 år sedan
ptalkdh.inc 2711f7d464 + DELETE naming conflct 22 år sedan
pthreadh.inc 4bc085713f + Initial implementation 22 år sedan
pthreadtypesh.inc 4bc085713f + Initial implementation 22 år sedan
ptimedh.inc 4bc085713f + Initial implementation 22 år sedan
ptyh.inc 4bc085713f + Initial implementation 22 år sedan
pwdh.inc 21aff687ac + Fixed getpwuid_r as reported by Michalis Kamburelis 21 år sedan
regexh.inc 4bc085713f + Initial implementation 22 år sedan
regexph.inc 4bc085713f + Initial implementation 22 år sedan
saccth.inc 4bc085713f + Initial implementation 22 år sedan
schedh.inc 4bc085713f + Initial implementation 22 år sedan
searchh.inc 4bc085713f + Initial implementation 22 år sedan
semaphoreh.inc 4bc085713f + Initial implementation 22 år sedan
sfsuidh.inc 4bc085713f + Initial implementation 22 år sedan
sgttyh.inc 4bc085713f + Initial implementation 22 år sedan
shadowh.inc 4bc085713f + Initial implementation 22 år sedan
sigactionh.inc 4bc085713f + Initial implementation 22 år sedan
sigcontexth.inc 4bc085713f + Initial implementation 22 år sedan
siginfoh.inc 4bc085713f + Initial implementation 22 år sedan
signalh.inc 7c2585e230 + Fixes as suggested by Den Jean 21 år sedan
signumh.inc 4bc085713f + Initial implementation 22 år sedan
sigseth.inc 4bc085713f + Initial implementation 22 år sedan
sigstackh.inc 4bc085713f + Initial implementation 22 år sedan
sigthreadh.inc 4bc085713f + Initial implementation 22 år sedan
sioctlh.inc 519a94be0a + Solved some more naming conflicts 22 år sedan
sipch.inc 4bc085713f + Initial implementation 22 år sedan
skdaemonh.inc 4bc085713f + Initial implementation 22 år sedan
sklogh.inc 4bc085713f + Initial implementation 22 år sedan
smmaph.inc 4bc085713f + Initial implementation 22 år sedan
smounth.inc 4bc085713f + Initial implementation 22 år sedan
smsgh.inc 4bc085713f + Initial implementation 22 år sedan
spawnh.inc 4bc085713f + Initial implementation 22 år sedan
spermh.inc 4bc085713f + Initial implementation 22 år sedan
spollh.inc 4bc085713f + Initial implementation 22 år sedan
sptraceh.inc 4bc085713f + Initial implementation 22 år sedan
squota.inc 4bc085713f + Initial implementation 22 år sedan
squotah.inc 4bc085713f + Initial implementation 22 år sedan
sraw.inc 4bc085713f + Initial implementation 22 år sedan
srawh.inc 4bc085713f + Initial implementation 22 år sedan
srebooth.inc 4bc085713f + Initial implementation 22 år sedan
sresourceh.inc 7c2585e230 + Fixes as suggested by Den Jean 21 år sedan
sscsi_ioctlh.inc 4bc085713f + Initial implementation 22 år sedan
sscsih.inc 1c9707a8a7 + Fixed renaming conflict 22 år sedan
sselect.inc 4bc085713f + Initial implementation 22 år sedan
sselecth.inc 4bc085713f + Initial implementation 22 år sedan
ssemh.inc 4bc085713f + Initial implementation 22 år sedan
ssendfileh.inc 4bc085713f + Initial implementation 22 år sedan
ssgh.inc 4bc085713f + Initial implementation 22 år sedan
sshmh.inc 4bc085713f + Initial implementation 22 år sedan
ssocketh.inc 4bc085713f + Initial implementation 22 år sedan
sstat.inc eb4df64ffc + Fixed S_ISXX parameter typ to __mode_t as suggested by Michalis Kamburelis 21 år sedan
sstatfsh.inc 4bc085713f + Initial implementation 22 år sedan
sstath.inc eb4df64ffc + Fixed S_ISXX parameter typ to __mode_t as suggested by Michalis Kamburelis 21 år sedan
sstatvfsh.inc 4bc085713f + Initial implementation 22 år sedan
sswaph.inc 4bc085713f + Initial implementation 22 år sedan
ssysctlh.inc 4bc085713f + Initial implementation 22 år sedan
ssysinfoh.inc 4bc085713f + Initial implementation 22 år sedan
ssyslog.inc 4bc085713f + Initial implementation 22 år sedan
ssyslogh.inc 4bc085713f + Initial implementation 22 år sedan
stdinth.inc 4bc085713f + Initial implementation 22 år sedan
stdio_exth.inc 4bc085713f + Initial implementation 22 år sedan
stdio_limh.inc 4bc085713f + Initial implementation 22 år sedan
stdioh.inc 519a94be0a + Solved some more naming conflicts 22 år sedan
stdlib.inc 4bc085713f + Initial implementation 22 år sedan
stdlibh.inc bedf31abe9 + Dynamic library implementation by Joost van der Sluis 21 år sedan
stime.inc 4bc085713f + Initial implementation 22 år sedan
stimebh.inc 4bc085713f + Initial implementation 22 år sedan
stimeh.inc fe23e95957 + Fixed __timezone_ptr_t. Thanks to Martin Schreiber for reporting it 21 år sedan
stringh.inc 519a94be0a + Solved some more naming conflicts 22 år sedan
stroptsh.inc 4bc085713f + Initial implementation 22 år sedan
sttydefaults.inc 4bc085713f + Initial implementation 22 år sedan
sttydefaultsh.inc 4bc085713f + Initial implementation 22 år sedan
sucontexth.inc 7c2585e230 + Fixes as suggested by Den Jean 21 år sedan
suioh.inc 4bc085713f + Initial implementation 22 år sedan
sun.inc 4bc085713f + Initial implementation 22 år sedan
sunh.inc 4bc085713f + Initial implementation 22 år sedan
suserh.inc 4bc085713f + Initial implementation 22 år sedan
sustath.inc 4bc085713f + Initial implementation 22 år sedan
sutsnameh.inc 4bc085713f + Initial implementation 22 år sedan
svlimith.inc 4bc085713f + Initial implementation 22 år sedan
svtimesh.inc 4bc085713f + Initial implementation 22 år sedan
swaith.inc 4bc085713f + Initial implementation 22 år sedan
sysexitsh.inc 4bc085713f + Initial implementation 22 år sedan
syslogh.inc 4bc085713f + Initial implementation 22 år sedan
systypeshh.inc 4bc085713f + Initial implementation 22 år sedan
termios.inc 4bc085713f + Initial implementation 22 år sedan
termiosh.inc 4bc085713f + Initial implementation 22 år sedan
time.inc 4bc085713f + Initial implementation 22 år sedan
timeh.inc 4bc085713f + Initial implementation 22 år sedan
timesh.inc 4bc085713f + Initial implementation 22 år sedan
timexh.inc 4bc085713f + Initial implementation 22 år sedan
ttyenth.inc 4bc085713f + Initial implementation 22 år sedan
typesh.inc 4bc085713f + Initial implementation 22 år sedan
ucontexth.inc 4bc085713f + Initial implementation 22 år sedan
ulimith.inc 4bc085713f + Initial implementation 22 år sedan
unistdh.inc 7c2585e230 + Fixes as suggested by Den Jean 21 år sedan
utimeh.inc 4bc085713f + Initial implementation 22 år sedan
utmph.inc 4bc085713f + Initial implementation 22 år sedan
utmpxh.inc 4bc085713f + Initial implementation 22 år sedan
wcharh.inc 4bc085713f + Initial implementation 22 år sedan
wctypeh.inc 4bc085713f + Initial implementation 22 år sedan
wordexph.inc 4bc085713f + Initial implementation 22 år sedan
wordsizeh.inc 4bc085713f + Initial implementation 22 år sedan
xlocaleh.inc 4bc085713f + Initial implementation 22 år sedan
xopen_limh.inc 4bc085713f + Initial implementation 22 år sedan

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.