From 0d4a25396bb80ec1f6d853596b66d076e504e9cc Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Tue, 25 Jun 2013 01:11:51 +0200 Subject: [PATCH] Move unistd.h functions into their own directory. --- libc/Makefile | 150 ++++++++++++++-------------- libc/{ => termios}/tcgetwinsize.cpp | 2 +- libc/{ => unistd}/_exit.cpp | 2 +- libc/{ => unistd}/access.cpp | 2 +- libc/{ => unistd}/alarm.cpp | 2 +- libc/{ => unistd}/alarmns.cpp | 2 +- libc/{ => unistd}/chdir.cpp | 2 +- libc/{ => unistd}/chown.cpp | 2 +- libc/{ => unistd}/chroot.cpp | 2 +- libc/{ => unistd}/close.cpp | 2 +- libc/{ => unistd}/confstr.cpp | 2 +- libc/{ => unistd}/dup.cpp | 2 +- libc/{ => unistd}/dup2.cpp | 2 +- libc/{ => unistd}/execl.cpp | 2 +- libc/{ => unistd}/execle.cpp | 2 +- libc/{ => unistd}/execlp.cpp | 2 +- libc/{ => unistd}/execv.cpp | 2 +- libc/{ => unistd}/execve.cpp | 2 +- libc/{ => unistd}/execvp.cpp | 2 +- libc/{ => unistd}/execvpe.cpp | 2 +- libc/{ => unistd}/faccessat.cpp | 2 +- libc/{ => unistd}/fchdir.cpp | 2 +- libc/{ => unistd}/fchdirat.cpp | 2 +- libc/{ => unistd}/fchown.cpp | 2 +- libc/{ => unistd}/fchownat.cpp | 2 +- libc/{ => unistd}/fchroot.cpp | 2 +- libc/{ => unistd}/fchrootat.cpp | 2 +- libc/{ => unistd}/fork.cpp | 2 +- libc/{ => unistd}/fsync.cpp | 4 +- libc/{ => unistd}/ftruncate.cpp | 2 +- libc/{ => unistd}/getcwd.cpp | 2 +- libc/{ => unistd}/getdtablesize.cpp | 2 +- libc/{ => unistd}/getegid.cpp | 2 +- libc/{ => unistd}/geteuid.cpp | 2 +- libc/{ => unistd}/getgid.cpp | 2 +- libc/{ => unistd}/gethostname.cpp | 2 +- libc/{ => unistd}/getlogin.cpp | 2 +- libc/{ => unistd}/getlogin_r.cpp | 2 +- libc/{ => unistd}/getpagesize.cpp | 2 +- libc/{ => unistd}/getpgid.cpp | 2 +- libc/{ => unistd}/getpid.cpp | 2 +- libc/{ => unistd}/getppid.cpp | 2 +- libc/{ => unistd}/getuid.cpp | 2 +- libc/{ => unistd}/ioleast.cpp | 2 +- libc/{ => unistd}/isatty.cpp | 2 +- libc/{ => unistd}/lchown.cpp | 2 +- libc/{ => unistd}/link.cpp | 2 +- libc/{ => unistd}/linkat.cpp | 2 +- libc/{ => unistd}/lseek.cpp | 2 +- libc/{ => unistd}/memstat.cpp | 2 +- libc/{ => unistd}/mkpartition.cpp | 2 +- libc/{ => unistd}/pathconf.cpp | 2 +- libc/{ => unistd}/pipe.cpp | 2 +- libc/{ => unistd}/read.cpp | 2 +- libc/{ => unistd}/readlink.cpp | 2 +- libc/{ => unistd}/readlinkat.cpp | 2 +- libc/{ => unistd}/rmdir.cpp | 2 +- libc/{ => unistd}/sbrk.cpp | 2 +- libc/{ => unistd}/setegid.cpp | 2 +- libc/{ => unistd}/seteuid.cpp | 2 +- libc/{ => unistd}/setgid.cpp | 2 +- libc/{ => unistd}/setpgid.cpp | 2 +- libc/{ => unistd}/setuid.cpp | 2 +- libc/{ => unistd}/sfork.cpp | 2 +- libc/{ => unistd}/sleep.cpp | 2 +- libc/{ => unistd}/sysconf.cpp | 2 +- libc/{ => unistd}/tcgetpgrp.cpp | 2 +- libc/{ => unistd}/tcsetpgrp.cpp | 2 +- libc/{ => unistd}/tfork.cpp | 2 +- libc/{ => unistd}/truncate.cpp | 2 +- libc/{ => unistd}/truncateat.cpp | 2 +- libc/{ => unistd}/ttyname.cpp | 2 +- libc/{ => unistd}/unlink.cpp | 2 +- libc/{ => unistd}/unlinkat.cpp | 2 +- libc/{ => unistd}/usleep.cpp | 2 +- libc/{ => unistd}/write.cpp | 2 +- mkinitrd/Makefile | 4 +- 77 files changed, 153 insertions(+), 153 deletions(-) rename libc/{ => termios}/tcgetwinsize.cpp (97%) rename libc/{ => unistd}/_exit.cpp (98%) rename libc/{ => unistd}/access.cpp (98%) rename libc/{ => unistd}/alarm.cpp (98%) rename libc/{ => unistd}/alarmns.cpp (98%) rename libc/{ => unistd}/chdir.cpp (98%) rename libc/{ => unistd}/chown.cpp (98%) rename libc/{ => unistd}/chroot.cpp (98%) rename libc/{ => unistd}/close.cpp (98%) rename libc/{ => unistd}/confstr.cpp (98%) rename libc/{ => unistd}/dup.cpp (98%) rename libc/{ => unistd}/dup2.cpp (98%) rename libc/{ => unistd}/execl.cpp (98%) rename libc/{ => unistd}/execle.cpp (98%) rename libc/{ => unistd}/execlp.cpp (98%) rename libc/{ => unistd}/execv.cpp (98%) rename libc/{ => unistd}/execve.cpp (98%) rename libc/{ => unistd}/execvp.cpp (98%) rename libc/{ => unistd}/execvpe.cpp (99%) rename libc/{ => unistd}/faccessat.cpp (98%) rename libc/{ => unistd}/fchdir.cpp (98%) rename libc/{ => unistd}/fchdirat.cpp (98%) rename libc/{ => unistd}/fchown.cpp (98%) rename libc/{ => unistd}/fchownat.cpp (98%) rename libc/{ => unistd}/fchroot.cpp (98%) rename libc/{ => unistd}/fchrootat.cpp (97%) rename libc/{ => unistd}/fork.cpp (98%) rename libc/{ => unistd}/fsync.cpp (94%) rename libc/{ => unistd}/ftruncate.cpp (97%) rename libc/{ => unistd}/getcwd.cpp (98%) rename libc/{ => unistd}/getdtablesize.cpp (97%) rename libc/{ => unistd}/getegid.cpp (98%) rename libc/{ => unistd}/geteuid.cpp (98%) rename libc/{ => unistd}/getgid.cpp (98%) rename libc/{ => unistd}/gethostname.cpp (98%) rename libc/{ => unistd}/getlogin.cpp (98%) rename libc/{ => unistd}/getlogin_r.cpp (98%) rename libc/{ => unistd}/getpagesize.cpp (97%) rename libc/{ => unistd}/getpgid.cpp (98%) rename libc/{ => unistd}/getpid.cpp (98%) rename libc/{ => unistd}/getppid.cpp (98%) rename libc/{ => unistd}/getuid.cpp (98%) rename libc/{ => unistd}/ioleast.cpp (99%) rename libc/{ => unistd}/isatty.cpp (98%) rename libc/{ => unistd}/lchown.cpp (98%) rename libc/{ => unistd}/link.cpp (98%) rename libc/{ => unistd}/linkat.cpp (98%) rename libc/{ => unistd}/lseek.cpp (98%) rename libc/{ => unistd}/memstat.cpp (98%) rename libc/{ => unistd}/mkpartition.cpp (97%) rename libc/{ => unistd}/pathconf.cpp (98%) rename libc/{ => unistd}/pipe.cpp (98%) rename libc/{ => unistd}/read.cpp (98%) rename libc/{ => unistd}/readlink.cpp (98%) rename libc/{ => unistd}/readlinkat.cpp (98%) rename libc/{ => unistd}/rmdir.cpp (98%) rename libc/{ => unistd}/sbrk.cpp (98%) rename libc/{ => unistd}/setegid.cpp (98%) rename libc/{ => unistd}/seteuid.cpp (98%) rename libc/{ => unistd}/setgid.cpp (98%) rename libc/{ => unistd}/setpgid.cpp (98%) rename libc/{ => unistd}/setuid.cpp (98%) rename libc/{ => unistd}/sfork.cpp (98%) rename libc/{ => unistd}/sleep.cpp (98%) rename libc/{ => unistd}/sysconf.cpp (98%) rename libc/{ => unistd}/tcgetpgrp.cpp (97%) rename libc/{ => unistd}/tcsetpgrp.cpp (97%) rename libc/{ => unistd}/tfork.cpp (98%) rename libc/{ => unistd}/truncate.cpp (98%) rename libc/{ => unistd}/truncateat.cpp (98%) rename libc/{ => unistd}/ttyname.cpp (97%) rename libc/{ => unistd}/unlink.cpp (98%) rename libc/{ => unistd}/unlinkat.cpp (98%) rename libc/{ => unistd}/usleep.cpp (98%) rename libc/{ => unistd}/write.cpp (98%) diff --git a/libc/Makefile b/libc/Makefile index a6facffb..920a12fc 100644 --- a/libc/Makefile +++ b/libc/Makefile @@ -161,20 +161,12 @@ wchar/wcstok.o \ wctype/wctype.o \ HOSTEDOBJS=\ -access.o \ -alarmns.o \ -alarm.o \ arpa/inet/inet_addr.o \ arpa/inet/inet_ntoa.o \ arpa/inet/inet_ntop.o \ arpa/inet/inet_pton.o \ calltrace.o \ -chdir.o \ chmod.o \ -chown.o \ -chroot.o \ -close.o \ -confstr.o \ $(CPUDIR)/calltrace.o \ $(CPUDIR)/fork.o \ $(CPUDIR)/setjmp.o \ @@ -184,26 +176,9 @@ dirent/fddir-sortix.o \ dirent/scandir.o \ dispmsg_issue.o \ dlfcn.o \ -dup2.o \ -dup.o \ errorprint.o \ -execle.o \ -execl.o \ -execlp.o \ -execve.o \ -execv.o \ -execvpe.o \ -execvp.o \ -_exit.o \ -faccessat.o \ -fchdirat.o \ -fchdir.o \ fchmodat.o \ fchmod.o \ -fchownat.o \ -fchown.o \ -fchrootat.o \ -fchroot.o \ fcloseall.o \ fcntl/creat.o \ fcntl/fcntl.o \ @@ -212,7 +187,6 @@ fcntl/open.o \ fdio.o \ fgetpos.o \ fileno.o \ -fork.o \ fpipe.o \ freopen.o \ fsetpos.o \ @@ -226,43 +200,20 @@ fsmarshall/fsm_recv.o \ fsmarshall/fsm_send.o \ fstatat.o \ fstat.o \ -fsync.o \ -ftruncate.o \ futimens.o \ getc.o \ -getcwd.o \ -getdtablesize.o \ -getegid.o \ -geteuid.o \ -getgid.o \ -gethostname.o \ -getlogin.o \ -getlogin_r.o \ -getpagesize.o \ -getpgid.o \ -getpid.o \ -getppid.o \ gettermmode.o \ -getuid.o \ grp/grent.o \ init.o \ ioctl.o \ -ioleast.o \ -isatty.o \ kernelinfo.o \ -lchown.o \ libgen/basename.o \ libgen/dirname.o \ -linkat.o \ -link.o \ locale/localeconv.o \ locale/setlocale.o \ -lseek.o \ lstat.o \ -memstat.o \ mkdirat.o \ mkdir.o \ -mkpartition.o \ netdb/endhostent.o \ netdb/endnetent.o \ netdb/endprotoent.o \ @@ -285,8 +236,6 @@ netdb/sethostent.o \ netdb/setnetent.o \ netdb/setprotoent.o \ netdb/setservent.o \ -pathconf.o \ -pipe.o \ poll/poll.o \ poll/ppoll.o \ popen.o \ @@ -296,25 +245,14 @@ putc.o \ pwd/pwent.o \ pwritev.o \ readdirents.o \ -readlinkat.o \ -readlink.o \ -read.o \ readv.o \ removeat.o \ remove.o \ renameat.o \ rename.o \ -rmdir.o \ -sbrk.o \ scanf.o \ select.o \ -setegid.o \ -seteuid.o \ -setgid.o \ -setpgid.o \ settermmode.o \ -setuid.o \ -sfork.o \ signal/kill.o \ signal/psignal.o \ signal/raise.o \ @@ -324,7 +262,6 @@ signal/SIG_ERR.o \ signal/SIG_IGN.o \ signal/signal.o \ signal/sigprocmask.o \ -sleep.o \ stat.o \ stdio.o \ stdlib/canonicalize_file_name_at.o \ @@ -337,7 +274,6 @@ stdlib/on_exit.o \ stdlib/rand.o \ stdlib/realpath.o \ stdlib/system.o \ -sysconf.o \ sys/socket/accept4.o \ sys/socket/accept.o \ sys/socket/bind.o \ @@ -358,10 +294,7 @@ sys/socket/sockatmark.o \ sys/socket/socket.o \ sys/socket/socketpair.o \ sys/time/gettimeofday.o \ -tcgetpgrp.o \ -tcgetwinsize.o \ -tcsetpgrp.o \ -tfork.o \ +termios/tcgetwinsize.o \ time/clock_getres.o \ time/clock_gettime.o \ time/clock_gettimeres.o \ @@ -385,20 +318,87 @@ time/timer_settime.o \ time/times.o \ tmpfile.o \ tmpnam.o \ -truncateat.o \ -truncate.o \ -ttyname.o \ umask.o \ -unlinkat.o \ -unlink.o \ -usleep.o \ +unistd/access.o \ +unistd/alarmns.o \ +unistd/alarm.o \ +unistd/chdir.o \ +unistd/chown.o \ +unistd/chroot.o \ +unistd/close.o \ +unistd/confstr.o \ +unistd/dup2.o \ +unistd/dup.o \ +unistd/execle.o \ +unistd/execl.o \ +unistd/execlp.o \ +unistd/execve.o \ +unistd/execv.o \ +unistd/execvpe.o \ +unistd/execvp.o \ +unistd/_exit.o \ +unistd/faccessat.o \ +unistd/fchdirat.o \ +unistd/fchdir.o \ +unistd/fchownat.o \ +unistd/fchown.o \ +unistd/fchrootat.o \ +unistd/fchroot.o \ +unistd/fork.o \ +unistd/fsync.o \ +unistd/ftruncate.o \ +unistd/getcwd.o \ +unistd/getdtablesize.o \ +unistd/getegid.o \ +unistd/geteuid.o \ +unistd/getgid.o \ +unistd/gethostname.o \ +unistd/getlogin.o \ +unistd/getlogin_r.o \ +unistd/getpagesize.o \ +unistd/getpgid.o \ +unistd/getpid.o \ +unistd/getppid.o \ +unistd/getuid.o \ +unistd/ioleast.o \ +unistd/isatty.o \ +unistd/lchown.o \ +unistd/linkat.o \ +unistd/link.o \ +unistd/lseek.o \ +unistd/memstat.o \ +unistd/mkpartition.o \ +unistd/pathconf.o \ +unistd/pipe.o \ +unistd/readlinkat.o \ +unistd/readlink.o \ +unistd/read.o \ +unistd/rmdir.o \ +unistd/sbrk.o \ +unistd/setegid.o \ +unistd/seteuid.o \ +unistd/setgid.o \ +unistd/setpgid.o \ +unistd/setuid.o \ +unistd/sfork.o \ +unistd/sleep.o \ +unistd/sysconf.o \ +unistd/tcgetpgrp.o \ +unistd/tcsetpgrp.o \ +unistd/tfork.o \ +unistd/truncateat.o \ +unistd/truncate.o \ +unistd/ttyname.o \ +unistd/unlinkat.o \ +unistd/unlink.o \ +unistd/usleep.o \ +unistd/write.o \ utimensat.o \ utimens.o \ utime.o \ vscanf.o \ wait.o \ waitpid.o \ -write.o \ writev.o \ OBJS=\ diff --git a/libc/tcgetwinsize.cpp b/libc/termios/tcgetwinsize.cpp similarity index 97% rename from libc/tcgetwinsize.cpp rename to libc/termios/tcgetwinsize.cpp index 5e37354a..ac574047 100644 --- a/libc/tcgetwinsize.cpp +++ b/libc/termios/tcgetwinsize.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - tcgetwinsize.cpp + termios/tcgetwinsize.cpp Access to terminal resolution. *******************************************************************************/ diff --git a/libc/_exit.cpp b/libc/unistd/_exit.cpp similarity index 98% rename from libc/_exit.cpp rename to libc/unistd/_exit.cpp index b8c56bb6..09eef7da 100644 --- a/libc/_exit.cpp +++ b/libc/unistd/_exit.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - _exit.cpp + unistd/_exit.cpp Terminates the current process. *******************************************************************************/ diff --git a/libc/access.cpp b/libc/unistd/access.cpp similarity index 98% rename from libc/access.cpp rename to libc/unistd/access.cpp index ccdbed51..15a7b390 100644 --- a/libc/access.cpp +++ b/libc/unistd/access.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - access.cpp + unistd/access.cpp Check real user's permissions for a file *******************************************************************************/ diff --git a/libc/alarm.cpp b/libc/unistd/alarm.cpp similarity index 98% rename from libc/alarm.cpp rename to libc/unistd/alarm.cpp index ad41f115..9f428fe2 100644 --- a/libc/alarm.cpp +++ b/libc/unistd/alarm.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - alarm.cpp + unistd/alarm.cpp Set an alarm clock for delivery of a signal. *******************************************************************************/ diff --git a/libc/alarmns.cpp b/libc/unistd/alarmns.cpp similarity index 98% rename from libc/alarmns.cpp rename to libc/unistd/alarmns.cpp index 8ded14f5..9b967816 100644 --- a/libc/alarmns.cpp +++ b/libc/unistd/alarmns.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - alarmns.cpp + unistd/alarmns.cpp Set an alarm clock for delivery of a signal. *******************************************************************************/ diff --git a/libc/chdir.cpp b/libc/unistd/chdir.cpp similarity index 98% rename from libc/chdir.cpp rename to libc/unistd/chdir.cpp index cd04d605..0306d096 100644 --- a/libc/chdir.cpp +++ b/libc/unistd/chdir.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - chdir.cpp + unistd/chdir.cpp Changes the current working directory. *******************************************************************************/ diff --git a/libc/chown.cpp b/libc/unistd/chown.cpp similarity index 98% rename from libc/chown.cpp rename to libc/unistd/chown.cpp index 68fe342a..c19a4692 100644 --- a/libc/chown.cpp +++ b/libc/unistd/chown.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - chown.cpp + unistd/chown.cpp Changes the owner and group of a file. *******************************************************************************/ diff --git a/libc/chroot.cpp b/libc/unistd/chroot.cpp similarity index 98% rename from libc/chroot.cpp rename to libc/unistd/chroot.cpp index 98230afc..767104f8 100644 --- a/libc/chroot.cpp +++ b/libc/unistd/chroot.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - chroot.cpp + unistd/chroot.cpp Changes the root directory. *******************************************************************************/ diff --git a/libc/close.cpp b/libc/unistd/close.cpp similarity index 98% rename from libc/close.cpp rename to libc/unistd/close.cpp index 501f26a1..3562c6aa 100644 --- a/libc/close.cpp +++ b/libc/unistd/close.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - close.cpp + unistd/close.cpp Closes a file descriptor. *******************************************************************************/ diff --git a/libc/confstr.cpp b/libc/unistd/confstr.cpp similarity index 98% rename from libc/confstr.cpp rename to libc/unistd/confstr.cpp index 57eab171..3c465383 100644 --- a/libc/confstr.cpp +++ b/libc/unistd/confstr.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - confstr.cpp + unistd/confstr.cpp Get configurable string variables. *******************************************************************************/ diff --git a/libc/dup.cpp b/libc/unistd/dup.cpp similarity index 98% rename from libc/dup.cpp rename to libc/unistd/dup.cpp index 070380f4..3040a84f 100644 --- a/libc/dup.cpp +++ b/libc/unistd/dup.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - dup.cpp + unistd/dup.cpp Duplicates a file descriptor. *******************************************************************************/ diff --git a/libc/dup2.cpp b/libc/unistd/dup2.cpp similarity index 98% rename from libc/dup2.cpp rename to libc/unistd/dup2.cpp index 6c9264ec..73800f1b 100644 --- a/libc/dup2.cpp +++ b/libc/unistd/dup2.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - dup2.cpp + unistd/dup2.cpp Duplicates a file descriptor. *******************************************************************************/ diff --git a/libc/execl.cpp b/libc/unistd/execl.cpp similarity index 98% rename from libc/execl.cpp rename to libc/unistd/execl.cpp index 5a6b8e32..40f09dba 100644 --- a/libc/execl.cpp +++ b/libc/unistd/execl.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - execl.cpp + unistd/execl.cpp Loads a process image. *******************************************************************************/ diff --git a/libc/execle.cpp b/libc/unistd/execle.cpp similarity index 98% rename from libc/execle.cpp rename to libc/unistd/execle.cpp index 24f39bd8..791b163f 100644 --- a/libc/execle.cpp +++ b/libc/unistd/execle.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - execle.cpp + unistd/execle.cpp Loads a process image. *******************************************************************************/ diff --git a/libc/execlp.cpp b/libc/unistd/execlp.cpp similarity index 98% rename from libc/execlp.cpp rename to libc/unistd/execlp.cpp index 30f883dc..791340d1 100644 --- a/libc/execlp.cpp +++ b/libc/unistd/execlp.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - execlp.cpp + unistd/execlp.cpp Loads a process image. *******************************************************************************/ diff --git a/libc/execv.cpp b/libc/unistd/execv.cpp similarity index 98% rename from libc/execv.cpp rename to libc/unistd/execv.cpp index bb7b62b2..69d08ce8 100644 --- a/libc/execv.cpp +++ b/libc/unistd/execv.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - execv.cpp + unistd/execv.cpp Loads a process image. *******************************************************************************/ diff --git a/libc/execve.cpp b/libc/unistd/execve.cpp similarity index 98% rename from libc/execve.cpp rename to libc/unistd/execve.cpp index 55d890d3..49759061 100644 --- a/libc/execve.cpp +++ b/libc/unistd/execve.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - execve.cpp + unistd/execve.cpp Loads a process image. *******************************************************************************/ diff --git a/libc/execvp.cpp b/libc/unistd/execvp.cpp similarity index 98% rename from libc/execvp.cpp rename to libc/unistd/execvp.cpp index 4248924f..b7e19e97 100644 --- a/libc/execvp.cpp +++ b/libc/unistd/execvp.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - execvp.cpp + unistd/execvp.cpp Loads a process image. *******************************************************************************/ diff --git a/libc/execvpe.cpp b/libc/unistd/execvpe.cpp similarity index 99% rename from libc/execvpe.cpp rename to libc/unistd/execvpe.cpp index 52ad7e79..4c696382 100644 --- a/libc/execvpe.cpp +++ b/libc/unistd/execvpe.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - execvpe.cpp + unistd/execvpe.cpp Loads a process image. *******************************************************************************/ diff --git a/libc/faccessat.cpp b/libc/unistd/faccessat.cpp similarity index 98% rename from libc/faccessat.cpp rename to libc/unistd/faccessat.cpp index 6d2803b6..6110a156 100644 --- a/libc/faccessat.cpp +++ b/libc/unistd/faccessat.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - faccessat.cpp + unistd/faccessat.cpp Check real user's permissions for a file *******************************************************************************/ diff --git a/libc/fchdir.cpp b/libc/unistd/fchdir.cpp similarity index 98% rename from libc/fchdir.cpp rename to libc/unistd/fchdir.cpp index a516feb4..802c3c8d 100644 --- a/libc/fchdir.cpp +++ b/libc/unistd/fchdir.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - fchdir.cpp + unistd/fchdir.cpp Changes the current working directory. *******************************************************************************/ diff --git a/libc/fchdirat.cpp b/libc/unistd/fchdirat.cpp similarity index 98% rename from libc/fchdirat.cpp rename to libc/unistd/fchdirat.cpp index bf4e2b5a..2c35fd17 100644 --- a/libc/fchdirat.cpp +++ b/libc/unistd/fchdirat.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - fchdirat.cpp + unistd/fchdirat.cpp Changes the current working directory. *******************************************************************************/ diff --git a/libc/fchown.cpp b/libc/unistd/fchown.cpp similarity index 98% rename from libc/fchown.cpp rename to libc/unistd/fchown.cpp index b4344c82..d8af8365 100644 --- a/libc/fchown.cpp +++ b/libc/unistd/fchown.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - fchown.cpp + unistd/fchown.cpp Changes the owner and group of a file. *******************************************************************************/ diff --git a/libc/fchownat.cpp b/libc/unistd/fchownat.cpp similarity index 98% rename from libc/fchownat.cpp rename to libc/unistd/fchownat.cpp index 3608e0a6..ad34cb5f 100644 --- a/libc/fchownat.cpp +++ b/libc/unistd/fchownat.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - fchownat.cpp + unistd/fchownat.cpp Changes the owner and group of a file. *******************************************************************************/ diff --git a/libc/fchroot.cpp b/libc/unistd/fchroot.cpp similarity index 98% rename from libc/fchroot.cpp rename to libc/unistd/fchroot.cpp index d463168e..e4e5f74e 100644 --- a/libc/fchroot.cpp +++ b/libc/unistd/fchroot.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - fchroot.cpp + unistd/fchroot.cpp Changes the root directory. *******************************************************************************/ diff --git a/libc/fchrootat.cpp b/libc/unistd/fchrootat.cpp similarity index 97% rename from libc/fchrootat.cpp rename to libc/unistd/fchrootat.cpp index bd24c588..461e4a90 100644 --- a/libc/fchrootat.cpp +++ b/libc/unistd/fchrootat.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - fchrootat.cpp + unistd/fchrootat.cpp Changes the root directory. *******************************************************************************/ diff --git a/libc/fork.cpp b/libc/unistd/fork.cpp similarity index 98% rename from libc/fork.cpp rename to libc/unistd/fork.cpp index f1c15620..4d44f073 100644 --- a/libc/fork.cpp +++ b/libc/unistd/fork.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - fork.cpp + unistd/fork.cpp Create a new task inheriting some properties from the current task. *******************************************************************************/ diff --git a/libc/fsync.cpp b/libc/unistd/fsync.cpp similarity index 94% rename from libc/fsync.cpp rename to libc/unistd/fsync.cpp index 6f3972d4..455e5e23 100644 --- a/libc/fsync.cpp +++ b/libc/unistd/fsync.cpp @@ -17,8 +17,8 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - fsync.cpp - Open a file relative to directory. + unistd/fsync.cpp + Flushes a file to its backing storage. *******************************************************************************/ diff --git a/libc/ftruncate.cpp b/libc/unistd/ftruncate.cpp similarity index 97% rename from libc/ftruncate.cpp rename to libc/unistd/ftruncate.cpp index 1c1c75df..28b096d1 100644 --- a/libc/ftruncate.cpp +++ b/libc/unistd/ftruncate.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - ftruncate.cpp + unistd/ftruncate.cpp Truncates an open file to a specific size. *******************************************************************************/ diff --git a/libc/getcwd.cpp b/libc/unistd/getcwd.cpp similarity index 98% rename from libc/getcwd.cpp rename to libc/unistd/getcwd.cpp index 203bb4c6..03f04e14 100644 --- a/libc/getcwd.cpp +++ b/libc/unistd/getcwd.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - getcwd.cpp + unistd/getcwd.cpp Returns the current working directory. *******************************************************************************/ diff --git a/libc/getdtablesize.cpp b/libc/unistd/getdtablesize.cpp similarity index 97% rename from libc/getdtablesize.cpp rename to libc/unistd/getdtablesize.cpp index 5d8d283a..6c517105 100644 --- a/libc/getdtablesize.cpp +++ b/libc/unistd/getdtablesize.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - getdtablesize.cpp + unistd/getdtablesize.cpp Get descriptor table size. *******************************************************************************/ diff --git a/libc/getegid.cpp b/libc/unistd/getegid.cpp similarity index 98% rename from libc/getegid.cpp rename to libc/unistd/getegid.cpp index f41cc53e..0065a95a 100644 --- a/libc/getegid.cpp +++ b/libc/unistd/getegid.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - getegid.cpp + unistd/getegid.cpp Get effective group id. *******************************************************************************/ diff --git a/libc/geteuid.cpp b/libc/unistd/geteuid.cpp similarity index 98% rename from libc/geteuid.cpp rename to libc/unistd/geteuid.cpp index 3cad8706..f59b5b76 100644 --- a/libc/geteuid.cpp +++ b/libc/unistd/geteuid.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - geteuid.cpp + unistd/geteuid.cpp Get effective user id. *******************************************************************************/ diff --git a/libc/getgid.cpp b/libc/unistd/getgid.cpp similarity index 98% rename from libc/getgid.cpp rename to libc/unistd/getgid.cpp index 24505ab6..a964bf58 100644 --- a/libc/getgid.cpp +++ b/libc/unistd/getgid.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - getgid.cpp + unistd/getgid.cpp Get current group id. *******************************************************************************/ diff --git a/libc/gethostname.cpp b/libc/unistd/gethostname.cpp similarity index 98% rename from libc/gethostname.cpp rename to libc/unistd/gethostname.cpp index 58a550ca..9f756d81 100644 --- a/libc/gethostname.cpp +++ b/libc/unistd/gethostname.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - gethostname.cpp + unistd/gethostname.cpp Get the hostname. *******************************************************************************/ diff --git a/libc/getlogin.cpp b/libc/unistd/getlogin.cpp similarity index 98% rename from libc/getlogin.cpp rename to libc/unistd/getlogin.cpp index b1e88213..73f4298f 100644 --- a/libc/getlogin.cpp +++ b/libc/unistd/getlogin.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - getlogin.cpp + unistd/getlogin.cpp Get name of user logged in at the controlling terminal. *******************************************************************************/ diff --git a/libc/getlogin_r.cpp b/libc/unistd/getlogin_r.cpp similarity index 98% rename from libc/getlogin_r.cpp rename to libc/unistd/getlogin_r.cpp index 55675280..d4ed5224 100644 --- a/libc/getlogin_r.cpp +++ b/libc/unistd/getlogin_r.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - getlogin_r.cpp + unistd/getlogin_r.cpp Get name of user logged ina t the controlling terminal. *******************************************************************************/ diff --git a/libc/getpagesize.cpp b/libc/unistd/getpagesize.cpp similarity index 97% rename from libc/getpagesize.cpp rename to libc/unistd/getpagesize.cpp index 7406e9e1..32203fe6 100644 --- a/libc/getpagesize.cpp +++ b/libc/unistd/getpagesize.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - getpagesize.cpp + unistd/getpagesize.cpp Returns the size of virtual memory pages. *******************************************************************************/ diff --git a/libc/getpgid.cpp b/libc/unistd/getpgid.cpp similarity index 98% rename from libc/getpgid.cpp rename to libc/unistd/getpgid.cpp index 714c7dc5..8935c2dc 100644 --- a/libc/getpgid.cpp +++ b/libc/unistd/getpgid.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - getpgid.cpp + unistd/getpgid.cpp Get the process group of a process. *******************************************************************************/ diff --git a/libc/getpid.cpp b/libc/unistd/getpid.cpp similarity index 98% rename from libc/getpid.cpp rename to libc/unistd/getpid.cpp index 4d7e965d..f57175b4 100644 --- a/libc/getpid.cpp +++ b/libc/unistd/getpid.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - getpid.cpp + unistd/getpid.cpp Get current process id. *******************************************************************************/ diff --git a/libc/getppid.cpp b/libc/unistd/getppid.cpp similarity index 98% rename from libc/getppid.cpp rename to libc/unistd/getppid.cpp index b2eb1c41..334771ac 100644 --- a/libc/getppid.cpp +++ b/libc/unistd/getppid.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - getppid.cpp + unistd/getppid.cpp Get parent process id. *******************************************************************************/ diff --git a/libc/getuid.cpp b/libc/unistd/getuid.cpp similarity index 98% rename from libc/getuid.cpp rename to libc/unistd/getuid.cpp index 6a532e54..f85f520b 100644 --- a/libc/getuid.cpp +++ b/libc/unistd/getuid.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - getuid.cpp + unistd/getuid.cpp Get current user id. *******************************************************************************/ diff --git a/libc/ioleast.cpp b/libc/unistd/ioleast.cpp similarity index 99% rename from libc/ioleast.cpp rename to libc/unistd/ioleast.cpp index a17a193e..7f1835b9 100644 --- a/libc/ioleast.cpp +++ b/libc/unistd/ioleast.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - ioleast.cpp + unistd/ioleast.cpp Versions of {,p}{read,write} that don't return until it has returned as much data as requested, end of file, or an error occurs. This is sometimes needed as read(2) and write(2) is not always guaranteed to fill up the entire diff --git a/libc/isatty.cpp b/libc/unistd/isatty.cpp similarity index 98% rename from libc/isatty.cpp rename to libc/unistd/isatty.cpp index 8a86d848..32f27d59 100644 --- a/libc/isatty.cpp +++ b/libc/unistd/isatty.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - isatty.cpp + unistd/isatty.cpp Queries whether a file descriptor is associated with a terminal. *******************************************************************************/ diff --git a/libc/lchown.cpp b/libc/unistd/lchown.cpp similarity index 98% rename from libc/lchown.cpp rename to libc/unistd/lchown.cpp index 01014731..13dfa0be 100644 --- a/libc/lchown.cpp +++ b/libc/unistd/lchown.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - lchown.cpp + unistd/lchown.cpp Changes the owner and group of a file. *******************************************************************************/ diff --git a/libc/link.cpp b/libc/unistd/link.cpp similarity index 98% rename from libc/link.cpp rename to libc/unistd/link.cpp index 196f0fff..d9930c18 100644 --- a/libc/link.cpp +++ b/libc/unistd/link.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - link.cpp + unistd/link.cpp Give a new name to a file. *******************************************************************************/ diff --git a/libc/linkat.cpp b/libc/unistd/linkat.cpp similarity index 98% rename from libc/linkat.cpp rename to libc/unistd/linkat.cpp index e55568b7..d232ae92 100644 --- a/libc/linkat.cpp +++ b/libc/unistd/linkat.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - linkat.cpp + unistd/linkat.cpp Give a new name to a file. *******************************************************************************/ diff --git a/libc/lseek.cpp b/libc/unistd/lseek.cpp similarity index 98% rename from libc/lseek.cpp rename to libc/unistd/lseek.cpp index 7db6fda2..0e2a63ac 100644 --- a/libc/lseek.cpp +++ b/libc/unistd/lseek.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - lseek.cpp + unistd/lseek.cpp Sets the offset on a file descriptor. *******************************************************************************/ diff --git a/libc/memstat.cpp b/libc/unistd/memstat.cpp similarity index 98% rename from libc/memstat.cpp rename to libc/unistd/memstat.cpp index 4163f9ec..ba049c45 100644 --- a/libc/memstat.cpp +++ b/libc/unistd/memstat.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - memstat.cpp + unistd/memstat.cpp Retrieves memory statistics. *******************************************************************************/ diff --git a/libc/mkpartition.cpp b/libc/unistd/mkpartition.cpp similarity index 97% rename from libc/mkpartition.cpp rename to libc/unistd/mkpartition.cpp index 83497316..fb2fdc31 100644 --- a/libc/mkpartition.cpp +++ b/libc/unistd/mkpartition.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - mkpartition.cpp + unistd/mkpartition.cpp Creates a block device representating a partition of another block device. *******************************************************************************/ diff --git a/libc/pathconf.cpp b/libc/unistd/pathconf.cpp similarity index 98% rename from libc/pathconf.cpp rename to libc/unistd/pathconf.cpp index 06a3d669..a89f9209 100644 --- a/libc/pathconf.cpp +++ b/libc/unistd/pathconf.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - pathconf.cpp + unistd/pathconf.cpp Get configurable pathname variables. *******************************************************************************/ diff --git a/libc/pipe.cpp b/libc/unistd/pipe.cpp similarity index 98% rename from libc/pipe.cpp rename to libc/unistd/pipe.cpp index 00f69c1d..18b65d91 100644 --- a/libc/pipe.cpp +++ b/libc/unistd/pipe.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - pipe.cpp + unistd/pipe.cpp Creates a pair of file descriptors with a reading and writing end. *******************************************************************************/ diff --git a/libc/read.cpp b/libc/unistd/read.cpp similarity index 98% rename from libc/read.cpp rename to libc/unistd/read.cpp index 41a47f38..96abc31b 100644 --- a/libc/read.cpp +++ b/libc/unistd/read.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - read.cpp + unistd/read.cpp Reads from a file descriptor. *******************************************************************************/ diff --git a/libc/readlink.cpp b/libc/unistd/readlink.cpp similarity index 98% rename from libc/readlink.cpp rename to libc/unistd/readlink.cpp index da193b25..1ad64487 100644 --- a/libc/readlink.cpp +++ b/libc/unistd/readlink.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - readlink.cpp + unistd/readlink.cpp Read contents of symbolic link. *******************************************************************************/ diff --git a/libc/readlinkat.cpp b/libc/unistd/readlinkat.cpp similarity index 98% rename from libc/readlinkat.cpp rename to libc/unistd/readlinkat.cpp index b7ecdcab..939d1391 100644 --- a/libc/readlinkat.cpp +++ b/libc/unistd/readlinkat.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - readlinkat.cpp + unistd/readlinkat.cpp Read contents of symbolic link. *******************************************************************************/ diff --git a/libc/rmdir.cpp b/libc/unistd/rmdir.cpp similarity index 98% rename from libc/rmdir.cpp rename to libc/unistd/rmdir.cpp index 7f53f37d..076880b0 100644 --- a/libc/rmdir.cpp +++ b/libc/unistd/rmdir.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - rmdir.cpp + unistd/rmdir.cpp Removes an empty directory. *******************************************************************************/ diff --git a/libc/sbrk.cpp b/libc/unistd/sbrk.cpp similarity index 98% rename from libc/sbrk.cpp rename to libc/unistd/sbrk.cpp index 63afa4a2..60db768d 100644 --- a/libc/sbrk.cpp +++ b/libc/unistd/sbrk.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - sbrk.cpp + unistd/sbrk.cpp Controls the size of the data segment. *******************************************************************************/ diff --git a/libc/setegid.cpp b/libc/unistd/setegid.cpp similarity index 98% rename from libc/setegid.cpp rename to libc/unistd/setegid.cpp index 3d06fdd1..73433de0 100644 --- a/libc/setegid.cpp +++ b/libc/unistd/setegid.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - setegid.cpp + unistd/setegid.cpp Set effective group id. *******************************************************************************/ diff --git a/libc/seteuid.cpp b/libc/unistd/seteuid.cpp similarity index 98% rename from libc/seteuid.cpp rename to libc/unistd/seteuid.cpp index 08b0f1a4..715c965b 100644 --- a/libc/seteuid.cpp +++ b/libc/unistd/seteuid.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - seteuid.cpp + unistd/seteuid.cpp Set effective user id. *******************************************************************************/ diff --git a/libc/setgid.cpp b/libc/unistd/setgid.cpp similarity index 98% rename from libc/setgid.cpp rename to libc/unistd/setgid.cpp index 1ad3f351..e21ff680 100644 --- a/libc/setgid.cpp +++ b/libc/unistd/setgid.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - setgid.cpp + unistd/setgid.cpp Set current group id. *******************************************************************************/ diff --git a/libc/setpgid.cpp b/libc/unistd/setpgid.cpp similarity index 98% rename from libc/setpgid.cpp rename to libc/unistd/setpgid.cpp index ae863904..72f9dbf7 100644 --- a/libc/setpgid.cpp +++ b/libc/unistd/setpgid.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - setpgid.cpp + unistd/setpgid.cpp Change the process group of a process. *******************************************************************************/ diff --git a/libc/setuid.cpp b/libc/unistd/setuid.cpp similarity index 98% rename from libc/setuid.cpp rename to libc/unistd/setuid.cpp index ff1d369e..c7051b58 100644 --- a/libc/setuid.cpp +++ b/libc/unistd/setuid.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - setuid.cpp + unistd/setuid.cpp Set user id. *******************************************************************************/ diff --git a/libc/sfork.cpp b/libc/unistd/sfork.cpp similarity index 98% rename from libc/sfork.cpp rename to libc/unistd/sfork.cpp index 4701e19c..c8615377 100644 --- a/libc/sfork.cpp +++ b/libc/unistd/sfork.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - sfork.cpp + unistd/sfork.cpp Create a new task inheriting some properties from the current task. *******************************************************************************/ diff --git a/libc/sleep.cpp b/libc/unistd/sleep.cpp similarity index 98% rename from libc/sleep.cpp rename to libc/unistd/sleep.cpp index 2034dd57..319719b4 100644 --- a/libc/sleep.cpp +++ b/libc/unistd/sleep.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - sleep.cpp + unistd/sleep.cpp Blocks the current thread for for at least N seconds. *******************************************************************************/ diff --git a/libc/sysconf.cpp b/libc/unistd/sysconf.cpp similarity index 98% rename from libc/sysconf.cpp rename to libc/unistd/sysconf.cpp index ecb86816..5212810f 100644 --- a/libc/sysconf.cpp +++ b/libc/unistd/sysconf.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - sysconf.cpp + unistd/sysconf.cpp Get configuration information at runtime. *******************************************************************************/ diff --git a/libc/tcgetpgrp.cpp b/libc/unistd/tcgetpgrp.cpp similarity index 97% rename from libc/tcgetpgrp.cpp rename to libc/unistd/tcgetpgrp.cpp index 47da799b..e7a116ff 100644 --- a/libc/tcgetpgrp.cpp +++ b/libc/unistd/tcgetpgrp.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - tcgetpgrp.cpp + unistd/tcgetpgrp.cpp Get the foreground process group of a terminal. *******************************************************************************/ diff --git a/libc/tcsetpgrp.cpp b/libc/unistd/tcsetpgrp.cpp similarity index 97% rename from libc/tcsetpgrp.cpp rename to libc/unistd/tcsetpgrp.cpp index ad529778..a5c8401c 100644 --- a/libc/tcsetpgrp.cpp +++ b/libc/unistd/tcsetpgrp.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - tcsetpgrp.cpp + unistd/tcsetpgrp.cpp set the foreground process group of a terminal. *******************************************************************************/ diff --git a/libc/tfork.cpp b/libc/unistd/tfork.cpp similarity index 98% rename from libc/tfork.cpp rename to libc/unistd/tfork.cpp index 53a3f3da..5723ea95 100644 --- a/libc/tfork.cpp +++ b/libc/unistd/tfork.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - tfork.cpp + unistd/tfork.cpp Create a new task inheriting some properties from the current task. *******************************************************************************/ diff --git a/libc/truncate.cpp b/libc/unistd/truncate.cpp similarity index 98% rename from libc/truncate.cpp rename to libc/unistd/truncate.cpp index a986d692..488ef1ba 100644 --- a/libc/truncate.cpp +++ b/libc/unistd/truncate.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - truncate.cpp + unistd/truncate.cpp Truncates a file to a specific size. *******************************************************************************/ diff --git a/libc/truncateat.cpp b/libc/unistd/truncateat.cpp similarity index 98% rename from libc/truncateat.cpp rename to libc/unistd/truncateat.cpp index c65b447e..a7434200 100644 --- a/libc/truncateat.cpp +++ b/libc/unistd/truncateat.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - truncateat.cpp + unistd/truncateat.cpp Truncates a file to a specific size. *******************************************************************************/ diff --git a/libc/ttyname.cpp b/libc/unistd/ttyname.cpp similarity index 97% rename from libc/ttyname.cpp rename to libc/unistd/ttyname.cpp index 6b76603e..13f4c86a 100644 --- a/libc/ttyname.cpp +++ b/libc/unistd/ttyname.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - ttyname.cpp + unistd/ttyname.cpp Returns the name of a terminal. *******************************************************************************/ diff --git a/libc/unlink.cpp b/libc/unistd/unlink.cpp similarity index 98% rename from libc/unlink.cpp rename to libc/unistd/unlink.cpp index 7f9ddd4c..dadf9f40 100644 --- a/libc/unlink.cpp +++ b/libc/unistd/unlink.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - unlink.cpp + unistd/unlink.cpp Removes a directory entry. *******************************************************************************/ diff --git a/libc/unlinkat.cpp b/libc/unistd/unlinkat.cpp similarity index 98% rename from libc/unlinkat.cpp rename to libc/unistd/unlinkat.cpp index d0f76e80..b9289530 100644 --- a/libc/unlinkat.cpp +++ b/libc/unistd/unlinkat.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - unlinkat.cpp + unistd/unlinkat.cpp Removes a directory entry relative to directory. *******************************************************************************/ diff --git a/libc/usleep.cpp b/libc/unistd/usleep.cpp similarity index 98% rename from libc/usleep.cpp rename to libc/unistd/usleep.cpp index 0aa253b6..cd8f13e6 100644 --- a/libc/usleep.cpp +++ b/libc/unistd/usleep.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - usleep.cpp + unistd/usleep.cpp Blocks the current thread for for at least N microseconds. *******************************************************************************/ diff --git a/libc/write.cpp b/libc/unistd/write.cpp similarity index 98% rename from libc/write.cpp rename to libc/unistd/write.cpp index e9e59fd9..77d1163e 100644 --- a/libc/write.cpp +++ b/libc/unistd/write.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - write.cpp + unistd/write.cpp Writes to a file descriptor. *******************************************************************************/ diff --git a/mkinitrd/Makefile b/mkinitrd/Makefile index b51dd1f4..1067996b 100644 --- a/mkinitrd/Makefile +++ b/mkinitrd/Makefile @@ -24,8 +24,8 @@ all: $(BINARIES) .PHONY: all install uninstall clean -%: %.cpp crc32.cpp rules.cpp $(LIBC)/ioleast.cpp - $(CXX) -std=gnu++11 $(CPPFLAGS) $(CXXFLAGS) $< crc32.cpp rules.cpp $(LIBC)/ioleast.cpp -o $@ +%: %.cpp crc32.cpp rules.cpp $(LIBC)/unistd/ioleast.cpp + $(CXX) -std=gnu++11 $(CPPFLAGS) $(CXXFLAGS) $< crc32.cpp rules.cpp $(LIBC)/unistd/ioleast.cpp -o $@ clean: rm -f $(BINARIES)