minix/lib/nbsd_libc/sys-minix
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
..
__getcwd.c Fix a ton of compiler warnings 2011-11-14 10:07:49 +00:00
__getlogin.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
_exit.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
_mcontext.c Fix many more comiler warnings 2011-11-28 10:07:55 +00:00
_ucontext.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
accept.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
access.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
bind.c Fix many more comiler warnings 2011-11-28 10:07:55 +00:00
brk.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
chdir.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
chmod.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
chown.c Fix many more comiler warnings 2011-11-28 10:07:55 +00:00
chroot.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
close.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
connect.c Fix many more comiler warnings 2011-11-28 10:07:55 +00:00
cprofile.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
dup.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
dup2.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
environ.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
execve.c Fix many more comiler warnings 2011-11-28 10:07:55 +00:00
fchmod.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
fchown.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
fcntl.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
flock.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
fork.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
fpathconf.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
fstatfs.c Fix stat, add fstat and other NBSD libc fixes. 2011-03-04 22:31:31 +00:00
fstatvfs.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
fsync.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
ftruncate.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
getdents.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
getegid.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
geteuid.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
getgid.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
getgroups.c Fix a ton of compiler warnings 2011-11-14 10:07:49 +00:00
getitimer.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
getpeername.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
getpgrp.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
getpid.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
getppid.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
getrlimit.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
getsid.c Fix a ton of compiler warnings 2011-11-14 10:07:49 +00:00
getsockname.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
getsockopt.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
gettimeofday.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
getuid.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
ioctl.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
issetugid.c Implement issetugid syscall 2011-11-28 10:03:43 +00:00
kill.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
link.c Fix many more comiler warnings 2011-11-28 10:07:55 +00:00
listen.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
loadname.c Fix many more comiler warnings 2011-11-28 10:07:55 +00:00
lseek.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
lseek64.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
m_closefrom.c Fix many more comiler warnings 2011-11-28 10:07:55 +00:00
Makefile.inc Fine grained compatibility with _RENAMEd symbols 2011-11-28 10:12:44 +00:00
minix_rs.c Fix many more comiler warnings 2011-11-28 10:07:55 +00:00
MISSING_SYSCALLS Fine grained compatibility with _RENAMEd symbols 2011-11-28 10:12:44 +00:00
mkdir.c Fix many more comiler warnings 2011-11-28 10:07:55 +00:00
mkfifo.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
mknod.c Fix many more comiler warnings 2011-11-28 10:07:55 +00:00
mmap.c mmap rename fix for netbsd libc 2011-07-16 16:52:21 +02:00
mount.c Import librefuse and libpuffs 2011-11-14 11:53:05 +00:00
nanosleep.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
open.c Fix many more comiler warnings 2011-11-28 10:07:55 +00:00
pathconf.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
pipe.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
poll.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
pread.c minor bugfixes caught by clang warnings 2011-11-18 12:18:23 +01:00
priority.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
ptrace.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
pwrite.c Import librefuse and libpuffs 2011-11-14 11:53:05 +00:00
read.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
readlink.c Fix many more comiler warnings 2011-11-28 10:07:55 +00:00
reboot.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
recvfrom.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
recvmsg.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
rename.c Fix many more comiler warnings 2011-11-28 10:07:55 +00:00
rmdir.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
sbrk.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
select.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
sem.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
sendmsg.c Fix a ton of compiler warnings 2011-11-14 10:07:49 +00:00
sendto.c Fix many more comiler warnings 2011-11-28 10:07:55 +00:00
setgid.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
setgroups.c Fix many more comiler warnings 2011-11-28 10:07:55 +00:00
setitimer.c Fix many more comiler warnings 2011-11-28 10:07:55 +00:00
setsid.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
setsockopt.c Fix many more comiler warnings 2011-11-28 10:07:55 +00:00
settimeofday.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
setuid.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
shmat.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
shmctl.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
shmget.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
shutdown.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
sigaction.c Fix many more comiler warnings 2011-11-28 10:07:55 +00:00
sigpending.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
sigprocmask.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
sigreturn.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
sigsuspend.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
socket.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
socketpair.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
sprofile.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
stat.c Fix many more comiler warnings 2011-11-28 10:07:55 +00:00
statvfs.c Fix many more comiler warnings 2011-11-28 10:07:55 +00:00
stime.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
symlink.c Fix many more comiler warnings 2011-11-28 10:07:55 +00:00
sync.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
syscall.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
sysuname.c Fix a ton of compiler warnings 2011-11-14 10:07:49 +00:00
truncate.c Fix many more comiler warnings 2011-11-28 10:07:55 +00:00
umask.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
unlink.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
vectorio.c Add NBSDLibc Minix specific files. 2011-02-17 17:11:09 +00:00
vfork.c Add vfork() system call 2011-07-22 10:55:30 +02:00
write.c Fix many more comiler warnings 2011-11-28 10:07:55 +00:00