Index: trunk/minix/lib/posix/Makedepend-ack
===================================================================
--- trunk/minix/lib/posix/Makedepend-ack	(revision 9)
+++ 	(revision )
@@ -1,100 +1,0 @@
-depend-ack:
-	rm .depend-ack
-	touch .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' __exit.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _access.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _alarm.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _cfgetispeed.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _cfgetospeed.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _cfsetispeed.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _cfsetospeed.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _chdir.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _chmod.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _chown.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _chroot.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _close.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _closedir.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _creat.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _dup.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _dup2.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _execl.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _execle.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _execlp.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _execv.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _execve.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _execvp.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _fcntl.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _fork.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _fpathconf.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _fstat.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _fstatfs.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _fsync.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _getcwd.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _getegid.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _geteuid.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _getgid.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _getgroups.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _getpgrp.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _getpid.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _getppid.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _getuid.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _ioctl.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _isatty.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _kill.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _link.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _lseek.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _lstat.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _mkdir.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _mkfifo.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _mknod.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _mount.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _open.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _opendir.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _pathconf.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _pause.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _pipe.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _ptrace.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _read.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _readdir.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _readlink.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _rename.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _rewinddir.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _rmdir.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _select.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _setgid.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _setsid.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _setuid.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _sigaction.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _sigpending.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _sigprocmask.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _sigreturn.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _sigset.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _sigsetjmp.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _sigsuspend.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _sleep.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _stat.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _stime.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _symlink.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _sync.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _tcdrain.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _tcflow.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _tcflush.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _tcgetattr.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _tcsendbreak.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _tcsetattr.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _time.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _times.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _truncate.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _umask.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _umount.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _uname.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _unlink.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _utime.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _wait.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _waitpid.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _write.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' getloadavg.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' getopt.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' gettimeofday.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' priority.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' usleep.c | sed -e 's:^\(.\):../obj-ack//./posix/\1:' >> .depend-ack
Index: trunk/minix/lib/posix/Makedepend-gnu
===================================================================
--- trunk/minix/lib/posix/Makedepend-gnu	(revision 9)
+++ 	(revision )
@@ -1,100 +1,0 @@
-depend-gnu:
-	rm .depend-gnu
-	touch .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' __exit.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _access.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _alarm.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _cfgetispeed.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _cfgetospeed.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _cfsetispeed.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _cfsetospeed.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _chdir.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _chmod.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _chown.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _chroot.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _close.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _closedir.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _creat.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _dup.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _dup2.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _execl.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _execle.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _execlp.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _execv.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _execve.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _execvp.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _fcntl.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _fork.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _fpathconf.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _fstat.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _fstatfs.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _fsync.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _getcwd.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _getegid.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _geteuid.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _getgid.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _getgroups.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _getpgrp.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _getpid.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _getppid.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _getuid.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _ioctl.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _isatty.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _kill.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _link.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _lseek.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _lstat.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _mkdir.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _mkfifo.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _mknod.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _mount.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _open.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _opendir.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _pathconf.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _pause.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _pipe.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _ptrace.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _read.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _readdir.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _readlink.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _rename.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _rewinddir.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _rmdir.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _select.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _setgid.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _setsid.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _setuid.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _sigaction.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _sigpending.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _sigprocmask.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _sigreturn.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _sigset.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _sigsetjmp.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _sigsuspend.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _sleep.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _stat.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _stime.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _symlink.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _sync.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _tcdrain.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _tcflow.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _tcflush.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _tcgetattr.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _tcsendbreak.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _tcsetattr.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _time.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _times.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _truncate.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _umask.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _umount.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _uname.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _unlink.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _utime.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _wait.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _waitpid.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' _write.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' getloadavg.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' getopt.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' gettimeofday.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' priority.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E' usleep.c | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../obj-gnu/./posix/\1:' >> .depend-gnu
Index: trunk/minix/lib/posix/Makefile
===================================================================
--- trunk/minix/lib/posix/Makefile	(revision 9)
+++ 	(revision )
@@ -1,724 +1,0 @@
-#Generated from ./posix/Makefile.in
-all: all-ack
-
-all-ack:
-all-gnu:
-
-makefiles: Makefile
-Makedepend-ack Makedepend-gnu: 
-	sh ../generate.sh ./posix ../obj-ack/ ../obj-gnu
-
-Makefile: Makefile.in Makedepend-ack Makedepend-gnu
-	sh ../generate.sh ./posix ../obj-ack/ ../obj-gnu
-	@echo
-	@echo *Attention*
-	@echo Makefile is regenerated... rerun command to see changes
-	@echo *Attention*
-	@echo
-
-depend: depend-ack
-all-ack: ../obj-ack//libc.a
-
-../obj-ack//libc.a: ../obj-ack//libc.a(__exit.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_access.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_alarm.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_cfgetispeed.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_cfgetospeed.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_cfsetispeed.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_cfsetospeed.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_chdir.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_chmod.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_chown.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_chroot.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_close.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_closedir.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_creat.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_dup.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_dup2.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_execl.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_execle.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_execlp.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_execv.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_execve.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_execvp.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_fcntl.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_fork.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_fpathconf.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_fstat.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_fstatfs.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_fsync.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_getcwd.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_getegid.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_geteuid.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_getgid.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_getgroups.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_getpgrp.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_getpid.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_getppid.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_getuid.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_ioctl.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_isatty.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_kill.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_link.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_lseek.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_lstat.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_mkdir.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_mkfifo.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_mknod.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_mount.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_open.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_opendir.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_pathconf.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_pause.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_pipe.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_ptrace.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_read.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_readdir.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_readlink.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_rename.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_rewinddir.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_rmdir.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_select.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_setgid.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_setsid.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_setuid.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_sigaction.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_sigpending.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_sigprocmask.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_sigreturn.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_sigset.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_sigsetjmp.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_sigsuspend.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_sleep.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_stat.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_stime.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_symlink.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_sync.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_tcdrain.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_tcflow.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_tcflush.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_tcgetattr.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_tcsendbreak.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_tcsetattr.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_time.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_times.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_truncate.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_umask.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_umount.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_uname.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_unlink.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_utime.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_wait.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_waitpid.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(_write.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(getloadavg.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(getopt.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(gettimeofday.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(priority.o)
-../obj-ack//libc.a: ../obj-ack//libc.a(usleep.o)
-
-../obj-ack//libc.a:
-	ar cr ../obj-ack//libc.a ../obj-ack//./posix/*.o
-	rm ../obj-ack//./posix/*.o
-
-../obj-ack//libc.a(__exit.o): __exit.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/__exit.o __exit.c
-../obj-ack//libc.a(_access.o): _access.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_access.o _access.c
-../obj-ack//libc.a(_alarm.o): _alarm.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_alarm.o _alarm.c
-../obj-ack//libc.a(_cfgetispeed.o): _cfgetispeed.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_cfgetispeed.o _cfgetispeed.c
-../obj-ack//libc.a(_cfgetospeed.o): _cfgetospeed.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_cfgetospeed.o _cfgetospeed.c
-../obj-ack//libc.a(_cfsetispeed.o): _cfsetispeed.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_cfsetispeed.o _cfsetispeed.c
-../obj-ack//libc.a(_cfsetospeed.o): _cfsetospeed.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_cfsetospeed.o _cfsetospeed.c
-../obj-ack//libc.a(_chdir.o): _chdir.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_chdir.o _chdir.c
-../obj-ack//libc.a(_chmod.o): _chmod.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_chmod.o _chmod.c
-../obj-ack//libc.a(_chown.o): _chown.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_chown.o _chown.c
-../obj-ack//libc.a(_chroot.o): _chroot.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_chroot.o _chroot.c
-../obj-ack//libc.a(_close.o): _close.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_close.o _close.c
-../obj-ack//libc.a(_closedir.o): _closedir.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_closedir.o _closedir.c
-../obj-ack//libc.a(_creat.o): _creat.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_creat.o _creat.c
-../obj-ack//libc.a(_dup.o): _dup.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_dup.o _dup.c
-../obj-ack//libc.a(_dup2.o): _dup2.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_dup2.o _dup2.c
-../obj-ack//libc.a(_execl.o): _execl.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_execl.o _execl.c
-../obj-ack//libc.a(_execle.o): _execle.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_execle.o _execle.c
-../obj-ack//libc.a(_execlp.o): _execlp.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_execlp.o _execlp.c
-../obj-ack//libc.a(_execv.o): _execv.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_execv.o _execv.c
-../obj-ack//libc.a(_execve.o): _execve.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_execve.o _execve.c
-../obj-ack//libc.a(_execvp.o): _execvp.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_execvp.o _execvp.c
-../obj-ack//libc.a(_fcntl.o): _fcntl.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_fcntl.o _fcntl.c
-../obj-ack//libc.a(_fork.o): _fork.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_fork.o _fork.c
-../obj-ack//libc.a(_fpathconf.o): _fpathconf.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_fpathconf.o _fpathconf.c
-../obj-ack//libc.a(_fstat.o): _fstat.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_fstat.o _fstat.c
-../obj-ack//libc.a(_fstatfs.o): _fstatfs.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_fstatfs.o _fstatfs.c
-../obj-ack//libc.a(_fsync.o): _fsync.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_fsync.o _fsync.c
-../obj-ack//libc.a(_getcwd.o): _getcwd.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_getcwd.o _getcwd.c
-../obj-ack//libc.a(_getegid.o): _getegid.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_getegid.o _getegid.c
-../obj-ack//libc.a(_geteuid.o): _geteuid.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_geteuid.o _geteuid.c
-../obj-ack//libc.a(_getgid.o): _getgid.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_getgid.o _getgid.c
-../obj-ack//libc.a(_getgroups.o): _getgroups.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_getgroups.o _getgroups.c
-../obj-ack//libc.a(_getpgrp.o): _getpgrp.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_getpgrp.o _getpgrp.c
-../obj-ack//libc.a(_getpid.o): _getpid.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_getpid.o _getpid.c
-../obj-ack//libc.a(_getppid.o): _getppid.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_getppid.o _getppid.c
-../obj-ack//libc.a(_getuid.o): _getuid.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_getuid.o _getuid.c
-../obj-ack//libc.a(_ioctl.o): _ioctl.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_ioctl.o _ioctl.c
-../obj-ack//libc.a(_isatty.o): _isatty.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_isatty.o _isatty.c
-../obj-ack//libc.a(_kill.o): _kill.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_kill.o _kill.c
-../obj-ack//libc.a(_link.o): _link.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_link.o _link.c
-../obj-ack//libc.a(_lseek.o): _lseek.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_lseek.o _lseek.c
-../obj-ack//libc.a(_lstat.o): _lstat.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_lstat.o _lstat.c
-../obj-ack//libc.a(_mkdir.o): _mkdir.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_mkdir.o _mkdir.c
-../obj-ack//libc.a(_mkfifo.o): _mkfifo.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_mkfifo.o _mkfifo.c
-../obj-ack//libc.a(_mknod.o): _mknod.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_mknod.o _mknod.c
-../obj-ack//libc.a(_mount.o): _mount.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_mount.o _mount.c
-../obj-ack//libc.a(_open.o): _open.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_open.o _open.c
-../obj-ack//libc.a(_opendir.o): _opendir.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_opendir.o _opendir.c
-../obj-ack//libc.a(_pathconf.o): _pathconf.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_pathconf.o _pathconf.c
-../obj-ack//libc.a(_pause.o): _pause.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_pause.o _pause.c
-../obj-ack//libc.a(_pipe.o): _pipe.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_pipe.o _pipe.c
-../obj-ack//libc.a(_ptrace.o): _ptrace.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_ptrace.o _ptrace.c
-../obj-ack//libc.a(_read.o): _read.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_read.o _read.c
-../obj-ack//libc.a(_readdir.o): _readdir.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_readdir.o _readdir.c
-../obj-ack//libc.a(_readlink.o): _readlink.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_readlink.o _readlink.c
-../obj-ack//libc.a(_rename.o): _rename.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_rename.o _rename.c
-../obj-ack//libc.a(_rewinddir.o): _rewinddir.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_rewinddir.o _rewinddir.c
-../obj-ack//libc.a(_rmdir.o): _rmdir.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_rmdir.o _rmdir.c
-../obj-ack//libc.a(_select.o): _select.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_select.o _select.c
-../obj-ack//libc.a(_setgid.o): _setgid.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_setgid.o _setgid.c
-../obj-ack//libc.a(_setsid.o): _setsid.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_setsid.o _setsid.c
-../obj-ack//libc.a(_setuid.o): _setuid.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_setuid.o _setuid.c
-../obj-ack//libc.a(_sigaction.o): _sigaction.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_sigaction.o _sigaction.c
-../obj-ack//libc.a(_sigpending.o): _sigpending.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_sigpending.o _sigpending.c
-../obj-ack//libc.a(_sigprocmask.o): _sigprocmask.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_sigprocmask.o _sigprocmask.c
-../obj-ack//libc.a(_sigreturn.o): _sigreturn.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_sigreturn.o _sigreturn.c
-../obj-ack//libc.a(_sigset.o): _sigset.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_sigset.o _sigset.c
-../obj-ack//libc.a(_sigsetjmp.o): _sigsetjmp.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_sigsetjmp.o _sigsetjmp.c
-../obj-ack//libc.a(_sigsuspend.o): _sigsuspend.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_sigsuspend.o _sigsuspend.c
-../obj-ack//libc.a(_sleep.o): _sleep.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_sleep.o _sleep.c
-../obj-ack//libc.a(_stat.o): _stat.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_stat.o _stat.c
-../obj-ack//libc.a(_stime.o): _stime.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_stime.o _stime.c
-../obj-ack//libc.a(_symlink.o): _symlink.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_symlink.o _symlink.c
-../obj-ack//libc.a(_sync.o): _sync.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_sync.o _sync.c
-../obj-ack//libc.a(_tcdrain.o): _tcdrain.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_tcdrain.o _tcdrain.c
-../obj-ack//libc.a(_tcflow.o): _tcflow.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_tcflow.o _tcflow.c
-../obj-ack//libc.a(_tcflush.o): _tcflush.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_tcflush.o _tcflush.c
-../obj-ack//libc.a(_tcgetattr.o): _tcgetattr.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_tcgetattr.o _tcgetattr.c
-../obj-ack//libc.a(_tcsendbreak.o): _tcsendbreak.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_tcsendbreak.o _tcsendbreak.c
-../obj-ack//libc.a(_tcsetattr.o): _tcsetattr.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_tcsetattr.o _tcsetattr.c
-../obj-ack//libc.a(_time.o): _time.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_time.o _time.c
-../obj-ack//libc.a(_times.o): _times.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_times.o _times.c
-../obj-ack//libc.a(_truncate.o): _truncate.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_truncate.o _truncate.c
-../obj-ack//libc.a(_umask.o): _umask.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_umask.o _umask.c
-../obj-ack//libc.a(_umount.o): _umount.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_umount.o _umount.c
-../obj-ack//libc.a(_uname.o): _uname.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_uname.o _uname.c
-../obj-ack//libc.a(_unlink.o): _unlink.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_unlink.o _unlink.c
-../obj-ack//libc.a(_utime.o): _utime.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_utime.o _utime.c
-../obj-ack//libc.a(_wait.o): _wait.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_wait.o _wait.c
-../obj-ack//libc.a(_waitpid.o): _waitpid.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_waitpid.o _waitpid.c
-../obj-ack//libc.a(_write.o): _write.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/_write.o _write.c
-../obj-ack//libc.a(getloadavg.o): getloadavg.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/getloadavg.o getloadavg.c
-../obj-ack//libc.a(getopt.o): getopt.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/getopt.o getopt.c
-../obj-ack//libc.a(gettimeofday.o): gettimeofday.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/gettimeofday.o gettimeofday.c
-../obj-ack//libc.a(priority.o): priority.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/priority.o priority.c
-../obj-ack//libc.a(usleep.o): usleep.c
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-ack//./posix/usleep.o usleep.c
-
-all-gnu: ../obj-gnu/libc.a
-
-../obj-gnu/libc.a: ../obj-gnu/./posix/__exit.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_access.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_alarm.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_cfgetispeed.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_cfgetospeed.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_cfsetispeed.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_cfsetospeed.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_chdir.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_chmod.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_chown.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_chroot.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_close.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_closedir.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_creat.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_dup.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_dup2.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_execl.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_execle.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_execlp.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_execv.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_execve.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_execvp.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_fcntl.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_fork.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_fpathconf.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_fstat.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_fstatfs.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_fsync.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_getcwd.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_getegid.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_geteuid.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_getgid.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_getgroups.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_getpgrp.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_getpid.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_getppid.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_getuid.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_ioctl.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_isatty.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_kill.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_link.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_lseek.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_lstat.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_mkdir.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_mkfifo.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_mknod.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_mount.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_open.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_opendir.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_pathconf.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_pause.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_pipe.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_ptrace.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_read.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_readdir.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_readlink.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_rename.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_rewinddir.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_rmdir.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_select.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_setgid.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_setsid.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_setuid.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_sigaction.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_sigpending.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_sigprocmask.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_sigreturn.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_sigset.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_sigsetjmp.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_sigsuspend.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_sleep.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_stat.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_stime.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_symlink.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_sync.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_tcdrain.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_tcflow.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_tcflush.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_tcgetattr.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_tcsendbreak.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_tcsetattr.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_time.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_times.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_truncate.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_umask.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_umount.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_uname.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_unlink.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_utime.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_wait.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_waitpid.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/_write.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/getloadavg.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/getopt.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/gettimeofday.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/priority.o
-../obj-gnu/libc.a: ../obj-gnu/./posix/usleep.o
-
-../obj-gnu/libc.a:
-	gar cr ../obj-gnu/libc.a $?
-
-../obj-gnu/./posix/__exit.o: __exit.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/__exit.o __exit.c
-
-../obj-gnu/./posix/_access.o: _access.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_access.o _access.c
-
-../obj-gnu/./posix/_alarm.o: _alarm.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_alarm.o _alarm.c
-
-../obj-gnu/./posix/_cfgetispeed.o: _cfgetispeed.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_cfgetispeed.o _cfgetispeed.c
-
-../obj-gnu/./posix/_cfgetospeed.o: _cfgetospeed.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_cfgetospeed.o _cfgetospeed.c
-
-../obj-gnu/./posix/_cfsetispeed.o: _cfsetispeed.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_cfsetispeed.o _cfsetispeed.c
-
-../obj-gnu/./posix/_cfsetospeed.o: _cfsetospeed.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_cfsetospeed.o _cfsetospeed.c
-
-../obj-gnu/./posix/_chdir.o: _chdir.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_chdir.o _chdir.c
-
-../obj-gnu/./posix/_chmod.o: _chmod.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_chmod.o _chmod.c
-
-../obj-gnu/./posix/_chown.o: _chown.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_chown.o _chown.c
-
-../obj-gnu/./posix/_chroot.o: _chroot.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_chroot.o _chroot.c
-
-../obj-gnu/./posix/_close.o: _close.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_close.o _close.c
-
-../obj-gnu/./posix/_closedir.o: _closedir.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_closedir.o _closedir.c
-
-../obj-gnu/./posix/_creat.o: _creat.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_creat.o _creat.c
-
-../obj-gnu/./posix/_dup.o: _dup.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_dup.o _dup.c
-
-../obj-gnu/./posix/_dup2.o: _dup2.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_dup2.o _dup2.c
-
-../obj-gnu/./posix/_execl.o: _execl.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_execl.o _execl.c
-
-../obj-gnu/./posix/_execle.o: _execle.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_execle.o _execle.c
-
-../obj-gnu/./posix/_execlp.o: _execlp.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_execlp.o _execlp.c
-
-../obj-gnu/./posix/_execv.o: _execv.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_execv.o _execv.c
-
-../obj-gnu/./posix/_execve.o: _execve.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_execve.o _execve.c
-
-../obj-gnu/./posix/_execvp.o: _execvp.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_execvp.o _execvp.c
-
-../obj-gnu/./posix/_fcntl.o: _fcntl.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_fcntl.o _fcntl.c
-
-../obj-gnu/./posix/_fork.o: _fork.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_fork.o _fork.c
-
-../obj-gnu/./posix/_fpathconf.o: _fpathconf.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_fpathconf.o _fpathconf.c
-
-../obj-gnu/./posix/_fstat.o: _fstat.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_fstat.o _fstat.c
-
-../obj-gnu/./posix/_fstatfs.o: _fstatfs.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_fstatfs.o _fstatfs.c
-
-../obj-gnu/./posix/_fsync.o: _fsync.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_fsync.o _fsync.c
-
-../obj-gnu/./posix/_getcwd.o: _getcwd.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_getcwd.o _getcwd.c
-
-../obj-gnu/./posix/_getegid.o: _getegid.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_getegid.o _getegid.c
-
-../obj-gnu/./posix/_geteuid.o: _geteuid.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_geteuid.o _geteuid.c
-
-../obj-gnu/./posix/_getgid.o: _getgid.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_getgid.o _getgid.c
-
-../obj-gnu/./posix/_getgroups.o: _getgroups.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_getgroups.o _getgroups.c
-
-../obj-gnu/./posix/_getpgrp.o: _getpgrp.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_getpgrp.o _getpgrp.c
-
-../obj-gnu/./posix/_getpid.o: _getpid.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_getpid.o _getpid.c
-
-../obj-gnu/./posix/_getppid.o: _getppid.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_getppid.o _getppid.c
-
-../obj-gnu/./posix/_getuid.o: _getuid.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_getuid.o _getuid.c
-
-../obj-gnu/./posix/_ioctl.o: _ioctl.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_ioctl.o _ioctl.c
-
-../obj-gnu/./posix/_isatty.o: _isatty.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_isatty.o _isatty.c
-
-../obj-gnu/./posix/_kill.o: _kill.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_kill.o _kill.c
-
-../obj-gnu/./posix/_link.o: _link.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_link.o _link.c
-
-../obj-gnu/./posix/_lseek.o: _lseek.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_lseek.o _lseek.c
-
-../obj-gnu/./posix/_lstat.o: _lstat.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_lstat.o _lstat.c
-
-../obj-gnu/./posix/_mkdir.o: _mkdir.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_mkdir.o _mkdir.c
-
-../obj-gnu/./posix/_mkfifo.o: _mkfifo.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_mkfifo.o _mkfifo.c
-
-../obj-gnu/./posix/_mknod.o: _mknod.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_mknod.o _mknod.c
-
-../obj-gnu/./posix/_mount.o: _mount.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_mount.o _mount.c
-
-../obj-gnu/./posix/_open.o: _open.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_open.o _open.c
-
-../obj-gnu/./posix/_opendir.o: _opendir.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_opendir.o _opendir.c
-
-../obj-gnu/./posix/_pathconf.o: _pathconf.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_pathconf.o _pathconf.c
-
-../obj-gnu/./posix/_pause.o: _pause.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_pause.o _pause.c
-
-../obj-gnu/./posix/_pipe.o: _pipe.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_pipe.o _pipe.c
-
-../obj-gnu/./posix/_ptrace.o: _ptrace.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_ptrace.o _ptrace.c
-
-../obj-gnu/./posix/_read.o: _read.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_read.o _read.c
-
-../obj-gnu/./posix/_readdir.o: _readdir.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_readdir.o _readdir.c
-
-../obj-gnu/./posix/_readlink.o: _readlink.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_readlink.o _readlink.c
-
-../obj-gnu/./posix/_rename.o: _rename.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_rename.o _rename.c
-
-../obj-gnu/./posix/_rewinddir.o: _rewinddir.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_rewinddir.o _rewinddir.c
-
-../obj-gnu/./posix/_rmdir.o: _rmdir.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_rmdir.o _rmdir.c
-
-../obj-gnu/./posix/_select.o: _select.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_select.o _select.c
-
-../obj-gnu/./posix/_setgid.o: _setgid.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_setgid.o _setgid.c
-
-../obj-gnu/./posix/_setsid.o: _setsid.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_setsid.o _setsid.c
-
-../obj-gnu/./posix/_setuid.o: _setuid.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_setuid.o _setuid.c
-
-../obj-gnu/./posix/_sigaction.o: _sigaction.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_sigaction.o _sigaction.c
-
-../obj-gnu/./posix/_sigpending.o: _sigpending.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_sigpending.o _sigpending.c
-
-../obj-gnu/./posix/_sigprocmask.o: _sigprocmask.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_sigprocmask.o _sigprocmask.c
-
-../obj-gnu/./posix/_sigreturn.o: _sigreturn.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_sigreturn.o _sigreturn.c
-
-../obj-gnu/./posix/_sigset.o: _sigset.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_sigset.o _sigset.c
-
-../obj-gnu/./posix/_sigsetjmp.o: _sigsetjmp.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_sigsetjmp.o _sigsetjmp.c
-
-../obj-gnu/./posix/_sigsuspend.o: _sigsuspend.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_sigsuspend.o _sigsuspend.c
-
-../obj-gnu/./posix/_sleep.o: _sleep.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_sleep.o _sleep.c
-
-../obj-gnu/./posix/_stat.o: _stat.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_stat.o _stat.c
-
-../obj-gnu/./posix/_stime.o: _stime.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_stime.o _stime.c
-
-../obj-gnu/./posix/_symlink.o: _symlink.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_symlink.o _symlink.c
-
-../obj-gnu/./posix/_sync.o: _sync.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_sync.o _sync.c
-
-../obj-gnu/./posix/_tcdrain.o: _tcdrain.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_tcdrain.o _tcdrain.c
-
-../obj-gnu/./posix/_tcflow.o: _tcflow.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_tcflow.o _tcflow.c
-
-../obj-gnu/./posix/_tcflush.o: _tcflush.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_tcflush.o _tcflush.c
-
-../obj-gnu/./posix/_tcgetattr.o: _tcgetattr.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_tcgetattr.o _tcgetattr.c
-
-../obj-gnu/./posix/_tcsendbreak.o: _tcsendbreak.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_tcsendbreak.o _tcsendbreak.c
-
-../obj-gnu/./posix/_tcsetattr.o: _tcsetattr.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_tcsetattr.o _tcsetattr.c
-
-../obj-gnu/./posix/_time.o: _time.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_time.o _time.c
-
-../obj-gnu/./posix/_times.o: _times.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_times.o _times.c
-
-../obj-gnu/./posix/_truncate.o: _truncate.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_truncate.o _truncate.c
-
-../obj-gnu/./posix/_umask.o: _umask.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_umask.o _umask.c
-
-../obj-gnu/./posix/_umount.o: _umount.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_umount.o _umount.c
-
-../obj-gnu/./posix/_uname.o: _uname.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_uname.o _uname.c
-
-../obj-gnu/./posix/_unlink.o: _unlink.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_unlink.o _unlink.c
-
-../obj-gnu/./posix/_utime.o: _utime.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_utime.o _utime.c
-
-../obj-gnu/./posix/_wait.o: _wait.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_wait.o _wait.c
-
-../obj-gnu/./posix/_waitpid.o: _waitpid.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_waitpid.o _waitpid.c
-
-../obj-gnu/./posix/_write.o: _write.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/_write.o _write.c
-
-../obj-gnu/./posix/getloadavg.o: getloadavg.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/getloadavg.o getloadavg.c
-
-../obj-gnu/./posix/getopt.o: getopt.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/getopt.o getopt.c
-
-../obj-gnu/./posix/gettimeofday.o: gettimeofday.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/gettimeofday.o gettimeofday.c
-
-../obj-gnu/./posix/priority.o: priority.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/priority.o priority.c
-
-../obj-gnu/./posix/usleep.o: usleep.c
-	gcc -O -D_MINIX -D_POSIX_SOURCE -c -o ../obj-gnu/./posix/usleep.o usleep.c
-
-
-
-
-clean::
-	rm -f ../obj-ack//./posix/*
-	rm -f ../obj-gnu/./posix/*
-
-include Makedepend-ack
-include .depend-ack
-
-include Makedepend-gnu
-include .depend-gnu
Index: trunk/minix/lib/posix/Makefile.in
===================================================================
--- trunk/minix/lib/posix/Makefile.in	(revision 9)
+++ 	(revision )
@@ -1,109 +1,0 @@
-# Makefile for lib/posix.
-
-CFLAGS="-O -D_MINIX -D_POSIX_SOURCE"
-
-LIBRARIES=libc
-
-libc_FILES=" \
-	__exit.c \
-	_access.c \
-	_alarm.c \
-	_cfgetispeed.c \
-	_cfgetospeed.c \
-	_cfsetispeed.c \
-	_cfsetospeed.c \
-	_chdir.c \
-	_chmod.c \
-	_chown.c \
-	_chroot.c \
-	_close.c \
-	_closedir.c \
-	_creat.c \
-	_dup.c \
-	_dup2.c \
-	_execl.c \
-	_execle.c \
-	_execlp.c \
-	_execv.c \
-	_execve.c \
-	_execvp.c \
-	_fcntl.c \
-	_fork.c \
-	_fpathconf.c \
-	_fstat.c \
-	_fstatfs.c \
-	_fsync.c \
-	_getcwd.c \
-	_getegid.c \
-	_geteuid.c \
-	_getgid.c \
-	_getgroups.c \
-	_getpgrp.c \
-	_getpid.c \
-	_getppid.c \
-	_getuid.c \
-	_ioctl.c \
-	_isatty.c \
-	_kill.c \
-	_link.c \
-	_lseek.c \
-	_lstat.c \
-	_mkdir.c \
-	_mkfifo.c \
-	_mknod.c \
-	_mount.c \
-	_open.c \
-	_opendir.c \
-	_pathconf.c \
-	_pause.c \
-	_pipe.c \
-	_ptrace.c \
-	_read.c \
-	_readdir.c \
-	_readlink.c \
-	_rename.c \
-	_rewinddir.c \
-	_rmdir.c \
-	_select.c \
-	_setgid.c \
-	_setsid.c \
-	_setuid.c \
-	_sigaction.c \
-	_sigpending.c \
-	_sigprocmask.c \
-	_sigreturn.c \
-	_sigset.c \
-	_sigsetjmp.c \
-	_sigsuspend.c \
-	_sleep.c \
-	_stat.c \
-	_stime.c \
-	_symlink.c \
-	_sync.c \
-	_tcdrain.c \
-	_tcflow.c \
-	_tcflush.c \
-	_tcgetattr.c \
-	_tcsendbreak.c \
-	_tcsetattr.c \
-	_time.c \
-	_times.c \
-	_truncate.c \
-	_umask.c \
-	_umount.c \
-	_uname.c \
-	_unlink.c \
-	_utime.c \
-	_wait.c \
-	_waitpid.c \
-	_write.c \
-	getloadavg.c \
-	getopt.c \
-	gettimeofday.c \
-	priority.c \
-	usleep.c"
-
-TYPE=both
-
-#$(call ADDDEPENDENCIES,_uname.o,/usr/include/minix/config.h)
-
Index: trunk/minix/lib/posix/__exit.c
===================================================================
--- trunk/minix/lib/posix/__exit.c	(revision 9)
+++ 	(revision )
@@ -1,23 +1,0 @@
-#define _exit	__exit
-#include <lib.h>
-#include <unistd.h>
-
-PUBLIC void _exit(status)
-int status;
-{
-  void (*suicide)(void);
-  message m;
-
-  m.m1_i1 = status;
-  _syscall(MM, EXIT, &m);
-
-  /* If exiting nicely through PM fails for some reason, try to
-   * commit suicide. E.g., message to PM might fail due to deadlock.
-   */
-  suicide = (void (*)(void)) -1;
-  suicide();
-
-  /* If committing suicide fails for some reason, hang. */
-  for(;;) { }
-}
-
Index: trunk/minix/lib/posix/_access.c
===================================================================
--- trunk/minix/lib/posix/_access.c	(revision 9)
+++ 	(revision )
@@ -1,14 +1,0 @@
-#include <lib.h>
-#define access	_access
-#include <unistd.h>
-
-PUBLIC int access(name, mode)
-_CONST char *name;
-int mode;
-{
-  message m;
-
-  m.m3_i2 = mode;
-  _loadname(name, &m);
-  return(_syscall(FS, ACCESS, &m));
-}
Index: trunk/minix/lib/posix/_alarm.c
===================================================================
--- trunk/minix/lib/posix/_alarm.c	(revision 9)
+++ 	(revision )
@@ -1,12 +1,0 @@
-#include <lib.h>
-#define alarm	_alarm
-#include <unistd.h>
-
-PUBLIC unsigned int alarm(sec)
-unsigned int sec;
-{
-  message m;
-
-  m.m1_i1 = (int) sec;
-  return( (unsigned) _syscall(MM, ALARM, &m));
-}
Index: trunk/minix/lib/posix/_cfgetispeed.c
===================================================================
--- trunk/minix/lib/posix/_cfgetispeed.c	(revision 9)
+++ 	(revision )
@@ -1,12 +1,0 @@
-/*
-posix/_cfgetispeed
-
-Created:	June 11, 1993 by Philip Homburg
-*/
-
-#include <termios.h>
-
-speed_t _cfgetispeed(const struct termios *termios_p)
-{
-  return termios_p->c_ispeed;
-}
Index: trunk/minix/lib/posix/_cfgetospeed.c
===================================================================
--- trunk/minix/lib/posix/_cfgetospeed.c	(revision 9)
+++ 	(revision )
@@ -1,12 +1,0 @@
-/*
-posix/_cfgetospeed
-
-Created:	June 11, 1993 by Philip Homburg
-*/
-
-#include <termios.h>
-
-speed_t _cfgetospeed(const struct termios *termios_p)
-{
-  return termios_p->c_ospeed;
-}
Index: trunk/minix/lib/posix/_cfsetispeed.c
===================================================================
--- trunk/minix/lib/posix/_cfsetispeed.c	(revision 9)
+++ 	(revision )
@@ -1,13 +1,0 @@
-/*
-posix/_cfsetispeed
-
-Created:	June 11, 1993 by Philip Homburg
-*/
-
-#include <termios.h>
-
-int _cfsetispeed(struct termios *termios_p, speed_t speed)
-{
-  termios_p->c_ispeed= speed;
-  return 0;
-}
Index: trunk/minix/lib/posix/_cfsetospeed.c
===================================================================
--- trunk/minix/lib/posix/_cfsetospeed.c	(revision 9)
+++ 	(revision )
@@ -1,13 +1,0 @@
-/*
-posix/_cfsetospeed
-
-Created:	June 11, 1993 by Philip Homburg
-*/
-
-#include <termios.h>
-
-int _cfsetospeed(struct termios *termios_p, speed_t speed)
-{
-  termios_p->c_ospeed= speed;
-  return 0;
-}
Index: trunk/minix/lib/posix/_chdir.c
===================================================================
--- trunk/minix/lib/posix/_chdir.c	(revision 9)
+++ 	(revision )
@@ -1,22 +1,0 @@
-#include <lib.h>
-#define chdir	_chdir
-#define fchdir	_fchdir
-#include <unistd.h>
-
-PUBLIC int chdir(name)
-_CONST char *name;
-{
-  message m;
-
-  _loadname(name, &m);
-  return(_syscall(FS, CHDIR, &m));
-}
-
-PUBLIC int fchdir(fd)
-int fd;
-{
-  message m;
-
-  m.m1_i1 = fd;
-  return(_syscall(FS, FCHDIR, &m));
-}
Index: trunk/minix/lib/posix/_chmod.c
===================================================================
--- trunk/minix/lib/posix/_chmod.c	(revision 9)
+++ 	(revision )
@@ -1,14 +1,0 @@
-#include <lib.h>
-#define chmod	_chmod
-#include <sys/stat.h>
-
-PUBLIC int chmod(name, mode)
-_CONST char *name;
-_mnx_Mode_t mode;
-{
-  message m;
-
-  m.m3_i2 = mode;
-  _loadname(name, &m);
-  return(_syscall(FS, CHMOD, &m));
-}
Index: trunk/minix/lib/posix/_chown.c
===================================================================
--- trunk/minix/lib/posix/_chown.c	(revision 9)
+++ 	(revision )
@@ -1,18 +1,0 @@
-#include <lib.h>
-#define chown	_chown
-#include <string.h>
-#include <unistd.h>
-
-PUBLIC int chown(name, owner, grp)
-_CONST char *name;
-_mnx_Uid_t owner;
-_mnx_Gid_t grp;
-{
-  message m;
-
-  m.m1_i1 = strlen(name) + 1;
-  m.m1_i2 = owner;
-  m.m1_i3 = grp;
-  m.m1_p1 = (char *) name;
-  return(_syscall(FS, CHOWN, &m));
-}
Index: trunk/minix/lib/posix/_chroot.c
===================================================================
--- trunk/minix/lib/posix/_chroot.c	(revision 9)
+++ 	(revision )
@@ -1,12 +1,0 @@
-#include <lib.h>
-#define chroot	_chroot
-#include <unistd.h>
-
-PUBLIC int chroot(name)
-_CONST char *name;
-{
-  message m;
-
-  _loadname(name, &m);
-  return(_syscall(FS, CHROOT, &m));
-}
Index: trunk/minix/lib/posix/_close.c
===================================================================
--- trunk/minix/lib/posix/_close.c	(revision 9)
+++ 	(revision )
@@ -1,12 +1,0 @@
-#include <lib.h>
-#define close	_close
-#include <unistd.h>
-
-PUBLIC int close(fd)
-int fd;
-{
-  message m;
-
-  m.m1_i1 = fd;
-  return(_syscall(FS, CLOSE, &m));
-}
Index: trunk/minix/lib/posix/_closedir.c
===================================================================
--- trunk/minix/lib/posix/_closedir.c	(revision 9)
+++ 	(revision )
@@ -1,24 +1,0 @@
-/*	closedir()					Author: Kees J. Bot
- *								24 Apr 1989
- */
-#define nil 0
-#include <lib.h>
-#define close	_close
-#define closedir _closedir
-#include <sys/types.h>
-#include <dirent.h>
-#include <unistd.h>
-#include <stdlib.h>
-#include <errno.h>
-
-int closedir(DIR *dp)
-/* Finish reading a directory. */
-{
-	int d;
-
-	if (dp == nil) { errno= EBADF; return -1; }
-
-	d= dp->_fd;
-	free((void *) dp);
-	return close(d);
-}
Index: trunk/minix/lib/posix/_creat.c
===================================================================
--- trunk/minix/lib/posix/_creat.c	(revision 9)
+++ 	(revision )
@@ -1,14 +1,0 @@
-#include <lib.h>
-#define creat	_creat
-#include <fcntl.h>
-
-PUBLIC int creat(name, mode)
-_CONST char *name;
-_mnx_Mode_t mode;
-{
-  message m;
-
-  m.m3_i2 = mode;
-  _loadname(name, &m);
-  return(_syscall(FS, CREAT, &m));
-}
Index: trunk/minix/lib/posix/_dup.c
===================================================================
--- trunk/minix/lib/posix/_dup.c	(revision 9)
+++ 	(revision )
@@ -1,11 +1,0 @@
-#include <lib.h>
-#define dup	_dup
-#define fcntl	_fcntl
-#include <fcntl.h>
-#include <unistd.h>
-
-PUBLIC int dup(fd)
-int fd;
-{
-  return(fcntl(fd, F_DUPFD, 0));
-}
Index: trunk/minix/lib/posix/_dup2.c
===================================================================
--- trunk/minix/lib/posix/_dup2.c	(revision 9)
+++ 	(revision )
@@ -1,30 +1,0 @@
-#include <lib.h>
-#define close	_close
-#define dup2	_dup2
-#define fcntl	_fcntl
-#include <fcntl.h>
-#include <unistd.h>
-
-PUBLIC int dup2(fd, fd2)
-int fd, fd2;
-{
-/* The behavior of dup2 is defined by POSIX in 6.2.1.2 as almost, but not
- * quite the same as fcntl.
- */
-
-  if (fd2 < 0 || fd2 > OPEN_MAX) {
-	errno = EBADF;
-	return(-1);
-  }
-
-  /* Check to see if fildes is valid. */
-  if (fcntl(fd, F_GETFL) < 0) {
-	/* 'fd' is not valid. */
-	return(-1);
-  } else {
-	/* 'fd' is valid. */
-	if (fd == fd2) return(fd2);
-	close(fd2);
-	return(fcntl(fd, F_DUPFD, fd2));
-  }
-}
Index: trunk/minix/lib/posix/_execl.c
===================================================================
--- trunk/minix/lib/posix/_execl.c	(revision 9)
+++ 	(revision )
@@ -1,18 +1,0 @@
-/*	execl() - execute				Author: Kees J. Bot
- *								21 Jan 1994
- */
-#define execl _execl
-#define execve _execve
-#include <unistd.h>
-
-extern char * const **_penviron;	/* The default environment. */
-
-int execl(const char *path, const char *arg1, ...)
-/* execl("/bin/sh", "sh", "-c", "example", (char *) 0); */
-{
-	/* Assumption:  The C-implementation for this machine pushes
-	 * function arguments downwards on the stack making a perfect
-	 * argument array.  Luckily this is almost always so.
-	 */
-	return execve(path, (char * const *) &arg1, *_penviron);
-}
Index: trunk/minix/lib/posix/_execle.c
===================================================================
--- trunk/minix/lib/posix/_execle.c	(revision 9)
+++ 	(revision )
@@ -1,25 +1,0 @@
-/*	execle() - execute with a custom environment	Author: Kees J. Bot
- *								21 Jan 1994
- */
-#define nil 0
-#define execle _execle
-#define execve _execve
-#include <unistd.h>
-#include <stdarg.h>
-
-int execle(const char *path, const char *arg1, ...)
-/* execle("/bin/sh", "sh", "-c", "example", (char *) 0, my_env_array); */
-{
-	char * const * envp;
-	va_list ap;
-
-	va_start(ap, arg1);
-
-	/* Find the end of the argument array. */
-	if (arg1 != nil) while (va_arg(ap, const char *) != nil) {}
-
-	envp = va_arg(ap, char * const *);
-	va_end(ap);
-
-	return execve(path, (char * const *) &arg1, envp);
-}
Index: trunk/minix/lib/posix/_execlp.c
===================================================================
--- trunk/minix/lib/posix/_execlp.c	(revision 9)
+++ 	(revision )
@@ -1,12 +1,0 @@
-/*	execlp() - execute with PATH search		Author: Kees J. Bot
- *								22 Jan 1994
- */
-#define execlp _execlp
-#define execvp _execvp
-#include <unistd.h>
-
-int execlp(const char *file, const char *arg1, ...)
-/* execlp("sh", "sh", "-c", "example", (char *) 0); */
-{
-	return execvp(file, (char * const *) &arg1);
-}
Index: trunk/minix/lib/posix/_execv.c
===================================================================
--- trunk/minix/lib/posix/_execv.c	(revision 9)
+++ 	(revision )
@@ -1,13 +1,0 @@
-/*	execv() - execute with prepared arguments	Author: Kees J. Bot
- *								21 Jan 1994
- */
-#define execv _execv
-#define execve _execve
-#include <unistd.h>
-
-extern char * const **_penviron;	/* The default environment. */
-
-int execv(const char *path, char * const *argv)
-{
-	return execve(path, argv, *_penviron);
-}
Index: trunk/minix/lib/posix/_execve.c
===================================================================
--- trunk/minix/lib/posix/_execve.c	(revision 9)
+++ 	(revision )
@@ -1,115 +1,0 @@
-/*	execve() - basic program execution call		Author: Kees J. Bot
- *								21 Jan 1994
- */
-
-#define _MINIX_SOURCE
-
-#define nil 0
-#define execve _execve
-#define sbrk _sbrk
-#include <lib.h>
-#include <unistd.h>
-#include <string.h>
-#include <stddef.h>
-
-int execve(const char *path, char * const *argv, char * const *envp)
-{
-	char * const *ap;
-	char * const *ep;
-	char *frame;
-	char **vp;
-	char *sp;
-	size_t argc;
-	size_t frame_size;
-	size_t string_off;
-	size_t n;
-	int ov;
-	message m;
-
-	/* Assumptions: size_t and char *, it's all the same thing. */
-
-	/* Create a stack image that only needs to be patched up slightly
-	 * by the kernel to be used for the process to be executed.
-	 */
-
-	ov= 0;			/* No overflow yet. */
-	frame_size= 0;		/* Size of the new initial stack. */
-	string_off= 0;		/* Offset to start of the strings. */
-	argc= 0;		/* Argument count. */
-
-	for (ap= argv; *ap != nil; ap++) {
-		n = sizeof(*ap) + strlen(*ap) + 1;
-		frame_size+= n;
-		if (frame_size < n) ov= 1;
-		string_off+= sizeof(*ap);
-		argc++;
-	}
-
-	for (ep= envp; *ep != nil; ep++) {
-		n = sizeof(*ep) + strlen(*ep) + 1;
-		frame_size+= n;
-		if (frame_size < n) ov= 1;
-		string_off+= sizeof(*ap);
-	}
-
-	/* Add an argument count and two terminating nulls. */
-	frame_size+= sizeof(argc) + sizeof(*ap) + sizeof(*ep);
-	string_off+= sizeof(argc) + sizeof(*ap) + sizeof(*ep);
-
-	/* Align. */
-	frame_size= (frame_size + sizeof(char *) - 1) & ~(sizeof(char *) - 1);
-
-	/* The party is off if there is an overflow. */
-	if (ov || frame_size < 3 * sizeof(char *)) {
-		errno= E2BIG;
-		return -1;
-	}
-
-	/* Allocate space for the stack frame. */
-	if ((frame = (char *) sbrk(frame_size)) == (char *) -1) {
-		errno = E2BIG;
-		return -1;
-	}
-
-	/* Set arg count, init pointers to vector and string tables. */
-	* (size_t *) frame = argc;
-	vp = (char **) (frame + sizeof(argc));
-	sp = frame + string_off;
-
-	/* Load the argument vector and strings. */
-	for (ap= argv; *ap != nil; ap++) {
-		*vp++= (char *) (sp - frame);
-		n= strlen(*ap) + 1;
-		memcpy(sp, *ap, n);
-		sp+= n;
-	}
-	*vp++= nil;
-
-	/* Load the environment vector and strings. */
-	for (ep= envp; *ep != nil; ep++) {
-		*vp++= (char *) (sp - frame);
-		n= strlen(*ep) + 1;
-		memcpy(sp, *ep, n);
-		sp+= n;
-	}
-	*vp++= nil;
-
-	/* Padding. */
-	while (sp < frame + frame_size) *sp++= 0;
-
-	/* We can finally make the system call. */
-	m.m1_i1 = strlen(path) + 1;
-	m.m1_i2 = frame_size;
-	m.m1_p1 = (char *) path;
-	m.m1_p2 = frame;
-
-	/* Clear unused fields */
-	m.m1_i3 = 0;
-	m.m1_p3 = NULL;
-
-	(void) _syscall(MM, EXEC, &m);
-
-	/* Failure, return the memory used for the frame and exit. */
-	(void) sbrk(-frame_size);
-	return -1;
-}
Index: trunk/minix/lib/posix/_execvp.c
===================================================================
--- trunk/minix/lib/posix/_execvp.c	(revision 9)
+++ 	(revision )
@@ -1,73 +1,0 @@
-/*	execvp() - execute with PATH search and prepared arguments
- *							Author: Kees J. Bot
- *								21 Jan 1994
- */
-
-#define _MINIX_SOURCE
-
-#define nil 0
-#define execve _execve
-#define execvp _execvp
-#define sbrk _sbrk
-#define stat _stat
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-#include <errno.h>
-#include <sys/stat.h>
-
-extern char * const **_penviron;	/* The default environment. */
-
-int execvp(const char *file, char * const *argv)
-/* Execute the file with a path search on $PATH, just like the shell.  The
- * search continues on the errors ENOENT (not there), and EACCES (file not
- * executable or leading directories protected.)
- * Unlike other execvp implementations there is no default path, and no shell
- * is started for scripts.  One is supposed to define $PATH, and use #!/bin/sh.
- */
-{
-	struct stat sb;
-	const char *path;		/* $PATH */
-	char *full;			/* Full name to try. */
-	char *f;
-	size_t full_size;
-	int err= ENOENT;		/* Error return on failure. */
-
-	if (strchr(file, '/') != nil || (path= getenv("PATH")) == nil)
-		path= "";
-
-	/* Compute the maximum length the full name may have, and align. */
-	full_size= strlen(path) + 1 + strlen(file) + 1 + sizeof(char *) - 1;
-	full_size&= ~(sizeof(char *) - 1);
-
-	/* Claim space. */
-	if ((full= (char *) sbrk(full_size)) == (char *) -1) {
-		errno= E2BIG;
-		return -1;
-	}
-
-	/* For each directory in the path... */
-	do {
-		f= full;
-		while (*path != 0 && *path != ':') *f++= *path++;
-
-		if (f > full) *f++= '/';
-
-		strcpy(f, file);
-
-		/* Stat first, small speed-up, better for ptrace. */
-		if (stat(full, &sb) == -1) continue;
-
-		(void) execve(full, argv, *_penviron);
-
-		/* Prefer more interesting errno values then "not there". */
-		if (errno != ENOENT) err= errno;
-
-		/* Continue only on some errors. */
-		if (err != ENOENT && err != EACCES) break;
-	} while (*path++ != 0);
-
-	(void) sbrk(-full_size);
-	errno= err;
-	return -1;
-}
Index: trunk/minix/lib/posix/_fcntl.c
===================================================================
--- trunk/minix/lib/posix/_fcntl.c	(revision 9)
+++ 	(revision )
@@ -1,45 +1,0 @@
-#include <lib.h>
-#define fcntl _fcntl
-#include <fcntl.h>
-#include <stdarg.h>
-
-#if _ANSI
-PUBLIC int fcntl(int fd, int cmd, ...)
-#else
-PUBLIC int fcntl(fd, cmd)
-int fd;
-int cmd;
-#endif
-{
-  va_list argp;
-  message m;
-
-  va_start(argp, cmd);
-
-  /* Set up for the sensible case where there is no variable parameter.  This
-   * covers F_GETFD, F_GETFL and invalid commands.
-   */
-  m.m1_i3 = 0;
-  m.m1_p1 = NIL_PTR;
-
-  /* Adjust for the stupid cases. */
-  switch(cmd) {
-     case F_DUPFD:
-     case F_SETFD:
-     case F_SETFL:
-	m.m1_i3 = va_arg(argp, int);
-	break;
-     case F_GETLK:
-     case F_SETLK:
-     case F_SETLKW:
-     case F_FREESP:
-	m.m1_p1 = (char *) va_arg(argp, struct flock *);
-	break;
-  }
-
-  /* Clean up and make the system call. */
-  va_end(argp);
-  m.m1_i1 = fd;
-  m.m1_i2 = cmd;
-  return(_syscall(FS, FCNTL, &m));
-}
Index: trunk/minix/lib/posix/_fork.c
===================================================================
--- trunk/minix/lib/posix/_fork.c	(revision 9)
+++ 	(revision )
@@ -1,10 +1,0 @@
-#include <lib.h>
-#define fork	_fork
-#include <unistd.h>
-
-PUBLIC pid_t fork()
-{
-  message m;
-
-  return(_syscall(MM, FORK, &m));
-}
Index: trunk/minix/lib/posix/_fpathconf.c
===================================================================
--- trunk/minix/lib/posix/_fpathconf.c	(revision 9)
+++ 	(revision )
@@ -1,61 +1,0 @@
-/* POSIX fpathconf (Sec. 5.7.1) 		Author: Andy Tanenbaum */
-
-#include <lib.h>
-#define fstat		_fstat
-#define fpathconf	_fpathconf
-#include <sys/stat.h>
-#include <errno.h>
-#include <limits.h>
-#include <unistd.h>
-#include <termios.h>
-
-PUBLIC long fpathconf(fd, name)
-int fd;				/* file descriptor being interrogated */
-int name;			/* property being inspected */
-{
-/* POSIX allows some of the values in <limits.h> to be increased at
- * run time.  The pathconf and fpathconf functions allow these values
- * to be checked at run time.  MINIX does not use this facility.
- * The run-time limits are those given in <limits.h>.
- */
-
-  struct stat stbuf;
-
-  switch(name) {
-	case _PC_LINK_MAX:
-		/* Fstat the file.  If that fails, return -1. */
-		if (fstat(fd, &stbuf) != 0) return(-1);
-		if (S_ISDIR(stbuf.st_mode))
-			return(1L);	/* no links to directories */
-		else
-			return( (long) LINK_MAX);
-
-	case _PC_MAX_CANON:
-		return( (long) MAX_CANON);
-
-	case _PC_MAX_INPUT:
-		return( (long) MAX_INPUT);
-
-	case _PC_NAME_MAX:
-		return( (long) NAME_MAX);
-
-	case _PC_PATH_MAX:
-		return( (long) PATH_MAX);
-
-	case _PC_PIPE_BUF:
-		return( (long) PIPE_BUF);
-
-	case _PC_CHOWN_RESTRICTED:
-		return( (long) _POSIX_CHOWN_RESTRICTED);
-
-	case _PC_NO_TRUNC:
-		return( (long) _POSIX_NO_TRUNC);
-
-	case _PC_VDISABLE:
-		return( (long) _POSIX_VDISABLE);
-
-	default:
-		errno = EINVAL;
-		return(-1);
-  }
-}
Index: trunk/minix/lib/posix/_fstat.c
===================================================================
--- trunk/minix/lib/posix/_fstat.c	(revision 9)
+++ 	(revision )
@@ -1,14 +1,0 @@
-#include <lib.h>
-#define fstat	_fstat
-#include <sys/stat.h>
-
-PUBLIC int fstat(fd, buffer)
-int fd;
-struct stat *buffer;
-{
-  message m;
-
-  m.m1_i1 = fd;
-  m.m1_p1 = (char *) buffer;
-  return(_syscall(FS, FSTAT, &m));
-}
Index: trunk/minix/lib/posix/_fstatfs.c
===================================================================
--- trunk/minix/lib/posix/_fstatfs.c	(revision 9)
+++ 	(revision )
@@ -1,13 +1,0 @@
-#include <lib.h>
-#define fstatfs	_fstatfs
-#include <sys/stat.h>
-#include <sys/statfs.h>
-
-PUBLIC int fstatfs(int fd, struct statfs *buffer)
-{
-  message m;
-
-  m.m1_i1 = fd;
-  m.m1_p1 = (char *) buffer;
-  return(_syscall(FS, FSTATFS, &m));
-}
Index: trunk/minix/lib/posix/_fsync.c
===================================================================
--- trunk/minix/lib/posix/_fsync.c	(revision 9)
+++ 	(revision )
@@ -1,12 +1,0 @@
-#include <lib.h>
-#define sync	_sync
-#include <unistd.h>
-
-PUBLIC int fsync(int fd)
-{
-  message m;
-
-  m.m1_i1 = fd;
-
-  return(_syscall(FS, FSYNC, &m));
-}
Index: trunk/minix/lib/posix/_getcwd.c
===================================================================
--- trunk/minix/lib/posix/_getcwd.c	(revision 9)
+++ 	(revision )
@@ -1,143 +1,0 @@
-/*	getcwd() - get the name of the current working directory.
- *							Author: Kees J. Bot
- *								30 Apr 1989
- */
-#define nil 0
-#define chdir _chdir
-#define closedir _closedir
-#define getcwd _getcwd
-#define opendir _opendir
-#define readdir _readdir
-#define rewinddir _rewinddir
-#define stat _stat
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <errno.h>
-#include <unistd.h>
-#include <dirent.h>
-#include <limits.h>
-#include <string.h>
-
-static int addpath(const char *path, char **ap, const char *entry)
-/* Add the name of a directory entry at the front of the path being built.
- * Note that the result always starts with a slash.
- */
-{
-	const char *e= entry;
-	char *p= *ap;
-
-	while (*e != 0) e++;
-
-	while (e > entry && p > path) *--p = *--e;
-
-	if (p == path) return -1;
-	*--p = '/';
-	*ap= p;
-	return 0;
-}
-
-static int recover(char *p)
-/* Undo all those chdir("..")'s that have been recorded by addpath.  This
- * has to be done entry by entry, because the whole pathname may be too long.
- */
-{
-	int e= errno, slash;
-	char *p0;
-
-	while (*p != 0) {
-		p0= ++p;
-
-		do p++; while (*p != 0 && *p != '/');
-		slash= *p; *p= 0;
-
-		if (chdir(p0) < 0) return -1;
-		*p= slash;
-	}
-	errno= e;
-	return 0;
-}
-
-char *getcwd(char *path, size_t size)
-{
-	struct stat above, current, tmp;
-	struct dirent *entry;
-	DIR *d;
-	char *p, *up, *dotdot;
-	int cycle;
-
-	if (path == nil || size <= 1) { errno= EINVAL; return nil; }
-
-	p= path + size;
-	*--p = 0;
-
-	if (stat(".", &current) < 0) return nil;
-
-	while (1) {
-		dotdot= "..";
-		if (stat(dotdot, &above) < 0) { recover(p); return nil; }
-
-		if (above.st_dev == current.st_dev
-					&& above.st_ino == current.st_ino)
-			break;	/* Root dir found */
-
-		if ((d= opendir(dotdot)) == nil) { recover(p); return nil; }
-
-		/* Cycle is 0 for a simple inode nr search, or 1 for a search
-		 * for inode *and* device nr.
-		 */
-		cycle= above.st_dev == current.st_dev ? 0 : 1;
-
-		do {
-			char name[3 + NAME_MAX + 1];
-
-			tmp.st_ino= 0;
-			if ((entry= readdir(d)) == nil) {
-				switch (++cycle) {
-				case 1:
-					rewinddir(d);
-					continue;
-				case 2:
-					closedir(d);
-					errno= ENOENT;
-					recover(p);
-					return nil;
-				}
-			}
-			if (strcmp(entry->d_name, ".") == 0) continue;
-			if (strcmp(entry->d_name, "..") == 0) continue;
-
-			switch (cycle) {
-			case 0:
-				/* Simple test on inode nr. */
-				if (entry->d_ino != current.st_ino) continue;
-				/*FALL THROUGH*/
-
-			case 1:
-				/* Current is mounted. */
-				strcpy(name, "../");
-				strcpy(name+3, entry->d_name);
-				if (stat(name, &tmp) < 0) continue;
-				break;
-			}
-		} while (tmp.st_ino != current.st_ino
-					|| tmp.st_dev != current.st_dev);
-
-		up= p;
-		if (addpath(path, &up, entry->d_name) < 0) {
-			closedir(d);
-			errno = ERANGE;
-			recover(p);
-			return nil;
-		}
-		closedir(d);
-
-		if (chdir(dotdot) < 0) { recover(p); return nil; }
-		p= up;
-
-		current= above;
-	}
-	if (recover(p) < 0) return nil;	/* Undo all those chdir("..")'s. */
-	if (*p == 0) *--p = '/';	/* Cwd is "/" if nothing added */
-	if (p > path) strcpy(path, p);	/* Move string to start of path. */
-	return path;
-}
Index: trunk/minix/lib/posix/_getegid.c
===================================================================
--- trunk/minix/lib/posix/_getegid.c	(revision 9)
+++ 	(revision )
@@ -1,16 +1,0 @@
-#include <lib.h>
-#define getegid	_getegid
-#include <unistd.h>
-
-PUBLIC gid_t getegid()
-{
-  message m;
-
-  /* POSIX says that this function is always successful and that no
-   * return value is reserved to indicate an error.  Minix syscalls
-   * are not always successful and Minix returns the unreserved value
-   * (gid_t) -1 when there is an error.
-   */
-  if (_syscall(MM, GETGID, &m) < 0) return ( (gid_t) -1);
-  return( (gid_t) m.m2_i1);
-}
Index: trunk/minix/lib/posix/_geteuid.c
===================================================================
--- trunk/minix/lib/posix/_geteuid.c	(revision 9)
+++ 	(revision )
@@ -1,16 +1,0 @@
-#include <lib.h>
-#define geteuid	_geteuid
-#include <unistd.h>
-
-PUBLIC uid_t geteuid()
-{
-  message m;
-
-  /* POSIX says that this function is always successful and that no
-   * return value is reserved to indicate an error.  Minix syscalls
-   * are not always successful and Minix returns the unreserved value
-   * (uid_t) -1 when there is an error.
-   */
-  if (_syscall(MM, GETUID, &m) < 0) return ( (uid_t) -1);
-  return( (uid_t) m.m2_i1);
-}
Index: trunk/minix/lib/posix/_getgid.c
===================================================================
--- trunk/minix/lib/posix/_getgid.c	(revision 9)
+++ 	(revision )
@@ -1,10 +1,0 @@
-#include <lib.h>
-#define getgid	_getgid
-#include <unistd.h>
-
-PUBLIC gid_t getgid()
-{
-  message m;
-
-  return( (gid_t) _syscall(MM, GETGID, &m));
-}
Index: trunk/minix/lib/posix/_getgroups.c
===================================================================
--- trunk/minix/lib/posix/_getgroups.c	(revision 9)
+++ 	(revision )
@@ -1,18 +1,0 @@
-/* getgroups.c						POSIX 4.2.3
- *	int getgroups(gidsetsize, grouplist);
- *
- *	This call relates to suplementary group ids, which are not
- *	supported in MINIX.
- */
-
-#include <lib.h>
-#define getgroups _getgroups
-#include <unistd.h>
-#include <time.h>
-
-PUBLIC int getgroups(gidsetsize, grouplist)
-int gidsetsize;
-gid_t grouplist[];
-{
-  return(0);
-}
Index: trunk/minix/lib/posix/_getpgrp.c
===================================================================
--- trunk/minix/lib/posix/_getpgrp.c	(revision 9)
+++ 	(revision )
@@ -1,10 +1,0 @@
-#include <lib.h>
-#define getpgrp	_getpgrp
-#include <unistd.h>
-
-PUBLIC pid_t getpgrp()
-{
-  message m;
-
-  return(_syscall(MM, GETPGRP, &m));
-}
Index: trunk/minix/lib/posix/_getpid.c
===================================================================
--- trunk/minix/lib/posix/_getpid.c	(revision 9)
+++ 	(revision )
@@ -1,10 +1,0 @@
-#include <lib.h>
-#define getpid	_getpid
-#include <unistd.h>
-
-PUBLIC pid_t getpid()
-{
-  message m;
-
-  return(_syscall(MM, GETPID, &m));
-}
Index: trunk/minix/lib/posix/_getppid.c
===================================================================
--- trunk/minix/lib/posix/_getppid.c	(revision 9)
+++ 	(revision )
@@ -1,16 +1,0 @@
-#include <lib.h>
-#define getppid	_getppid
-#include <unistd.h>
-
-PUBLIC pid_t getppid()
-{
-  message m;
-
-  /* POSIX says that this function is always successful and that no
-   * return value is reserved to indicate an error.  Minix syscalls
-   * are not always successful and Minix returns the reserved value
-   * (pid_t) -1 when there is an error.
-   */
-  if (_syscall(MM, GETPID, &m) < 0) return ( (pid_t) -1);
-  return( (pid_t) m.m2_i1);
-}
Index: trunk/minix/lib/posix/_getuid.c
===================================================================
--- trunk/minix/lib/posix/_getuid.c	(revision 9)
+++ 	(revision )
@@ -1,10 +1,0 @@
-#include <lib.h>
-#define getuid	_getuid
-#include <unistd.h>
-
-PUBLIC uid_t getuid()
-{
-  message m;
-
-  return( (uid_t) _syscall(MM, GETUID, &m));
-}
Index: trunk/minix/lib/posix/_ioctl.c
===================================================================
--- trunk/minix/lib/posix/_ioctl.c	(revision 9)
+++ 	(revision )
@@ -1,17 +1,0 @@
-#include <lib.h>
-#define ioctl	_ioctl
-#include <minix/com.h>
-#include <sys/ioctl.h>
-
-PUBLIC int ioctl(fd, request, data)
-int fd;
-int request;
-void *data;
-{
-  message m;
-
-  m.TTY_LINE = fd;
-  m.TTY_REQUEST = request;
-  m.ADDRESS = (char *) data;
-  return(_syscall(FS, IOCTL, &m));
-}
Index: trunk/minix/lib/posix/_isatty.c
===================================================================
--- trunk/minix/lib/posix/_isatty.c	(revision 9)
+++ 	(revision )
@@ -1,13 +1,0 @@
-#include <lib.h>
-#define isatty _isatty
-#define tcgetattr _tcgetattr
-#include <termios.h>
-#include <unistd.h>
-
-PUBLIC int isatty(fd)
-int fd;
-{
-  struct termios dummy;
-
-  return(tcgetattr(fd, &dummy) == 0);
-}
Index: trunk/minix/lib/posix/_kill.c
===================================================================
--- trunk/minix/lib/posix/_kill.c	(revision 9)
+++ 	(revision )
@@ -1,14 +1,0 @@
-#include <lib.h>
-#define kill	_kill
-#include <signal.h>
-
-PUBLIC int kill(proc, sig)
-int proc;			/* which process is to be sent the signal */
-int sig;			/* signal number */
-{
-  message m;
-
-  m.m1_i1 = proc;
-  m.m1_i2 = sig;
-  return(_syscall(MM, KILL, &m));
-}
Index: trunk/minix/lib/posix/_link.c
===================================================================
--- trunk/minix/lib/posix/_link.c	(revision 9)
+++ 	(revision )
@@ -1,16 +1,0 @@
-#include <lib.h>
-#define link	_link
-#include <string.h>
-#include <unistd.h>
-
-PUBLIC int link(name, name2)
-_CONST char *name, *name2;
-{
-  message m;
-
-  m.m1_i1 = strlen(name) + 1;
-  m.m1_i2 = strlen(name2) + 1;
-  m.m1_p1 = (char *) name;
-  m.m1_p2 = (char *) name2;
-  return(_syscall(FS, LINK, &m));
-}
Index: trunk/minix/lib/posix/_lseek.c
===================================================================
--- trunk/minix/lib/posix/_lseek.c	(revision 9)
+++ 	(revision )
@@ -1,17 +1,0 @@
-#include <lib.h>
-#define lseek	_lseek
-#include <unistd.h>
-
-PUBLIC off_t lseek(fd, offset, whence)
-int fd;
-off_t offset;
-int whence;
-{
-  message m;
-
-  m.m2_i1 = fd;
-  m.m2_l1 = offset;
-  m.m2_i2 = whence;
-  if (_syscall(FS, LSEEK, &m) < 0) return( (off_t) -1);
-  return( (off_t) m.m2_l1);
-}
Index: trunk/minix/lib/posix/_lstat.c
===================================================================
--- trunk/minix/lib/posix/_lstat.c	(revision 9)
+++ 	(revision )
@@ -1,19 +1,0 @@
-#include <lib.h>
-#define lstat	_lstat
-#include <sys/stat.h>
-#include <string.h>
-
-PUBLIC int lstat(name, buffer)
-_CONST char *name;
-struct stat *buffer;
-{
-  message m;
-  int r;
-
-  m.m1_i1 = strlen(name) + 1;
-  m.m1_p1 = (char *) name;
-  m.m1_p2 = (char *) buffer;
-  if((r = _syscall(FS, LSTAT, &m)) >= 0 || errno != ENOSYS)
-     return r;
-  return _stat(name, buffer);
-}
Index: trunk/minix/lib/posix/_mkdir.c
===================================================================
--- trunk/minix/lib/posix/_mkdir.c	(revision 9)
+++ 	(revision )
@@ -1,16 +1,0 @@
-#include <lib.h>
-#define mkdir	_mkdir
-#include <sys/stat.h>
-#include <string.h>
-
-PUBLIC int mkdir(name, mode)
-_CONST char *name;
-_mnx_Mode_t mode;
-{
-  message m;
-
-  m.m1_i1 = strlen(name) + 1;
-  m.m1_i2 = mode;
-  m.m1_p1 = (char *) name;
-  return(_syscall(FS, MKDIR, &m));
-}
Index: trunk/minix/lib/posix/_mkfifo.c
===================================================================
--- trunk/minix/lib/posix/_mkfifo.c	(revision 9)
+++ 	(revision )
@@ -1,12 +1,0 @@
-#include <lib.h>
-#define mkfifo	_mkfifo
-#define mknod	_mknod
-#include <sys/stat.h>
-#include <unistd.h>
-
-PUBLIC int mkfifo(name, mode)
-_CONST char *name;
-_mnx_Mode_t mode;
-{
-  return mknod(name, mode | S_IFIFO, (Dev_t) 0);
-}
Index: trunk/minix/lib/posix/_mknod.c
===================================================================
--- trunk/minix/lib/posix/_mknod.c	(revision 9)
+++ 	(revision )
@@ -1,20 +1,0 @@
-#include <lib.h>
-#define mknod	_mknod
-#include <string.h>
-#include <stdlib.h>
-#include <unistd.h>
-
-PUBLIC int mknod(name, mode, dev)
-_CONST char *name;
-_mnx_Mode_t mode;
-Dev_t dev;
-{
-  message m;
-
-  m.m1_i1 = strlen(name) + 1;
-  m.m1_i2 = mode;
-  m.m1_i3 = dev;
-  m.m1_p1 = (char *) name;
-  m.m1_p2 = (char *) ((int) 0);		/* obsolete size field */
-  return(_syscall(FS, MKNOD, &m));
-}
Index: trunk/minix/lib/posix/_mount.c
===================================================================
--- trunk/minix/lib/posix/_mount.c	(revision 9)
+++ 	(revision )
@@ -1,18 +1,0 @@
-#include <lib.h>
-#define mount	_mount
-#include <string.h>
-#include <unistd.h>
-
-PUBLIC int mount(special, name, rwflag)
-char *name, *special;
-int rwflag;
-{
-  message m;
-
-  m.m1_i1 = strlen(special) + 1;
-  m.m1_i2 = strlen(name) + 1;
-  m.m1_i3 = rwflag;
-  m.m1_p1 = special;
-  m.m1_p2 = name;
-  return(_syscall(FS, MOUNT, &m));
-}
Index: trunk/minix/lib/posix/_open.c
===================================================================
--- trunk/minix/lib/posix/_open.c	(revision 9)
+++ 	(revision )
@@ -1,30 +1,0 @@
-#include <lib.h>
-#define open	_open
-#include <fcntl.h>
-#include <stdarg.h>
-#include <string.h>
-
-#if _ANSI
-PUBLIC int open(const char *name, int flags, ...)
-#else
-PUBLIC int open(name, flags)
-_CONST char *name;
-int flags;
-#endif
-{
-  va_list argp;
-  message m;
-
-  va_start(argp, flags);
-  if (flags & O_CREAT) {
-	m.m1_i1 = strlen(name) + 1;
-	m.m1_i2 = flags;
-	m.m1_i3 = va_arg(argp, _mnx_Mode_t);
-	m.m1_p1 = (char *) name;
-  } else {
-	_loadname(name, &m);
-	m.m3_i2 = flags;
-  }
-  va_end(argp);
-  return (_syscall(FS, OPEN, &m));
-}
Index: trunk/minix/lib/posix/_opendir.c
===================================================================
--- trunk/minix/lib/posix/_opendir.c	(revision 9)
+++ 	(revision )
@@ -1,53 +1,0 @@
-/*	opendir()					Author: Kees J. Bot
- *								24 Apr 1989
- */
-#define nil 0
-#include <lib.h>
-#define close	_close
-#define fcntl	_fcntl
-#define fstat	_fstat
-#define open	_open
-#define opendir	_opendir
-#define stat	_stat
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <dirent.h>
-#include <unistd.h>
-#include <stdlib.h>
-#include <fcntl.h>
-#include <errno.h>
-
-DIR *opendir(const char *name)
-/* Open a directory for reading. */
-{
-	int d, f;
-	DIR *dp;
-	struct stat st;
-
-	/* Only read directories. */
-	if (stat(name, &st) < 0) return nil;
-	if (!S_ISDIR(st.st_mode)) { errno= ENOTDIR; return nil; }
-
-	if ((d= open(name, O_RDONLY | O_NONBLOCK)) < 0) return nil;
-
-	/* Check the type again, mark close-on-exec, get a buffer. */
-	if (fstat(d, &st) < 0
-		|| (errno= ENOTDIR, !S_ISDIR(st.st_mode))
-		|| (f= fcntl(d, F_GETFD)) < 0
-		|| fcntl(d, F_SETFD, f | FD_CLOEXEC) < 0
-		|| (dp= (DIR *) malloc(sizeof(*dp))) == nil
-	) {
-		int err= errno;
-		(void) close(d);
-		errno= err;
-		return nil;
-	}
-
-	dp->_fd= d;
-	dp->_v7= -1;
-	dp->_count= 0;
-	dp->_pos= 0;
-
-	return dp;
-}
-
Index: trunk/minix/lib/posix/_pathconf.c
===================================================================
--- trunk/minix/lib/posix/_pathconf.c	(revision 9)
+++ 	(revision )
@@ -1,28 +1,0 @@
-/* POSIX pathconf (Sec. 5.7.1) 		Author: Andy Tanenbaum */
-
-#include <lib.h>
-#define close		_close
-#define open		_open
-#define pathconf	_pathconf
-#include <fcntl.h>
-#include <errno.h>
-#include <unistd.h>
-
-PUBLIC long pathconf(path, name)
-_CONST char *path;		/* name of file being interrogated */
-int name;			/* property being inspected */
-{
-/* POSIX allows some of the values in <limits.h> to be increased at
- * run time.  The pathconf and fpathconf functions allow these values
- * to be checked at run time.  MINIX does not use this facility.
- * The run-time limits are those given in <limits.h>.
- */
-
-  int fd;
-  long val;
-
-  if ( (fd = open(path, O_RDONLY)) < 0) return(-1L);
-  val = fpathconf(fd, name);
-  close(fd);
-  return(val);
-}
Index: trunk/minix/lib/posix/_pause.c
===================================================================
--- trunk/minix/lib/posix/_pause.c	(revision 9)
+++ 	(revision )
@@ -1,10 +1,0 @@
-#include <lib.h>
-#define pause	_pause
-#include <unistd.h>
-
-PUBLIC int pause()
-{
-  message m;
-
-  return(_syscall(MM, PAUSE, &m));
-}
Index: trunk/minix/lib/posix/_pipe.c
===================================================================
--- trunk/minix/lib/posix/_pipe.c	(revision 9)
+++ 	(revision )
@@ -1,14 +1,0 @@
-#include <lib.h>
-#define pipe	_pipe
-#include <unistd.h>
-
-PUBLIC int pipe(fild)
-int fild[2];
-{
-  message m;
-
-  if (_syscall(FS, PIPE, &m) < 0) return(-1);
-  fild[0] = m.m1_i1;
-  fild[1] = m.m1_i2;
-  return(0);
-}
Index: trunk/minix/lib/posix/_ptrace.c
===================================================================
--- trunk/minix/lib/posix/_ptrace.c	(revision 9)
+++ 	(revision )
@@ -1,25 +1,0 @@
-#include <lib.h>
-#define ptrace	_ptrace
-#include <unistd.h>
-
-PUBLIC long ptrace(req, pid, addr, data)
-int req;
-pid_t pid;
-long addr;
-long data;
-{
-  message m;
-
-  m.m2_i1 = pid;
-  m.m2_i2 = req;
-  m.m2_l1 = addr;
-  m.m2_l2 = data;
-  if (_syscall(MM, PTRACE, &m) < 0) return(-1);
-
-  /* There was no error, but -1 is a legal return value.  Clear errno if
-   * necessary to distinguish this case.  _syscall has set errno to nonzero
-   * for the error case.
-   */
-  if (m.m2_l2 == -1) errno = 0;
-  return(m.m2_l2);
-}
Index: trunk/minix/lib/posix/_read.c
===================================================================
--- trunk/minix/lib/posix/_read.c	(revision 9)
+++ 	(revision )
@@ -1,16 +1,0 @@
-#include <lib.h>
-#define read	_read
-#include <unistd.h>
-
-PUBLIC ssize_t read(fd, buffer, nbytes)
-int fd;
-void *buffer;
-size_t nbytes;
-{
-  message m;
-
-  m.m1_i1 = fd;
-  m.m1_i2 = nbytes;
-  m.m1_p1 = (char *) buffer;
-  return(_syscall(FS, READ, &m));
-}
Index: trunk/minix/lib/posix/_readdir.c
===================================================================
--- trunk/minix/lib/posix/_readdir.c	(revision 9)
+++ 	(revision )
@@ -1,59 +1,0 @@
-/*	readdir()					Author: Kees J. Bot
- *								24 Apr 1989
- */
-#define nil 0
-#include <lib.h>
-#define read	_read
-#define readdir	_readdir
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <dirent.h>
-#include <unistd.h>
-#include <stdlib.h>
-#include <fcntl.h>
-#include <limits.h>
-#include <errno.h>
-#include <string.h>
-
-#define v7ent(p)	((struct _v7_direct *) (p))
-#define V7_EXTENT	(sizeof(struct _v7_direct) / sizeof(struct _fl_direct) - 1)
-
-struct dirent *readdir(DIR *dp)
-/* Return the next entry in a directory.  Handle V7 and FLEX format dirs. */
-{
-	struct dirent *e;
-
-	if (dp == nil) { errno= EBADF; return nil; }
-
-	do {
-		if (dp->_count <= 0) {
-			/* Read the next directory block. */
-			dp->_count= read(dp->_fd, dp->_buf, sizeof(dp->_buf));
-			if (dp->_count <= 0) return nil;
-
-			dp->_count/= sizeof(dp->_buf[0]);
-			dp->_ptr= dp->_buf;
-
-			/* Extent is zero of the first flex entry. */
-			if (dp->_v7 == (char)-1) dp->_v7= dp->_buf[0].d_extent;
-		}
-
-		if (!dp->_v7) {
-			/* FLEX. */
-			e= (struct dirent *) dp->_ptr;
-		} else {
-			/* V7: transform to FLEX. */
-			e= (struct dirent *) dp->_v7f;
-			e->d_ino= v7ent(dp->_ptr)->d_ino;
-			e->d_extent= V7_EXTENT;
-			memcpy(e->d_name, v7ent(dp->_ptr)->d_name, DIRSIZ);
-			e->d_name[DIRSIZ]= 0;
-		}
-
-		dp->_ptr+= 1 + e->d_extent;
-		dp->_count-= 1 + e->d_extent;
-		dp->_pos+= (1 + e->d_extent) * sizeof(*dp->_ptr);
-
-	} while (e->d_ino == 0);
-	return e;
-}
Index: trunk/minix/lib/posix/_readlink.c
===================================================================
--- trunk/minix/lib/posix/_readlink.c	(revision 9)
+++ 	(revision )
@@ -1,19 +1,0 @@
-#include <lib.h>
-#define readlink _readlink
-#include <unistd.h>
-#include <string.h>
-
-PUBLIC int readlink(name, buffer, bufsiz)
-_CONST char *name;
-char *buffer;
-size_t bufsiz;
-{
-  message m;
-
-  m.m1_i1 = strlen(name) + 1;
-  m.m1_i2 = bufsiz;
-  m.m1_p1 = (char *) name;
-  m.m1_p2 = (char *) buffer;
-
-  return(_syscall(FS, RDLNK, &m));
-}
Index: trunk/minix/lib/posix/_rename.c
===================================================================
--- trunk/minix/lib/posix/_rename.c	(revision 9)
+++ 	(revision )
@@ -1,16 +1,0 @@
-#include <lib.h>
-#define rename	_rename
-#include <string.h>
-#include <stdio.h>
-
-PUBLIC int rename(name, name2)
-_CONST char *name, *name2;
-{
-  message m;
-
-  m.m1_i1 = strlen(name) + 1;
-  m.m1_i2 = strlen(name2) + 1;
-  m.m1_p1 = (char *) name;
-  m.m1_p2 = (char *) name2;
-  return(_syscall(FS, RENAME, &m));
-}
Index: trunk/minix/lib/posix/_rewinddir.c
===================================================================
--- trunk/minix/lib/posix/_rewinddir.c	(revision 9)
+++ 	(revision )
@@ -1,14 +1,0 @@
-/*	rewinddir()					Author: Kees J. Bot
- *								24 Apr 1989
- */
-#define nil 0
-#include <lib.h>
-#define rewinddir _rewinddir
-#define seekdir	_seekdir
-#include <sys/types.h>
-#include <dirent.h>
-
-void rewinddir(DIR *dp)
-{
-	(void) seekdir(dp, 0);
-}
Index: trunk/minix/lib/posix/_rmdir.c
===================================================================
--- trunk/minix/lib/posix/_rmdir.c	(revision 9)
+++ 	(revision )
@@ -1,12 +1,0 @@
-#include <lib.h>
-#define rmdir	_rmdir
-#include <unistd.h>
-
-PUBLIC int rmdir(name)
-_CONST char *name;
-{
-  message m;
-
-  _loadname(name, &m);
-  return(_syscall(FS, RMDIR, &m));
-}
Index: trunk/minix/lib/posix/_select.c
===================================================================
--- trunk/minix/lib/posix/_select.c	(revision 9)
+++ 	(revision )
@@ -1,20 +1,0 @@
-
-#include <lib.h>
-#include <sys/time.h>
-#include <sys/select.h>
-
-PUBLIC int select(int nfds,
-	fd_set *readfds, fd_set *writefds, fd_set *errorfds,
-	struct timeval *timeout)
-{
-  message m;
-
-  m.SEL_NFDS = nfds;
-  m.SEL_READFDS = (char *) readfds;
-  m.SEL_WRITEFDS = (char *) writefds;
-  m.SEL_ERRORFDS = (char *) errorfds;
-  m.SEL_TIMEOUT = (char *) timeout;
-
-  return (_syscall(FS, SELECT, &m));
-}
-
Index: trunk/minix/lib/posix/_setgid.c
===================================================================
--- trunk/minix/lib/posix/_setgid.c	(revision 9)
+++ 	(revision )
@@ -1,22 +1,0 @@
-#include <lib.h>
-#define setgid	_setgid
-#define setegid	_setegid
-#include <unistd.h>
-
-PUBLIC int setgid(grp)
-gid_t grp;
-{
-  message m;
-
-  m.m1_i1 = (int) grp;
-  return(_syscall(MM, SETGID, &m));
-}
-
-PUBLIC int setegid(grp)
-gid_t grp;
-{
-  message m;
-
-  m.m1_i1 = (int) grp;
-  return(_syscall(MM, SETEGID, &m));
-}
Index: trunk/minix/lib/posix/_setsid.c
===================================================================
--- trunk/minix/lib/posix/_setsid.c	(revision 9)
+++ 	(revision )
@@ -1,10 +1,0 @@
-#include <lib.h>
-#define setsid	_setsid
-#include <unistd.h>
-
-PUBLIC pid_t setsid()
-{
-  message m;
-
-  return(_syscall(MM, SETSID, &m));
-}
Index: trunk/minix/lib/posix/_setuid.c
===================================================================
--- trunk/minix/lib/posix/_setuid.c	(revision 9)
+++ 	(revision )
@@ -1,22 +1,0 @@
-#include <lib.h>
-#define setuid	_setuid
-#define seteuid	_seteuid
-#include <unistd.h>
-
-PUBLIC int setuid(usr)
-_mnx_Uid_t usr;
-{
-  message m;
-
-  m.m1_i1 = usr;
-  return(_syscall(MM, SETUID, &m));
-}
-
-PUBLIC int seteuid(usr)
-_mnx_Uid_t usr;
-{
-  message m;
-
-  m.m1_i1 = usr;
-  return(_syscall(MM, SETEUID, &m));
-}
Index: trunk/minix/lib/posix/_sigaction.c
===================================================================
--- trunk/minix/lib/posix/_sigaction.c	(revision 9)
+++ 	(revision )
@@ -1,23 +1,0 @@
-#include <lib.h>
-#define sigaction _sigaction
-#include <sys/sigcontext.h>
-#include <signal.h>
-
-_PROTOTYPE(int __sigreturn, (void));
-
-PUBLIC int sigaction(sig, act, oact)
-int sig;
-_CONST struct sigaction *act;
-struct sigaction *oact;
-{
-  message m;
-
-  m.m1_i2 = sig;
-
-  /* XXX - yet more type puns because message struct is short of types. */
-  m.m1_p1 = (char *) act;
-  m.m1_p2 = (char *) oact;
-  m.m1_p3 = (char *) __sigreturn;
-
-  return(_syscall(MM, SIGACTION, &m));
-}
Index: trunk/minix/lib/posix/_sigpending.c
===================================================================
--- trunk/minix/lib/posix/_sigpending.c	(revision 9)
+++ 	(revision )
@@ -1,13 +1,0 @@
-#include <lib.h>
-#define sigpending _sigpending
-#include <signal.h>
-
-PUBLIC int sigpending(set)
-sigset_t *set;
-{
-  message m;
-
-  if (_syscall(MM, SIGPENDING, &m) < 0) return(-1);
-  *set = (sigset_t) m.m2_l1;
-  return(m.m_type);
-}
Index: trunk/minix/lib/posix/_sigprocmask.c
===================================================================
--- trunk/minix/lib/posix/_sigprocmask.c	(revision 9)
+++ 	(revision )
@@ -1,22 +1,0 @@
-#include <lib.h>
-#define sigprocmask _sigprocmask
-#include <signal.h>
-
-PUBLIC int sigprocmask(how, set, oset)
-int how;
-_CONST sigset_t *set;
-sigset_t *oset;
-{
-  message m;
-
-  if (set == (sigset_t *) NULL) {
-	m.m2_i1 = SIG_INQUIRE;
-	m.m2_l1 = 0;
-  } else {
-	m.m2_i1 = how;
-	m.m2_l1 = (long) *set;
-  }
-  if (_syscall(MM, SIGPROCMASK, &m) < 0) return(-1);
-  if (oset != (sigset_t *) NULL) *oset = (sigset_t) (m.m2_l1);
-  return(m.m_type);
-}
Index: trunk/minix/lib/posix/_sigreturn.c
===================================================================
--- trunk/minix/lib/posix/_sigreturn.c	(revision 9)
+++ 	(revision )
@@ -1,60 +1,0 @@
-#include <lib.h>
-#define sigfillset	_sigfillset
-#define sigjmp		_sigjmp
-#define sigprocmask	_sigprocmask
-#define sigreturn	_sigreturn
-#include <sys/sigcontext.h>
-#include <setjmp.h>
-#include <signal.h>
-
-_PROTOTYPE( int sigjmp, (jmp_buf jb, int retval));
-
-#if (_SETJMP_SAVES_REGS == 0)
-/* 'sigreturn' using a short format jmp_buf (no registers saved). */
-PUBLIC int sigjmp(jb, retval)
-jmp_buf jb;
-int retval;
-{
-  struct sigcontext sc;
-
-  sc.sc_flags = jb[0].__flags;
-  sc.sc_mask = jb[0].__mask;
-
-#if (CHIP == INTEL)
-  sc.sc_pc = (int) jb[0].__pc;
-  sc.sc_sp = (int) jb[0].__sp;
-  sc.sc_fp = (int) jb[0].__lb;
-#endif
-
-#if (CHIP == M68000)
-  sc.sc_pc = (long) jb[0].__pc;
-  sc.sc_sp = (long) jb[0].__sp;
-  sc.sc_fp = (long) jb[0].__lb;
-#endif
-
-  sc.sc_retreg = retval;
-  return sigreturn(&sc);
-}
-#endif
-
-PUBLIC int sigreturn(scp)
-register struct sigcontext *scp;
-{
-  sigset_t set;
-
-  /* The message can't be on the stack, because the stack will vanish out
-   * from under us.  The send part of sendrec will succeed, but when
-   * a message is sent to restart the current process, who knows what will
-   * be in the place formerly occupied by the message?
-   */
-  static message m;
-
-  /* Protect against race conditions by blocking all interrupts. */
-  sigfillset(&set);		/* splhi */
-  sigprocmask(SIG_SETMASK, &set, (sigset_t *) NULL);
-
-  m.m2_l1 = scp->sc_mask;
-  m.m2_i2 = scp->sc_flags;
-  m.m2_p1 = (char *) scp;
-  return(_syscall(MM, SIGRETURN, &m));	/* normally this doesn't return */
-}
Index: trunk/minix/lib/posix/_sigset.c
===================================================================
--- trunk/minix/lib/posix/_sigset.c	(revision 9)
+++ 	(revision )
@@ -1,75 +1,0 @@
-#include <lib.h>
-/* XXX - these have to be hidden because signal() uses them and signal() is
- * ANSI and not POSIX.  It would be surely be better to use macros for the
- * library and system uses, and perhaps macros as well as functions for the
- * POSIX user interface.  The macros would not need underlines.  It may be
- * inconvenient to match the exact semantics of the current functions
- * because the interface is bloated by reporting errors.  For library and
- * system uses, the signal number is mostly already known to be valid
- * before the sigset-changing routines are called.
- */
-#define sigaddset	_sigaddset
-#define sigdelset	_sigdelset
-#define sigemptyset	_sigemptyset
-#define sigfillset	_sigfillset
-#define sigismember	_sigismember
-#include <signal.h>
-
-/* Low bit of signal masks. */
-#define SIGBIT_0	((sigset_t) 1)
-
-/* Mask of valid signals (0 - _NSIG). */
-#define SIGMASK		(((SIGBIT_0 << _NSIG) << 1) - 1)
-
-#define sigisvalid(signo) ((unsigned) (signo) <= _NSIG)
-
-PUBLIC int sigaddset(set, signo)
-sigset_t *set;
-int signo;
-{
-  if (!sigisvalid(signo)) {
-  	errno = EINVAL;
-	return -1;
-  }
-  *set |= SIGBIT_0 << signo;
-  return 0;
-}
-
-PUBLIC int sigdelset(set, signo)
-sigset_t *set;
-int signo;
-{
-  if (!sigisvalid(signo)) {
-  	errno = EINVAL;
-	return -1;
-  }
-  *set &= ~(SIGBIT_0 << signo);
-  return 0;
-}
-
-PUBLIC int sigemptyset(set)
-sigset_t *set;
-{
-  *set = 0;
-  return 0;
-}
-
-PUBLIC int sigfillset(set)
-sigset_t *set;
-{
-  *set = SIGMASK;
-  return 0;
-}
-
-PUBLIC int sigismember(set, signo)
-_CONST sigset_t *set;
-int signo;
-{
-  if (!sigisvalid(signo)) {
-  	errno = EINVAL;
-	return -1;
-  }
-  if (*set & (SIGBIT_0 << signo))
-  	return 1;
-  return 0;
-}
Index: trunk/minix/lib/posix/_sigsetjmp.c
===================================================================
--- trunk/minix/lib/posix/_sigsetjmp.c	(revision 9)
+++ 	(revision )
@@ -1,13 +1,0 @@
-#include <lib.h>
-#include <sys/sigcontext.h>
-#include <setjmp.h>
-
-PUBLIC void siglongjmp(env, val)
-sigjmp_buf env;
-int val;
-{
-  if (env[0].__flags & SC_SIGCONTEXT)
-	longjmp(env, val);
-  else
-	_longjmp(env, val);
-}
Index: trunk/minix/lib/posix/_sigsuspend.c
===================================================================
--- trunk/minix/lib/posix/_sigsuspend.c	(revision 9)
+++ 	(revision )
@@ -1,12 +1,0 @@
-#include <lib.h>
-#define sigsuspend _sigsuspend
-#include <signal.h>
-
-PUBLIC int sigsuspend(set)
-_CONST sigset_t *set;
-{
-  message m;
-
-  m.m2_l1 = (long) *set;
-  return(_syscall(MM, SIGSUSPEND, &m));
-}
Index: trunk/minix/lib/posix/_sleep.c
===================================================================
--- trunk/minix/lib/posix/_sleep.c	(revision 9)
+++ 	(revision )
@@ -1,69 +1,0 @@
-/*	sleep() - Sleep for a number of seconds.	Author: Kees J. Bot
- *								24 Apr 2000
- * (Inspired by the Minix-vmd version of same, except that
- * this implementation doesn't bother to check if all the signal
- * functions succeed.  Under Minix that is no problem.)
- */
-
-#include <lib.h>
-#define sleep _sleep
-#include <signal.h>
-#include <unistd.h>
-#include <time.h>
-
-static void handler(int sig)
-{
-	/* Dummy signal handler. */
-}
-
-unsigned sleep(unsigned sleep_seconds)
-{
-	sigset_t ss_full, ss_orig, ss_alarm;
-	struct sigaction action_alarm, action_orig;
-	unsigned alarm_seconds, nap_seconds;
-
-	if (sleep_seconds == 0) return 0;	/* No rest for the wicked */
-
-	/* Mask all signals. */
-	sigfillset(&ss_full);
-	sigprocmask(SIG_BLOCK, &ss_full, &ss_orig);
-
-	/* Cancel currently running alarm. */
-	alarm_seconds= alarm(0);
-
-	/* How long can we nap without interruptions? */
-	nap_seconds= sleep_seconds;
-	if (alarm_seconds != 0 && alarm_seconds < sleep_seconds) {
-		nap_seconds= alarm_seconds;
-	}
-
-	/* Now sleep. */
-	action_alarm.sa_handler= handler;
-	sigemptyset(&action_alarm.sa_mask);
-	action_alarm.sa_flags= 0;
-	sigaction(SIGALRM, &action_alarm, &action_orig);
-	alarm(nap_seconds);
-
-	/* Wait for a wakeup call, either our alarm, or some other signal. */
-	ss_alarm= ss_orig;
-	sigdelset(&ss_alarm, SIGALRM);
-	sigsuspend(&ss_alarm);
-
-	/* Cancel alarm, set mask and stuff back to normal. */
-	nap_seconds -= alarm(0);
-	sigaction(SIGALRM, &action_orig, NULL);
-	sigprocmask(SIG_SETMASK, &ss_orig, NULL);
-
-	/* Restore alarm counter to the time remaining. */
-	if (alarm_seconds != 0 && alarm_seconds >= nap_seconds) {
-		alarm_seconds -= nap_seconds;
-		if (alarm_seconds == 0) {
-			raise(SIGALRM);		/* Alarm expires now! */
-		} else {
-			alarm(alarm_seconds);	/* Count time remaining. */
-		}
-	}
-
-	/* Return time not slept. */
-	return sleep_seconds - nap_seconds;
-}
Index: trunk/minix/lib/posix/_stat.c
===================================================================
--- trunk/minix/lib/posix/_stat.c	(revision 9)
+++ 	(revision )
@@ -1,16 +1,0 @@
-#include <lib.h>
-#define stat	_stat
-#include <sys/stat.h>
-#include <string.h>
-
-PUBLIC int stat(name, buffer)
-_CONST char *name;
-struct stat *buffer;
-{
-  message m;
-
-  m.m1_i1 = strlen(name) + 1;
-  m.m1_p1 = (char *) name;
-  m.m1_p2 = (char *) buffer;
-  return(_syscall(FS, STAT, &m));
-}
Index: trunk/minix/lib/posix/_stime.c
===================================================================
--- trunk/minix/lib/posix/_stime.c	(revision 9)
+++ 	(revision )
@@ -1,13 +1,0 @@
-#include <lib.h>
-#define stime	_stime
-#include <minix/minlib.h>
-#include <time.h>
-
-PUBLIC int stime(top)
-long *top;
-{
-  message m;
-
-  m.m2_l1 = *top;
-  return(_syscall(MM, STIME, &m));
-}
Index: trunk/minix/lib/posix/_symlink.c
===================================================================
--- trunk/minix/lib/posix/_symlink.c	(revision 9)
+++ 	(revision )
@@ -1,16 +1,0 @@
-#include <lib.h>
-#define symlink	_symlink
-#include <string.h>
-#include <unistd.h>
-
-PUBLIC int symlink(name, name2)
-_CONST char *name, *name2;
-{
-  message m;
-
-  m.m1_i1 = strlen(name) + 1;
-  m.m1_i2 = strlen(name2) + 1;
-  m.m1_p1 = (char *) name;
-  m.m1_p2 = (char *) name2;
-  return(_syscall(FS, SYMLINK, &m));
-}
Index: trunk/minix/lib/posix/_sync.c
===================================================================
--- trunk/minix/lib/posix/_sync.c	(revision 9)
+++ 	(revision )
@@ -1,10 +1,0 @@
-#include <lib.h>
-#define sync	_sync
-#include <unistd.h>
-
-PUBLIC int sync()
-{
-  message m;
-
-  return(_syscall(FS, SYNC, &m));
-}
Index: trunk/minix/lib/posix/_tcdrain.c
===================================================================
--- trunk/minix/lib/posix/_tcdrain.c	(revision 9)
+++ 	(revision )
@@ -1,16 +1,0 @@
-/*
-posix/_tcdrain.c
-
-Created:	July 26, 1994 by Philip Homburg
-*/
-
-#define tcdrain _tcdrain
-#define ioctl _ioctl
-#include <termios.h>
-#include <sys/ioctl.h>
-
-int tcdrain(fd)
-int fd;
-{
-  return(ioctl(fd, TCDRAIN, (void *)0));
-}
Index: trunk/minix/lib/posix/_tcflow.c
===================================================================
--- trunk/minix/lib/posix/_tcflow.c	(revision 9)
+++ 	(revision )
@@ -1,17 +1,0 @@
-/*
-posix/_tcflow.c
-
-Created:	June 8, 1993 by Philip Homburg
-*/
-
-#define tcflow _tcflow
-#define ioctl _ioctl
-#include <termios.h>
-#include <sys/ioctl.h>
-
-int tcflow(fd, action)
-int fd;
-int action;
-{
-  return(ioctl(fd, TCFLOW, &action));
-}
Index: trunk/minix/lib/posix/_tcflush.c
===================================================================
--- trunk/minix/lib/posix/_tcflush.c	(revision 9)
+++ 	(revision )
@@ -1,12 +1,0 @@
-/*	tcflush() - flush buffered characters		Author: Kees J. Bot
- *								13 Jan 1994
- */
-#define tcflush _tcflush
-#define ioctl _ioctl
-#include <termios.h>
-#include <sys/ioctl.h>
-
-int tcflush(int fd, int queue_selector)
-{
-  return(ioctl(fd, TCFLSH, &queue_selector));
-}
Index: trunk/minix/lib/posix/_tcgetattr.c
===================================================================
--- trunk/minix/lib/posix/_tcgetattr.c	(revision 9)
+++ 	(revision )
@@ -1,12 +1,0 @@
-#define tcgetattr _tcgetattr
-#define ioctl _ioctl
-#include <sys/ioctl.h>
-#include <errno.h>
-#include <termios.h>
-
-int tcgetattr(fd, termios_p)
-int fd;
-struct termios *termios_p;
-{
-  return(ioctl(fd, TCGETS, termios_p));
-}
Index: trunk/minix/lib/posix/_tcsendbreak.c
===================================================================
--- trunk/minix/lib/posix/_tcsendbreak.c	(revision 9)
+++ 	(revision )
@@ -1,12 +1,0 @@
-/*	tcsendbreak() - send a break			Author: Kees J. Bot
- *								13 Jan 1994
- */
-#define tcsendbreak _tcsendbreak
-#define ioctl _ioctl
-#include <termios.h>
-#include <sys/ioctl.h>
-
-int tcsendbreak(int fd, int duration)
-{
-  return(ioctl(fd, TCSBRK, &duration));
-}
Index: trunk/minix/lib/posix/_tcsetattr.c
===================================================================
--- trunk/minix/lib/posix/_tcsetattr.c	(revision 9)
+++ 	(revision )
@@ -1,29 +1,0 @@
-/*
-posix/_tcsetattr.c
-
-Created:	June 11, 1993 by Philip Homburg
-*/
-
-#define tcsetattr _tcsetattr
-#define ioctl _ioctl
-#include <errno.h>
-#include <termios.h>
-#include <sys/ioctl.h>
-#include <sys/types.h>
-
-int tcsetattr(fd, opt_actions, termios_p)
-int fd;
-int opt_actions;
-_CONST struct termios *termios_p;
-{
-  int request;
-
-  switch(opt_actions)
-  {
-    case TCSANOW:	request = TCSETS;	break;
-    case TCSADRAIN:	request = TCSETSW;	break;
-    case TCSAFLUSH:	request = TCSETSF;	break;
-    default:		errno = EINVAL;		return(-1);
-  };
-  return(ioctl(fd, request, (void *) termios_p));
-}
Index: trunk/minix/lib/posix/_time.c
===================================================================
--- trunk/minix/lib/posix/_time.c	(revision 9)
+++ 	(revision )
@@ -1,13 +1,0 @@
-#include <lib.h>
-#define time	_time
-#include <time.h>
-
-PUBLIC time_t time(tp)
-time_t *tp;
-{
-  message m;
-
-  if (_syscall(MM, TIME, &m) < 0) return( (time_t) -1);
-  if (tp != (time_t *) 0) *tp = m.m2_l1;
-  return(m.m2_l1);
-}
Index: trunk/minix/lib/posix/_times.c
===================================================================
--- trunk/minix/lib/posix/_times.c	(revision 9)
+++ 	(revision )
@@ -1,18 +1,0 @@
-#include <lib.h>
-#define times	_times
-#include <sys/times.h>
-#include <time.h>
-
-PUBLIC clock_t times(buf)
-struct tms *buf;
-{
-  message m;
-
-  m.m4_l5 = 0;			/* return this if system is pre-1.6 */
-  if (_syscall(MM, TIMES, &m) < 0) return( (clock_t) -1);
-  buf->tms_utime = m.m4_l1;
-  buf->tms_stime = m.m4_l2;
-  buf->tms_cutime = m.m4_l3;
-  buf->tms_cstime = m.m4_l4;
-  return(m.m4_l5);
-}
Index: trunk/minix/lib/posix/_truncate.c
===================================================================
--- trunk/minix/lib/posix/_truncate.c	(revision 9)
+++ 	(revision )
@@ -1,24 +1,0 @@
-#include <lib.h>
-#include <string.h>
-#define truncate	_truncate
-#define ftruncate	_ftruncate
-#include <unistd.h>
-
-PUBLIC int truncate(const char *_path, off_t _length)
-{
-  message m;
-  m.m2_p1 = (char *) _path;
-  m.m2_i1 = strlen(_path)+1;
-  m.m2_l1 = _length;
-
-  return(_syscall(FS, TRUNCATE, &m));
-}
-
-PUBLIC int ftruncate(int _fd, off_t _length)
-{
-  message m;
-  m.m2_l1 = _length;
-  m.m2_i1 = _fd;
-
-  return(_syscall(FS, FTRUNCATE, &m));
-}
Index: trunk/minix/lib/posix/_umask.c
===================================================================
--- trunk/minix/lib/posix/_umask.c	(revision 9)
+++ 	(revision )
@@ -1,12 +1,0 @@
-#include <lib.h>
-#define umask	_umask
-#include <sys/stat.h>
-
-PUBLIC mode_t umask(complmode)
-_mnx_Mode_t complmode;
-{
-  message m;
-
-  m.m1_i1 = complmode;
-  return( (mode_t) _syscall(FS, UMASK, &m));
-}
Index: trunk/minix/lib/posix/_umount.c
===================================================================
--- trunk/minix/lib/posix/_umount.c	(revision 9)
+++ 	(revision )
@@ -1,12 +1,0 @@
-#include <lib.h>
-#define umount	_umount
-#include <unistd.h>
-
-PUBLIC int umount(name)
-_CONST char *name;
-{
-  message m;
-
-  _loadname(name, &m);
-  return(_syscall(FS, UMOUNT, &m));
-}
Index: trunk/minix/lib/posix/_uname.c
===================================================================
--- trunk/minix/lib/posix/_uname.c	(revision 9)
+++ 	(revision )
@@ -1,59 +1,0 @@
-/*	uname() - get system info			Author: Kees J. Bot
- *								7 Nov 1994
- * Returns information about the Minix system.  Alas most
- * of it is gathered at compile time, so machine is wrong, and
- * release and version become wrong if not recompiled.
- * More chip types and Minix versions need to be added.
- */
-#define uname	_uname
-#define open	_open
-#define read	_read
-#define close	_close
-#include <sys/types.h>
-#include <sys/utsname.h>
-#include <unistd.h>
-#include <fcntl.h>
-#include <string.h>
-#include <errno.h>
-#include <minix/config.h>
-#include <minix/com.h>
-#include <minix/minlib.h>
-
-int uname(name) struct utsname *name;
-{
-  int hf, n, err;
-  struct kinfo kinfo;
-  char *nl;
-
-  /* Read the node name from /etc/hostname.file. */
-  if ((hf = open("/etc/hostname.file", O_RDONLY)) < 0) {
-	if (errno != ENOENT) return(-1);
-	strcpy(name->nodename, "noname");
-  } else {
-	n = read(hf, name->nodename, sizeof(name->nodename) - 1);
-	err = errno;
-	close(hf);
-	errno = err;
-	if (n < 0) return(-1);
-	name->nodename[n] = 0;
-	if ((nl = strchr(name->nodename, '\n')) != NULL) {
-		memset(nl, 0, (name->nodename + sizeof(name->nodename)) - nl);
-	}
-  }
- 
-  getsysinfo(PM_PROC_NR, SI_KINFO, &kinfo);
-
-  strcpy(name->sysname, "Minix");
-  strcpy(name->release, kinfo.release);
-  strcpy(name->version, kinfo.version);
-#if (CHIP == INTEL)
-  name->machine[0] = 'i';
-  strcpy(name->machine + 1, itoa(getprocessor()));
-#if _WORD_SIZE == 4
-  strcpy(name->arch, "i386");
-#else
-  strcpy(name->arch, "i86");
-#endif
-#endif
-  return(0);
-}
Index: trunk/minix/lib/posix/_unlink.c
===================================================================
--- trunk/minix/lib/posix/_unlink.c	(revision 9)
+++ 	(revision )
@@ -1,12 +1,0 @@
-#include <lib.h>
-#define unlink	_unlink
-#include <unistd.h>
-
-PUBLIC int unlink(name)
-_CONST char *name;
-{
-  message m;
-
-  _loadname(name, &m);
-  return(_syscall(FS, UNLINK, &m));
-}
Index: trunk/minix/lib/posix/_utime.c
===================================================================
--- trunk/minix/lib/posix/_utime.c	(revision 9)
+++ 	(revision )
@@ -1,24 +1,0 @@
-/* utime(2) for POSIX		Authors: Terrence W. Holm & Edwin L. Froese */
-
-#include <lib.h>
-#define utime	_utime
-#include <string.h>
-#include <utime.h>
-
-PUBLIC int utime(name, timp)
-_CONST char *name;
-_CONST struct utimbuf *timp;
-{
-  message m;
-
-  if (timp == NULL) {
-	m.m2_i1 = 0;		/* name size 0 means NULL `timp' */
-	m.m2_i2 = strlen(name) + 1;	/* actual size here */
-  } else {
-	m.m2_l1 = timp->actime;
-	m.m2_l2 = timp->modtime;
-	m.m2_i1 = strlen(name) + 1;
-  }
-  m.m2_p1 = (char *) name;
-  return(_syscall(FS, UTIME, &m));
-}
Index: trunk/minix/lib/posix/_wait.c
===================================================================
--- trunk/minix/lib/posix/_wait.c	(revision 9)
+++ 	(revision )
@@ -1,13 +1,0 @@
-#include <lib.h>
-#define wait	_wait
-#include <sys/wait.h>
-
-PUBLIC pid_t wait(status)
-int *status;
-{
-  message m;
-
-  if (_syscall(MM, WAIT, &m) < 0) return(-1);
-  if (status != 0) *status = m.m2_i1;
-  return(m.m_type);
-}
Index: trunk/minix/lib/posix/_waitpid.c
===================================================================
--- trunk/minix/lib/posix/_waitpid.c	(revision 9)
+++ 	(revision )
@@ -1,17 +1,0 @@
-#include <lib.h>
-#define waitpid	_waitpid
-#include <sys/wait.h>
-
-PUBLIC pid_t waitpid(pid, status, options)
-pid_t pid;
-int *status;
-int options;
-{
-  message m;
-
-  m.m1_i1 = pid;
-  m.m1_i2 = options;
-  if (_syscall(MM, WAITPID, &m) < 0) return(-1);
-  if (status != 0) *status = m.m2_i1;
-  return m.m_type;
-}
Index: trunk/minix/lib/posix/_write.c
===================================================================
--- trunk/minix/lib/posix/_write.c	(revision 9)
+++ 	(revision )
@@ -1,16 +1,0 @@
-#include <lib.h>
-#define write	_write
-#include <unistd.h>
-
-PUBLIC ssize_t write(fd, buffer, nbytes)
-int fd;
-_CONST void *buffer;
-size_t nbytes;
-{
-  message m;
-
-  m.m1_i1 = fd;
-  m.m1_i2 = nbytes;
-  m.m1_p1 = (char *) buffer;
-  return(_syscall(FS, WRITE, &m));
-}
Index: trunk/minix/lib/posix/getloadavg.c
===================================================================
--- trunk/minix/lib/posix/getloadavg.c	(revision 9)
+++ 	(revision )
@@ -1,56 +1,0 @@
-
-#include <sys/types.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <lib.h>
-
-/* Retrieve system load average information. */
-int getloadavg(double *loadavg, int nelem)
-{
-  struct loadinfo loadinfo;
-  int h, p, unfilled_ticks;
-#define PERIODS 3
-  int minutes[3] = { 1, 5, 15 };
-  if(nelem < 1) {
-	errno = ENOSPC;
-	return -1;
-  }
-
-  if(getsysinfo(PM_PROC_NR, SI_LOADINFO, &loadinfo) < 0)
-	return -1;
-  if(nelem > PERIODS)
-	nelem = PERIODS;
-
-  /* How many ticks are missing from the newest-filled slot? */
-#define TICKSPERSLOT (_LOAD_UNIT_SECS * HZ)
-  unfilled_ticks = TICKSPERSLOT - (loadinfo.last_clock % TICKSPERSLOT);
-
-  for(p = 0; p < nelem; p++) {
-    int h, offset, slots;
-    double l = 0.0;
-    int latest = loadinfo.proc_last_slot;
-    slots = minutes[p] * 60 / _LOAD_UNIT_SECS;
-
-    /* Add up the total number of process ticks for this number
-     * of minutes (minutes[p]). Start with the newest slot, which
-     * is latest, and count back for the number of slots that 
-     * correspond to the right number of minutes. Take wraparound
-     * into account by calculating the index modulo _LOAD_HISTORY,
-     * which is the number of slots of history kept.
-     */
-    for(h = 0; h < slots; h++) {
-       int slot;
-       slot = (latest - h + _LOAD_HISTORY) % _LOAD_HISTORY;
-       l += (double) loadinfo.proc_load_history[slot];
-    }
-
-    /* The load average over this number of minutes is the number of
-     * process-ticks divided by the number of ticks, not counting the
-     * number of ticks the last slot hasn't been around yet.
-     */
-    loadavg[p] = l / (slots * TICKSPERSLOT - unfilled_ticks);
-  }
-
-  return nelem;
-}
-
Index: trunk/minix/lib/posix/getopt.c
===================================================================
--- trunk/minix/lib/posix/getopt.c	(revision 9)
+++ 	(revision )
@@ -1,105 +1,0 @@
-/*
- * Copyright (c) 1987, 1993, 1994
- *	The Regents of the University of California.  All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- *    must display the following acknowledgement:
- *	This product includes software developed by the University of
- *	California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
- *    may be used to endorse or promote products derived from this software
- *    without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#include <string.h>
-#include <stdio.h>
-
-int	opterr = 1,		/* if error message should be printed */
-	optind = 1,		/* index into parent argv vector */
-	optopt,			/* character checked for validity */
-	optreset;		/* reset getopt */
-char	*optarg;		/* argument associated with option */
-
-#define	BADCH	(int)'?'
-#define	BADARG	(int)':'
-#define	EMSG	""
-
-/*
- * getopt --
- *	Parse argc/argv argument vector.
- */
-int
-getopt(int nargc, char * const nargv[], const char *ostr)
-{
-	static char *place = EMSG;		/* option letter processing */
-	char *oli;				/* option letter list index */
-
-	if (optreset || !*place) {		/* update scanning pointer */
-		optreset = 0;
-		if (optind >= nargc || *(place = nargv[optind]) != '-') {
-			place = EMSG;
-			return (-1);
-		}
-		if (place[1] && *++place == '-') {	/* found "--" */
-			++optind;
-			place = EMSG;
-			return (-1);
-		}
-	}					/* option letter okay? */
-	if ((optopt = (int)*place++) == (int)':' ||
-	    !(oli = strchr(ostr, optopt))) {
-		/*
-		 * if the user didn't specify '-' as an option,
-		 * assume it means -1.
-		 */
-		if (optopt == (int)'-')
-			return (-1);
-		if (!*place)
-			++optind;
-		if (opterr && *ostr != ':')
-			(void)printf("illegal option -- %c\n", optopt);
-		return (BADCH);
-	}
-	if (*++oli != ':') {			/* don't need argument */
-		optarg = NULL;
-		if (!*place)
-			++optind;
-	}
-	else {					/* need an argument */
-		if (*place)			/* no white space */
-			optarg = place;
-		else if (nargc <= ++optind) {	/* no arg */
-			place = EMSG;
-			if (*ostr == ':')
-				return (BADARG);
-			if (opterr)
-				(void)printf("option requires an argument -- %c\n", optopt);
-			return (BADCH);
-		}
-	 	else				/* white space */
-			optarg = nargv[optind];
-		place = EMSG;
-		++optind;
-	}
-	return (optopt);			/* dump back option letter */
-}
Index: trunk/minix/lib/posix/gettimeofday.c
===================================================================
--- trunk/minix/lib/posix/gettimeofday.c	(revision 9)
+++ 	(revision )
@@ -1,21 +1,0 @@
-/*
-gettimeofday.c
-*/
-
-#include <sys/time.h>
-#include <lib.h>
-#include <time.h>
-
-int gettimeofday(struct timeval *_RESTRICT tp, void *_RESTRICT tzp)
-{
-  message m;
-
-  if (_syscall(MM, GETTIMEOFDAY, &m) < 0)
-  	return -1;
-
-  tp->tv_sec = m.m2_l1;
-  tp->tv_usec = m.m2_l2;
-
-  return 0;
-}
-
Index: trunk/minix/lib/posix/priority.c
===================================================================
--- trunk/minix/lib/posix/priority.c	(revision 9)
+++ 	(revision )
@@ -1,46 +1,0 @@
-/*
-priority.c
-*/
-
-#include <errno.h>
-#include <sys/types.h>
-#include <sys/resource.h>
-#include <lib.h>
-#include <unistd.h>
-#include <string.h>
-#include <stddef.h>
-
-
-int getpriority(int which, int who)
-{
-	int v;
-	message m;
-
-	m.m1_i1 = which;
-	m.m1_i2 = who;
-
-	/* GETPRIORITY returns negative for error.
-	 * Otherwise, it returns the priority plus the minimum
-	 * priority, to distiginuish from error. We have to
-	 * correct for this. (The user program has to check errno
-	 * to see if something really went wrong.)
-	 */
-
-	if((v = _syscall(MM, GETPRIORITY, &m)) < 0) {
-		return v;
-	}
-
-	return v + PRIO_MIN;
-}
-
-int setpriority(int which, int who, int prio)
-{
-	message m;
-
-	m.m1_i1 = which;
-	m.m1_i2 = who;
-	m.m1_i3 = prio;
-
-	return _syscall(MM, SETPRIORITY, &m);
-}
-
Index: trunk/minix/lib/posix/usleep.c
===================================================================
--- trunk/minix/lib/posix/usleep.c	(revision 9)
+++ 	(revision )
@@ -1,18 +1,0 @@
-/*
-lib/posix/usleep.c
-*/
-
-#include <unistd.h>
-#include <sys/select.h>
-#include <sys/time.h>
-
-int usleep(useconds_t useconds)
-{
-	int r;
-	struct timeval tv;
-
-	tv.tv_sec= useconds/1000000;
-	tv.tv_usec= useconds % 1000000;
-	r= select(0, NULL, NULL, NULL, &tv);
-	return r;
-}
