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

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.