Tomas Hajny fb84d5a45e * version 2.0.5 19 anni fa
..
Makefile fb84d5a45e * version 2.0.5 19 anni fa
Makefile.fpc fb84d5a45e * version 2.0.5 19 anni fa
README dbf8134f0a Merged revisions 231 via svnmerge from 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 e417e34496 * truncate log 20 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 67d69581e5 + Merged revision 321 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 690df7bd5b + Merged revisions 834,847 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 101eed1027 Merged revisions 1146-1152,1154-1160,1162-1164,1167-1170,1177-1178,1183-1184,1186-1192 via svnmerge from 20 anni fa
ctypeh.inc e417e34496 * truncate log 20 anni fa
dirent.inc 4bc085713f + Initial implementation 22 anni fa
direnth.inc 690df7bd5b + Merged revisions 834,847 20 anni fa
dlfcnh.inc 101eed1027 Merged revisions 1146-1152,1154-1160,1162-1164,1167-1170,1177-1178,1183-1184,1186-1192 via svnmerge from 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 e417e34496 * truncate log 20 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
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 8507617f0b Merged revisions 1243-1244 via svnmerge from 20 anni fa
grph.inc e417e34496 * truncate log 20 anni fa
h2p dbf8134f0a Merged revisions 231 via svnmerge from 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 b409904e44 Merged revisions 42 via svnmerge from 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 101eed1027 Merged revisions 1146-1152,1154-1160,1162-1164,1167-1170,1177-1178,1183-1184,1186-1192 via svnmerge from 20 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 67d69581e5 + Merged revision 321 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 e417e34496 * truncate log 20 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 cd584f08c3 Merged revisions 946 via svnmerge from 20 anni fa
pthreadh.inc cd584f08c3 Merged revisions 946 via svnmerge from 20 anni fa
pthreadtypesh.inc 690df7bd5b + Merged revisions 834,847 20 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 690df7bd5b + Merged revisions 834,847 20 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 dcd3180036 Merged revisions 1099-1104,1109,1111-1112,1118-1119,1122 via svnmerge from 20 anni fa
sigcontexth.inc e417e34496 * truncate log 20 anni fa
siginfoh.inc 690df7bd5b + Merged revisions 834,847 20 anni fa
signalh.inc fe3c61cb0b Merged revisions 3508 via svnmerge from 19 anni fa
signumh.inc 4bc085713f + Initial implementation 22 anni fa
sigseth.inc 690df7bd5b + Merged revisions 834,847 20 anni fa
sigstackh.inc e417e34496 * truncate log 20 anni fa
sigthreadh.inc e417e34496 * truncate log 20 anni fa
sioctlh.inc e417e34496 * truncate log 20 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 da7dade6d1 Merged revisions 2967,2992-2993,3019,3121,3142,3158,3163,3188,3208,3220-3221 via svnmerge from 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 e417e34496 * truncate log 20 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 690df7bd5b + Merged revisions 834,847 20 anni fa
sselecth.inc 7922ddc216 Merged revisions 773-774 via svnmerge from 20 anni fa
ssemh.inc e417e34496 * truncate log 20 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 f1aa6ff6c3 Merged revisions 1231 via svnmerge from 20 anni fa
sstatfsh.inc e417e34496 * truncate log 20 anni fa
sstath.inc f1aa6ff6c3 Merged revisions 1231 via svnmerge from 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 67d69581e5 + Merged revision 321 20 anni fa
stdio_exth.inc e417e34496 * truncate log 20 anni fa
stdio_limh.inc e417e34496 * truncate log 20 anni fa
stdioh.inc 5f62928563 Merged revisions 3347 via svnmerge from 19 anni fa
stdlib.inc 4bc085713f + Initial implementation 22 anni fa
stdlibh.inc a23cf740db Merged revisions 33 via svnmerge from 20 anni fa
stime.inc e417e34496 * truncate log 20 anni fa
stimebh.inc e417e34496 * truncate log 20 anni fa
stimeh.inc 70eafb2cda Merged revisions 1540-1541,1566-1567,1569,1571,1594,1602,1604,1606 via svnmerge from 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 690df7bd5b + Merged revisions 834,847 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 690df7bd5b + Merged revisions 834,847 20 anni fa
ttyenth.inc e417e34496 * truncate log 20 anni fa
types.inc 690df7bd5b + Merged revisions 834,847 20 anni fa
typesh.inc 690df7bd5b + Merged revisions 834,847 20 anni fa
ucontexth.inc e417e34496 * truncate log 20 anni fa
ulimith.inc e417e34496 * truncate log 20 anni fa
unistdh.inc e417e34496 * truncate log 20 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 e417e34496 * truncate log 20 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.