Go to file
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
benchmarks Fixed unixbench Run script 2010-10-25 08:32:14 +00:00
bin Increase gid_t and uid_t to 32 bits 2011-09-05 13:56:14 +00:00
boot boot e820 memory detection fixes 2011-09-19 13:36:03 +00:00
commands fix rm -f 2011-11-25 17:49:09 +01:00
common Implement issetugid syscall 2011-11-28 10:03:43 +00:00
dist/bzip2 import NetBSD bzip2 and libbz2 2011-11-18 11:11:04 +01:00
docs Switch to NetBSD passwd format 2011-11-14 14:47:42 +00:00
drivers Add vbox -- VirtualBox time sync driver 2011-11-23 18:15:43 +01:00
etc Add vbox -- VirtualBox time sync driver 2011-11-23 18:15:43 +01:00
include Implement issetugid syscall 2011-11-28 10:03:43 +00:00
kernel Introduce sys_getregs call, and let vfs use it 2011-11-22 02:07:33 +01:00
lib Fine grained compatibility with _RENAMEd symbols 2011-11-28 10:12:44 +00:00
libexec update/fix manpage support 2011-09-28 15:24:15 +00:00
man Add block device tracing facility 2011-11-25 13:47:21 +01:00
nbsd_include Fine grained compatibility with _RENAMEd symbols 2011-11-28 10:12:44 +00:00
servers Implement issetugid syscall 2011-11-28 10:03:43 +00:00
share Split block/character protocols and libdriver 2011-11-23 14:06:37 +01:00
test Fix many more comiler warnings 2011-11-28 10:07:55 +00:00
tools import NetBSD bzip2 and libbz2 2011-11-18 11:11:04 +01:00
usr.bin import NetBSD bzip2 and libbz2 2011-11-18 11:11:04 +01:00
usr.sbin Switch to NetBSD passwd format 2011-11-14 14:47:42 +00:00
.gitignore update/fix manpage support 2011-09-28 15:24:15 +00:00
LICENSE Fix parameter parsing in cut 2010-01-21 10:16:05 +00:00
Makefile Switch to NetBSD passwd format 2011-11-14 14:47:42 +00:00