minix/nbsd_include
Thomas Veerman fb50da9dad Fine grained compatibility with _RENAMEd symbols
The NetBSD libc provides a mechanism to have versions of system calls.
By 'renaming' symbols to a new version, freshly compiled programs will
automatically use the new symbol iff they use the proper header files. The
old, not renamed, version of the symbol will still exist (after being moved
to the compat directory), so old programs can still link.

Since MINIX doesn't support dynamic linking, the whole rename mechanism
doesn't really work for us. However, removing it would create a huge diff
with the current NetBSD libc.

A lot of the compat code relies on things we don't (seem to) have, and
therefore does not get built and linked. This causes trouble for tools like
autoconf, which will fail to find the renamed symbols. For example,
currently select gets renamed to __select50 in libc. Autoconf looks for
'select' and doesn't find it and reports we don't have it. This is where
the compat.S stub comes into play: it generates the old symbols and jumps to
the new symbols. However, as this is done in one object file, all renamed
symbols get linked together, causing binaries to be huge. This patch fixes
that by generating an object file for each renamed symbol.

This patch also makes the MISSING_SYSCALLS more complete and marginally
reduces the diff with NetBSD.
2011-11-28 10:12:44 +00:00
..
arch Switch to NetBSD passwd format 2011-11-14 14:47:42 +00:00
arpa [NBSD libc] Various fixes. 2011-04-06 15:59:10 +00:00
heimdal Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
minix base system hooks for pkgsrc drivers 2011-11-16 16:18:21 +01:00
net Reduce compiler/libraries/headers cases to only two 2011-07-04 04:09:52 +02:00
netinet Reduce compiler/libraries/headers cases to only two 2011-07-04 04:09:52 +02:00
netinet6 Reduce compiler/libraries/headers cases to only two 2011-07-04 04:09:52 +02:00
protocols Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
rpc Reduce compiler/libraries/headers cases to only two 2011-07-04 04:09:52 +02:00
rpcsvc Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
ssp Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
sys gcore command to coredump a process 2011-11-22 22:07:41 +01:00
a.out.h [NBSD libc] Various fixes. 2011-04-06 15:59:10 +00:00
aio.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
ar.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
assert.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
atomic.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
bitstring.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
bm.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
cdbr.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
cdbw.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
complex.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
cpio.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
ctype.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
db.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
dirent.h increase system-wide filename limit to 255 2011-08-17 16:00:01 +00:00
disktab.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
dlfcn.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
err.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
errno.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
fenv.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
fmtmsg.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
fnmatch.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
fstab.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
fts.h This patch modifies the NetBSD basic includes to be Minix 2011-02-15 12:03:42 +00:00
ftw.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
getopt.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
glob.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
grp.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
hesiod.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
iconv.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
ieeefp.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
ifaddrs.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
inttypes.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
iso646.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
kvm.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
langinfo.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
libgen.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
limits.h Various fixes for NBSD include. 2011-03-04 23:15:48 +00:00
link.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
link_aout.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
link_elf.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
locale.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
login_cap.h Switch to NetBSD passwd format 2011-11-14 14:47:42 +00:00
lwp.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
Makefile Reduce compiler/libraries/headers cases to only two 2011-07-04 04:09:52 +02:00
malloc.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
math.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
md2.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
memory.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
mntopts.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
monetary.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
mpool.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
mqueue.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
ndbm.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
netconfig.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
netdb.h [NBSD libc] Various fixes. 2011-04-06 15:59:10 +00:00
netgroup.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
nl_types.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
nlist.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
nsswitch.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
paths.h This patch modifies the NetBSD basic includes to be Minix 2011-02-15 12:03:42 +00:00
pwd.h Switch to NetBSD passwd format 2011-11-14 14:47:42 +00:00
randomid.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
ranlib.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
re_comp.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
regex.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
regexp.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
res_update.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
resolv.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
rmt.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
sa.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
sched.h This patch modifies the NetBSD basic includes to be Minix 2011-02-15 12:03:42 +00:00
search.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
semaphore.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
setjmp.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
sgtty.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
signal.h Clean up NetBSD includes Minix port. 2011-02-15 20:16:12 +00:00
stab.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
stdbool.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
stddef.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
stdio.h Fix off-by-one errors and increase PATH_MAX to 1024 2011-09-12 09:00:24 +00:00
stdlib.h Fix GCC image building 2011-07-09 15:04:42 +02:00
string.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
stringlist.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
strings.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
struct.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
sysexits.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
tar.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
tgmath.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
time.h Fine grained compatibility with _RENAMEd symbols 2011-11-28 10:12:44 +00:00
ttyent.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
tzfile.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
ucontext.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
ulimit.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
unistd.h Fine grained compatibility with _RENAMEd symbols 2011-11-28 10:12:44 +00:00
util.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
utime.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
utmp.h Various fixes for NBSD include. 2011-03-04 23:15:48 +00:00
utmpx.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
uuid.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
varargs.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
vis.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
wchar.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
wctype.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00
wordexp.h Import unmodified NetBSD libc in trunk 2011-02-14 19:36:03 +00:00