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

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.