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