diff options
776 files changed, 85 insertions, 7971 deletions
diff --git a/mk/ATOMIC_CHAR16_T_LOCK_FREE.d b/mk/ATOMIC_CHAR16_T_LOCK_FREE.d deleted file mode 100644 index 1cb745ae..00000000 --- a/mk/ATOMIC_CHAR16_T_LOCK_FREE.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_C.0: libc.a(ATOMIC_CHAR16_T_LOCK_FREE.o) -libc.a(ATOMIC_CHAR16_T_LOCK_FREE.o): $(OBJDIR)/ATOMIC_CHAR16_T_LOCK_FREE.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/ATOMIC_CHAR16_T_LOCK_FREE.o: src/stdatomic/ATOMIC_CHAR16_T_LOCK_FREE.c -$(OBJDIR)/ATOMIC_CHAR16_T_LOCK_FREE.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/stdatomic/ATOMIC_CHAR16_T_LOCK_FREE.c @@ -3,6 +3,7 @@ libc.a(_Exit.o): $(OBJDIR)/_Exit.o @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% $(OBJDIR)/_Exit.o: src/stdlib/_Exit.c +$(OBJDIR)/_Exit.o: src/_safety.h $(OBJDIR)/_Exit.o: src/_syscall.h $(OBJDIR)/_Exit.o: @echo " [CC] $@" diff --git a/mk/__assert.d b/mk/__assert.d index ae359896..23403777 100644 --- a/mk/__assert.d +++ b/mk/__assert.d @@ -3,6 +3,7 @@ libc.a(__assert.o): $(OBJDIR)/__assert.o @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% $(OBJDIR)/__assert.o: src/assert/__assert.c +$(OBJDIR)/__assert.o: src/_safety.h $(OBJDIR)/__assert.o: @echo " [CC] $@" @mkdir -p $(@D) diff --git a/mk/__checked_call.d b/mk/__checked_call.d index 7eb2f8d4..d4ec6059 100644 --- a/mk/__checked_call.d +++ b/mk/__checked_call.d @@ -3,7 +3,7 @@ libc.a(__checked_call.o): $(OBJDIR)/__checked_call.o @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% $(OBJDIR)/__checked_call.o: src/__checked_call.c -$(OBJDIR)/__checked_call.o: src/_assert.h +$(OBJDIR)/__checked_call.o: src/_safety.h $(OBJDIR)/__checked_call.o: @echo " [CC] $@" @mkdir -p $(@D) diff --git a/mk/__checked_i.d b/mk/__checked_i.d index 43461097..678a4d5d 100644 --- a/mk/__checked_i.d +++ b/mk/__checked_i.d @@ -3,6 +3,7 @@ libc.a(__checked_i.o): $(OBJDIR)/__checked_i.o @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% $(OBJDIR)/__checked_i.o: src/__checked_i.c +$(OBJDIR)/__checked_i.o: src/_assert.h $(OBJDIR)/__checked_i.o: @echo " [CC] $@" @mkdir -p $(@D) diff --git a/mk/__errno.d b/mk/__errno.d index 1d42be88..3c19cc7e 100644 --- a/mk/__errno.d +++ b/mk/__errno.d @@ -4,6 +4,7 @@ libc.a(__errno.o): $(OBJDIR)/__errno.o $(OBJDIR)/__errno.o: src/errno/__errno.c $(OBJDIR)/__errno.o: src/_perthread.h +$(OBJDIR)/__errno.o: src/_safety.h $(OBJDIR)/__errno.o: @echo " [CC] $@" @mkdir -p $(@D) diff --git a/mk/__ftw.d b/mk/__ftw.d deleted file mode 100644 index 46d4c35d..00000000 --- a/mk/__ftw.d +++ /dev/null @@ -1,10 +0,0 @@ -libc_C.0: libc.a(__ftw.o) -libc.a(__ftw.o): $(OBJDIR)/__ftw.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/__ftw.o: src/ftw/__ftw.c -$(OBJDIR)/__ftw.o: src/ftw/_ftw.h -$(OBJDIR)/__ftw.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/ftw/__ftw.c diff --git a/mk/__get_locale.d b/mk/__get_locale.d index 03970cfb..505800b3 100644 --- a/mk/__get_locale.d +++ b/mk/__get_locale.d @@ -4,6 +4,7 @@ libc.a(__get_locale.o): $(OBJDIR)/__get_locale.o $(OBJDIR)/__get_locale.o: src/locale/__get_locale.c $(OBJDIR)/__get_locale.o: src/locale/_locale.h +$(OBJDIR)/__get_locale.o: src/_safety.h $(OBJDIR)/__get_locale.o: @echo " [CC] $@" @mkdir -p $(@D) diff --git a/mk/__grp.d b/mk/__grp.d deleted file mode 100644 index 93b94bda..00000000 --- a/mk/__grp.d +++ /dev/null @@ -1,10 +0,0 @@ -libc_P.1: libc.a(__grp.o) -libc.a(__grp.o): $(OBJDIR)/__grp.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/__grp.o: src/grp/__grp.c -$(OBJDIR)/__grp.o: src/grp/_grp.h -$(OBJDIR)/__grp.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/grp/__grp.c diff --git a/mk/__load_locale.d b/mk/__load_locale.d index 2df17061..c4eec9ea 100644 --- a/mk/__load_locale.d +++ b/mk/__load_locale.d @@ -5,6 +5,7 @@ libc.a(__load_locale.o): $(OBJDIR)/__load_locale.o $(OBJDIR)/__load_locale.o: src/locale/__load_locale.c $(OBJDIR)/__load_locale.o: src/locale/_locale.h $(OBJDIR)/__load_locale.o: src/ctype/_ctype.h +$(OBJDIR)/__load_locale.o: src/_safety.h $(OBJDIR)/__load_locale.o: @echo " [CC] $@" @mkdir -p $(@D) diff --git a/mk/__loc1.d b/mk/__loc1.d deleted file mode 100644 index 73c48653..00000000 --- a/mk/__loc1.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.400: libc.a(__loc1.o) -libc.a(__loc1.o): $(OBJDIR)/__loc1.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/__loc1.o: src/libgen/__loc1.c -$(OBJDIR)/__loc1.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/libgen/__loc1.c diff --git a/mk/__printf.d b/mk/__printf.d index ef03315c..516cd3b6 100644 --- a/mk/__printf.d +++ b/mk/__printf.d @@ -6,6 +6,7 @@ $(OBJDIR)/__printf.o: src/stdio/__printf.c $(OBJDIR)/__printf.o: src/wctype/wint_t.h $(OBJDIR)/__printf.o: src/wctype/wctrans_t.h $(OBJDIR)/__printf.o: src/stdio/_stdio.h +$(OBJDIR)/__printf.o: src/_safety.h $(OBJDIR)/__printf.o: src/stdint/intmax_t.h $(OBJDIR)/__printf.o: src/stdint/uintmax_t.h $(OBJDIR)/__printf.o: src/stdint/intptr_t.h diff --git a/mk/__pwd.d b/mk/__pwd.d deleted file mode 100644 index 2d15b11c..00000000 --- a/mk/__pwd.d +++ /dev/null @@ -1,10 +0,0 @@ -libc_P.1: libc.a(__pwd.o) -libc.a(__pwd.o): $(OBJDIR)/__pwd.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/__pwd.o: src/pwd/__pwd.c -$(OBJDIR)/__pwd.o: src/pwd/_pwd.h -$(OBJDIR)/__pwd.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/pwd/__pwd.c diff --git a/mk/__scanf.d b/mk/__scanf.d index e48198dd..bc31d978 100644 --- a/mk/__scanf.d +++ b/mk/__scanf.d @@ -4,6 +4,7 @@ libc.a(__scanf.o): $(OBJDIR)/__scanf.o $(OBJDIR)/__scanf.o: src/stdio/__scanf.c $(OBJDIR)/__scanf.o: src/stdio/_stdio.h +$(OBJDIR)/__scanf.o: src/_safety.h $(OBJDIR)/__scanf.o: @echo " [CC] $@" @mkdir -p $(@D) diff --git a/mk/__signal_handler.d b/mk/__signal_handler.d index 2a1148af..7f96e741 100644 --- a/mk/__signal_handler.d +++ b/mk/__signal_handler.d @@ -4,6 +4,7 @@ libc.a(__signal_handler.o): $(OBJDIR)/__signal_handler.o $(OBJDIR)/__signal_handler.o: src/signal/__signal_handler.c $(OBJDIR)/__signal_handler.o: src/signal/_signal.h +$(OBJDIR)/__signal_handler.o: src/_safety.h $(OBJDIR)/__signal_handler.o: @echo " [CC] $@" @mkdir -p $(@D) diff --git a/mk/__sigsegv.d b/mk/__sigsegv.d new file mode 100644 index 00000000..3453891e --- /dev/null +++ b/mk/__sigsegv.d @@ -0,0 +1,9 @@ +libc_C.0: libc.a(__sigsegv.o) +libc.a(__sigsegv.o): $(OBJDIR)/__sigsegv.o + @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% + +$(OBJDIR)/__sigsegv.o: src/signal/__sigsegv.c +$(OBJDIR)/__sigsegv.o: + @echo " [CC] $@" + @mkdir -p $(@D) + @$(CC) -c -o $@ $(CFLAGS) src/signal/__sigsegv.c diff --git a/mk/_longjmp.d b/mk/_longjmp.d index 2bf0df7e..bf85d420 100644 --- a/mk/_longjmp.d +++ b/mk/_longjmp.d @@ -3,6 +3,7 @@ libc.a(_longjmp.o): $(OBJDIR)/_longjmp.o @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% $(OBJDIR)/_longjmp.o: src/setjmp/_longjmp.c +$(OBJDIR)/_longjmp.o: src/_safety.h $(OBJDIR)/_longjmp.o: @echo " [CC] $@" @mkdir -p $(@D) diff --git a/mk/_setjmp.d b/mk/_setjmp.d index 5783c4e8..b7b45ef9 100644 --- a/mk/_setjmp.d +++ b/mk/_setjmp.d @@ -3,6 +3,7 @@ libc.a(_setjmp.o): $(OBJDIR)/_setjmp.o @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% $(OBJDIR)/_setjmp.o: src/setjmp/_setjmp.c +$(OBJDIR)/_setjmp.o: src/_safety.h $(OBJDIR)/_setjmp.o: @echo " [CC] $@" @mkdir -p $(@D) diff --git a/mk/abort.d b/mk/abort.d deleted file mode 100644 index eb3e69c8..00000000 --- a/mk/abort.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_C.1: libc.a(abort.o) -libc.a(abort.o): $(OBJDIR)/abort.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/abort.o: src/stdlib/abort.c -$(OBJDIR)/abort.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/stdlib/abort.c diff --git a/mk/abort_handler_s.d b/mk/abort_handler_s.d index 490c8e96..de33e069 100644 --- a/mk/abort_handler_s.d +++ b/mk/abort_handler_s.d @@ -5,7 +5,7 @@ libc.a(abort_handler_s.o): $(OBJDIR)/abort_handler_s.o $(OBJDIR)/abort_handler_s.o: src/stdlib/abort_handler_s.c $(OBJDIR)/abort_handler_s.o: src/errno/errno_t.h $(OBJDIR)/abort_handler_s.o: src/stdlib/_stdlib.h -$(OBJDIR)/abort_handler_s.o: src/_assert.h +$(OBJDIR)/abort_handler_s.o: src/_safety.h $(OBJDIR)/abort_handler_s.o: @echo " [CC] $@" @mkdir -p $(@D) diff --git a/mk/advance.d b/mk/advance.d deleted file mode 100644 index 13666d68..00000000 --- a/mk/advance.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.4: libc.a(advance.o) -libc.a(advance.o): $(OBJDIR)/advance.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/advance.o: src/regexp/advance.c -$(OBJDIR)/advance.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/regexp/advance.c diff --git a/mk/aio_cancel.d b/mk/aio_cancel.d deleted file mode 100644 index fc3f4d84..00000000 --- a/mk/aio_cancel.d +++ /dev/null @@ -1,9 +0,0 @@ -librt_P.199309: librt.a(aio_cancel.o) -librt.a(aio_cancel.o): $(OBJDIR)/aio_cancel.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/aio_cancel.o: src/aio/aio_cancel.c -$(OBJDIR)/aio_cancel.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/aio/aio_cancel.c diff --git a/mk/aio_error.d b/mk/aio_error.d deleted file mode 100644 index 4c454c36..00000000 --- a/mk/aio_error.d +++ /dev/null @@ -1,9 +0,0 @@ -librt_P.199309: librt.a(aio_error.o) -librt.a(aio_error.o): $(OBJDIR)/aio_error.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/aio_error.o: src/aio/aio_error.c -$(OBJDIR)/aio_error.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/aio/aio_error.c diff --git a/mk/aio_fsync.d b/mk/aio_fsync.d deleted file mode 100644 index 76e5f45b..00000000 --- a/mk/aio_fsync.d +++ /dev/null @@ -1,9 +0,0 @@ -librt_P.199309: librt.a(aio_fsync.o) -librt.a(aio_fsync.o): $(OBJDIR)/aio_fsync.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/aio_fsync.o: src/aio/aio_fsync.c -$(OBJDIR)/aio_fsync.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/aio/aio_fsync.c diff --git a/mk/aio_read.d b/mk/aio_read.d deleted file mode 100644 index 67e5ee64..00000000 --- a/mk/aio_read.d +++ /dev/null @@ -1,9 +0,0 @@ -librt_P.199309: librt.a(aio_read.o) -librt.a(aio_read.o): $(OBJDIR)/aio_read.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/aio_read.o: src/aio/aio_read.c -$(OBJDIR)/aio_read.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/aio/aio_read.c diff --git a/mk/aio_return.d b/mk/aio_return.d deleted file mode 100644 index 0182d2ea..00000000 --- a/mk/aio_return.d +++ /dev/null @@ -1,9 +0,0 @@ -librt_P.199309: librt.a(aio_return.o) -librt.a(aio_return.o): $(OBJDIR)/aio_return.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/aio_return.o: src/aio/aio_return.c -$(OBJDIR)/aio_return.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/aio/aio_return.c diff --git a/mk/aio_suspend.d b/mk/aio_suspend.d deleted file mode 100644 index a7e23768..00000000 --- a/mk/aio_suspend.d +++ /dev/null @@ -1,9 +0,0 @@ -librt_P.199309: librt.a(aio_suspend.o) -librt.a(aio_suspend.o): $(OBJDIR)/aio_suspend.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/aio_suspend.o: src/aio/aio_suspend.c -$(OBJDIR)/aio_suspend.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/aio/aio_suspend.c diff --git a/mk/aio_write.d b/mk/aio_write.d deleted file mode 100644 index 03764203..00000000 --- a/mk/aio_write.d +++ /dev/null @@ -1,9 +0,0 @@ -librt_P.199309: librt.a(aio_write.o) -librt.a(aio_write.o): $(OBJDIR)/aio_write.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/aio_write.o: src/aio/aio_write.c -$(OBJDIR)/aio_write.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/aio/aio_write.c @@ -13,7 +13,6 @@ include mk/atomic_store_explicit.d include mk/atomic_flag.d include mk/atomic_fetch_sub.d include mk/atomic_fetch_add.d -include mk/ATOMIC_CHAR16_T_LOCK_FREE.d include mk/atomic_fetch_add_explicit.d include mk/atomic_fetch_or_explicit.d include mk/atomic_exchange_explicit.d @@ -53,14 +52,6 @@ include mk/clog.d include mk/cproj.d include mk/csin.d include mk/cacos.d -include mk/ntohl.d -include mk/inet_ntop.d -include mk/ntohs.d -include mk/inet_pton.d -include mk/htonl.d -include mk/inet_ntoa.d -include mk/htons.d -include mk/inet_addr.d include mk/strspn.d include mk/memmove_s.d include mk/strtok.d @@ -83,7 +74,6 @@ include mk/strcat.d include mk/strncat_s.d include mk/memccpy.d include mk/strrchr.d -include mk/strcpy.d include mk/strtok_s.d include mk/strerror_s.d include mk/strdup.d @@ -183,22 +173,6 @@ include mk/wcstoul.d include mk/vswprintf_s.d include mk/vwprintf.d include mk/wcscoll.d -include mk/strtoumax.d -include mk/imaxabs.d -include mk/strtoimax.d -include mk/wcstoimax.d -include mk/wcstoumax.d -include mk/imaxdiv.d -include mk/getgrgid.d -include mk/getgrent.d -include mk/__grp.d -include mk/getgrnam.d -include mk/setgrent.d -include mk/endgrent.d -include mk/globfree.d -include mk/glob.d -include mk/poll.d -include mk/fnmatch.d include mk/tcflow.d include mk/tcgetattr.d include mk/tcsetattr.d @@ -211,24 +185,8 @@ include mk/tcsendbreak.d include mk/tcgetsid.d include mk/tcflush.d include mk/__checked_call.d -include mk/wordexp.d -include mk/wordfree.d -include mk/setlocale.d -include mk/localeconv.d include mk/__load_locale.d include mk/__get_locale.d -include mk/bzero.d -include mk/ffs.d -include mk/rindex.d -include mk/strcasecmp.d -include mk/strncasecmp.d -include mk/bcmp.d -include mk/index.d -include mk/bcopy.d -include mk/dlopen.d -include mk/dlerror.d -include mk/dlsym.d -include mk/dlclose.d include mk/mktemp.d include mk/atof.d include mk/srand.d @@ -244,7 +202,6 @@ include mk/atoi.d include mk/at_quick_exit.d include mk/labs.d include mk/erand48.d -include mk/abort.d include mk/bsearch_s.d include mk/exit.d include mk/fcvt.d @@ -307,10 +264,6 @@ include mk/getsubopt.d include mk/mbstowcs_s.d include mk/atol.d include mk/ptsname.d -include mk/regcomp.d -include mk/regerror.d -include mk/regfree.d -include mk/regexec.d include mk/modf.d include mk/sinh.d include mk/acosh.d @@ -377,50 +330,13 @@ include mk/tgamma.d include mk/jn.d include mk/trunc.d include mk/sin.d -include mk/__ftw.d -include mk/nftw.d -include mk/ftw.d -include mk/endpwent.d -include mk/getpwuid.d -include mk/getpwnam.d -include mk/setpwent.d -include mk/getpwent.d -include mk/__pwd.d -include mk/fmtmsg.d -include mk/putmsg.d -include mk/getpmsg.d -include mk/isastream.d -include mk/ioctl.d -include mk/putpmsg.d -include mk/fattach.d -include mk/fdetach.d -include mk/getmsg.d -include mk/sigqueue.d -include mk/killpg.d -include mk/sigignore.d -include mk/sigdelset.d -include mk/sigaddset.d -include mk/sigwaitinfo.d -include mk/bsd_signal.d -include mk/sigismember.d -include mk/sigpause.d -include mk/sigpending.d +include mk/__sigsegv.d include mk/signal.d include mk/sigaction.d -include mk/sigsuspend.d -include mk/sigtimedwait.d -include mk/sigfillset.d -include mk/sigstack.d -include mk/sigprocmask.d -include mk/siginterrupt.d -include mk/sighold.d -include mk/sigset.d -include mk/sigaltstack.d +include mk/__signal_handler.d include mk/raise.d -include mk/sigmask.d -include mk/sigemptyset.d +include mk/__signal.d include mk/kill.d -include mk/sigrelse.d include mk/mbrtoc32.d include mk/c32rtomb.d include mk/c16rtomb.d @@ -579,12 +495,6 @@ include mk/dup2.d include mk/close.d include mk/getpass.d include mk/link.d -include mk/setutxent.d -include mk/getutxent.d -include mk/pututxline.d -include mk/endutxent.d -include mk/getutxid.d -include mk/getutxline.d include mk/clock_settime.d include mk/tzname.d include mk/timer_settime.d @@ -618,38 +528,13 @@ include mk/asctime_s.d include mk/mktime.d include mk/__main.d include mk/environ.d -include mk/ulimit.d -include mk/re_comp.d -include mk/re_exec.d -include mk/loc1.d -include mk/locs.d -include mk/advance.d -include mk/step.d -include mk/loc2.d -include mk/compile.d include mk/_longjmp.d include mk/_setjmp.d include mk/setjmp.d include mk/siglongjmp.d include mk/longjmp.d include mk/sigsetjmp.d -include mk/regex.d -include mk/dirname.d -include mk/regcmp.d -include mk/basename.d -include mk/__loc1.d include mk/nl_langinfo.d -include mk/remque.d -include mk/tdelete.d -include mk/hdestroy.d -include mk/insque.d -include mk/tsearch.d -include mk/lsearch.d -include mk/lfind.d -include mk/hcreate.d -include mk/twalk.d -include mk/hsearch.d -include mk/tfind.d include mk/fputs.d include mk/fwrite.d include mk/vscanf.d @@ -732,11 +617,6 @@ include mk/tmpfile.d include mk/setvbuf.d include mk/putw.d include mk/fflush.d -include mk/utime.d -include mk/setlogmask.d -include mk/openlog.d -include mk/closelog.d -include mk/syslog.d include mk/__errno.d include mk/thrd_current.d include mk/cnd_timedwait.d @@ -781,15 +661,6 @@ include mk/iswupper.d include mk/iswalpha.d include mk/iswspace.d include mk/towlower.d -include mk/sem_trywait.d -include mk/sem_wait.d -include mk/sem_init.d -include mk/sem_close.d -include mk/sem_post.d -include mk/sem_unlink.d -include mk/sem_open.d -include mk/sem_getvalue.d -include mk/sem_destroy.d include mk/feclearexcept.d include mk/fesetround.d include mk/feholdexcept.d @@ -798,61 +669,9 @@ include mk/feupdateenv.d include mk/fegetenv.d include mk/fesetenv.d include mk/fesetexceptflag.d -include mk/fegetround.d include mk/fetestexcept.d include mk/fegetexceptflag.d -include mk/strfmon.d -include mk/telldir.d -include mk/seekdir.d -include mk/opendir.d -include mk/rewinddir.d -include mk/closedir.d -include mk/readdir.d include mk/__checked_i.d -include mk/mq_unlink.d -include mk/mq_setattr.d -include mk/mq_notify.d -include mk/mq_close.d -include mk/mq_open.d -include mk/mq_send.d -include mk/mq_getattr.d -include mk/struct_mq_attr.d -include mk/mq_receive.d -include mk/dbm_error.d -include mk/dbm_open.d -include mk/dbm_fetch.d -include mk/dbm_store.d -include mk/dbm_clearerr.d -include mk/dbm_firstkey.d -include mk/dbm_delete.d -include mk/dbm_close.d -include mk/dbm_nextkey.d -include mk/iconv.d -include mk/iconv_open.d -include mk/iconv_close.d -include mk/catclose.d -include mk/catgets.d -include mk/catopen.d -include mk/makecontext.d -include mk/setcontext.d -include mk/getcontext.d -include mk/swapcontext.d -include mk/aio_error.d -include mk/aio_fsync.d -include mk/aio_return.d -include mk/aio_cancel.d -include mk/aio_read.d -include mk/lio_listio.d -include mk/aio_suspend.d -include mk/aio_write.d -include mk/sched_getscheduler.d -include mk/sched_rr_get_interval.d -include mk/sched_setscheduler.d -include mk/sched_get_priority_max.d -include mk/sched_get_priority_min.d -include mk/sched_getparam.d -include mk/sched_yield.d -include mk/sched_setparam.d include mk/__sys.x86-64.s.d include mk/__setjmp.x86-64.s.d include mk/__longjmp.x86-64.s.d @@ -3,7 +3,7 @@ libm.a(atan2.o): $(OBJDIR)/atan2.o @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% $(OBJDIR)/atan2.o: src/math/atan2.c -$(OBJDIR)/atan2.o: src/_assert.h +$(OBJDIR)/atan2.o: src/_safety.h $(OBJDIR)/atan2.o: src/complex/_tgmath.h $(OBJDIR)/src/math/_tgmath.h.o: $(OBJDIR)/atan2.o: diff --git a/mk/basename.d b/mk/basename.d deleted file mode 100644 index caea328c..00000000 --- a/mk/basename.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.400: libc.a(basename.o) -libc.a(basename.o): $(OBJDIR)/basename.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/basename.o: src/libgen/basename.c -$(OBJDIR)/basename.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/libgen/basename.c diff --git a/mk/bcmp.d b/mk/bcmp.d deleted file mode 100644 index b617c5d5..00000000 --- a/mk/bcmp.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.400: libc.a(bcmp.o) -libc.a(bcmp.o): $(OBJDIR)/bcmp.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/bcmp.o: src/strings/bcmp.c -$(OBJDIR)/bcmp.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/strings/bcmp.c diff --git a/mk/bcopy.d b/mk/bcopy.d deleted file mode 100644 index 9f0a6538..00000000 --- a/mk/bcopy.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.400: libc.a(bcopy.o) -libc.a(bcopy.o): $(OBJDIR)/bcopy.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/bcopy.o: src/strings/bcopy.c -$(OBJDIR)/bcopy.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/strings/bcopy.c diff --git a/mk/bsd_signal.d b/mk/bsd_signal.d deleted file mode 100644 index 2cb05ebe..00000000 --- a/mk/bsd_signal.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.400: libc.a(bsd_signal.o) -libc.a(bsd_signal.o): $(OBJDIR)/bsd_signal.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/bsd_signal.o: src/signal/bsd_signal.c -$(OBJDIR)/bsd_signal.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/signal/bsd_signal.c diff --git a/mk/bzero.d b/mk/bzero.d deleted file mode 100644 index 9510056c..00000000 --- a/mk/bzero.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.400: libc.a(bzero.o) -libc.a(bzero.o): $(OBJDIR)/bzero.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/bzero.o: src/strings/bzero.c -$(OBJDIR)/bzero.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/strings/bzero.c diff --git a/mk/catclose.d b/mk/catclose.d deleted file mode 100644 index c46ef3e7..00000000 --- a/mk/catclose.d +++ /dev/null @@ -1,11 +0,0 @@ -libc_X.4: libc.a(catclose.o) -libc.a(catclose.o): $(OBJDIR)/catclose.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/catclose.o: src/nl_types/catclose.c -$(OBJDIR)/catclose.o: -$(OBJDIR)/catclose.o: -$(OBJDIR)/catclose.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/nl_types/catclose.c diff --git a/mk/catgets.d b/mk/catgets.d deleted file mode 100644 index ec85aa75..00000000 --- a/mk/catgets.d +++ /dev/null @@ -1,11 +0,0 @@ -libc_X.4: libc.a(catgets.o) -libc.a(catgets.o): $(OBJDIR)/catgets.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/catgets.o: src/nl_types/catgets.c -$(OBJDIR)/catgets.o: -$(OBJDIR)/catgets.o: -$(OBJDIR)/catgets.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/nl_types/catgets.c diff --git a/mk/catopen.d b/mk/catopen.d deleted file mode 100644 index 2c81a98a..00000000 --- a/mk/catopen.d +++ /dev/null @@ -1,11 +0,0 @@ -libc_X.4: libc.a(catopen.o) -libc.a(catopen.o): $(OBJDIR)/catopen.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/catopen.o: src/nl_types/catopen.c -$(OBJDIR)/catopen.o: -$(OBJDIR)/catopen.o: -$(OBJDIR)/catopen.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/nl_types/catopen.c diff --git a/mk/clearerr.d b/mk/clearerr.d index 8310f62b..d875ca7f 100644 --- a/mk/clearerr.d +++ b/mk/clearerr.d @@ -4,6 +4,7 @@ libc.a(clearerr.o): $(OBJDIR)/clearerr.o $(OBJDIR)/clearerr.o: src/stdio/clearerr.c $(OBJDIR)/clearerr.o: src/stdio/_stdio.h +$(OBJDIR)/clearerr.o: src/_safety.h $(OBJDIR)/clearerr.o: @echo " [CC] $@" @mkdir -p $(@D) diff --git a/mk/closedir.d b/mk/closedir.d deleted file mode 100644 index 9ca1fe17..00000000 --- a/mk/closedir.d +++ /dev/null @@ -1,11 +0,0 @@ -libc_P.1: libc.a(closedir.o) -libc.a(closedir.o): $(OBJDIR)/closedir.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/closedir.o: src/dirent/closedir.c -$(OBJDIR)/closedir.o: src/_assert.h -$(OBJDIR)/closedir.o: src/dirent/_dirent.h -$(OBJDIR)/closedir.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/dirent/closedir.c diff --git a/mk/closelog.d b/mk/closelog.d deleted file mode 100644 index 91135b6d..00000000 --- a/mk/closelog.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.400: libc.a(closelog.o) -libc.a(closelog.o): $(OBJDIR)/closelog.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/closelog.o: src/syslog/closelog.c -$(OBJDIR)/closelog.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/syslog/closelog.c diff --git a/mk/compile.d b/mk/compile.d deleted file mode 100644 index c812e8bb..00000000 --- a/mk/compile.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.4: libc.a(compile.o) -libc.a(compile.o): $(OBJDIR)/compile.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/compile.o: src/regexp/compile.c -$(OBJDIR)/compile.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/regexp/compile.c diff --git a/mk/dbm_clearerr.d b/mk/dbm_clearerr.d deleted file mode 100644 index 5accf8b8..00000000 --- a/mk/dbm_clearerr.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.400: libc.a(dbm_clearerr.o) -libc.a(dbm_clearerr.o): $(OBJDIR)/dbm_clearerr.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/dbm_clearerr.o: src/ndbm/dbm_clearerr.c -$(OBJDIR)/dbm_clearerr.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/ndbm/dbm_clearerr.c diff --git a/mk/dbm_close.d b/mk/dbm_close.d deleted file mode 100644 index dd4ba2e9..00000000 --- a/mk/dbm_close.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.400: libc.a(dbm_close.o) -libc.a(dbm_close.o): $(OBJDIR)/dbm_close.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/dbm_close.o: src/ndbm/dbm_close.c -$(OBJDIR)/dbm_close.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/ndbm/dbm_close.c diff --git a/mk/dbm_delete.d b/mk/dbm_delete.d deleted file mode 100644 index 6bcf1635..00000000 --- a/mk/dbm_delete.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.400: libc.a(dbm_delete.o) -libc.a(dbm_delete.o): $(OBJDIR)/dbm_delete.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/dbm_delete.o: src/ndbm/dbm_delete.c -$(OBJDIR)/dbm_delete.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/ndbm/dbm_delete.c diff --git a/mk/dbm_error.d b/mk/dbm_error.d deleted file mode 100644 index 00510999..00000000 --- a/mk/dbm_error.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.400: libc.a(dbm_error.o) -libc.a(dbm_error.o): $(OBJDIR)/dbm_error.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/dbm_error.o: src/ndbm/dbm_error.c -$(OBJDIR)/dbm_error.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/ndbm/dbm_error.c diff --git a/mk/dbm_fetch.d b/mk/dbm_fetch.d deleted file mode 100644 index 92f7a993..00000000 --- a/mk/dbm_fetch.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.400: libc.a(dbm_fetch.o) -libc.a(dbm_fetch.o): $(OBJDIR)/dbm_fetch.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/dbm_fetch.o: src/ndbm/dbm_fetch.c -$(OBJDIR)/dbm_fetch.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/ndbm/dbm_fetch.c diff --git a/mk/dbm_firstkey.d b/mk/dbm_firstkey.d deleted file mode 100644 index dd898da1..00000000 --- a/mk/dbm_firstkey.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.400: libc.a(dbm_firstkey.o) -libc.a(dbm_firstkey.o): $(OBJDIR)/dbm_firstkey.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/dbm_firstkey.o: src/ndbm/dbm_firstkey.c -$(OBJDIR)/dbm_firstkey.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/ndbm/dbm_firstkey.c diff --git a/mk/dbm_nextkey.d b/mk/dbm_nextkey.d deleted file mode 100644 index 8b19b446..00000000 --- a/mk/dbm_nextkey.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.400: libc.a(dbm_nextkey.o) -libc.a(dbm_nextkey.o): $(OBJDIR)/dbm_nextkey.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/dbm_nextkey.o: src/ndbm/dbm_nextkey.c -$(OBJDIR)/dbm_nextkey.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/ndbm/dbm_nextkey.c diff --git a/mk/dbm_open.d b/mk/dbm_open.d deleted file mode 100644 index 7fc4372f..00000000 --- a/mk/dbm_open.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.400: libc.a(dbm_open.o) -libc.a(dbm_open.o): $(OBJDIR)/dbm_open.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/dbm_open.o: src/ndbm/dbm_open.c -$(OBJDIR)/dbm_open.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/ndbm/dbm_open.c diff --git a/mk/dbm_store.d b/mk/dbm_store.d deleted file mode 100644 index dd8e9dce..00000000 --- a/mk/dbm_store.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.400: libc.a(dbm_store.o) -libc.a(dbm_store.o): $(OBJDIR)/dbm_store.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/dbm_store.o: src/ndbm/dbm_store.c -$(OBJDIR)/dbm_store.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/ndbm/dbm_store.c @@ -62,10 +62,6 @@ all: mk/atomic_fetch_add.d mk/atomic_fetch_add.d: src/stdatomic/atomic_fetch_add.c sh mk/deps.sh src/stdatomic/atomic_fetch_add.c -all: mk/ATOMIC_CHAR16_T_LOCK_FREE.d -mk/ATOMIC_CHAR16_T_LOCK_FREE.d: src/stdatomic/ATOMIC_CHAR16_T_LOCK_FREE.c - sh mk/deps.sh src/stdatomic/ATOMIC_CHAR16_T_LOCK_FREE.c - all: mk/atomic_fetch_add_explicit.d mk/atomic_fetch_add_explicit.d: src/stdatomic/atomic_fetch_add_explicit.c sh mk/deps.sh src/stdatomic/atomic_fetch_add_explicit.c @@ -222,38 +218,6 @@ all: mk/cacos.d mk/cacos.d: src/complex/cacos.c sh mk/deps.sh src/complex/cacos.c -all: mk/ntohl.d -mk/ntohl.d: src/arpa/inet/ntohl.c - sh mk/deps.sh src/arpa/inet/ntohl.c - -all: mk/inet_ntop.d -mk/inet_ntop.d: src/arpa/inet/inet_ntop.c - sh mk/deps.sh src/arpa/inet/inet_ntop.c - -all: mk/ntohs.d -mk/ntohs.d: src/arpa/inet/ntohs.c - sh mk/deps.sh src/arpa/inet/ntohs.c - -all: mk/inet_pton.d -mk/inet_pton.d: src/arpa/inet/inet_pton.c - sh mk/deps.sh src/arpa/inet/inet_pton.c - -all: mk/htonl.d -mk/htonl.d: src/arpa/inet/htonl.c - sh mk/deps.sh src/arpa/inet/htonl.c - -all: mk/inet_ntoa.d -mk/inet_ntoa.d: src/arpa/inet/inet_ntoa.c - sh mk/deps.sh src/arpa/inet/inet_ntoa.c - -all: mk/htons.d -mk/htons.d: src/arpa/inet/htons.c - sh mk/deps.sh src/arpa/inet/htons.c - -all: mk/inet_addr.d -mk/inet_addr.d: src/arpa/inet/inet_addr.c - sh mk/deps.sh src/arpa/inet/inet_addr.c - all: mk/strspn.d mk/strspn.d: src/string/strspn.c sh mk/deps.sh src/string/strspn.c @@ -342,10 +306,6 @@ all: mk/strrchr.d mk/strrchr.d: src/string/strrchr.c sh mk/deps.sh src/string/strrchr.c -all: mk/strcpy.d -mk/strcpy.d: src/string/strcpy.c - sh mk/deps.sh src/string/strcpy.c - all: mk/strtok_s.d mk/strtok_s.d: src/string/strtok_s.c sh mk/deps.sh src/string/strtok_s.c @@ -742,70 +702,6 @@ all: mk/wcscoll.d mk/wcscoll.d: src/wchar/wcscoll.c sh mk/deps.sh src/wchar/wcscoll.c -all: mk/strtoumax.d -mk/strtoumax.d: src/inttypes/strtoumax.c - sh mk/deps.sh src/inttypes/strtoumax.c - -all: mk/imaxabs.d -mk/imaxabs.d: src/inttypes/imaxabs.c - sh mk/deps.sh src/inttypes/imaxabs.c - -all: mk/strtoimax.d -mk/strtoimax.d: src/inttypes/strtoimax.c - sh mk/deps.sh src/inttypes/strtoimax.c - -all: mk/wcstoimax.d -mk/wcstoimax.d: src/inttypes/wcstoimax.c - sh mk/deps.sh src/inttypes/wcstoimax.c - -all: mk/wcstoumax.d -mk/wcstoumax.d: src/inttypes/wcstoumax.c - sh mk/deps.sh src/inttypes/wcstoumax.c - -all: mk/imaxdiv.d -mk/imaxdiv.d: src/inttypes/imaxdiv.c - sh mk/deps.sh src/inttypes/imaxdiv.c - -all: mk/getgrgid.d -mk/getgrgid.d: src/grp/getgrgid.c - sh mk/deps.sh src/grp/getgrgid.c - -all: mk/getgrent.d -mk/getgrent.d: src/grp/getgrent.c - sh mk/deps.sh src/grp/getgrent.c - -all: mk/__grp.d -mk/__grp.d: src/grp/__grp.c - sh mk/deps.sh src/grp/__grp.c - -all: mk/getgrnam.d -mk/getgrnam.d: src/grp/getgrnam.c - sh mk/deps.sh src/grp/getgrnam.c - -all: mk/setgrent.d -mk/setgrent.d: src/grp/setgrent.c - sh mk/deps.sh src/grp/setgrent.c - -all: mk/endgrent.d -mk/endgrent.d: src/grp/endgrent.c - sh mk/deps.sh src/grp/endgrent.c - -all: mk/globfree.d -mk/globfree.d: src/glob/globfree.c - sh mk/deps.sh src/glob/globfree.c - -all: mk/glob.d -mk/glob.d: src/glob/glob.c - sh mk/deps.sh src/glob/glob.c - -all: mk/poll.d -mk/poll.d: src/poll/poll.c - sh mk/deps.sh src/poll/poll.c - -all: mk/fnmatch.d -mk/fnmatch.d: src/fnmatch/fnmatch.c - sh mk/deps.sh src/fnmatch/fnmatch.c - all: mk/tcflow.d mk/tcflow.d: src/termios/tcflow.c sh mk/deps.sh src/termios/tcflow.c @@ -854,22 +750,6 @@ all: mk/__checked_call.d mk/__checked_call.d: src/__checked_call.c sh mk/deps.sh src/__checked_call.c -all: mk/wordexp.d -mk/wordexp.d: src/wordexp/wordexp.c - sh mk/deps.sh src/wordexp/wordexp.c - -all: mk/wordfree.d -mk/wordfree.d: src/wordexp/wordfree.c - sh mk/deps.sh src/wordexp/wordfree.c - -all: mk/setlocale.d -mk/setlocale.d: src/locale/setlocale.c - sh mk/deps.sh src/locale/setlocale.c - -all: mk/localeconv.d -mk/localeconv.d: src/locale/localeconv.c - sh mk/deps.sh src/locale/localeconv.c - all: mk/__load_locale.d mk/__load_locale.d: src/locale/__load_locale.c sh mk/deps.sh src/locale/__load_locale.c @@ -878,54 +758,6 @@ all: mk/__get_locale.d mk/__get_locale.d: src/locale/__get_locale.c sh mk/deps.sh src/locale/__get_locale.c -all: mk/bzero.d -mk/bzero.d: src/strings/bzero.c - sh mk/deps.sh src/strings/bzero.c - -all: mk/ffs.d -mk/ffs.d: src/strings/ffs.c - sh mk/deps.sh src/strings/ffs.c - -all: mk/rindex.d -mk/rindex.d: src/strings/rindex.c - sh mk/deps.sh src/strings/rindex.c - -all: mk/strcasecmp.d -mk/strcasecmp.d: src/strings/strcasecmp.c - sh mk/deps.sh src/strings/strcasecmp.c - -all: mk/strncasecmp.d -mk/strncasecmp.d: src/strings/strncasecmp.c - sh mk/deps.sh src/strings/strncasecmp.c - -all: mk/bcmp.d -mk/bcmp.d: src/strings/bcmp.c - sh mk/deps.sh src/strings/bcmp.c - -all: mk/index.d -mk/index.d: src/strings/index.c - sh mk/deps.sh src/strings/index.c - -all: mk/bcopy.d -mk/bcopy.d: src/strings/bcopy.c - sh mk/deps.sh src/strings/bcopy.c - -all: mk/dlopen.d -mk/dlopen.d: src/dlfcn/dlopen.c - sh mk/deps.sh src/dlfcn/dlopen.c - -all: mk/dlerror.d -mk/dlerror.d: src/dlfcn/dlerror.c - sh mk/deps.sh src/dlfcn/dlerror.c - -all: mk/dlsym.d -mk/dlsym.d: src/dlfcn/dlsym.c - sh mk/deps.sh src/dlfcn/dlsym.c - -all: mk/dlclose.d -mk/dlclose.d: src/dlfcn/dlclose.c - sh mk/deps.sh src/dlfcn/dlclose.c - all: mk/mktemp.d mk/mktemp.d: src/stdlib/mktemp.c sh mk/deps.sh src/stdlib/mktemp.c @@ -986,10 +818,6 @@ all: mk/erand48.d mk/erand48.d: src/stdlib/erand48.c sh mk/deps.sh src/stdlib/erand48.c -all: mk/abort.d -mk/abort.d: src/stdlib/abort.c - sh mk/deps.sh src/stdlib/abort.c - all: mk/bsearch_s.d mk/bsearch_s.d: src/stdlib/bsearch_s.c sh mk/deps.sh src/stdlib/bsearch_s.c @@ -1238,22 +1066,6 @@ all: mk/ptsname.d mk/ptsname.d: src/stdlib/ptsname.c sh mk/deps.sh src/stdlib/ptsname.c -all: mk/regcomp.d -mk/regcomp.d: src/regex/regcomp.c - sh mk/deps.sh src/regex/regcomp.c - -all: mk/regerror.d -mk/regerror.d: src/regex/regerror.c - sh mk/deps.sh src/regex/regerror.c - -all: mk/regfree.d -mk/regfree.d: src/regex/regfree.c - sh mk/deps.sh src/regex/regfree.c - -all: mk/regexec.d -mk/regexec.d: src/regex/regexec.c - sh mk/deps.sh src/regex/regexec.c - all: mk/modf.d mk/modf.d: src/math/modf.c sh mk/deps.sh src/math/modf.c @@ -1518,117 +1330,9 @@ all: mk/sin.d mk/sin.d: src/math/sin.c sh mk/deps.sh src/math/sin.c -all: mk/__ftw.d -mk/__ftw.d: src/ftw/__ftw.c - sh mk/deps.sh src/ftw/__ftw.c - -all: mk/nftw.d -mk/nftw.d: src/ftw/nftw.c - sh mk/deps.sh src/ftw/nftw.c - -all: mk/ftw.d -mk/ftw.d: src/ftw/ftw.c - sh mk/deps.sh src/ftw/ftw.c - -all: mk/endpwent.d -mk/endpwent.d: src/pwd/endpwent.c - sh mk/deps.sh src/pwd/endpwent.c - -all: mk/getpwuid.d -mk/getpwuid.d: src/pwd/getpwuid.c - sh mk/deps.sh src/pwd/getpwuid.c - -all: mk/getpwnam.d -mk/getpwnam.d: src/pwd/getpwnam.c - sh mk/deps.sh src/pwd/getpwnam.c - -all: mk/setpwent.d -mk/setpwent.d: src/pwd/setpwent.c - sh mk/deps.sh src/pwd/setpwent.c - -all: mk/getpwent.d -mk/getpwent.d: src/pwd/getpwent.c - sh mk/deps.sh src/pwd/getpwent.c - -all: mk/__pwd.d -mk/__pwd.d: src/pwd/__pwd.c - sh mk/deps.sh src/pwd/__pwd.c - -all: mk/fmtmsg.d -mk/fmtmsg.d: src/fmtmsg/fmtmsg.c - sh mk/deps.sh src/fmtmsg/fmtmsg.c - -all: mk/putmsg.d -mk/putmsg.d: src/stropts/putmsg.c - sh mk/deps.sh src/stropts/putmsg.c - -all: mk/getpmsg.d -mk/getpmsg.d: src/stropts/getpmsg.c - sh mk/deps.sh src/stropts/getpmsg.c - -all: mk/isastream.d -mk/isastream.d: src/stropts/isastream.c - sh mk/deps.sh src/stropts/isastream.c - -all: mk/ioctl.d -mk/ioctl.d: src/stropts/ioctl.c - sh mk/deps.sh src/stropts/ioctl.c - -all: mk/putpmsg.d -mk/putpmsg.d: src/stropts/putpmsg.c - sh mk/deps.sh src/stropts/putpmsg.c - -all: mk/fattach.d -mk/fattach.d: src/stropts/fattach.c - sh mk/deps.sh src/stropts/fattach.c - -all: mk/fdetach.d -mk/fdetach.d: src/stropts/fdetach.c - sh mk/deps.sh src/stropts/fdetach.c - -all: mk/getmsg.d -mk/getmsg.d: src/stropts/getmsg.c - sh mk/deps.sh src/stropts/getmsg.c - -all: mk/sigqueue.d -mk/sigqueue.d: src/signal/sigqueue.c - sh mk/deps.sh src/signal/sigqueue.c - -all: mk/killpg.d -mk/killpg.d: src/signal/killpg.c - sh mk/deps.sh src/signal/killpg.c - -all: mk/sigignore.d -mk/sigignore.d: src/signal/sigignore.c - sh mk/deps.sh src/signal/sigignore.c - -all: mk/sigdelset.d -mk/sigdelset.d: src/signal/sigdelset.c - sh mk/deps.sh src/signal/sigdelset.c - -all: mk/sigaddset.d -mk/sigaddset.d: src/signal/sigaddset.c - sh mk/deps.sh src/signal/sigaddset.c - -all: mk/sigwaitinfo.d -mk/sigwaitinfo.d: src/signal/sigwaitinfo.c - sh mk/deps.sh src/signal/sigwaitinfo.c - -all: mk/bsd_signal.d -mk/bsd_signal.d: src/signal/bsd_signal.c - sh mk/deps.sh src/signal/bsd_signal.c - -all: mk/sigismember.d -mk/sigismember.d: src/signal/sigismember.c - sh mk/deps.sh src/signal/sigismember.c - -all: mk/sigpause.d -mk/sigpause.d: src/signal/sigpause.c - sh mk/deps.sh src/signal/sigpause.c - -all: mk/sigpending.d -mk/sigpending.d: src/signal/sigpending.c - sh mk/deps.sh src/signal/sigpending.c +all: mk/__sigsegv.d +mk/__sigsegv.d: src/signal/__sigsegv.c + sh mk/deps.sh src/signal/__sigsegv.c all: mk/signal.d mk/signal.d: src/signal/signal.c @@ -1638,62 +1342,22 @@ all: mk/sigaction.d mk/sigaction.d: src/signal/sigaction.c sh mk/deps.sh src/signal/sigaction.c -all: mk/sigsuspend.d -mk/sigsuspend.d: src/signal/sigsuspend.c - sh mk/deps.sh src/signal/sigsuspend.c - -all: mk/sigtimedwait.d -mk/sigtimedwait.d: src/signal/sigtimedwait.c - sh mk/deps.sh src/signal/sigtimedwait.c - -all: mk/sigfillset.d -mk/sigfillset.d: src/signal/sigfillset.c - sh mk/deps.sh src/signal/sigfillset.c - -all: mk/sigstack.d -mk/sigstack.d: src/signal/sigstack.c - sh mk/deps.sh src/signal/sigstack.c - -all: mk/sigprocmask.d -mk/sigprocmask.d: src/signal/sigprocmask.c - sh mk/deps.sh src/signal/sigprocmask.c - -all: mk/siginterrupt.d -mk/siginterrupt.d: src/signal/siginterrupt.c - sh mk/deps.sh src/signal/siginterrupt.c - -all: mk/sighold.d -mk/sighold.d: src/signal/sighold.c - sh mk/deps.sh src/signal/sighold.c - -all: mk/sigset.d -mk/sigset.d: src/signal/sigset.c - sh mk/deps.sh src/signal/sigset.c - -all: mk/sigaltstack.d -mk/sigaltstack.d: src/signal/sigaltstack.c - sh mk/deps.sh src/signal/sigaltstack.c +all: mk/__signal_handler.d +mk/__signal_handler.d: src/signal/__signal_handler.c + sh mk/deps.sh src/signal/__signal_handler.c all: mk/raise.d mk/raise.d: src/signal/raise.c sh mk/deps.sh src/signal/raise.c -all: mk/sigmask.d -mk/sigmask.d: src/signal/sigmask.c - sh mk/deps.sh src/signal/sigmask.c - -all: mk/sigemptyset.d -mk/sigemptyset.d: src/signal/sigemptyset.c - sh mk/deps.sh src/signal/sigemptyset.c +all: mk/__signal.d +mk/__signal.d: src/signal/__signal.c + sh mk/deps.sh src/signal/__signal.c all: mk/kill.d mk/kill.d: src/signal/kill.c sh mk/deps.sh src/signal/kill.c -all: mk/sigrelse.d -mk/sigrelse.d: src/signal/sigrelse.c - sh mk/deps.sh src/signal/sigrelse.c - all: mk/mbrtoc32.d mk/mbrtoc32.d: src/uchar/mbrtoc32.c sh mk/deps.sh src/uchar/mbrtoc32.c @@ -2326,30 +1990,6 @@ all: mk/link.d mk/link.d: src/unistd/link.c sh mk/deps.sh src/unistd/link.c -all: mk/setutxent.d -mk/setutxent.d: src/utmpx/setutxent.c - sh mk/deps.sh src/utmpx/setutxent.c - -all: mk/getutxent.d -mk/getutxent.d: src/utmpx/getutxent.c - sh mk/deps.sh src/utmpx/getutxent.c - -all: mk/pututxline.d -mk/pututxline.d: src/utmpx/pututxline.c - sh mk/deps.sh src/utmpx/pututxline.c - -all: mk/endutxent.d -mk/endutxent.d: src/utmpx/endutxent.c - sh mk/deps.sh src/utmpx/endutxent.c - -all: mk/getutxid.d -mk/getutxid.d: src/utmpx/getutxid.c - sh mk/deps.sh src/utmpx/getutxid.c - -all: mk/getutxline.d -mk/getutxline.d: src/utmpx/getutxline.c - sh mk/deps.sh src/utmpx/getutxline.c - all: mk/clock_settime.d mk/clock_settime.d: src/time/clock_settime.c sh mk/deps.sh src/time/clock_settime.c @@ -2482,42 +2122,6 @@ all: mk/environ.d mk/environ.d: src/environ.c sh mk/deps.sh src/environ.c -all: mk/ulimit.d -mk/ulimit.d: src/ulimit/ulimit.c - sh mk/deps.sh src/ulimit/ulimit.c - -all: mk/re_comp.d -mk/re_comp.d: src/re_comp/re_comp.c - sh mk/deps.sh src/re_comp/re_comp.c - -all: mk/re_exec.d -mk/re_exec.d: src/re_comp/re_exec.c - sh mk/deps.sh src/re_comp/re_exec.c - -all: mk/loc1.d -mk/loc1.d: src/regexp/loc1.c - sh mk/deps.sh src/regexp/loc1.c - -all: mk/locs.d -mk/locs.d: src/regexp/locs.c - sh mk/deps.sh src/regexp/locs.c - -all: mk/advance.d -mk/advance.d: src/regexp/advance.c - sh mk/deps.sh src/regexp/advance.c - -all: mk/step.d -mk/step.d: src/regexp/step.c - sh mk/deps.sh src/regexp/step.c - -all: mk/loc2.d -mk/loc2.d: src/regexp/loc2.c - sh mk/deps.sh src/regexp/loc2.c - -all: mk/compile.d -mk/compile.d: src/regexp/compile.c - sh mk/deps.sh src/regexp/compile.c - all: mk/_longjmp.d mk/_longjmp.d: src/setjmp/_longjmp.c sh mk/deps.sh src/setjmp/_longjmp.c @@ -2542,74 +2146,10 @@ all: mk/sigsetjmp.d mk/sigsetjmp.d: src/setjmp/sigsetjmp.c sh mk/deps.sh src/setjmp/sigsetjmp.c -all: mk/regex.d -mk/regex.d: src/libgen/regex.c - sh mk/deps.sh src/libgen/regex.c - -all: mk/dirname.d -mk/dirname.d: src/libgen/dirname.c - sh mk/deps.sh src/libgen/dirname.c - -all: mk/regcmp.d -mk/regcmp.d: src/libgen/regcmp.c - sh mk/deps.sh src/libgen/regcmp.c - -all: mk/basename.d -mk/basename.d: src/libgen/basename.c - sh mk/deps.sh src/libgen/basename.c - -all: mk/__loc1.d -mk/__loc1.d: src/libgen/__loc1.c - sh mk/deps.sh src/libgen/__loc1.c - all: mk/nl_langinfo.d mk/nl_langinfo.d: src/langinfo/nl_langinfo.c sh mk/deps.sh src/langinfo/nl_langinfo.c -all: mk/remque.d -mk/remque.d: src/search/remque.c - sh mk/deps.sh src/search/remque.c - -all: mk/tdelete.d -mk/tdelete.d: src/search/tdelete.c - sh mk/deps.sh src/search/tdelete.c - -all: mk/hdestroy.d -mk/hdestroy.d: src/search/hdestroy.c - sh mk/deps.sh src/search/hdestroy.c - -all: mk/insque.d -mk/insque.d: src/search/insque.c - sh mk/deps.sh src/search/insque.c - -all: mk/tsearch.d -mk/tsearch.d: src/search/tsearch.c - sh mk/deps.sh src/search/tsearch.c - -all: mk/lsearch.d -mk/lsearch.d: src/search/lsearch.c - sh mk/deps.sh src/search/lsearch.c - -all: mk/lfind.d -mk/lfind.d: src/search/lfind.c - sh mk/deps.sh src/search/lfind.c - -all: mk/hcreate.d -mk/hcreate.d: src/search/hcreate.c - sh mk/deps.sh src/search/hcreate.c - -all: mk/twalk.d -mk/twalk.d: src/search/twalk.c - sh mk/deps.sh src/search/twalk.c - -all: mk/hsearch.d -mk/hsearch.d: src/search/hsearch.c - sh mk/deps.sh src/search/hsearch.c - -all: mk/tfind.d -mk/tfind.d: src/search/tfind.c - sh mk/deps.sh src/search/tfind.c - all: mk/fputs.d mk/fputs.d: src/stdio/fputs.c sh mk/deps.sh src/stdio/fputs.c @@ -2946,26 +2486,6 @@ all: mk/fflush.d mk/fflush.d: src/stdio/fflush.c sh mk/deps.sh src/stdio/fflush.c -all: mk/utime.d -mk/utime.d: src/utime/utime.c - sh mk/deps.sh src/utime/utime.c - -all: mk/setlogmask.d -mk/setlogmask.d: src/syslog/setlogmask.c - sh mk/deps.sh src/syslog/setlogmask.c - -all: mk/openlog.d -mk/openlog.d: src/syslog/openlog.c - sh mk/deps.sh src/syslog/openlog.c - -all: mk/closelog.d -mk/closelog.d: src/syslog/closelog.c - sh mk/deps.sh src/syslog/closelog.c - -all: mk/syslog.d -mk/syslog.d: src/syslog/syslog.c - sh mk/deps.sh src/syslog/syslog.c - all: mk/__errno.d mk/__errno.d: src/errno/__errno.c sh mk/deps.sh src/errno/__errno.c @@ -3142,42 +2662,6 @@ all: mk/towlower.d mk/towlower.d: src/wctype/towlower.c sh mk/deps.sh src/wctype/towlower.c -all: mk/sem_trywait.d -mk/sem_trywait.d: src/semaphore/sem_trywait.c - sh mk/deps.sh src/semaphore/sem_trywait.c - -all: mk/sem_wait.d -mk/sem_wait.d: src/semaphore/sem_wait.c - sh mk/deps.sh src/semaphore/sem_wait.c - -all: mk/sem_init.d -mk/sem_init.d: src/semaphore/sem_init.c - sh mk/deps.sh src/semaphore/sem_init.c - -all: mk/sem_close.d -mk/sem_close.d: src/semaphore/sem_close.c - sh mk/deps.sh src/semaphore/sem_close.c - -all: mk/sem_post.d -mk/sem_post.d: src/semaphore/sem_post.c - sh mk/deps.sh src/semaphore/sem_post.c - -all: mk/sem_unlink.d -mk/sem_unlink.d: src/semaphore/sem_unlink.c - sh mk/deps.sh src/semaphore/sem_unlink.c - -all: mk/sem_open.d -mk/sem_open.d: src/semaphore/sem_open.c - sh mk/deps.sh src/semaphore/sem_open.c - -all: mk/sem_getvalue.d -mk/sem_getvalue.d: src/semaphore/sem_getvalue.c - sh mk/deps.sh src/semaphore/sem_getvalue.c - -all: mk/sem_destroy.d -mk/sem_destroy.d: src/semaphore/sem_destroy.c - sh mk/deps.sh src/semaphore/sem_destroy.c - all: mk/feclearexcept.d mk/feclearexcept.d: src/fenv/feclearexcept.c sh mk/deps.sh src/fenv/feclearexcept.c @@ -3210,10 +2694,6 @@ all: mk/fesetexceptflag.d mk/fesetexceptflag.d: src/fenv/fesetexceptflag.c sh mk/deps.sh src/fenv/fesetexceptflag.c -all: mk/fegetround.d -mk/fegetround.d: src/fenv/fegetround.c - sh mk/deps.sh src/fenv/fegetround.c - all: mk/fetestexcept.d mk/fetestexcept.d: src/fenv/fetestexcept.c sh mk/deps.sh src/fenv/fetestexcept.c @@ -3222,214 +2702,10 @@ all: mk/fegetexceptflag.d mk/fegetexceptflag.d: src/fenv/fegetexceptflag.c sh mk/deps.sh src/fenv/fegetexceptflag.c -all: mk/strfmon.d -mk/strfmon.d: src/monetary/strfmon.c - sh mk/deps.sh src/monetary/strfmon.c - -all: mk/telldir.d -mk/telldir.d: src/dirent/telldir.c - sh mk/deps.sh src/dirent/telldir.c - -all: mk/seekdir.d -mk/seekdir.d: src/dirent/seekdir.c - sh mk/deps.sh src/dirent/seekdir.c - -all: mk/opendir.d -mk/opendir.d: src/dirent/opendir.c - sh mk/deps.sh src/dirent/opendir.c - -all: mk/rewinddir.d -mk/rewinddir.d: src/dirent/rewinddir.c - sh mk/deps.sh src/dirent/rewinddir.c - -all: mk/closedir.d -mk/closedir.d: src/dirent/closedir.c - sh mk/deps.sh src/dirent/closedir.c - -all: mk/readdir.d -mk/readdir.d: src/dirent/readdir.c - sh mk/deps.sh src/dirent/readdir.c - all: mk/__checked_i.d mk/__checked_i.d: src/__checked_i.c sh mk/deps.sh src/__checked_i.c -all: mk/mq_unlink.d -mk/mq_unlink.d: src/mqueue/mq_unlink.c - sh mk/deps.sh src/mqueue/mq_unlink.c - -all: mk/mq_setattr.d -mk/mq_setattr.d: src/mqueue/mq_setattr.c - sh mk/deps.sh src/mqueue/mq_setattr.c - -all: mk/mq_notify.d -mk/mq_notify.d: src/mqueue/mq_notify.c - sh mk/deps.sh src/mqueue/mq_notify.c - -all: mk/mq_close.d -mk/mq_close.d: src/mqueue/mq_close.c - sh mk/deps.sh src/mqueue/mq_close.c - -all: mk/mq_open.d -mk/mq_open.d: src/mqueue/mq_open.c - sh mk/deps.sh src/mqueue/mq_open.c - -all: mk/mq_send.d -mk/mq_send.d: src/mqueue/mq_send.c - sh mk/deps.sh src/mqueue/mq_send.c - -all: mk/mq_getattr.d -mk/mq_getattr.d: src/mqueue/mq_getattr.c - sh mk/deps.sh src/mqueue/mq_getattr.c - -all: mk/struct_mq_attr.d -mk/struct_mq_attr.d: src/mqueue/struct_mq_attr.c - sh mk/deps.sh src/mqueue/struct_mq_attr.c - -all: mk/mq_receive.d -mk/mq_receive.d: src/mqueue/mq_receive.c - sh mk/deps.sh src/mqueue/mq_receive.c - -all: mk/dbm_error.d -mk/dbm_error.d: src/ndbm/dbm_error.c - sh mk/deps.sh src/ndbm/dbm_error.c - -all: mk/dbm_open.d -mk/dbm_open.d: src/ndbm/dbm_open.c - sh mk/deps.sh src/ndbm/dbm_open.c - -all: mk/dbm_fetch.d -mk/dbm_fetch.d: src/ndbm/dbm_fetch.c - sh mk/deps.sh src/ndbm/dbm_fetch.c - -all: mk/dbm_store.d -mk/dbm_store.d: src/ndbm/dbm_store.c - sh mk/deps.sh src/ndbm/dbm_store.c - -all: mk/dbm_clearerr.d -mk/dbm_clearerr.d: src/ndbm/dbm_clearerr.c - sh mk/deps.sh src/ndbm/dbm_clearerr.c - -all: mk/dbm_firstkey.d -mk/dbm_firstkey.d: src/ndbm/dbm_firstkey.c - sh mk/deps.sh src/ndbm/dbm_firstkey.c - -all: mk/dbm_delete.d -mk/dbm_delete.d: src/ndbm/dbm_delete.c - sh mk/deps.sh src/ndbm/dbm_delete.c - -all: mk/dbm_close.d -mk/dbm_close.d: src/ndbm/dbm_close.c - sh mk/deps.sh src/ndbm/dbm_close.c - -all: mk/dbm_nextkey.d -mk/dbm_nextkey.d: src/ndbm/dbm_nextkey.c - sh mk/deps.sh src/ndbm/dbm_nextkey.c - -all: mk/iconv.d -mk/iconv.d: src/iconv/iconv.c - sh mk/deps.sh src/iconv/iconv.c - -all: mk/iconv_open.d -mk/iconv_open.d: src/iconv/iconv_open.c - sh mk/deps.sh src/iconv/iconv_open.c - -all: mk/iconv_close.d -mk/iconv_close.d: src/iconv/iconv_close.c - sh mk/deps.sh src/iconv/iconv_close.c - -all: mk/catclose.d -mk/catclose.d: src/nl_types/catclose.c - sh mk/deps.sh src/nl_types/catclose.c - -all: mk/catgets.d -mk/catgets.d: src/nl_types/catgets.c - sh mk/deps.sh src/nl_types/catgets.c - -all: mk/catopen.d -mk/catopen.d: src/nl_types/catopen.c - sh mk/deps.sh src/nl_types/catopen.c - -all: mk/makecontext.d -mk/makecontext.d: src/ucontext/makecontext.c - sh mk/deps.sh src/ucontext/makecontext.c - -all: mk/setcontext.d -mk/setcontext.d: src/ucontext/setcontext.c - sh mk/deps.sh src/ucontext/setcontext.c - -all: mk/getcontext.d -mk/getcontext.d: src/ucontext/getcontext.c - sh mk/deps.sh src/ucontext/getcontext.c - -all: mk/swapcontext.d -mk/swapcontext.d: src/ucontext/swapcontext.c - sh mk/deps.sh src/ucontext/swapcontext.c - -all: mk/aio_error.d -mk/aio_error.d: src/aio/aio_error.c - sh mk/deps.sh src/aio/aio_error.c - -all: mk/aio_fsync.d -mk/aio_fsync.d: src/aio/aio_fsync.c - sh mk/deps.sh src/aio/aio_fsync.c - -all: mk/aio_return.d -mk/aio_return.d: src/aio/aio_return.c - sh mk/deps.sh src/aio/aio_return.c - -all: mk/aio_cancel.d -mk/aio_cancel.d: src/aio/aio_cancel.c - sh mk/deps.sh src/aio/aio_cancel.c - -all: mk/aio_read.d -mk/aio_read.d: src/aio/aio_read.c - sh mk/deps.sh src/aio/aio_read.c - -all: mk/lio_listio.d -mk/lio_listio.d: src/aio/lio_listio.c - sh mk/deps.sh src/aio/lio_listio.c - -all: mk/aio_suspend.d -mk/aio_suspend.d: src/aio/aio_suspend.c - sh mk/deps.sh src/aio/aio_suspend.c - -all: mk/aio_write.d -mk/aio_write.d: src/aio/aio_write.c - sh mk/deps.sh src/aio/aio_write.c - -all: mk/sched_getscheduler.d -mk/sched_getscheduler.d: src/sched/sched_getscheduler.c - sh mk/deps.sh src/sched/sched_getscheduler.c - -all: mk/sched_rr_get_interval.d -mk/sched_rr_get_interval.d: src/sched/sched_rr_get_interval.c - sh mk/deps.sh src/sched/sched_rr_get_interval.c - -all: mk/sched_setscheduler.d -mk/sched_setscheduler.d: src/sched/sched_setscheduler.c - sh mk/deps.sh src/sched/sched_setscheduler.c - -all: mk/sched_get_priority_max.d -mk/sched_get_priority_max.d: src/sched/sched_get_priority_max.c - sh mk/deps.sh src/sched/sched_get_priority_max.c - -all: mk/sched_get_priority_min.d -mk/sched_get_priority_min.d: src/sched/sched_get_priority_min.c - sh mk/deps.sh src/sched/sched_get_priority_min.c - -all: mk/sched_getparam.d -mk/sched_getparam.d: src/sched/sched_getparam.c - sh mk/deps.sh src/sched/sched_getparam.c - -all: mk/sched_yield.d -mk/sched_yield.d: src/sched/sched_yield.c - sh mk/deps.sh src/sched/sched_yield.c - -all: mk/sched_setparam.d -mk/sched_setparam.d: src/sched/sched_setparam.c - sh mk/deps.sh src/sched/sched_setparam.c - all: mk/__sys.x86-64.s.d mk/__sys.x86-64.s.d: src/__sys.x86-64.s sh mk/deps.sh src/__sys.x86-64.s diff --git a/mk/dirname.d b/mk/dirname.d deleted file mode 100644 index a9f30f1a..00000000 --- a/mk/dirname.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.400: libc.a(dirname.o) -libc.a(dirname.o): $(OBJDIR)/dirname.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/dirname.o: src/libgen/dirname.c -$(OBJDIR)/dirname.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/libgen/dirname.c diff --git a/mk/dlclose.d b/mk/dlclose.d deleted file mode 100644 index f355b6d7..00000000 --- a/mk/dlclose.d +++ /dev/null @@ -1,10 +0,0 @@ -libc_X.500: libc.a(dlclose.o) -libc.a(dlclose.o): $(OBJDIR)/dlclose.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/dlclose.o: src/dlfcn/dlclose.c -$(OBJDIR)/dlclose.o: src/dlfcn/_dlfcn.h -$(OBJDIR)/dlclose.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/dlfcn/dlclose.c diff --git a/mk/dlerror.d b/mk/dlerror.d deleted file mode 100644 index caf92bd3..00000000 --- a/mk/dlerror.d +++ /dev/null @@ -1,10 +0,0 @@ -libc_X.500: libc.a(dlerror.o) -libc.a(dlerror.o): $(OBJDIR)/dlerror.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/dlerror.o: src/dlfcn/dlerror.c -$(OBJDIR)/dlerror.o: src/dlfcn/_dlfcn.h -$(OBJDIR)/dlerror.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/dlfcn/dlerror.c diff --git a/mk/dlopen.d b/mk/dlopen.d deleted file mode 100644 index f6275e1f..00000000 --- a/mk/dlopen.d +++ /dev/null @@ -1,10 +0,0 @@ -libc_X.500: libc.a(dlopen.o) -libc.a(dlopen.o): $(OBJDIR)/dlopen.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/dlopen.o: src/dlfcn/dlopen.c -$(OBJDIR)/dlopen.o: src/dlfcn/_dlfcn.h -$(OBJDIR)/dlopen.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/dlfcn/dlopen.c diff --git a/mk/dlsym.d b/mk/dlsym.d deleted file mode 100644 index 0538cf0a..00000000 --- a/mk/dlsym.d +++ /dev/null @@ -1,10 +0,0 @@ -libc_X.500: libc.a(dlsym.o) -libc.a(dlsym.o): $(OBJDIR)/dlsym.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/dlsym.o: src/dlfcn/dlsym.c -$(OBJDIR)/dlsym.o: src/dlfcn/_dlfcn.h -$(OBJDIR)/dlsym.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/dlfcn/dlsym.c diff --git a/mk/endgrent.d b/mk/endgrent.d deleted file mode 100644 index 465c3378..00000000 --- a/mk/endgrent.d +++ /dev/null @@ -1,10 +0,0 @@ -libc_X.400: libc.a(endgrent.o) -libc.a(endgrent.o): $(OBJDIR)/endgrent.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/endgrent.o: src/grp/endgrent.c -$(OBJDIR)/endgrent.o: src/grp/_grp.h -$(OBJDIR)/endgrent.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/grp/endgrent.c diff --git a/mk/endpwent.d b/mk/endpwent.d deleted file mode 100644 index 2c51cead..00000000 --- a/mk/endpwent.d +++ /dev/null @@ -1,10 +0,0 @@ -libc_X.400: libc.a(endpwent.o) -libc.a(endpwent.o): $(OBJDIR)/endpwent.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/endpwent.o: src/pwd/endpwent.c -$(OBJDIR)/endpwent.o: src/pwd/_pwd.h -$(OBJDIR)/endpwent.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/pwd/endpwent.c diff --git a/mk/endutxent.d b/mk/endutxent.d deleted file mode 100644 index 6c3e58a4..00000000 --- a/mk/endutxent.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.400: libc.a(endutxent.o) -libc.a(endutxent.o): $(OBJDIR)/endutxent.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/endutxent.o: src/utmpx/endutxent.c -$(OBJDIR)/endutxent.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/utmpx/endutxent.c diff --git a/mk/fattach.d b/mk/fattach.d deleted file mode 100644 index eeb837a0..00000000 --- a/mk/fattach.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.400: libc.a(fattach.o) -libc.a(fattach.o): $(OBJDIR)/fattach.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/fattach.o: src/stropts/fattach.c -$(OBJDIR)/fattach.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/stropts/fattach.c diff --git a/mk/fclose.d b/mk/fclose.d index 04eb09bf..70cd3983 100644 --- a/mk/fclose.d +++ b/mk/fclose.d @@ -5,6 +5,7 @@ libc.a(fclose.o): $(OBJDIR)/fclose.o $(OBJDIR)/fclose.o: src/stdio/fclose.c $(OBJDIR)/fclose.o: src/stdio/_stdio.h $(OBJDIR)/fclose.o: src/_syscall.h +$(OBJDIR)/fclose.o: src/_safety.h $(OBJDIR)/fclose.o: @echo " [CC] $@" @mkdir -p $(@D) diff --git a/mk/fdetach.d b/mk/fdetach.d deleted file mode 100644 index 384ce14a..00000000 --- a/mk/fdetach.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.400: libc.a(fdetach.o) -libc.a(fdetach.o): $(OBJDIR)/fdetach.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/fdetach.o: src/stropts/fdetach.c -$(OBJDIR)/fdetach.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/stropts/fdetach.c diff --git a/mk/fdopen.d b/mk/fdopen.d index ad121ff0..d09af1ff 100644 --- a/mk/fdopen.d +++ b/mk/fdopen.d @@ -3,6 +3,7 @@ libc.a(fdopen.o): $(OBJDIR)/fdopen.o @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% $(OBJDIR)/fdopen.o: src/stdio/fdopen.c +$(OBJDIR)/fdopen.o: src/_safety.h $(OBJDIR)/fdopen.o: @echo " [CC] $@" @mkdir -p $(@D) diff --git a/mk/feclearexcept.d b/mk/feclearexcept.d index 3671768d..043fa1b7 100644 --- a/mk/feclearexcept.d +++ b/mk/feclearexcept.d @@ -3,6 +3,7 @@ libm.a(feclearexcept.o): $(OBJDIR)/feclearexcept.o @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% $(OBJDIR)/feclearexcept.o: src/fenv/feclearexcept.c +$(OBJDIR)/feclearexcept.o: src/_safety.h $(OBJDIR)/feclearexcept.o: @echo " [CC] $@" @mkdir -p $(@D) diff --git a/mk/fegetenv.d b/mk/fegetenv.d index 0ba63493..b31c2969 100644 --- a/mk/fegetenv.d +++ b/mk/fegetenv.d @@ -3,6 +3,7 @@ libm.a(fegetenv.o): $(OBJDIR)/fegetenv.o @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% $(OBJDIR)/fegetenv.o: src/fenv/fegetenv.c +$(OBJDIR)/fegetenv.o: src/_safety.h $(OBJDIR)/fegetenv.o: @echo " [CC] $@" @mkdir -p $(@D) diff --git a/mk/fegetexceptflag.d b/mk/fegetexceptflag.d index ece0f430..c3cc724f 100644 --- a/mk/fegetexceptflag.d +++ b/mk/fegetexceptflag.d @@ -3,6 +3,7 @@ libm.a(fegetexceptflag.o): $(OBJDIR)/fegetexceptflag.o @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% $(OBJDIR)/fegetexceptflag.o: src/fenv/fegetexceptflag.c +$(OBJDIR)/fegetexceptflag.o: src/_safety.h $(OBJDIR)/fegetexceptflag.o: @echo " [CC] $@" @mkdir -p $(@D) diff --git a/mk/fegetround.d b/mk/fegetround.d deleted file mode 100644 index ce5993e5..00000000 --- a/mk/fegetround.d +++ /dev/null @@ -1,9 +0,0 @@ -libm_C.199901: libm.a(fegetround.o) -libm.a(fegetround.o): $(OBJDIR)/fegetround.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/fegetround.o: src/fenv/fegetround.c -$(OBJDIR)/fegetround.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/fenv/fegetround.c diff --git a/mk/feholdexcept.d b/mk/feholdexcept.d index ab72459a..0675473b 100644 --- a/mk/feholdexcept.d +++ b/mk/feholdexcept.d @@ -3,6 +3,7 @@ libm.a(feholdexcept.o): $(OBJDIR)/feholdexcept.o @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% $(OBJDIR)/feholdexcept.o: src/fenv/feholdexcept.c +$(OBJDIR)/feholdexcept.o: src/_safety.h $(OBJDIR)/feholdexcept.o: @echo " [CC] $@" @mkdir -p $(@D) @@ -3,8 +3,8 @@ libc.a(feof.o): $(OBJDIR)/feof.o @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% $(OBJDIR)/feof.o: src/stdio/feof.c -$(OBJDIR)/feof.o: src/_assert.h $(OBJDIR)/feof.o: src/stdio/_stdio.h +$(OBJDIR)/feof.o: src/_safety.h $(OBJDIR)/feof.o: @echo " [CC] $@" @mkdir -p $(@D) diff --git a/mk/feraiseexcept.d b/mk/feraiseexcept.d index f563bff5..67d5b172 100644 --- a/mk/feraiseexcept.d +++ b/mk/feraiseexcept.d @@ -3,6 +3,7 @@ libm.a(feraiseexcept.o): $(OBJDIR)/feraiseexcept.o @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% $(OBJDIR)/feraiseexcept.o: src/fenv/feraiseexcept.c +$(OBJDIR)/feraiseexcept.o: src/_safety.h $(OBJDIR)/feraiseexcept.o: @echo " [CC] $@" @mkdir -p $(@D) diff --git a/mk/ferror.d b/mk/ferror.d index e5761352..2e9704ff 100644 --- a/mk/ferror.d +++ b/mk/ferror.d @@ -3,8 +3,8 @@ libc.a(ferror.o): $(OBJDIR)/ferror.o @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% $(OBJDIR)/ferror.o: src/stdio/ferror.c -$(OBJDIR)/ferror.o: src/_assert.h $(OBJDIR)/ferror.o: src/stdio/_stdio.h +$(OBJDIR)/ferror.o: src/_safety.h $(OBJDIR)/ferror.o: @echo " [CC] $@" @mkdir -p $(@D) diff --git a/mk/fesetenv.d b/mk/fesetenv.d index b19412ba..8e99dfbf 100644 --- a/mk/fesetenv.d +++ b/mk/fesetenv.d @@ -3,6 +3,7 @@ libm.a(fesetenv.o): $(OBJDIR)/fesetenv.o @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% $(OBJDIR)/fesetenv.o: src/fenv/fesetenv.c +$(OBJDIR)/fesetenv.o: src/_safety.h $(OBJDIR)/fesetenv.o: @echo " [CC] $@" @mkdir -p $(@D) diff --git a/mk/fesetexceptflag.d b/mk/fesetexceptflag.d index bedcadbb..ff20bab8 100644 --- a/mk/fesetexceptflag.d +++ b/mk/fesetexceptflag.d @@ -3,6 +3,7 @@ libm.a(fesetexceptflag.o): $(OBJDIR)/fesetexceptflag.o @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% $(OBJDIR)/fesetexceptflag.o: src/fenv/fesetexceptflag.c +$(OBJDIR)/fesetexceptflag.o: src/_safety.h $(OBJDIR)/fesetexceptflag.o: @echo " [CC] $@" @mkdir -p $(@D) diff --git a/mk/fesetround.d b/mk/fesetround.d index 1a66fcf7..9239fe6f 100644 --- a/mk/fesetround.d +++ b/mk/fesetround.d @@ -3,6 +3,7 @@ libm.a(fesetround.o): $(OBJDIR)/fesetround.o @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% $(OBJDIR)/fesetround.o: src/fenv/fesetround.c +$(OBJDIR)/fesetround.o: src/_safety.h $(OBJDIR)/fesetround.o: @echo " [CC] $@" @mkdir -p $(@D) diff --git a/mk/fetestexcept.d b/mk/fetestexcept.d index 93d85fdf..ab0285e9 100644 --- a/mk/fetestexcept.d +++ b/mk/fetestexcept.d @@ -3,6 +3,7 @@ libm.a(fetestexcept.o): $(OBJDIR)/fetestexcept.o @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% $(OBJDIR)/fetestexcept.o: src/fenv/fetestexcept.c +$(OBJDIR)/fetestexcept.o: src/_safety.h $(OBJDIR)/fetestexcept.o: @echo " [CC] $@" @mkdir -p $(@D) diff --git a/mk/feupdateenv.d b/mk/feupdateenv.d index b6ef8ff2..a56e0c18 100644 --- a/mk/feupdateenv.d +++ b/mk/feupdateenv.d @@ -3,6 +3,7 @@ libm.a(feupdateenv.o): $(OBJDIR)/feupdateenv.o @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% $(OBJDIR)/feupdateenv.o: src/fenv/feupdateenv.c +$(OBJDIR)/feupdateenv.o: src/_safety.h $(OBJDIR)/feupdateenv.o: @echo " [CC] $@" @mkdir -p $(@D) diff --git a/mk/fflush.d b/mk/fflush.d index 53a5db6b..9bacbe9d 100644 --- a/mk/fflush.d +++ b/mk/fflush.d @@ -5,6 +5,7 @@ libc.a(fflush.o): $(OBJDIR)/fflush.o $(OBJDIR)/fflush.o: src/stdio/fflush.c $(OBJDIR)/fflush.o: src/stdio/_stdio.h $(OBJDIR)/fflush.o: src/_syscall.h +$(OBJDIR)/fflush.o: src/_safety.h $(OBJDIR)/fflush.o: @echo " [CC] $@" @mkdir -p $(@D) diff --git a/mk/ffs.d b/mk/ffs.d deleted file mode 100644 index 577e5803..00000000 --- a/mk/ffs.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.400: libc.a(ffs.o) -libc.a(ffs.o): $(OBJDIR)/ffs.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/ffs.o: src/strings/ffs.c -$(OBJDIR)/ffs.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/strings/ffs.c diff --git a/mk/fileno.d b/mk/fileno.d index 75b3687e..b3c2acd8 100644 --- a/mk/fileno.d +++ b/mk/fileno.d @@ -4,7 +4,6 @@ libc.a(fileno.o): $(OBJDIR)/fileno.o $(OBJDIR)/fileno.o: src/stdio/fileno.c $(OBJDIR)/fileno.o: src/stdio/_stdio.h -$(OBJDIR)/fileno.o: src/_assert.h $(OBJDIR)/fileno.o: @echo " [CC] $@" @mkdir -p $(@D) diff --git a/mk/flockfile.d b/mk/flockfile.d index 077c12cb..3e20420d 100644 --- a/mk/flockfile.d +++ b/mk/flockfile.d @@ -3,6 +3,7 @@ libc.a(flockfile.o): $(OBJDIR)/flockfile.o @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% $(OBJDIR)/flockfile.o: src/stdio/flockfile.c +$(OBJDIR)/flockfile.o: src/stdio/_stdio.h $(OBJDIR)/flockfile.o: @echo " [CC] $@" @mkdir -p $(@D) diff --git a/mk/fmtmsg.d b/mk/fmtmsg.d deleted file mode 100644 index de1e5000..00000000 --- a/mk/fmtmsg.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.400: libc.a(fmtmsg.o) -libc.a(fmtmsg.o): $(OBJDIR)/fmtmsg.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/fmtmsg.o: src/fmtmsg/fmtmsg.c -$(OBJDIR)/fmtmsg.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/fmtmsg/fmtmsg.c diff --git a/mk/fnmatch.d b/mk/fnmatch.d deleted file mode 100644 index 02297298..00000000 --- a/mk/fnmatch.d +++ /dev/null @@ -1,10 +0,0 @@ -libc_P.2: libc.a(fnmatch.o) -libc.a(fnmatch.o): $(OBJDIR)/fnmatch.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/fnmatch.o: src/fnmatch/fnmatch.c -$(OBJDIR)/fnmatch.o: src/_assert.h -$(OBJDIR)/fnmatch.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/fnmatch/fnmatch.c diff --git a/mk/fopen_s.d b/mk/fopen_s.d index 685a8ae2..5db8b5eb 100644 --- a/mk/fopen_s.d +++ b/mk/fopen_s.d @@ -3,7 +3,7 @@ libc.a(fopen_s.o): $(OBJDIR)/fopen_s.o @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% $(OBJDIR)/fopen_s.o: src/stdio/fopen_s.c -$(OBJDIR)/fopen_s.o: +$(OBJDIR)/fopen_s.o: src/stdio/_stdio.h $(OBJDIR)/fopen_s.o: @echo " [CC] $@" @mkdir -p $(@D) diff --git a/mk/fprintf_s.d b/mk/fprintf_s.d index d1b2d091..df92664f 100644 --- a/mk/fprintf_s.d +++ b/mk/fprintf_s.d @@ -3,6 +3,7 @@ libc.a(fprintf_s.o): $(OBJDIR)/fprintf_s.o @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% $(OBJDIR)/fprintf_s.o: src/stdio/fprintf_s.c +$(OBJDIR)/fprintf_s.o: src/stdio/_stdio.h $(OBJDIR)/fprintf_s.o: @echo " [CC] $@" @mkdir -p $(@D) diff --git a/mk/freopen_s.d b/mk/freopen_s.d index 4b9b09f6..4b3bd744 100644 --- a/mk/freopen_s.d +++ b/mk/freopen_s.d @@ -3,7 +3,7 @@ libc.a(freopen_s.o): $(OBJDIR)/freopen_s.o @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% $(OBJDIR)/freopen_s.o: src/stdio/freopen_s.c -$(OBJDIR)/freopen_s.o: +$(OBJDIR)/freopen_s.o: src/stdio/_stdio.h $(OBJDIR)/freopen_s.o: @echo " [CC] $@" @mkdir -p $(@D) @@ -3,6 +3,7 @@ libc.a(ftell.o): $(OBJDIR)/ftell.o @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% $(OBJDIR)/ftell.o: src/stdio/ftell.c +$(OBJDIR)/ftell.o: src/stdio/_stdio.h $(OBJDIR)/ftell.o: @echo " [CC] $@" @mkdir -p $(@D) diff --git a/mk/ftw.d b/mk/ftw.d deleted file mode 100644 index 755f014a..00000000 --- a/mk/ftw.d +++ /dev/null @@ -1,10 +0,0 @@ -libc_X.4: libc.a(ftw.o) -libc.a(ftw.o): $(OBJDIR)/ftw.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/ftw.o: src/ftw/ftw.c -$(OBJDIR)/ftw.o: src/ftw/_ftw.h -$(OBJDIR)/ftw.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/ftw/ftw.c diff --git a/mk/funlockfile.d b/mk/funlockfile.d index 7d655916..e1948de1 100644 --- a/mk/funlockfile.d +++ b/mk/funlockfile.d @@ -3,6 +3,7 @@ libc.a(funlockfile.o): $(OBJDIR)/funlockfile.o @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% $(OBJDIR)/funlockfile.o: src/stdio/funlockfile.c +$(OBJDIR)/funlockfile.o: src/stdio/_stdio.h $(OBJDIR)/funlockfile.o: @echo " [CC] $@" @mkdir -p $(@D) diff --git a/mk/fwrite.d b/mk/fwrite.d index 974a50b9..3759c2d0 100644 --- a/mk/fwrite.d +++ b/mk/fwrite.d @@ -3,6 +3,7 @@ libc.a(fwrite.o): $(OBJDIR)/fwrite.o @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% $(OBJDIR)/fwrite.o: src/stdio/fwrite.c +$(OBJDIR)/fwrite.o: src/stdio/_stdio.h $(OBJDIR)/fwrite.o: @echo " [CC] $@" @mkdir -p $(@D) @@ -3,6 +3,7 @@ libc.a(getc.o): $(OBJDIR)/getc.o @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% $(OBJDIR)/getc.o: src/stdio/getc.c +$(OBJDIR)/getc.o: src/stdio/_stdio.h $(OBJDIR)/getc.o: @echo " [CC] $@" @mkdir -p $(@D) diff --git a/mk/getchar.d b/mk/getchar.d index 7a4c4982..e7412ac0 100644 --- a/mk/getchar.d +++ b/mk/getchar.d @@ -3,6 +3,7 @@ libc.a(getchar.o): $(OBJDIR)/getchar.o @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% $(OBJDIR)/getchar.o: src/stdio/getchar.c +$(OBJDIR)/getchar.o: src/stdio/_stdio.h $(OBJDIR)/getchar.o: @echo " [CC] $@" @mkdir -p $(@D) diff --git a/mk/getcontext.d b/mk/getcontext.d deleted file mode 100644 index b6c8e7d7..00000000 --- a/mk/getcontext.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.400: libc.a(getcontext.o) -libc.a(getcontext.o): $(OBJDIR)/getcontext.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/getcontext.o: src/ucontext/getcontext.c -$(OBJDIR)/getcontext.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/ucontext/getcontext.c diff --git a/mk/getgrent.d b/mk/getgrent.d deleted file mode 100644 index 547ba102..00000000 --- a/mk/getgrent.d +++ /dev/null @@ -1,11 +0,0 @@ -libc_X.400: libc.a(getgrent.o) -libc.a(getgrent.o): $(OBJDIR)/getgrent.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/getgrent.o: src/grp/getgrent.c -$(OBJDIR)/getgrent.o: src/_config.h -$(OBJDIR)/getgrent.o: src/grp/_grp.h -$(OBJDIR)/getgrent.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/grp/getgrent.c diff --git a/mk/getgrgid.d b/mk/getgrgid.d deleted file mode 100644 index 45ac67cd..00000000 --- a/mk/getgrgid.d +++ /dev/null @@ -1,10 +0,0 @@ -libc_P.1: libc.a(getgrgid.o) -libc.a(getgrgid.o): $(OBJDIR)/getgrgid.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/getgrgid.o: src/grp/getgrgid.c -$(OBJDIR)/getgrgid.o: src/grp/_grp.h -$(OBJDIR)/getgrgid.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/grp/getgrgid.c diff --git a/mk/getgrnam.d b/mk/getgrnam.d deleted file mode 100644 index aea8dbe9..00000000 --- a/mk/getgrnam.d +++ /dev/null @@ -1,10 +0,0 @@ -libc_P.1: libc.a(getgrnam.o) -libc.a(getgrnam.o): $(OBJDIR)/getgrnam.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/getgrnam.o: src/grp/getgrnam.c -$(OBJDIR)/getgrnam.o: src/grp/_grp.h -$(OBJDIR)/getgrnam.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/grp/getgrnam.c diff --git a/mk/getmsg.d b/mk/getmsg.d deleted file mode 100644 index 9c747fe4..00000000 --- a/mk/getmsg.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.400: libc.a(getmsg.o) -libc.a(getmsg.o): $(OBJDIR)/getmsg.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/getmsg.o: src/stropts/getmsg.c -$(OBJDIR)/getmsg.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/stropts/getmsg.c diff --git a/mk/getpmsg.d b/mk/getpmsg.d deleted file mode 100644 index 46c6cc24..00000000 --- a/mk/getpmsg.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.400: libc.a(getpmsg.o) -libc.a(getpmsg.o): $(OBJDIR)/getpmsg.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/getpmsg.o: src/stropts/getpmsg.c -$(OBJDIR)/getpmsg.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/stropts/getpmsg.c diff --git a/mk/getpwent.d b/mk/getpwent.d deleted file mode 100644 index a6dab1b5..00000000 --- a/mk/getpwent.d +++ /dev/null @@ -1,11 +0,0 @@ -libc_X.400: libc.a(getpwent.o) -libc.a(getpwent.o): $(OBJDIR)/getpwent.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/getpwent.o: src/pwd/getpwent.c -$(OBJDIR)/getpwent.o: src/_config.h -$(OBJDIR)/getpwent.o: src/pwd/_pwd.h -$(OBJDIR)/getpwent.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/pwd/getpwent.c diff --git a/mk/getpwnam.d b/mk/getpwnam.d deleted file mode 100644 index 7981cf26..00000000 --- a/mk/getpwnam.d +++ /dev/null @@ -1,10 +0,0 @@ -libc_P.1: libc.a(getpwnam.o) -libc.a(getpwnam.o): $(OBJDIR)/getpwnam.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/getpwnam.o: src/pwd/getpwnam.c -$(OBJDIR)/getpwnam.o: src/pwd/_pwd.h -$(OBJDIR)/getpwnam.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/pwd/getpwnam.c diff --git a/mk/getpwuid.d b/mk/getpwuid.d deleted file mode 100644 index 9b8ad3e8..00000000 --- a/mk/getpwuid.d +++ /dev/null @@ -1,10 +0,0 @@ -libc_P.1: libc.a(getpwuid.o) -libc.a(getpwuid.o): $(OBJDIR)/getpwuid.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/getpwuid.o: src/pwd/getpwuid.c -$(OBJDIR)/getpwuid.o: src/pwd/_pwd.h -$(OBJDIR)/getpwuid.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/pwd/getpwuid.c @@ -3,6 +3,7 @@ libc.a(gets.o): $(OBJDIR)/gets.o @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% $(OBJDIR)/gets.o: src/stdio/gets.c +$(OBJDIR)/gets.o: src/stdio/_stdio.h $(OBJDIR)/gets.o: @echo " [CC] $@" @mkdir -p $(@D) diff --git a/mk/gets_s.d b/mk/gets_s.d index 6a17839c..5c2d181a 100644 --- a/mk/gets_s.d +++ b/mk/gets_s.d @@ -3,6 +3,7 @@ libc.a(gets_s.o): $(OBJDIR)/gets_s.o @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% $(OBJDIR)/gets_s.o: src/stdio/gets_s.c +$(OBJDIR)/gets_s.o: src/stdio/_stdio.h $(OBJDIR)/gets_s.o: @echo " [CC] $@" @mkdir -p $(@D) diff --git a/mk/getutxent.d b/mk/getutxent.d deleted file mode 100644 index ac30b21e..00000000 --- a/mk/getutxent.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.400: libc.a(getutxent.o) -libc.a(getutxent.o): $(OBJDIR)/getutxent.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/getutxent.o: src/utmpx/getutxent.c -$(OBJDIR)/getutxent.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/utmpx/getutxent.c diff --git a/mk/getutxid.d b/mk/getutxid.d deleted file mode 100644 index db98c459..00000000 --- a/mk/getutxid.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.400: libc.a(getutxid.o) -libc.a(getutxid.o): $(OBJDIR)/getutxid.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/getutxid.o: src/utmpx/getutxid.c -$(OBJDIR)/getutxid.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/utmpx/getutxid.c diff --git a/mk/getutxline.d b/mk/getutxline.d deleted file mode 100644 index ee1289c3..00000000 --- a/mk/getutxline.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.400: libc.a(getutxline.o) -libc.a(getutxline.o): $(OBJDIR)/getutxline.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/getutxline.o: src/utmpx/getutxline.c -$(OBJDIR)/getutxline.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/utmpx/getutxline.c @@ -3,6 +3,7 @@ libc.a(getw.o): $(OBJDIR)/getw.o @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% $(OBJDIR)/getw.o: src/stdio/getw.c +$(OBJDIR)/getw.o: src/stdio/_stdio.h $(OBJDIR)/getw.o: @echo " [CC] $@" @mkdir -p $(@D) diff --git a/mk/glob.d b/mk/glob.d deleted file mode 100644 index 4b2d2852..00000000 --- a/mk/glob.d +++ /dev/null @@ -1,10 +0,0 @@ -libc_P.2: libc.a(glob.o) -libc.a(glob.o): $(OBJDIR)/glob.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/glob.o: src/glob/glob.c -$(OBJDIR)/glob.o: src/_assert.h -$(OBJDIR)/glob.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/glob/glob.c diff --git a/mk/globfree.d b/mk/globfree.d deleted file mode 100644 index 75d54427..00000000 --- a/mk/globfree.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_P.2: libc.a(globfree.o) -libc.a(globfree.o): $(OBJDIR)/globfree.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/globfree.o: src/glob/globfree.c -$(OBJDIR)/globfree.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/glob/globfree.c diff --git a/mk/hcreate.d b/mk/hcreate.d deleted file mode 100644 index 098f6be4..00000000 --- a/mk/hcreate.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.4: libc.a(hcreate.o) -libc.a(hcreate.o): $(OBJDIR)/hcreate.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/hcreate.o: src/search/hcreate.c -$(OBJDIR)/hcreate.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/search/hcreate.c diff --git a/mk/hdestroy.d b/mk/hdestroy.d deleted file mode 100644 index f510fd96..00000000 --- a/mk/hdestroy.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.4: libc.a(hdestroy.o) -libc.a(hdestroy.o): $(OBJDIR)/hdestroy.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/hdestroy.o: src/search/hdestroy.c -$(OBJDIR)/hdestroy.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/search/hdestroy.c diff --git a/mk/hsearch.d b/mk/hsearch.d deleted file mode 100644 index d08e9a6d..00000000 --- a/mk/hsearch.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.4: libc.a(hsearch.o) -libc.a(hsearch.o): $(OBJDIR)/hsearch.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/hsearch.o: src/search/hsearch.c -$(OBJDIR)/hsearch.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/search/hsearch.c diff --git a/mk/htonl.d b/mk/htonl.d deleted file mode 100644 index 34d3d002..00000000 --- a/mk/htonl.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_C.0: libc.a(htonl.o) -libc.a(htonl.o): $(OBJDIR)/htonl.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/htonl.o: src/arpa/inet/htonl.c -$(OBJDIR)/htonl.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/arpa/inet/htonl.c diff --git a/mk/htons.d b/mk/htons.d deleted file mode 100644 index ac04f727..00000000 --- a/mk/htons.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_C.0: libc.a(htons.o) -libc.a(htons.o): $(OBJDIR)/htons.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/htons.o: src/arpa/inet/htons.c -$(OBJDIR)/htons.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/arpa/inet/htons.c diff --git a/mk/iconv.d b/mk/iconv.d deleted file mode 100644 index 7b0e0fa3..00000000 --- a/mk/iconv.d +++ /dev/null @@ -1,10 +0,0 @@ -libc_P.200809: libc.a(iconv.o) -libc_X.4: libc.a(iconv.o) -libc.a(iconv.o): $(OBJDIR)/iconv.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/iconv.o: src/iconv/iconv.c -$(OBJDIR)/iconv.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/iconv/iconv.c diff --git a/mk/iconv_close.d b/mk/iconv_close.d deleted file mode 100644 index 187ee40e..00000000 --- a/mk/iconv_close.d +++ /dev/null @@ -1,10 +0,0 @@ -libc_P.200809: libc.a(iconv_close.o) -libc_X.4: libc.a(iconv_close.o) -libc.a(iconv_close.o): $(OBJDIR)/iconv_close.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/iconv_close.o: src/iconv/iconv_close.c -$(OBJDIR)/iconv_close.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/iconv/iconv_close.c diff --git a/mk/iconv_open.d b/mk/iconv_open.d deleted file mode 100644 index cf88d366..00000000 --- a/mk/iconv_open.d +++ /dev/null @@ -1,10 +0,0 @@ -libc_P.200809: libc.a(iconv_open.o) -libc_X.4: libc.a(iconv_open.o) -libc.a(iconv_open.o): $(OBJDIR)/iconv_open.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/iconv_open.o: src/iconv/iconv_open.c -$(OBJDIR)/iconv_open.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/iconv/iconv_open.c diff --git a/mk/imaxabs.d b/mk/imaxabs.d deleted file mode 100644 index 7e1317ef..00000000 --- a/mk/imaxabs.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_C.199901: libc.a(imaxabs.o) -libc.a(imaxabs.o): $(OBJDIR)/imaxabs.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/imaxabs.o: src/inttypes/imaxabs.c -$(OBJDIR)/imaxabs.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/inttypes/imaxabs.c diff --git a/mk/imaxdiv.d b/mk/imaxdiv.d deleted file mode 100644 index c38ab067..00000000 --- a/mk/imaxdiv.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_C.199901: libc.a(imaxdiv.o) -libc.a(imaxdiv.o): $(OBJDIR)/imaxdiv.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/imaxdiv.o: src/inttypes/imaxdiv.c -$(OBJDIR)/imaxdiv.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/inttypes/imaxdiv.c diff --git a/mk/index.d b/mk/index.d deleted file mode 100644 index a79f243d..00000000 --- a/mk/index.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.400: libc.a(index.o) -libc.a(index.o): $(OBJDIR)/index.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/index.o: src/strings/index.c -$(OBJDIR)/index.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/strings/index.c diff --git a/mk/inet_addr.d b/mk/inet_addr.d deleted file mode 100644 index 1272e86f..00000000 --- a/mk/inet_addr.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_C.0: libc.a(inet_addr.o) -libc.a(inet_addr.o): $(OBJDIR)/inet_addr.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/inet_addr.o: src/arpa/inet/inet_addr.c -$(OBJDIR)/inet_addr.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/arpa/inet/inet_addr.c diff --git a/mk/inet_ntoa.d b/mk/inet_ntoa.d deleted file mode 100644 index 2a783a9e..00000000 --- a/mk/inet_ntoa.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_C.0: libc.a(inet_ntoa.o) -libc.a(inet_ntoa.o): $(OBJDIR)/inet_ntoa.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/inet_ntoa.o: src/arpa/inet/inet_ntoa.c -$(OBJDIR)/inet_ntoa.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/arpa/inet/inet_ntoa.c diff --git a/mk/inet_ntop.d b/mk/inet_ntop.d deleted file mode 100644 index 6311075f..00000000 --- a/mk/inet_ntop.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_C.0: libc.a(inet_ntop.o) -libc.a(inet_ntop.o): $(OBJDIR)/inet_ntop.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/inet_ntop.o: src/arpa/inet/inet_ntop.c -$(OBJDIR)/inet_ntop.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/arpa/inet/inet_ntop.c diff --git a/mk/inet_pton.d b/mk/inet_pton.d deleted file mode 100644 index 7bae5911..00000000 --- a/mk/inet_pton.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_C.0: libc.a(inet_pton.o) -libc.a(inet_pton.o): $(OBJDIR)/inet_pton.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/inet_pton.o: src/arpa/inet/inet_pton.c -$(OBJDIR)/inet_pton.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/arpa/inet/inet_pton.c diff --git a/mk/insque.d b/mk/insque.d deleted file mode 100644 index fc9ae8fd..00000000 --- a/mk/insque.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.400: libc.a(insque.o) -libc.a(insque.o): $(OBJDIR)/insque.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/insque.o: src/search/insque.c -$(OBJDIR)/insque.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/search/insque.c diff --git a/mk/ioctl.d b/mk/ioctl.d deleted file mode 100644 index 9eb31daf..00000000 --- a/mk/ioctl.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.400: libc.a(ioctl.o) -libc.a(ioctl.o): $(OBJDIR)/ioctl.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/ioctl.o: src/stropts/ioctl.c -$(OBJDIR)/ioctl.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/stropts/ioctl.c diff --git a/mk/isalnum.d b/mk/isalnum.d index 6ff9989b..a6e6f1fd 100644 --- a/mk/isalnum.d +++ b/mk/isalnum.d @@ -3,7 +3,7 @@ libc.a(isalnum.o): $(OBJDIR)/isalnum.o @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% $(OBJDIR)/isalnum.o: src/ctype/isalnum.c -$(OBJDIR)/isalnum.o: src/_assert.h +$(OBJDIR)/isalnum.o: src/_safety.h $(OBJDIR)/isalnum.o: @echo " [CC] $@" @mkdir -p $(@D) diff --git a/mk/isalpha.d b/mk/isalpha.d index 18000b79..e0823644 100644 --- a/mk/isalpha.d +++ b/mk/isalpha.d @@ -3,7 +3,7 @@ libc.a(isalpha.o): $(OBJDIR)/isalpha.o @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% $(OBJDIR)/isalpha.o: src/ctype/isalpha.c -$(OBJDIR)/isalpha.o: src/_assert.h +$(OBJDIR)/isalpha.o: src/_safety.h $(OBJDIR)/isalpha.o: @echo " [CC] $@" @mkdir -p $(@D) diff --git a/mk/isastream.d b/mk/isastream.d deleted file mode 100644 index 2dfe6f82..00000000 --- a/mk/isastream.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.400: libc.a(isastream.o) -libc.a(isastream.o): $(OBJDIR)/isastream.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/isastream.o: src/stropts/isastream.c -$(OBJDIR)/isastream.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/stropts/isastream.c diff --git a/mk/isdigit.d b/mk/isdigit.d index 04389713..67e97a8b 100644 --- a/mk/isdigit.d +++ b/mk/isdigit.d @@ -3,7 +3,7 @@ libc.a(isdigit.o): $(OBJDIR)/isdigit.o @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% $(OBJDIR)/isdigit.o: src/ctype/isdigit.c -$(OBJDIR)/isdigit.o: src/_assert.h +$(OBJDIR)/isdigit.o: src/_safety.h $(OBJDIR)/isdigit.o: @echo " [CC] $@" @mkdir -p $(@D) diff --git a/mk/killpg.d b/mk/killpg.d deleted file mode 100644 index 12450500..00000000 --- a/mk/killpg.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.400: libc.a(killpg.o) -libc.a(killpg.o): $(OBJDIR)/killpg.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/killpg.o: src/signal/killpg.c -$(OBJDIR)/killpg.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/signal/killpg.c diff --git a/mk/lfind.d b/mk/lfind.d deleted file mode 100644 index f2025dc6..00000000 --- a/mk/lfind.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.4: libc.a(lfind.o) -libc.a(lfind.o): $(OBJDIR)/lfind.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/lfind.o: src/search/lfind.c -$(OBJDIR)/lfind.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/search/lfind.c diff --git a/mk/lio_listio.d b/mk/lio_listio.d deleted file mode 100644 index 0f1897da..00000000 --- a/mk/lio_listio.d +++ /dev/null @@ -1,9 +0,0 @@ -librt_P.199309: librt.a(lio_listio.o) -librt.a(lio_listio.o): $(OBJDIR)/lio_listio.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/lio_listio.o: src/aio/lio_listio.c -$(OBJDIR)/lio_listio.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/aio/lio_listio.c diff --git a/mk/loc1.d b/mk/loc1.d deleted file mode 100644 index 3619fff6..00000000 --- a/mk/loc1.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.4: libc.a(loc1.o) -libc.a(loc1.o): $(OBJDIR)/loc1.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/loc1.o: src/regexp/loc1.c -$(OBJDIR)/loc1.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/regexp/loc1.c diff --git a/mk/loc2.d b/mk/loc2.d deleted file mode 100644 index e25f33e9..00000000 --- a/mk/loc2.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.4: libc.a(loc2.o) -libc.a(loc2.o): $(OBJDIR)/loc2.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/loc2.o: src/regexp/loc2.c -$(OBJDIR)/loc2.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/regexp/loc2.c diff --git a/mk/localeconv.d b/mk/localeconv.d deleted file mode 100644 index e0fe1a2f..00000000 --- a/mk/localeconv.d +++ /dev/null @@ -1,10 +0,0 @@ -libc_C.1: libc.a(localeconv.o) -libc.a(localeconv.o): $(OBJDIR)/localeconv.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/localeconv.o: src/locale/localeconv.c -$(OBJDIR)/localeconv.o: src/locale/_locale.h -$(OBJDIR)/localeconv.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/locale/localeconv.c diff --git a/mk/locs.d b/mk/locs.d deleted file mode 100644 index 26046713..00000000 --- a/mk/locs.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.4: libc.a(locs.o) -libc.a(locs.o): $(OBJDIR)/locs.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/locs.o: src/regexp/locs.c -$(OBJDIR)/locs.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/regexp/locs.c diff --git a/mk/longjmp.d b/mk/longjmp.d index 3329ab11..4b779fea 100644 --- a/mk/longjmp.d +++ b/mk/longjmp.d @@ -3,6 +3,7 @@ libc.a(longjmp.o): $(OBJDIR)/longjmp.o @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% $(OBJDIR)/longjmp.o: src/setjmp/longjmp.c +$(OBJDIR)/longjmp.o: src/_safety.h $(OBJDIR)/longjmp.o: @echo " [CC] $@" @mkdir -p $(@D) diff --git a/mk/lsearch.d b/mk/lsearch.d deleted file mode 100644 index bb0453c1..00000000 --- a/mk/lsearch.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.4: libc.a(lsearch.o) -libc.a(lsearch.o): $(OBJDIR)/lsearch.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/lsearch.o: src/search/lsearch.c -$(OBJDIR)/lsearch.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/search/lsearch.c diff --git a/mk/makecontext.d b/mk/makecontext.d deleted file mode 100644 index 434f225f..00000000 --- a/mk/makecontext.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.400: libc.a(makecontext.o) -libc.a(makecontext.o): $(OBJDIR)/makecontext.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/makecontext.o: src/ucontext/makecontext.c -$(OBJDIR)/makecontext.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/ucontext/makecontext.c diff --git a/mk/mq_close.d b/mk/mq_close.d deleted file mode 100644 index 9bdd3cd0..00000000 --- a/mk/mq_close.d +++ /dev/null @@ -1,9 +0,0 @@ -librt_P.199309: librt.a(mq_close.o) -librt.a(mq_close.o): $(OBJDIR)/mq_close.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/mq_close.o: src/mqueue/mq_close.c -$(OBJDIR)/mq_close.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/mqueue/mq_close.c diff --git a/mk/mq_getattr.d b/mk/mq_getattr.d deleted file mode 100644 index 4c537af1..00000000 --- a/mk/mq_getattr.d +++ /dev/null @@ -1,9 +0,0 @@ -librt_P.199309: librt.a(mq_getattr.o) -librt.a(mq_getattr.o): $(OBJDIR)/mq_getattr.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/mq_getattr.o: src/mqueue/mq_getattr.c -$(OBJDIR)/mq_getattr.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/mqueue/mq_getattr.c diff --git a/mk/mq_notify.d b/mk/mq_notify.d deleted file mode 100644 index a8e83a74..00000000 --- a/mk/mq_notify.d +++ /dev/null @@ -1,9 +0,0 @@ -librt_P.199309: librt.a(mq_notify.o) -librt.a(mq_notify.o): $(OBJDIR)/mq_notify.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/mq_notify.o: src/mqueue/mq_notify.c -$(OBJDIR)/mq_notify.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/mqueue/mq_notify.c diff --git a/mk/mq_open.d b/mk/mq_open.d deleted file mode 100644 index fb2b29b3..00000000 --- a/mk/mq_open.d +++ /dev/null @@ -1,9 +0,0 @@ -librt_P.199309: librt.a(mq_open.o) -librt.a(mq_open.o): $(OBJDIR)/mq_open.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/mq_open.o: src/mqueue/mq_open.c -$(OBJDIR)/mq_open.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/mqueue/mq_open.c diff --git a/mk/mq_receive.d b/mk/mq_receive.d deleted file mode 100644 index ecc8abd1..00000000 --- a/mk/mq_receive.d +++ /dev/null @@ -1,9 +0,0 @@ -librt_P.199309: librt.a(mq_receive.o) -librt.a(mq_receive.o): $(OBJDIR)/mq_receive.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/mq_receive.o: src/mqueue/mq_receive.c -$(OBJDIR)/mq_receive.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/mqueue/mq_receive.c diff --git a/mk/mq_send.d b/mk/mq_send.d deleted file mode 100644 index 3869c3ed..00000000 --- a/mk/mq_send.d +++ /dev/null @@ -1,9 +0,0 @@ -librt_P.199309: librt.a(mq_send.o) -librt.a(mq_send.o): $(OBJDIR)/mq_send.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/mq_send.o: src/mqueue/mq_send.c -$(OBJDIR)/mq_send.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/mqueue/mq_send.c diff --git a/mk/mq_setattr.d b/mk/mq_setattr.d deleted file mode 100644 index cfcadf93..00000000 --- a/mk/mq_setattr.d +++ /dev/null @@ -1,9 +0,0 @@ -librt_P.199309: librt.a(mq_setattr.o) -librt.a(mq_setattr.o): $(OBJDIR)/mq_setattr.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/mq_setattr.o: src/mqueue/mq_setattr.c -$(OBJDIR)/mq_setattr.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/mqueue/mq_setattr.c diff --git a/mk/mq_unlink.d b/mk/mq_unlink.d deleted file mode 100644 index 6ea1ff11..00000000 --- a/mk/mq_unlink.d +++ /dev/null @@ -1,9 +0,0 @@ -librt_P.199309: librt.a(mq_unlink.o) -librt.a(mq_unlink.o): $(OBJDIR)/mq_unlink.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/mq_unlink.o: src/mqueue/mq_unlink.c -$(OBJDIR)/mq_unlink.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/mqueue/mq_unlink.c diff --git a/mk/nftw.d b/mk/nftw.d deleted file mode 100644 index c502506f..00000000 --- a/mk/nftw.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.400: libc.a(nftw.o) -libc.a(nftw.o): $(OBJDIR)/nftw.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/nftw.o: src/ftw/nftw.c -$(OBJDIR)/nftw.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/ftw/nftw.c diff --git a/mk/ntohl.d b/mk/ntohl.d deleted file mode 100644 index 84c32aef..00000000 --- a/mk/ntohl.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_C.0: libc.a(ntohl.o) -libc.a(ntohl.o): $(OBJDIR)/ntohl.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/ntohl.o: src/arpa/inet/ntohl.c -$(OBJDIR)/ntohl.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/arpa/inet/ntohl.c diff --git a/mk/ntohs.d b/mk/ntohs.d deleted file mode 100644 index d3becbda..00000000 --- a/mk/ntohs.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_C.0: libc.a(ntohs.o) -libc.a(ntohs.o): $(OBJDIR)/ntohs.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/ntohs.o: src/arpa/inet/ntohs.c -$(OBJDIR)/ntohs.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/arpa/inet/ntohs.c diff --git a/mk/opendir.d b/mk/opendir.d deleted file mode 100644 index a32f9fef..00000000 --- a/mk/opendir.d +++ /dev/null @@ -1,10 +0,0 @@ -libc_P.1: libc.a(opendir.o) -libc.a(opendir.o): $(OBJDIR)/opendir.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/opendir.o: src/dirent/opendir.c -$(OBJDIR)/opendir.o: src/dirent/_dirent.h -$(OBJDIR)/opendir.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/dirent/opendir.c diff --git a/mk/openlog.d b/mk/openlog.d deleted file mode 100644 index 3aabc669..00000000 --- a/mk/openlog.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.400: libc.a(openlog.o) -libc.a(openlog.o): $(OBJDIR)/openlog.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/openlog.o: src/syslog/openlog.c -$(OBJDIR)/openlog.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/syslog/openlog.c diff --git a/mk/perror.d b/mk/perror.d index 6063d907..fda10e9e 100644 --- a/mk/perror.d +++ b/mk/perror.d @@ -3,6 +3,7 @@ libc.a(perror.o): $(OBJDIR)/perror.o @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% $(OBJDIR)/perror.o: src/stdio/perror.c +$(OBJDIR)/perror.o: src/stdio/_stdio.h $(OBJDIR)/perror.o: @echo " [CC] $@" @mkdir -p $(@D) diff --git a/mk/poll.d b/mk/poll.d deleted file mode 100644 index 696aee21..00000000 --- a/mk/poll.d +++ /dev/null @@ -1,10 +0,0 @@ -libc_P.200809: libc.a(poll.o) -libc_X.400: libc.a(poll.o) -libc.a(poll.o): $(OBJDIR)/poll.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/poll.o: src/poll/poll.c -$(OBJDIR)/poll.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/poll/poll.c @@ -3,7 +3,6 @@ libc.a(popen.o): $(OBJDIR)/popen.o @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% $(OBJDIR)/popen.o: src/stdio/popen.c -$(OBJDIR)/popen.o: src/_assert.h $(OBJDIR)/popen.o: src/stdio/_stdio.h $(OBJDIR)/popen.o: @echo " [CC] $@" diff --git a/mk/putc_unlocked.d b/mk/putc_unlocked.d index 0d5a61e9..3dc9ecd6 100644 --- a/mk/putc_unlocked.d +++ b/mk/putc_unlocked.d @@ -4,7 +4,6 @@ libc.a(putc_unlocked.o): $(OBJDIR)/putc_unlocked.o $(OBJDIR)/putc_unlocked.o: src/stdio/putc_unlocked.c $(OBJDIR)/putc_unlocked.o: src/stdio/_stdio.h -$(OBJDIR)/putc_unlocked.o: src/_assert.h $(OBJDIR)/putc_unlocked.o: src/_syscall.h $(OBJDIR)/putc_unlocked.o: @echo " [CC] $@" diff --git a/mk/putmsg.d b/mk/putmsg.d deleted file mode 100644 index eaaca4fc..00000000 --- a/mk/putmsg.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.400: libc.a(putmsg.o) -libc.a(putmsg.o): $(OBJDIR)/putmsg.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/putmsg.o: src/stropts/putmsg.c -$(OBJDIR)/putmsg.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/stropts/putmsg.c diff --git a/mk/putpmsg.d b/mk/putpmsg.d deleted file mode 100644 index 39e0bca2..00000000 --- a/mk/putpmsg.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.400: libc.a(putpmsg.o) -libc.a(putpmsg.o): $(OBJDIR)/putpmsg.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/putpmsg.o: src/stropts/putpmsg.c -$(OBJDIR)/putpmsg.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/stropts/putpmsg.c diff --git a/mk/pututxline.d b/mk/pututxline.d deleted file mode 100644 index 9a8e08ee..00000000 --- a/mk/pututxline.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.400: libc.a(pututxline.o) -libc.a(pututxline.o): $(OBJDIR)/pututxline.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/pututxline.o: src/utmpx/pututxline.c -$(OBJDIR)/pututxline.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/utmpx/pututxline.c @@ -3,6 +3,7 @@ libc.a(putw.o): $(OBJDIR)/putw.o @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% $(OBJDIR)/putw.o: src/stdio/putw.c +$(OBJDIR)/putw.o: src/stdio/_stdio.h $(OBJDIR)/putw.o: @echo " [CC] $@" @mkdir -p $(@D) diff --git a/mk/quick_exit.d b/mk/quick_exit.d index 2c5e9108..435a7214 100644 --- a/mk/quick_exit.d +++ b/mk/quick_exit.d @@ -3,6 +3,7 @@ libc.a(quick_exit.o): $(OBJDIR)/quick_exit.o @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% $(OBJDIR)/quick_exit.o: src/stdlib/quick_exit.c +$(OBJDIR)/quick_exit.o: src/_safety.h $(OBJDIR)/quick_exit.o: src/stdlib/_stdlib.h $(OBJDIR)/quick_exit.o: @echo " [CC] $@" @@ -4,6 +4,7 @@ libc.a(raise.o): $(OBJDIR)/raise.o $(OBJDIR)/raise.o: src/signal/raise.c $(OBJDIR)/raise.o: src/_syscall.h +$(OBJDIR)/raise.o: src/_safety.h $(OBJDIR)/raise.o: @echo " [CC] $@" @mkdir -p $(@D) diff --git a/mk/re_comp.d b/mk/re_comp.d deleted file mode 100644 index a07ed2a7..00000000 --- a/mk/re_comp.d +++ /dev/null @@ -1,11 +0,0 @@ -libc_X.400: libc.a(re_comp.o) -libc.a(re_comp.o): $(OBJDIR)/re_comp.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/re_comp.o: src/re_comp/re_comp.c -$(OBJDIR)/re_comp.o: -$(OBJDIR)/re_comp.o: -$(OBJDIR)/re_comp.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/re_comp/re_comp.c diff --git a/mk/re_exec.d b/mk/re_exec.d deleted file mode 100644 index 749ea8a2..00000000 --- a/mk/re_exec.d +++ /dev/null @@ -1,11 +0,0 @@ -libc_X.400: libc.a(re_exec.o) -libc.a(re_exec.o): $(OBJDIR)/re_exec.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/re_exec.o: src/re_comp/re_exec.c -$(OBJDIR)/re_exec.o: -$(OBJDIR)/re_exec.o: -$(OBJDIR)/re_exec.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/re_comp/re_exec.c diff --git a/mk/readdir.d b/mk/readdir.d deleted file mode 100644 index c370537a..00000000 --- a/mk/readdir.d +++ /dev/null @@ -1,11 +0,0 @@ -libc_P.1: libc.a(readdir.o) -libc.a(readdir.o): $(OBJDIR)/readdir.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/readdir.o: src/dirent/readdir.c -$(OBJDIR)/readdir.o: src/dirent/_dirent.h -$(OBJDIR)/readdir.o: src/_syscall.h -$(OBJDIR)/readdir.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/dirent/readdir.c diff --git a/mk/regcmp.d b/mk/regcmp.d deleted file mode 100644 index d3ae0aa9..00000000 --- a/mk/regcmp.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.400: libc.a(regcmp.o) -libc.a(regcmp.o): $(OBJDIR)/regcmp.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/regcmp.o: src/libgen/regcmp.c -$(OBJDIR)/regcmp.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/libgen/regcmp.c diff --git a/mk/regcomp.d b/mk/regcomp.d deleted file mode 100644 index e8ee3478..00000000 --- a/mk/regcomp.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_P.2: libc.a(regcomp.o) -libc.a(regcomp.o): $(OBJDIR)/regcomp.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/regcomp.o: src/regex/regcomp.c -$(OBJDIR)/regcomp.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/regex/regcomp.c diff --git a/mk/regerror.d b/mk/regerror.d deleted file mode 100644 index b50b11bb..00000000 --- a/mk/regerror.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_P.2: libc.a(regerror.o) -libc.a(regerror.o): $(OBJDIR)/regerror.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/regerror.o: src/regex/regerror.c -$(OBJDIR)/regerror.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/regex/regerror.c diff --git a/mk/regex.d b/mk/regex.d deleted file mode 100644 index f443ddf1..00000000 --- a/mk/regex.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.400: libc.a(regex.o) -libc.a(regex.o): $(OBJDIR)/regex.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/regex.o: src/libgen/regex.c -$(OBJDIR)/regex.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/libgen/regex.c diff --git a/mk/regexec.d b/mk/regexec.d deleted file mode 100644 index 83a2d6ab..00000000 --- a/mk/regexec.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_P.2: libc.a(regexec.o) -libc.a(regexec.o): $(OBJDIR)/regexec.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/regexec.o: src/regex/regexec.c -$(OBJDIR)/regexec.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/regex/regexec.c diff --git a/mk/regfree.d b/mk/regfree.d deleted file mode 100644 index 7f2703a6..00000000 --- a/mk/regfree.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_P.2: libc.a(regfree.o) -libc.a(regfree.o): $(OBJDIR)/regfree.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/regfree.o: src/regex/regfree.c -$(OBJDIR)/regfree.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/regex/regfree.c diff --git a/mk/remque.d b/mk/remque.d deleted file mode 100644 index a23e810a..00000000 --- a/mk/remque.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.400: libc.a(remque.o) -libc.a(remque.o): $(OBJDIR)/remque.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/remque.o: src/search/remque.c -$(OBJDIR)/remque.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/search/remque.c diff --git a/mk/rewinddir.d b/mk/rewinddir.d deleted file mode 100644 index 1302854d..00000000 --- a/mk/rewinddir.d +++ /dev/null @@ -1,10 +0,0 @@ -libc_P.1: libc.a(rewinddir.o) -libc.a(rewinddir.o): $(OBJDIR)/rewinddir.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/rewinddir.o: src/dirent/rewinddir.c -$(OBJDIR)/rewinddir.o: src/dirent/_dirent.h -$(OBJDIR)/rewinddir.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/dirent/rewinddir.c diff --git a/mk/rindex.d b/mk/rindex.d deleted file mode 100644 index 132980ce..00000000 --- a/mk/rindex.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.400: libc.a(rindex.o) -libc.a(rindex.o): $(OBJDIR)/rindex.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/rindex.o: src/strings/rindex.c -$(OBJDIR)/rindex.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/strings/rindex.c diff --git a/mk/sched_get_priority_max.d b/mk/sched_get_priority_max.d deleted file mode 100644 index ac6a38d8..00000000 --- a/mk/sched_get_priority_max.d +++ /dev/null @@ -1,9 +0,0 @@ -librt_P.199309: librt.a(sched_get_priority_max.o) -librt.a(sched_get_priority_max.o): $(OBJDIR)/sched_get_priority_max.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/sched_get_priority_max.o: src/sched/sched_get_priority_max.c -$(OBJDIR)/sched_get_priority_max.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/sched/sched_get_priority_max.c diff --git a/mk/sched_get_priority_min.d b/mk/sched_get_priority_min.d deleted file mode 100644 index 4eb78039..00000000 --- a/mk/sched_get_priority_min.d +++ /dev/null @@ -1,9 +0,0 @@ -librt_P.199309: librt.a(sched_get_priority_min.o) -librt.a(sched_get_priority_min.o): $(OBJDIR)/sched_get_priority_min.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/sched_get_priority_min.o: src/sched/sched_get_priority_min.c -$(OBJDIR)/sched_get_priority_min.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/sched/sched_get_priority_min.c diff --git a/mk/sched_getparam.d b/mk/sched_getparam.d deleted file mode 100644 index 0e80decd..00000000 --- a/mk/sched_getparam.d +++ /dev/null @@ -1,9 +0,0 @@ -librt_P.199309: librt.a(sched_getparam.o) -librt.a(sched_getparam.o): $(OBJDIR)/sched_getparam.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/sched_getparam.o: src/sched/sched_getparam.c -$(OBJDIR)/sched_getparam.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/sched/sched_getparam.c diff --git a/mk/sched_getscheduler.d b/mk/sched_getscheduler.d deleted file mode 100644 index 9c31ab68..00000000 --- a/mk/sched_getscheduler.d +++ /dev/null @@ -1,9 +0,0 @@ -librt_P.199309: librt.a(sched_getscheduler.o) -librt.a(sched_getscheduler.o): $(OBJDIR)/sched_getscheduler.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/sched_getscheduler.o: src/sched/sched_getscheduler.c -$(OBJDIR)/sched_getscheduler.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/sched/sched_getscheduler.c diff --git a/mk/sched_rr_get_interval.d b/mk/sched_rr_get_interval.d deleted file mode 100644 index 5737c5e3..00000000 --- a/mk/sched_rr_get_interval.d +++ /dev/null @@ -1,9 +0,0 @@ -librt_P.199309: librt.a(sched_rr_get_interval.o) -librt.a(sched_rr_get_interval.o): $(OBJDIR)/sched_rr_get_interval.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/sched_rr_get_interval.o: src/sched/sched_rr_get_interval.c -$(OBJDIR)/sched_rr_get_interval.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/sched/sched_rr_get_interval.c diff --git a/mk/sched_setparam.d b/mk/sched_setparam.d deleted file mode 100644 index aa3a1016..00000000 --- a/mk/sched_setparam.d +++ /dev/null @@ -1,9 +0,0 @@ -librt_P.199309: librt.a(sched_setparam.o) -librt.a(sched_setparam.o): $(OBJDIR)/sched_setparam.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/sched_setparam.o: src/sched/sched_setparam.c -$(OBJDIR)/sched_setparam.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/sched/sched_setparam.c diff --git a/mk/sched_setscheduler.d b/mk/sched_setscheduler.d deleted file mode 100644 index 1ebd55d0..00000000 --- a/mk/sched_setscheduler.d +++ /dev/null @@ -1,9 +0,0 @@ -librt_P.199309: librt.a(sched_setscheduler.o) -librt.a(sched_setscheduler.o): $(OBJDIR)/sched_setscheduler.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/sched_setscheduler.o: src/sched/sched_setscheduler.c -$(OBJDIR)/sched_setscheduler.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/sched/sched_setscheduler.c diff --git a/mk/sched_yield.d b/mk/sched_yield.d deleted file mode 100644 index a5bfecb2..00000000 --- a/mk/sched_yield.d +++ /dev/null @@ -1,9 +0,0 @@ -librt_P.199309: librt.a(sched_yield.o) -librt.a(sched_yield.o): $(OBJDIR)/sched_yield.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/sched_yield.o: src/sched/sched_yield.c -$(OBJDIR)/sched_yield.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/sched/sched_yield.c diff --git a/mk/seekdir.d b/mk/seekdir.d deleted file mode 100644 index 1b438016..00000000 --- a/mk/seekdir.d +++ /dev/null @@ -1,10 +0,0 @@ -libc_X.4: libc.a(seekdir.o) -libc.a(seekdir.o): $(OBJDIR)/seekdir.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/seekdir.o: src/dirent/seekdir.c -$(OBJDIR)/seekdir.o: src/dirent/_dirent.h -$(OBJDIR)/seekdir.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/dirent/seekdir.c diff --git a/mk/sem_close.d b/mk/sem_close.d deleted file mode 100644 index 484f1cc6..00000000 --- a/mk/sem_close.d +++ /dev/null @@ -1,9 +0,0 @@ -librt_P.199309: librt.a(sem_close.o) -librt.a(sem_close.o): $(OBJDIR)/sem_close.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/sem_close.o: src/semaphore/sem_close.c -$(OBJDIR)/sem_close.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/semaphore/sem_close.c diff --git a/mk/sem_destroy.d b/mk/sem_destroy.d deleted file mode 100644 index 82bad95b..00000000 --- a/mk/sem_destroy.d +++ /dev/null @@ -1,9 +0,0 @@ -librt_P.199309: librt.a(sem_destroy.o) -librt.a(sem_destroy.o): $(OBJDIR)/sem_destroy.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/sem_destroy.o: src/semaphore/sem_destroy.c -$(OBJDIR)/sem_destroy.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/semaphore/sem_destroy.c diff --git a/mk/sem_getvalue.d b/mk/sem_getvalue.d deleted file mode 100644 index 1e700d49..00000000 --- a/mk/sem_getvalue.d +++ /dev/null @@ -1,9 +0,0 @@ -librt_P.199309: librt.a(sem_getvalue.o) -librt.a(sem_getvalue.o): $(OBJDIR)/sem_getvalue.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/sem_getvalue.o: src/semaphore/sem_getvalue.c -$(OBJDIR)/sem_getvalue.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/semaphore/sem_getvalue.c diff --git a/mk/sem_init.d b/mk/sem_init.d deleted file mode 100644 index 241c0677..00000000 --- a/mk/sem_init.d +++ /dev/null @@ -1,9 +0,0 @@ -librt_P.199309: librt.a(sem_init.o) -librt.a(sem_init.o): $(OBJDIR)/sem_init.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/sem_init.o: src/semaphore/sem_init.c -$(OBJDIR)/sem_init.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/semaphore/sem_init.c diff --git a/mk/sem_open.d b/mk/sem_open.d deleted file mode 100644 index 5f27b6f8..00000000 --- a/mk/sem_open.d +++ /dev/null @@ -1,9 +0,0 @@ -librt_P.199309: librt.a(sem_open.o) -librt.a(sem_open.o): $(OBJDIR)/sem_open.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/sem_open.o: src/semaphore/sem_open.c -$(OBJDIR)/sem_open.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/semaphore/sem_open.c diff --git a/mk/sem_post.d b/mk/sem_post.d deleted file mode 100644 index 6a142645..00000000 --- a/mk/sem_post.d +++ /dev/null @@ -1,9 +0,0 @@ -librt_P.199309: librt.a(sem_post.o) -librt.a(sem_post.o): $(OBJDIR)/sem_post.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/sem_post.o: src/semaphore/sem_post.c -$(OBJDIR)/sem_post.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/semaphore/sem_post.c diff --git a/mk/sem_trywait.d b/mk/sem_trywait.d deleted file mode 100644 index c9b3e05f..00000000 --- a/mk/sem_trywait.d +++ /dev/null @@ -1,9 +0,0 @@ -librt_P.199309: librt.a(sem_trywait.o) -librt.a(sem_trywait.o): $(OBJDIR)/sem_trywait.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/sem_trywait.o: src/semaphore/sem_trywait.c -$(OBJDIR)/sem_trywait.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/semaphore/sem_trywait.c diff --git a/mk/sem_unlink.d b/mk/sem_unlink.d deleted file mode 100644 index 698d5ccb..00000000 --- a/mk/sem_unlink.d +++ /dev/null @@ -1,9 +0,0 @@ -librt_P.199309: librt.a(sem_unlink.o) -librt.a(sem_unlink.o): $(OBJDIR)/sem_unlink.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/sem_unlink.o: src/semaphore/sem_unlink.c -$(OBJDIR)/sem_unlink.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/semaphore/sem_unlink.c diff --git a/mk/sem_wait.d b/mk/sem_wait.d deleted file mode 100644 index ef1af028..00000000 --- a/mk/sem_wait.d +++ /dev/null @@ -1,9 +0,0 @@ -librt_P.199309: librt.a(sem_wait.o) -librt.a(sem_wait.o): $(OBJDIR)/sem_wait.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/sem_wait.o: src/semaphore/sem_wait.c -$(OBJDIR)/sem_wait.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/semaphore/sem_wait.c diff --git a/mk/setcontext.d b/mk/setcontext.d deleted file mode 100644 index a8ca1ef7..00000000 --- a/mk/setcontext.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.400: libc.a(setcontext.o) -libc.a(setcontext.o): $(OBJDIR)/setcontext.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/setcontext.o: src/ucontext/setcontext.c -$(OBJDIR)/setcontext.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/ucontext/setcontext.c diff --git a/mk/setgrent.d b/mk/setgrent.d deleted file mode 100644 index c1179974..00000000 --- a/mk/setgrent.d +++ /dev/null @@ -1,10 +0,0 @@ -libc_X.400: libc.a(setgrent.o) -libc.a(setgrent.o): $(OBJDIR)/setgrent.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/setgrent.o: src/grp/setgrent.c -$(OBJDIR)/setgrent.o: src/grp/_grp.h -$(OBJDIR)/setgrent.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/grp/setgrent.c diff --git a/mk/setjmp.d b/mk/setjmp.d index c99dc130..89465091 100644 --- a/mk/setjmp.d +++ b/mk/setjmp.d @@ -3,6 +3,7 @@ libc.a(setjmp.o): $(OBJDIR)/setjmp.o @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% $(OBJDIR)/setjmp.o: src/setjmp/setjmp.c +$(OBJDIR)/setjmp.o: src/_safety.h $(OBJDIR)/setjmp.o: @echo " [CC] $@" @mkdir -p $(@D) diff --git a/mk/setlocale.d b/mk/setlocale.d deleted file mode 100644 index 9c11258c..00000000 --- a/mk/setlocale.d +++ /dev/null @@ -1,10 +0,0 @@ -libc_C.1: libc.a(setlocale.o) -libc.a(setlocale.o): $(OBJDIR)/setlocale.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/setlocale.o: src/locale/setlocale.c -$(OBJDIR)/setlocale.o: src/locale/_locale.h -$(OBJDIR)/setlocale.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/locale/setlocale.c diff --git a/mk/setlogmask.d b/mk/setlogmask.d deleted file mode 100644 index d214b8a7..00000000 --- a/mk/setlogmask.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.400: libc.a(setlogmask.o) -libc.a(setlogmask.o): $(OBJDIR)/setlogmask.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/setlogmask.o: src/syslog/setlogmask.c -$(OBJDIR)/setlogmask.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/syslog/setlogmask.c diff --git a/mk/setpwent.d b/mk/setpwent.d deleted file mode 100644 index 1ac4d464..00000000 --- a/mk/setpwent.d +++ /dev/null @@ -1,10 +0,0 @@ -libc_X.400: libc.a(setpwent.o) -libc.a(setpwent.o): $(OBJDIR)/setpwent.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/setpwent.o: src/pwd/setpwent.c -$(OBJDIR)/setpwent.o: src/pwd/_pwd.h -$(OBJDIR)/setpwent.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/pwd/setpwent.c diff --git a/mk/setutxent.d b/mk/setutxent.d deleted file mode 100644 index 426ebddd..00000000 --- a/mk/setutxent.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.400: libc.a(setutxent.o) -libc.a(setutxent.o): $(OBJDIR)/setutxent.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/setutxent.o: src/utmpx/setutxent.c -$(OBJDIR)/setutxent.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/utmpx/setutxent.c diff --git a/mk/sigaddset.d b/mk/sigaddset.d deleted file mode 100644 index 26c64c29..00000000 --- a/mk/sigaddset.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_P.1: libc.a(sigaddset.o) -libc.a(sigaddset.o): $(OBJDIR)/sigaddset.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/sigaddset.o: src/signal/sigaddset.c -$(OBJDIR)/sigaddset.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/signal/sigaddset.c diff --git a/mk/sigaltstack.d b/mk/sigaltstack.d deleted file mode 100644 index c395d78b..00000000 --- a/mk/sigaltstack.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.400: libc.a(sigaltstack.o) -libc.a(sigaltstack.o): $(OBJDIR)/sigaltstack.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/sigaltstack.o: src/signal/sigaltstack.c -$(OBJDIR)/sigaltstack.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/signal/sigaltstack.c diff --git a/mk/sigdelset.d b/mk/sigdelset.d deleted file mode 100644 index a622e6ce..00000000 --- a/mk/sigdelset.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_P.1: libc.a(sigdelset.o) -libc.a(sigdelset.o): $(OBJDIR)/sigdelset.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/sigdelset.o: src/signal/sigdelset.c -$(OBJDIR)/sigdelset.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/signal/sigdelset.c diff --git a/mk/sigemptyset.d b/mk/sigemptyset.d deleted file mode 100644 index 2b687786..00000000 --- a/mk/sigemptyset.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_P.1: libc.a(sigemptyset.o) -libc.a(sigemptyset.o): $(OBJDIR)/sigemptyset.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/sigemptyset.o: src/signal/sigemptyset.c -$(OBJDIR)/sigemptyset.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/signal/sigemptyset.c diff --git a/mk/sigfillset.d b/mk/sigfillset.d deleted file mode 100644 index 54e71dce..00000000 --- a/mk/sigfillset.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_P.1: libc.a(sigfillset.o) -libc.a(sigfillset.o): $(OBJDIR)/sigfillset.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/sigfillset.o: src/signal/sigfillset.c -$(OBJDIR)/sigfillset.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/signal/sigfillset.c diff --git a/mk/sighold.d b/mk/sighold.d deleted file mode 100644 index ca999bad..00000000 --- a/mk/sighold.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.400: libc.a(sighold.o) -libc.a(sighold.o): $(OBJDIR)/sighold.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/sighold.o: src/signal/sighold.c -$(OBJDIR)/sighold.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/signal/sighold.c diff --git a/mk/sigignore.d b/mk/sigignore.d deleted file mode 100644 index 59949cd5..00000000 --- a/mk/sigignore.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.400: libc.a(sigignore.o) -libc.a(sigignore.o): $(OBJDIR)/sigignore.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/sigignore.o: src/signal/sigignore.c -$(OBJDIR)/sigignore.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/signal/sigignore.c diff --git a/mk/siginterrupt.d b/mk/siginterrupt.d deleted file mode 100644 index 2063fce8..00000000 --- a/mk/siginterrupt.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.400: libc.a(siginterrupt.o) -libc.a(siginterrupt.o): $(OBJDIR)/siginterrupt.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/siginterrupt.o: src/signal/siginterrupt.c -$(OBJDIR)/siginterrupt.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/signal/siginterrupt.c diff --git a/mk/sigismember.d b/mk/sigismember.d deleted file mode 100644 index 98f472ab..00000000 --- a/mk/sigismember.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_P.1: libc.a(sigismember.o) -libc.a(sigismember.o): $(OBJDIR)/sigismember.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/sigismember.o: src/signal/sigismember.c -$(OBJDIR)/sigismember.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/signal/sigismember.c diff --git a/mk/siglongjmp.d b/mk/siglongjmp.d index ec9249bf..9234db3f 100644 --- a/mk/siglongjmp.d +++ b/mk/siglongjmp.d @@ -3,6 +3,7 @@ libc.a(siglongjmp.o): $(OBJDIR)/siglongjmp.o @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% $(OBJDIR)/siglongjmp.o: src/setjmp/siglongjmp.c +$(OBJDIR)/siglongjmp.o: src/_safety.h $(OBJDIR)/siglongjmp.o: @echo " [CC] $@" @mkdir -p $(@D) diff --git a/mk/sigmask.d b/mk/sigmask.d deleted file mode 100644 index da3b9649..00000000 --- a/mk/sigmask.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.400: libc.a(sigmask.o) -libc.a(sigmask.o): $(OBJDIR)/sigmask.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/sigmask.o: src/signal/sigmask.c -$(OBJDIR)/sigmask.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/signal/sigmask.c diff --git a/mk/signal.d b/mk/signal.d index 96227998..a5acea96 100644 --- a/mk/signal.d +++ b/mk/signal.d @@ -3,6 +3,9 @@ libc.a(signal.o): $(OBJDIR)/signal.o @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% $(OBJDIR)/signal.o: src/signal/signal.c +$(OBJDIR)/signal.o: src/signal/_signal.h +$(OBJDIR)/signal.o: src/_safety.h +$(OBJDIR)/signal.o: src/_syscall.h $(OBJDIR)/signal.o: @echo " [CC] $@" @mkdir -p $(@D) diff --git a/mk/sigpause.d b/mk/sigpause.d deleted file mode 100644 index 0b03c624..00000000 --- a/mk/sigpause.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.400: libc.a(sigpause.o) -libc.a(sigpause.o): $(OBJDIR)/sigpause.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/sigpause.o: src/signal/sigpause.c -$(OBJDIR)/sigpause.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/signal/sigpause.c diff --git a/mk/sigpending.d b/mk/sigpending.d deleted file mode 100644 index 759bc2e8..00000000 --- a/mk/sigpending.d +++ /dev/null @@ -1,10 +0,0 @@ -libc_P.1: libc.a(sigpending.o) -libc.a(sigpending.o): $(OBJDIR)/sigpending.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/sigpending.o: src/signal/sigpending.c -$(OBJDIR)/sigpending.o: src/_syscall.h -$(OBJDIR)/sigpending.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/signal/sigpending.c diff --git a/mk/sigprocmask.d b/mk/sigprocmask.d deleted file mode 100644 index e75a7de0..00000000 --- a/mk/sigprocmask.d +++ /dev/null @@ -1,10 +0,0 @@ -libc_P.1: libc.a(sigprocmask.o) -libc.a(sigprocmask.o): $(OBJDIR)/sigprocmask.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/sigprocmask.o: src/signal/sigprocmask.c -$(OBJDIR)/sigprocmask.o: src/_syscall.h -$(OBJDIR)/sigprocmask.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/signal/sigprocmask.c diff --git a/mk/sigqueue.d b/mk/sigqueue.d deleted file mode 100644 index 2db3177b..00000000 --- a/mk/sigqueue.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_P.199309: libc.a(sigqueue.o) -libc.a(sigqueue.o): $(OBJDIR)/sigqueue.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/sigqueue.o: src/signal/sigqueue.c -$(OBJDIR)/sigqueue.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/signal/sigqueue.c diff --git a/mk/sigrelse.d b/mk/sigrelse.d deleted file mode 100644 index f9427523..00000000 --- a/mk/sigrelse.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.400: libc.a(sigrelse.o) -libc.a(sigrelse.o): $(OBJDIR)/sigrelse.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/sigrelse.o: src/signal/sigrelse.c -$(OBJDIR)/sigrelse.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/signal/sigrelse.c diff --git a/mk/sigset.d b/mk/sigset.d deleted file mode 100644 index 096942b0..00000000 --- a/mk/sigset.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.400: libc.a(sigset.o) -libc.a(sigset.o): $(OBJDIR)/sigset.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/sigset.o: src/signal/sigset.c -$(OBJDIR)/sigset.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/signal/sigset.c diff --git a/mk/sigstack.d b/mk/sigstack.d deleted file mode 100644 index 9701f46c..00000000 --- a/mk/sigstack.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.400: libc.a(sigstack.o) -libc.a(sigstack.o): $(OBJDIR)/sigstack.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/sigstack.o: src/signal/sigstack.c -$(OBJDIR)/sigstack.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/signal/sigstack.c diff --git a/mk/sigsuspend.d b/mk/sigsuspend.d deleted file mode 100644 index 4ed71a4a..00000000 --- a/mk/sigsuspend.d +++ /dev/null @@ -1,10 +0,0 @@ -libc_P.1: libc.a(sigsuspend.o) -libc.a(sigsuspend.o): $(OBJDIR)/sigsuspend.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/sigsuspend.o: src/signal/sigsuspend.c -$(OBJDIR)/sigsuspend.o: src/_syscall.h -$(OBJDIR)/sigsuspend.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/signal/sigsuspend.c diff --git a/mk/sigtimedwait.d b/mk/sigtimedwait.d deleted file mode 100644 index d10c843a..00000000 --- a/mk/sigtimedwait.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_P.199309: libc.a(sigtimedwait.o) -libc.a(sigtimedwait.o): $(OBJDIR)/sigtimedwait.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/sigtimedwait.o: src/signal/sigtimedwait.c -$(OBJDIR)/sigtimedwait.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/signal/sigtimedwait.c diff --git a/mk/sigwaitinfo.d b/mk/sigwaitinfo.d deleted file mode 100644 index 135372bd..00000000 --- a/mk/sigwaitinfo.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_P.199309: libc.a(sigwaitinfo.o) -libc.a(sigwaitinfo.o): $(OBJDIR)/sigwaitinfo.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/sigwaitinfo.o: src/signal/sigwaitinfo.c -$(OBJDIR)/sigwaitinfo.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/signal/sigwaitinfo.c diff --git a/mk/step.d b/mk/step.d deleted file mode 100644 index e1876a62..00000000 --- a/mk/step.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.4: libc.a(step.o) -libc.a(step.o): $(OBJDIR)/step.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/step.o: src/regexp/step.c -$(OBJDIR)/step.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/regexp/step.c diff --git a/mk/strcasecmp.d b/mk/strcasecmp.d deleted file mode 100644 index 139f2bb0..00000000 --- a/mk/strcasecmp.d +++ /dev/null @@ -1,10 +0,0 @@ -libc_P.200809: libc.a(strcasecmp.o) -libc_X.400: libc.a(strcasecmp.o) -libc.a(strcasecmp.o): $(OBJDIR)/strcasecmp.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/strcasecmp.o: src/strings/strcasecmp.c -$(OBJDIR)/strcasecmp.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/strings/strcasecmp.c diff --git a/mk/strcpy.d b/mk/strcpy.d deleted file mode 100644 index d3892626..00000000 --- a/mk/strcpy.d +++ /dev/null @@ -1,10 +0,0 @@ -libc_C.1: libc.a(strcpy.o) -libc.a(strcpy.o): $(OBJDIR)/strcpy.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/strcpy.o: src/string/strcpy.c -$(OBJDIR)/strcpy.o: src/_assert.h -$(OBJDIR)/strcpy.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/string/strcpy.c diff --git a/mk/strfmon.d b/mk/strfmon.d deleted file mode 100644 index e3e1a7c6..00000000 --- a/mk/strfmon.d +++ /dev/null @@ -1,10 +0,0 @@ -libc_P.200809: libc.a(strfmon.o) -libc_X.4: libc.a(strfmon.o) -libc.a(strfmon.o): $(OBJDIR)/strfmon.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/strfmon.o: src/monetary/strfmon.c -$(OBJDIR)/strfmon.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/monetary/strfmon.c diff --git a/mk/strncasecmp.d b/mk/strncasecmp.d deleted file mode 100644 index e5e1698a..00000000 --- a/mk/strncasecmp.d +++ /dev/null @@ -1,10 +0,0 @@ -libc_P.200809: libc.a(strncasecmp.o) -libc_X.400: libc.a(strncasecmp.o) -libc.a(strncasecmp.o): $(OBJDIR)/strncasecmp.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/strncasecmp.o: src/strings/strncasecmp.c -$(OBJDIR)/strncasecmp.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/strings/strncasecmp.c diff --git a/mk/strtoimax.d b/mk/strtoimax.d deleted file mode 100644 index 0ffdfcde..00000000 --- a/mk/strtoimax.d +++ /dev/null @@ -1,10 +0,0 @@ -libc_C.199901: libc.a(strtoimax.o) -libc.a(strtoimax.o): $(OBJDIR)/strtoimax.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/strtoimax.o: src/inttypes/strtoimax.c -$(OBJDIR)/strtoimax.o: src/stdlib/_strtoi.h -$(OBJDIR)/strtoimax.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/inttypes/strtoimax.c diff --git a/mk/strtoumax.d b/mk/strtoumax.d deleted file mode 100644 index e69baed7..00000000 --- a/mk/strtoumax.d +++ /dev/null @@ -1,10 +0,0 @@ -libc_C.199901: libc.a(strtoumax.o) -libc.a(strtoumax.o): $(OBJDIR)/strtoumax.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/strtoumax.o: src/inttypes/strtoumax.c -$(OBJDIR)/strtoumax.o: src/stdlib/_strtoi.h -$(OBJDIR)/strtoumax.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/inttypes/strtoumax.c diff --git a/mk/struct_mq_attr.d b/mk/struct_mq_attr.d deleted file mode 100644 index 663db61a..00000000 --- a/mk/struct_mq_attr.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_P.199309: libc.a(struct_mq_attr.o) -libc.a(struct_mq_attr.o): $(OBJDIR)/struct_mq_attr.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/struct_mq_attr.o: src/mqueue/struct_mq_attr.c -$(OBJDIR)/struct_mq_attr.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/mqueue/struct_mq_attr.c diff --git a/mk/swapcontext.d b/mk/swapcontext.d deleted file mode 100644 index 815bfc6e..00000000 --- a/mk/swapcontext.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.400: libc.a(swapcontext.o) -libc.a(swapcontext.o): $(OBJDIR)/swapcontext.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/swapcontext.o: src/ucontext/swapcontext.c -$(OBJDIR)/swapcontext.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/ucontext/swapcontext.c diff --git a/mk/syslog.d b/mk/syslog.d deleted file mode 100644 index f3e43b57..00000000 --- a/mk/syslog.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.400: libc.a(syslog.o) -libc.a(syslog.o): $(OBJDIR)/syslog.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/syslog.o: src/syslog/syslog.c -$(OBJDIR)/syslog.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/syslog/syslog.c diff --git a/mk/tdelete.d b/mk/tdelete.d deleted file mode 100644 index 12c58d32..00000000 --- a/mk/tdelete.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.4: libc.a(tdelete.o) -libc.a(tdelete.o): $(OBJDIR)/tdelete.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/tdelete.o: src/search/tdelete.c -$(OBJDIR)/tdelete.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/search/tdelete.c diff --git a/mk/telldir.d b/mk/telldir.d deleted file mode 100644 index 7f3d063e..00000000 --- a/mk/telldir.d +++ /dev/null @@ -1,10 +0,0 @@ -libc_X.4: libc.a(telldir.o) -libc.a(telldir.o): $(OBJDIR)/telldir.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/telldir.o: src/dirent/telldir.c -$(OBJDIR)/telldir.o: src/dirent/_dirent.h -$(OBJDIR)/telldir.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/dirent/telldir.c diff --git a/mk/tfind.d b/mk/tfind.d deleted file mode 100644 index 81eb4e07..00000000 --- a/mk/tfind.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.4: libc.a(tfind.o) -libc.a(tfind.o): $(OBJDIR)/tfind.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/tfind.o: src/search/tfind.c -$(OBJDIR)/tfind.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/search/tfind.c diff --git a/mk/tmpfile.d b/mk/tmpfile.d index d1fb390d..6224c6d6 100644 --- a/mk/tmpfile.d +++ b/mk/tmpfile.d @@ -3,6 +3,7 @@ libc.a(tmpfile.o): $(OBJDIR)/tmpfile.o @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% $(OBJDIR)/tmpfile.o: src/stdio/tmpfile.c +$(OBJDIR)/tmpfile.o: src/stdio/_stdio.h $(OBJDIR)/tmpfile.o: @echo " [CC] $@" @mkdir -p $(@D) diff --git a/mk/tmpfile_s.d b/mk/tmpfile_s.d index dabcf90b..53847e00 100644 --- a/mk/tmpfile_s.d +++ b/mk/tmpfile_s.d @@ -3,6 +3,7 @@ libc.a(tmpfile_s.o): $(OBJDIR)/tmpfile_s.o @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% $(OBJDIR)/tmpfile_s.o: src/stdio/tmpfile_s.c +$(OBJDIR)/tmpfile_s.o: src/stdio/_stdio.h $(OBJDIR)/tmpfile_s.o: @echo " [CC] $@" @mkdir -p $(@D) diff --git a/mk/tmpnam.d b/mk/tmpnam.d index c2819f9b..04ee255b 100644 --- a/mk/tmpnam.d +++ b/mk/tmpnam.d @@ -3,6 +3,7 @@ libc.a(tmpnam.o): $(OBJDIR)/tmpnam.o @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% $(OBJDIR)/tmpnam.o: src/stdio/tmpnam.c +$(OBJDIR)/tmpnam.o: src/stdio/_stdio.h $(OBJDIR)/tmpnam.o: @echo " [CC] $@" @mkdir -p $(@D) diff --git a/mk/tsearch.d b/mk/tsearch.d deleted file mode 100644 index 010a24f7..00000000 --- a/mk/tsearch.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.4: libc.a(tsearch.o) -libc.a(tsearch.o): $(OBJDIR)/tsearch.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/tsearch.o: src/search/tsearch.c -$(OBJDIR)/tsearch.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/search/tsearch.c diff --git a/mk/twalk.d b/mk/twalk.d deleted file mode 100644 index d26e0819..00000000 --- a/mk/twalk.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.4: libc.a(twalk.o) -libc.a(twalk.o): $(OBJDIR)/twalk.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/twalk.o: src/search/twalk.c -$(OBJDIR)/twalk.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/search/twalk.c diff --git a/mk/ulimit.d b/mk/ulimit.d deleted file mode 100644 index 8bc9daa5..00000000 --- a/mk/ulimit.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_X.4: libc.a(ulimit.o) -libc.a(ulimit.o): $(OBJDIR)/ulimit.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/ulimit.o: src/ulimit/ulimit.c -$(OBJDIR)/ulimit.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/ulimit/ulimit.c diff --git a/mk/utime.d b/mk/utime.d deleted file mode 100644 index 3f335e40..00000000 --- a/mk/utime.d +++ /dev/null @@ -1,10 +0,0 @@ -libc_P.1: libc.a(utime.o) -libc.a(utime.o): $(OBJDIR)/utime.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/utime.o: src/utime/utime.c -$(OBJDIR)/utime.o: src/_syscall.h -$(OBJDIR)/utime.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/utime/utime.c diff --git a/mk/vfprintf_s.d b/mk/vfprintf_s.d index 706288ae..20d178f7 100644 --- a/mk/vfprintf_s.d +++ b/mk/vfprintf_s.d @@ -3,7 +3,7 @@ libc.a(vfprintf_s.o): $(OBJDIR)/vfprintf_s.o @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% $(OBJDIR)/vfprintf_s.o: src/stdio/vfprintf_s.c -$(OBJDIR)/vfprintf_s.o: +$(OBJDIR)/vfprintf_s.o: src/stdio/_stdio.h $(OBJDIR)/vfprintf_s.o: @echo " [CC] $@" @mkdir -p $(@D) diff --git a/mk/vprintf_s.d b/mk/vprintf_s.d index 65196d61..994fbc3e 100644 --- a/mk/vprintf_s.d +++ b/mk/vprintf_s.d @@ -3,6 +3,7 @@ libc.a(vprintf_s.o): $(OBJDIR)/vprintf_s.o @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% $(OBJDIR)/vprintf_s.o: src/stdio/vprintf_s.c +$(OBJDIR)/vprintf_s.o: src/stdio/_stdio.h $(OBJDIR)/vprintf_s.o: @echo " [CC] $@" @mkdir -p $(@D) diff --git a/mk/vscanf.d b/mk/vscanf.d index 0eeb6828..60b2c5c0 100644 --- a/mk/vscanf.d +++ b/mk/vscanf.d @@ -3,6 +3,7 @@ libc.a(vscanf.o): $(OBJDIR)/vscanf.o @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% $(OBJDIR)/vscanf.o: src/stdio/vscanf.c +$(OBJDIR)/vscanf.o: src/stdio/_stdio.h $(OBJDIR)/vscanf.o: @echo " [CC] $@" @mkdir -p $(@D) diff --git a/mk/vscanf_s.d b/mk/vscanf_s.d index 376e9376..fb44a2f0 100644 --- a/mk/vscanf_s.d +++ b/mk/vscanf_s.d @@ -3,6 +3,7 @@ libc.a(vscanf_s.o): $(OBJDIR)/vscanf_s.o @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% $(OBJDIR)/vscanf_s.o: src/stdio/vscanf_s.c +$(OBJDIR)/vscanf_s.o: src/stdio/_stdio.h $(OBJDIR)/vscanf_s.o: @echo " [CC] $@" @mkdir -p $(@D) diff --git a/mk/vsprintf_s.d b/mk/vsprintf_s.d index 9d752dcd..34040665 100644 --- a/mk/vsprintf_s.d +++ b/mk/vsprintf_s.d @@ -3,6 +3,7 @@ libc.a(vsprintf_s.o): $(OBJDIR)/vsprintf_s.o @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% $(OBJDIR)/vsprintf_s.o: src/stdio/vsprintf_s.c +$(OBJDIR)/vsprintf_s.o: src/stdio/_stdio.h $(OBJDIR)/vsprintf_s.o: @echo " [CC] $@" @mkdir -p $(@D) diff --git a/mk/vsscanf_s.d b/mk/vsscanf_s.d index b3e64846..190bc670 100644 --- a/mk/vsscanf_s.d +++ b/mk/vsscanf_s.d @@ -3,6 +3,7 @@ libc.a(vsscanf_s.o): $(OBJDIR)/vsscanf_s.o @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% $(OBJDIR)/vsscanf_s.o: src/stdio/vsscanf_s.c +$(OBJDIR)/vsscanf_s.o: src/stdio/_stdio.h $(OBJDIR)/vsscanf_s.o: @echo " [CC] $@" @mkdir -p $(@D) diff --git a/mk/wcstoimax.d b/mk/wcstoimax.d deleted file mode 100644 index 21989fdb..00000000 --- a/mk/wcstoimax.d +++ /dev/null @@ -1,10 +0,0 @@ -libc_C.199901: libc.a(wcstoimax.o) -libc.a(wcstoimax.o): $(OBJDIR)/wcstoimax.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/wcstoimax.o: src/inttypes/wcstoimax.c -$(OBJDIR)/wcstoimax.o: src/stdlib/_strtoi.h -$(OBJDIR)/wcstoimax.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/inttypes/wcstoimax.c diff --git a/mk/wcstoumax.d b/mk/wcstoumax.d deleted file mode 100644 index 71a97964..00000000 --- a/mk/wcstoumax.d +++ /dev/null @@ -1,10 +0,0 @@ -libc_C.199901: libc.a(wcstoumax.o) -libc.a(wcstoumax.o): $(OBJDIR)/wcstoumax.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/wcstoumax.o: src/inttypes/wcstoumax.c -$(OBJDIR)/wcstoumax.o: src/stdlib/_strtoi.h -$(OBJDIR)/wcstoumax.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/inttypes/wcstoumax.c diff --git a/mk/wordexp.d b/mk/wordexp.d deleted file mode 100644 index ac1c931d..00000000 --- a/mk/wordexp.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_P.2: libc.a(wordexp.o) -libc.a(wordexp.o): $(OBJDIR)/wordexp.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/wordexp.o: src/wordexp/wordexp.c -$(OBJDIR)/wordexp.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/wordexp/wordexp.c diff --git a/mk/wordfree.d b/mk/wordfree.d deleted file mode 100644 index 5791da57..00000000 --- a/mk/wordfree.d +++ /dev/null @@ -1,9 +0,0 @@ -libc_P.2: libc.a(wordfree.o) -libc.a(wordfree.o): $(OBJDIR)/wordfree.o - @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% - -$(OBJDIR)/wordfree.o: src/wordexp/wordfree.c -$(OBJDIR)/wordfree.o: - @echo " [CC] $@" - @mkdir -p $(@D) - @$(CC) -c -o $@ $(CFLAGS) src/wordexp/wordfree.c diff --git a/src/aio/AIO_ALLDONE.h b/src/aio/AIO_ALLDONE.h deleted file mode 100644 index 2b860c99..00000000 --- a/src/aio/AIO_ALLDONE.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <aio.h> -#define AIO_ALLDONE 0 -/* -POSIX(199309) -*/ diff --git a/src/aio/AIO_CANCELED.h b/src/aio/AIO_CANCELED.h deleted file mode 100644 index 50fb1539..00000000 --- a/src/aio/AIO_CANCELED.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <aio.h> -#define AIO_CANCELED 1 - -/* -POSIX(199309) -*/ diff --git a/src/aio/AIO_NOTCANCELED.h b/src/aio/AIO_NOTCANCELED.h deleted file mode 100644 index 712e6879..00000000 --- a/src/aio/AIO_NOTCANCELED.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <aio.h> -#define AIO_NOTCANCELED 2 -/* -POSIX(199309) -*/ diff --git a/src/aio/LIO_NOP.h b/src/aio/LIO_NOP.h deleted file mode 100644 index 8ed85e76..00000000 --- a/src/aio/LIO_NOP.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <aio.h> -#define LIO_NOP 0 -/* -POSIX(199309) -*/ diff --git a/src/aio/LIO_NOWAIT.h b/src/aio/LIO_NOWAIT.h deleted file mode 100644 index c0949ba4..00000000 --- a/src/aio/LIO_NOWAIT.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <aio.h> -#define LIO_NOWAIT 1 -/* -POSIX(199309) -*/ diff --git a/src/aio/LIO_READ.h b/src/aio/LIO_READ.h deleted file mode 100644 index 1c496b55..00000000 --- a/src/aio/LIO_READ.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <aio.h> -#define LIO_READ 2 -/* -POSIX(199309) -*/ diff --git a/src/aio/LIO_WAIT.h b/src/aio/LIO_WAIT.h deleted file mode 100644 index cdb2d496..00000000 --- a/src/aio/LIO_WAIT.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <aio.h> -#define LIO_WAIT 3 -/* -POSIX(199309) -*/ diff --git a/src/aio/LIO_WRITE.h b/src/aio/LIO_WRITE.h deleted file mode 100644 index 666fb97b..00000000 --- a/src/aio/LIO_WRITE.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <aio.h> -#define LIO_WRITE 4 -/* -POSIX(199309) -*/ diff --git a/src/aio/aio_cancel.c b/src/aio/aio_cancel.c deleted file mode 100644 index f4a93619..00000000 --- a/src/aio/aio_cancel.c +++ /dev/null @@ -1,16 +0,0 @@ -#if 0 - -#include <aio.h> - -int aio_cancel(int fildes, struct aiocb *aiocbp) -{ - return AIO_NOTCANCELED; -} - -/* -POSIX(199309) -LINK(rt) -*/ - - -#endif diff --git a/src/aio/aio_error.c b/src/aio/aio_error.c deleted file mode 100644 index f59163a4..00000000 --- a/src/aio/aio_error.c +++ /dev/null @@ -1,16 +0,0 @@ -#if 0 - -#include <aio.h> - -int aio_error(const struct aiocb * aiocbp) -{ - return -1; -} - -/* -POSIX(199309) -LINK(rt) -*/ - - -#endif diff --git a/src/aio/aio_fsync.c b/src/aio/aio_fsync.c deleted file mode 100644 index ff3dc710..00000000 --- a/src/aio/aio_fsync.c +++ /dev/null @@ -1,16 +0,0 @@ -#if 0 - -#include <aio.h> - -int aio_fsync(int op, struct aiocb * aiocbp) -{ - return -1; -} - -/* -POSIX(199309) -LINK(rt) -*/ - - -#endif diff --git a/src/aio/aio_read.c b/src/aio/aio_read.c deleted file mode 100644 index 50eaf248..00000000 --- a/src/aio/aio_read.c +++ /dev/null @@ -1,15 +0,0 @@ -#if 0 - -#include <aio.h> - -int aio_read(struct aiocb * aiocbp) -{ - return -1; -} -/* -POSIX(199309) -LINK(rt) -*/ - - -#endif diff --git a/src/aio/aio_return.c b/src/aio/aio_return.c deleted file mode 100644 index b77e0f36..00000000 --- a/src/aio/aio_return.c +++ /dev/null @@ -1,16 +0,0 @@ -#if 0 - -#include <aio.h> - -ssize_t aio_return(struct aiocb *aiocbp) -{ - return -1; -} - -/* -POSIX(199309) -LINK(rt) -*/ - - -#endif diff --git a/src/aio/aio_suspend.c b/src/aio/aio_suspend.c deleted file mode 100644 index e3a3a426..00000000 --- a/src/aio/aio_suspend.c +++ /dev/null @@ -1,16 +0,0 @@ -#if 0 - -#include <aio.h> - -int aio_suspend(const struct aiocb * const list[], int nent, const struct timespec * timeout) -{ - return -1; -} - -/* -POSIX(199309) -LINK(rt) -*/ - - -#endif diff --git a/src/aio/aio_write.c b/src/aio/aio_write.c deleted file mode 100644 index 2812f201..00000000 --- a/src/aio/aio_write.c +++ /dev/null @@ -1,16 +0,0 @@ -#if 0 - -#include <aio.h> - -int aio_write(struct aiocb * aiocbp) -{ - return -1; -} - -/* -POSIX(199309) -LINK(rt) -*/ - - -#endif diff --git a/src/aio/lio_listio.c b/src/aio/lio_listio.c deleted file mode 100644 index 64a6b27d..00000000 --- a/src/aio/lio_listio.c +++ /dev/null @@ -1,16 +0,0 @@ -#if 0 - -#include <aio.h> - -int lio_listio(int mode, struct aiocb * const list[restrict], int nent, struct sigevent * restrict sig) -{ - return -1; -} - -/* -POSIX(199309) -LINK(rt) -*/ - - -#endif diff --git a/src/aio/struct_aiocb.c b/src/aio/struct_aiocb.c deleted file mode 100644 index 801074e2..00000000 --- a/src/aio/struct_aiocb.c +++ /dev/null @@ -1,20 +0,0 @@ -#if 0 - -#include <aio.h> - -struct aiocb { - int aio_fildes; - off_t aio_offset; - volatile void * aio_buf; - size_t aio_nbytes; - int aio_reqprio; - struct sigevent aio_sigevent; - int aio_lio_opcode; -}; - -/* -POSIX(199309) -*/ - - -#endif diff --git a/src/arpa/inet/htonl.c b/src/arpa/inet/htonl.c deleted file mode 100644 index 23522d9f..00000000 --- a/src/arpa/inet/htonl.c +++ /dev/null @@ -1,21 +0,0 @@ -#if 0 - -#include <arpa/inet.h> - -uint32_t htonl(uint32_t hostlong) -{ - union { - uint32_t u; - unsigned char c[sizeof(uint32_t)]; - } u; - - u.c[0] = (hostlong >> 24) & 0xff; - u.c[1] = (hostlong >> 16) & 0xff; - u.c[2] = (hostlong >> 8) & 0xff; - u.c[3] = (hostlong) & 0xff; - - return u.u; -} - - -#endif diff --git a/src/arpa/inet/htons.c b/src/arpa/inet/htons.c deleted file mode 100644 index 7dbd56e1..00000000 --- a/src/arpa/inet/htons.c +++ /dev/null @@ -1,19 +0,0 @@ -#if 0 - -#include <arpa/inet.h> - -uint16_t htons(uint16_t hostshort) -{ - union { - uint16_t u; - unsigned char c[sizeof(uint16_t)]; - } u; - - u.c[0] = (hostshort >> 8) & 0xff; - u.c[1] = (hostshort) & 0xff; - - return u.u; -} - - -#endif diff --git a/src/arpa/inet/inet_addr.c b/src/arpa/inet/inet_addr.c deleted file mode 100644 index e493ff0b..00000000 --- a/src/arpa/inet/inet_addr.c +++ /dev/null @@ -1,59 +0,0 @@ -#if 0 - -#include <arpa/inet.h> -#include <stdlib.h> - -in_addr_t inet_addr(const char *cp) -{ - unsigned long parts[4] = { 0 }; - in_addr_t addr = (in_addr_t)(-1); - size_t part = 0; - - while (*cp && part < sizeof(parts)) { - char *next = NULL; - parts[part] = strtoul(cp, &next, 0); - if (*next == '.') { - part++; - cp = next + 1; - } else { - cp = next; - } - - /* check for error */ - } - - switch (part) { - case 0: - addr = htonl(parts[0]); - break; - - case 1: - if (parts[0] > 0xff || parts[1] > 0xffffff) { - break; - } - addr = htonl((parts[0] << 24) | parts[1]); - break; - - case 2: - if (parts[0] > 0xff || parts[1] > 0xff || parts[2] > 0xffff) { - break; - } - addr = htonl((parts[0] << 24) | (parts[1] << 16) | parts[2]); - break; - - case 3: - if (parts[0] > 0xff || parts[1] > 0xff || parts[2] > 0xff || parts[3] > 0xff) { - break; - } - addr = htonl((parts[0] << 24) | (parts[1] << 16) | (parts[2] << 8) | parts[3]); - break; - - default: - break; - } - - return addr; -} - - -#endif diff --git a/src/arpa/inet/inet_ntoa.c b/src/arpa/inet/inet_ntoa.c deleted file mode 100644 index ca621d4a..00000000 --- a/src/arpa/inet/inet_ntoa.c +++ /dev/null @@ -1,19 +0,0 @@ -#if 0 - -#include <arpa/inet.h> -#include <netinet/in.h> -#include <stdio.h> - -char *inet_ntoa(struct in_addr in) -{ - static char s[INET_ADDRSTRLEN] = ""; - sprintf(s, "%hhu.%hhu.%hhu.%hhu", - (in.s_addr >> 24) & 0xff, - (in.s_addr >> 16) & 0xff, - (in.s_addr >> 8) & 0xff, - (in.s_addr) & 0xff); - return s; -} - - -#endif diff --git a/src/arpa/inet/inet_ntop.c b/src/arpa/inet/inet_ntop.c deleted file mode 100644 index efd14684..00000000 --- a/src/arpa/inet/inet_ntop.c +++ /dev/null @@ -1,39 +0,0 @@ -#if 0 - -#include <arpa/inet.h> -#include <errno.h> -#include <stdio.h> -#include <string.h> - -const char *inet_ntop(int af, const void *restrict src, char *restrict dst, socklen_t size) -{ - if (af == AF_INET) { - in_addr_t *a = src; - char s[INET_ADDRSTRLEN] = ""; - if (snprintf(s, sizeof(s), "%hhu.%hhu.%hhu.%hhu", - (*src >> 24) & 0xff, - (*src >> 16) & 0xff, - (*src >> 8) & 0xff, - (*src) & 0xff) > size) { - errno = ENOSPC; - return NULL; - } - strcpy(dst, s); - return dst; - } - - if (af != AF_INET6) { - errno = EAFNOSUPPORT; - return NULL; - } - - /* - char s[INET6_ADDRSTRLEN] = ""; - unsigned char *a = src; - */ - /* do IPv6 conversion */ - return dst; -} - - -#endif diff --git a/src/arpa/inet/inet_pton.c b/src/arpa/inet/inet_pton.c deleted file mode 100644 index 533dd2e9..00000000 --- a/src/arpa/inet/inet_pton.c +++ /dev/null @@ -1,48 +0,0 @@ -#if 0 - -#include <arpa/inet.h> -#include <errno.h> -#include <stdlib.h> - -int inet_pton(int af, const char *restrict src, void *restrict dst) -{ - if (af == AF_INET) { - in_addr_t *a = dst; - unsigned long parts[4] = { 0 }; - size_t part = 0; - - while (*src && part < sizeof(parts)) { - char *next = NULL; - parts[part] = strtoul(src, &next, 0); - if (parts[part] > 255) { - return 0; - } - - if (*next == '.') { - part++; - src = next + 1; - } else { - src = next; - } - - } - - if (part != sizeof(parts) - 1) { - return 0; - } - - *a = htonl((parts[0] << 24) | (parts[1] << 16) | (parts[2] << 8) | parts[3]); - return 1; - } - - if (af != AF_INET6) { - errno = EAFNOSUPPORT; - return -1; - } - - /* do ipv6 conversion */ - return 1; -} - - -#endif diff --git a/src/arpa/inet/ntohl.c b/src/arpa/inet/ntohl.c deleted file mode 100644 index 25fa650d..00000000 --- a/src/arpa/inet/ntohl.c +++ /dev/null @@ -1,16 +0,0 @@ -#if 0 - -#include <arpa/inet.h> - -uint32_t ntohl(uint32_t netlong) -{ - union { - uint32_t u; - unsigned char c[sizeof(uint32_t)]; - } u = { netlong }; - - return (u.c[0] << 24) | (u.c[1] << 16) | (u.c[2] << 8) | u.c[3]; -} - - -#endif diff --git a/src/arpa/inet/ntohs.c b/src/arpa/inet/ntohs.c deleted file mode 100644 index 32bff30c..00000000 --- a/src/arpa/inet/ntohs.c +++ /dev/null @@ -1,16 +0,0 @@ -#if 0 - -#include <arpa/inet.h> - -uint16_t ntohs(uint16_t netshort) -{ - union { - uint16_t u; - unsigned char c[sizeof(uint16_t)]; - } u = { netshort }; - - return (u.c[0] << 8) | u.c[1]; -} - - -#endif diff --git a/src/cpio/C_IRGRP.h b/src/cpio/C_IRGRP.h deleted file mode 100644 index bbf5f072..00000000 --- a/src/cpio/C_IRGRP.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <cpio.h> -#define C_IRGRP 0000040 -/* -POSIX(1) -*/ diff --git a/src/cpio/C_IROTH.h b/src/cpio/C_IROTH.h deleted file mode 100644 index 2dc30333..00000000 --- a/src/cpio/C_IROTH.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <cpio.h> -#define C_IROTH 0000004 -/* -POSIX(1) -*/ diff --git a/src/cpio/C_IRUSR.h b/src/cpio/C_IRUSR.h deleted file mode 100644 index cefdb740..00000000 --- a/src/cpio/C_IRUSR.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <cpio.h> -#define C_IRUSR 0000400 -/* -POSIX(1) -*/ diff --git a/src/cpio/C_ISBLK.h b/src/cpio/C_ISBLK.h deleted file mode 100644 index 124d13e0..00000000 --- a/src/cpio/C_ISBLK.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <cpio.h> -#define C_ISBLK 0060000 -/* -POSIX(1) -*/ diff --git a/src/cpio/C_ISCHR.h b/src/cpio/C_ISCHR.h deleted file mode 100644 index 36d6b333..00000000 --- a/src/cpio/C_ISCHR.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <cpio.h> -#define C_ISCHR 0020000 -/* -POSIX(1) -*/ diff --git a/src/cpio/C_ISCTG.h b/src/cpio/C_ISCTG.h deleted file mode 100644 index 6a78baab..00000000 --- a/src/cpio/C_ISCTG.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <cpio.h> -#define C_ISCTG 0110000 -/* -POSIX(1) -*/ diff --git a/src/cpio/C_ISDIR.h b/src/cpio/C_ISDIR.h deleted file mode 100644 index 104971d5..00000000 --- a/src/cpio/C_ISDIR.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <cpio.h> -#define C_ISDIR 0040000 -/* -POSIX(1) -*/ diff --git a/src/cpio/C_ISFIFO.h b/src/cpio/C_ISFIFO.h deleted file mode 100644 index d8d56047..00000000 --- a/src/cpio/C_ISFIFO.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <cpio.h> -#define C_ISFIFO 0010000 -/* -POSIX(1) -*/ diff --git a/src/cpio/C_ISGID.h b/src/cpio/C_ISGID.h deleted file mode 100644 index a2397b98..00000000 --- a/src/cpio/C_ISGID.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <cpio.h> -#define C_ISGID 0002000 -/* -POSIX(1) -*/ diff --git a/src/cpio/C_ISLNK.h b/src/cpio/C_ISLNK.h deleted file mode 100644 index 290e650e..00000000 --- a/src/cpio/C_ISLNK.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <cpio.h> -#define C_ISLNK 0120000 -/* -POSIX(1) -*/ diff --git a/src/cpio/C_ISREG.h b/src/cpio/C_ISREG.h deleted file mode 100644 index 5d96f26c..00000000 --- a/src/cpio/C_ISREG.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <cpio.h> -#define C_ISREG 0100000 -/* -POSIX(1) -*/ diff --git a/src/cpio/C_ISSOCK.h b/src/cpio/C_ISSOCK.h deleted file mode 100644 index 0cd93ab7..00000000 --- a/src/cpio/C_ISSOCK.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <cpio.h> -#define C_ISSOCK 0140000 -/* -POSIX(1) -*/ diff --git a/src/cpio/C_ISUID.h b/src/cpio/C_ISUID.h deleted file mode 100644 index 702391d4..00000000 --- a/src/cpio/C_ISUID.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <cpio.h> -#define C_ISUID 0004000 -/* -POSIX(1) -*/ diff --git a/src/cpio/C_ISVTX.h b/src/cpio/C_ISVTX.h deleted file mode 100644 index 6cb552bb..00000000 --- a/src/cpio/C_ISVTX.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <cpio.h> -#define C_ISVTX 0001000 -/* -POSIX(1) -*/ diff --git a/src/cpio/C_IWGRP.h b/src/cpio/C_IWGRP.h deleted file mode 100644 index 1d46f706..00000000 --- a/src/cpio/C_IWGRP.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <cpio.h> -#define C_IWGRP 0000020 -/* -POSIX(1) -*/ diff --git a/src/cpio/C_IWOTH.h b/src/cpio/C_IWOTH.h deleted file mode 100644 index d08377d5..00000000 --- a/src/cpio/C_IWOTH.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <cpio.h> -#define C_IWOTH 0000002 -/* -POSIX(1) -*/ diff --git a/src/cpio/C_IWUSR.h b/src/cpio/C_IWUSR.h deleted file mode 100644 index 8069cdf5..00000000 --- a/src/cpio/C_IWUSR.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <cpio.h> -#define C_IWUSR 0000200 -/* -POSIX(1) -*/ diff --git a/src/cpio/C_IXGRP.h b/src/cpio/C_IXGRP.h deleted file mode 100644 index 54105462..00000000 --- a/src/cpio/C_IXGRP.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <cpio.h> -#define C_IXGRP 0000010 -/* -POSIX(1) -*/ diff --git a/src/cpio/C_IXOTH.h b/src/cpio/C_IXOTH.h deleted file mode 100644 index 8f995201..00000000 --- a/src/cpio/C_IXOTH.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <cpio.h> -#define C_IXOTH 0000001 -/* -POSIX(1) -*/ diff --git a/src/cpio/C_IXUSR.h b/src/cpio/C_IXUSR.h deleted file mode 100644 index 89af5151..00000000 --- a/src/cpio/C_IXUSR.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <cpio.h> -#define C_IXUSR 0000100 -/* -POSIX(1) -*/ diff --git a/src/cpio/MAGIC.h b/src/cpio/MAGIC.h deleted file mode 100644 index 40ed0897..00000000 --- a/src/cpio/MAGIC.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <cpio.h> -#define MAGIC "070707" -/* -POSIX(1) -*/ diff --git a/src/dirent/DIR.h b/src/dirent/DIR.h deleted file mode 100644 index cc43a5d8..00000000 --- a/src/dirent/DIR.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <dirent.h> -typedef struct __DIR DIR; -/* -POSIX(1) -*/ diff --git a/src/dirent/_dirent.h b/src/dirent/_dirent.h deleted file mode 100644 index 8b144316..00000000 --- a/src/dirent/_dirent.h +++ /dev/null @@ -1,21 +0,0 @@ -#ifndef ___DIRENT_H__ -#define ___DIRENT_H__ - -#ifndef O_DIRECTORY -#define O_DIRECTORY O_RDONLY -#endif - -#ifndef O_SEARCH -#define O_SEARCH O_RDONLY -#endif - -#ifndef NAME_MAX -#define NAME_MAX _POSIX_NAME_MAX -#endif - -struct __DIR { - int fd; - struct dirent de; -}; - -#endif diff --git a/src/dirent/closedir.c b/src/dirent/closedir.c deleted file mode 100644 index c59fb783..00000000 --- a/src/dirent/closedir.c +++ /dev/null @@ -1,25 +0,0 @@ -#if 0 - -#include <dirent.h> -#include <sys/types.h> -#include <unistd.h> -#include <stdlib.h> -#include "_assert.h" -#include "_dirent.h" - -int closedir(DIR *dirp) -{ - int ret = -1; - ASSERT_NONNULL(dirp); - ret = close(dirp->fd); - if (ret != -1) { - free(dirp); - } - return ret; -} -/* -POSIX(1) -*/ - - -#endif diff --git a/src/dirent/opendir.c b/src/dirent/opendir.c deleted file mode 100644 index e2507e54..00000000 --- a/src/dirent/opendir.c +++ /dev/null @@ -1,33 +0,0 @@ -#if 0 - -#include <dirent.h> -#include <errno.h> -#include <sys/types.h> -#include <stdlib.h> -#include <fcntl.h> -#include "_dirent.h" - -DIR * opendir(const char * dirname) -{ - DIR *dir = malloc(sizeof(*dir)); - if (dir == NULL) { - errno = ENOMEM; - return NULL; - } - - dir->fd = open(dirname, O_DIRECTORY | O_SEARCH); - if (dir->fd == -1) { - free(dir); - return NULL; - } - fcntl(dir->fd, F_SETFD, FD_CLOEXEC); - - return dir; -} - -/* -POSIX(1) -*/ - - -#endif diff --git a/src/dirent/readdir.c b/src/dirent/readdir.c deleted file mode 100644 index 9776691f..00000000 --- a/src/dirent/readdir.c +++ /dev/null @@ -1,50 +0,0 @@ -#if 0 - -#include <dirent.h> -#include <limits.h> -#include <errno.h> -#include <sys/types.h> -#include <string.h> -#include <unistd.h> -#include "_dirent.h" -#include "_syscall.h" - -/** read a directory **/ - -struct dirent * readdir(DIR * dirp) -{ - if (read(dirp->fd, dirp, sizeof(*dirp)) == -1) { - if (errno == EISDIR) { - #ifdef __linux__ - struct { - long inode; - off_t offset; - unsigned short reclen; - char name[NAME_MAX + 1]; - } linux = { 0, 0, 0, "" }; - long ret = __scall3(getdents, dirp->fd, &linux, sizeof(linux)); - if (ret < 0) { - errno = -ret; - return NULL; - } - - #ifdef _XOPEN_SOURCE - dirp->de.d_ino = linux.inode; - #endif - - strcpy(dirp->de.d_name, linux.name); - return &dirp->de; - #endif - } - return NULL; - } - - return &dirp->de; -} - -/* -POSIX(1) -*/ - - -#endif diff --git a/src/dirent/rewinddir.c b/src/dirent/rewinddir.c deleted file mode 100644 index e878f598..00000000 --- a/src/dirent/rewinddir.c +++ /dev/null @@ -1,18 +0,0 @@ -#if 0 - -#include <dirent.h> -#include <sys/types.h> -#include <unistd.h> -#include "_dirent.h" - -void rewinddir(DIR * dirp) -{ - lseek(dirp->fd, 0, SEEK_SET); -} - -/* -POSIX(1) -*/ - - -#endif diff --git a/src/dirent/seekdir.c b/src/dirent/seekdir.c deleted file mode 100644 index c93ecd0a..00000000 --- a/src/dirent/seekdir.c +++ /dev/null @@ -1,18 +0,0 @@ -#if 0 - -#include <sys/types.h> -#include <dirent.h> -#include <unistd.h> -#include "_dirent.h" - -void seekdir(DIR * dirp, long loc) -{ - lseek(dirp->fd, loc, SEEK_SET); -} - -/* -XOPEN(4) -*/ - - -#endif diff --git a/src/dirent/struct_dirent.h b/src/dirent/struct_dirent.h deleted file mode 100644 index a6d4bb6c..00000000 --- a/src/dirent/struct_dirent.h +++ /dev/null @@ -1,14 +0,0 @@ -#include <dirent.h> - -struct dirent { - #if (defined _XOPEN_SOURCE) - ino_t d_ino; - #else - unsigned long long int __padding; - #endif - char d_name[]; -}; - -/* -POSIX(1) -*/ diff --git a/src/dirent/telldir.c b/src/dirent/telldir.c deleted file mode 100644 index 24efd6c5..00000000 --- a/src/dirent/telldir.c +++ /dev/null @@ -1,18 +0,0 @@ -#if 0 - -#include <sys/types.h> -#include <dirent.h> -#include <unistd.h> -#include "_dirent.h" - -long telldir(DIR * dirp) -{ - return lseek(dirp->fd, 0, SEEK_CUR); -} - -/* -XOPEN(4) -*/ - - -#endif diff --git a/src/dlfcn/RTLD_GLOBAL.h b/src/dlfcn/RTLD_GLOBAL.h deleted file mode 100644 index d9dee8b2..00000000 --- a/src/dlfcn/RTLD_GLOBAL.h +++ /dev/null @@ -1,5 +0,0 @@ -#define RTLD_GLOBAL (1<<2) - -/* -XOPEN(500) -*/ diff --git a/src/dlfcn/RTLD_LAZY.h b/src/dlfcn/RTLD_LAZY.h deleted file mode 100644 index f123753b..00000000 --- a/src/dlfcn/RTLD_LAZY.h +++ /dev/null @@ -1,5 +0,0 @@ -#define RTLD_LAZY (1<<0) - -/* -XOPEN(500) -*/ diff --git a/src/dlfcn/RTLD_LOCAL.h b/src/dlfcn/RTLD_LOCAL.h deleted file mode 100644 index 817d3adf..00000000 --- a/src/dlfcn/RTLD_LOCAL.h +++ /dev/null @@ -1,5 +0,0 @@ -#define RTLD_LOCAL (1<<3) - -/* -XOPEN(500) -*/ diff --git a/src/dlfcn/RTLD_NOW.h b/src/dlfcn/RTLD_NOW.h deleted file mode 100644 index 91b98afb..00000000 --- a/src/dlfcn/RTLD_NOW.h +++ /dev/null @@ -1,5 +0,0 @@ -#define RTLD_NOW (1<<1) - -/* -XOPEN(500) -*/ diff --git a/src/dlfcn/_dlfcn.h b/src/dlfcn/_dlfcn.h deleted file mode 100644 index fd5e30d0..00000000 --- a/src/dlfcn/_dlfcn.h +++ /dev/null @@ -1,12 +0,0 @@ -#ifndef ___DLFCN_H__ -#define ___DLFCN_H__ - -#include <stddef.h> - -struct dlhandle { - void *base; - size_t size; - int fd; -}; - -#endif diff --git a/src/dlfcn/dlclose.c b/src/dlfcn/dlclose.c deleted file mode 100644 index 9189caec..00000000 --- a/src/dlfcn/dlclose.c +++ /dev/null @@ -1,18 +0,0 @@ -#if 0 - -#include <dlfcn.h> -#include "_dlfcn.h" - -int dlclose(void *handle) -{ - struct dlhandle *h = handle; - munmap(h->base, h->size); - close(h->fd); -} - -/* -XOPEN(500) -*/ - - -#endif diff --git a/src/dlfcn/dlerror.c b/src/dlfcn/dlerror.c deleted file mode 100644 index c2d26dcd..00000000 --- a/src/dlfcn/dlerror.c +++ /dev/null @@ -1,17 +0,0 @@ -#if 0 - -#include <dlfcn.h> -#include "_dlfcn.h" - -char *dlerror(void) -{ - extern char *__dlerror; - return __dlerror; -} - -/* -XOPEN(500) -*/ - - -#endif diff --git a/src/dlfcn/dlopen.c b/src/dlfcn/dlopen.c deleted file mode 100644 index a8929781..00000000 --- a/src/dlfcn/dlopen.c +++ /dev/null @@ -1,39 +0,0 @@ -#if 0 - -#include <dlfcn.h> -#include <fcntl.h> -#include <stdlib.h> -#include "_dlfcn.h" - -void *dlopen(const char *file, int mode) -{ - if ((mode & (RTLD_LAZY | RTLD_NOW)) == (RTLD_LAZY | RTLD_NOW)) { - return NULL; - } - - if ((mode & (RTLD_GLOBAL | RTLD_LOCAL)) == (RTLD_GLOBAL | RTLD_LOCAL)) { - return NULL; - } - - struct dlhandle *h = malloc(sizeof(*h)); - if (h == NULL) { - return NULL; - } - - h->fd = open(file, O_RDONLY | O_EXEC); - if (h->fd == -1) { - free(h); - return NULL; - } - - /* map and verify file header */ - - return h; -} - -/* -XOPEN(500) -*/ - - -#endif diff --git a/src/dlfcn/dlsym.c b/src/dlfcn/dlsym.c deleted file mode 100644 index f4afe83e..00000000 --- a/src/dlfcn/dlsym.c +++ /dev/null @@ -1,18 +0,0 @@ -#if 0 - -#include <dlfcn.h> -#include "_dlfcn.h" - -void *dlsym(void *restrict handle, const char *restrict name) -{ - struct dlhandle *h = handle; - (void)name; - return h; -} - -/* -XOPEN(500) -*/ - - -#endif diff --git a/src/fmtmsg/MM_APPL.h b/src/fmtmsg/MM_APPL.h deleted file mode 100644 index db98dc2a..00000000 --- a/src/fmtmsg/MM_APPL.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <fmtmsg.h> -#define MM_APPL 3 -/* -XOPEN(400) -*/ diff --git a/src/fmtmsg/MM_CONSOLE.h b/src/fmtmsg/MM_CONSOLE.h deleted file mode 100644 index a4250314..00000000 --- a/src/fmtmsg/MM_CONSOLE.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <fmtmsg.h> -#define MM_CONSOLE 14 - -/* -XOPEN(400) -*/ diff --git a/src/fmtmsg/MM_ERROR.h b/src/fmtmsg/MM_ERROR.h deleted file mode 100644 index fdb8bde5..00000000 --- a/src/fmtmsg/MM_ERROR.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <fmtmsg.h> -#define MM_ERROR 9 -/* -XOPEN(400) -*/ diff --git a/src/fmtmsg/MM_FIRM.h b/src/fmtmsg/MM_FIRM.h deleted file mode 100644 index 15db286a..00000000 --- a/src/fmtmsg/MM_FIRM.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <fmtmsg.h> -#define MM_FIRM 2 -/* -XOPEN(400) -*/ diff --git a/src/fmtmsg/MM_HALT.h b/src/fmtmsg/MM_HALT.h deleted file mode 100644 index 495e7494..00000000 --- a/src/fmtmsg/MM_HALT.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <fmtmsg.h> -#define MM_HALT 8 -/* -XOPEN(400) -*/ diff --git a/src/fmtmsg/MM_HARD.h b/src/fmtmsg/MM_HARD.h deleted file mode 100644 index be2fb19f..00000000 --- a/src/fmtmsg/MM_HARD.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <fmtmsg.h> -#define MM_HARD 0 -/* -XOPEN(400) -*/ diff --git a/src/fmtmsg/MM_INFO.h b/src/fmtmsg/MM_INFO.h deleted file mode 100644 index 667f1e9d..00000000 --- a/src/fmtmsg/MM_INFO.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <fmtmsg.h> -#define MM_INFO 11 -/* -XOPEN(400) -*/ diff --git a/src/fmtmsg/MM_NOCON.h b/src/fmtmsg/MM_NOCON.h deleted file mode 100644 index ce101990..00000000 --- a/src/fmtmsg/MM_NOCON.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <fmtmsg.h> -#define MM_NOCON 3 -/* -XOPEN(400) -*/ diff --git a/src/fmtmsg/MM_NOMSG.h b/src/fmtmsg/MM_NOMSG.h deleted file mode 100644 index 903de6dd..00000000 --- a/src/fmtmsg/MM_NOMSG.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <fmtmsg.h> -#define MM_NOMSG 2 -/* -XOPEN(400) -*/ diff --git a/src/fmtmsg/MM_NOSEV.h b/src/fmtmsg/MM_NOSEV.h deleted file mode 100644 index c5a827d8..00000000 --- a/src/fmtmsg/MM_NOSEV.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <fmtmsg.h> -#define MM_NOSEV 12 -/* -XOPEN(400) -*/ diff --git a/src/fmtmsg/MM_NOTOK.h b/src/fmtmsg/MM_NOTOK.h deleted file mode 100644 index 778eeb9d..00000000 --- a/src/fmtmsg/MM_NOTOK.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <fmtmsg.h> -#define MM_NOTOK 1 -/* -XOPEN(400) -*/ diff --git a/src/fmtmsg/MM_NRECOV.h b/src/fmtmsg/MM_NRECOV.h deleted file mode 100644 index fb253b29..00000000 --- a/src/fmtmsg/MM_NRECOV.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <fmtmsg.h> -#define MM_NRECOV 7 -/* -XOPEN(400) -*/ diff --git a/src/fmtmsg/MM_NULLACT.h b/src/fmtmsg/MM_NULLACT.h deleted file mode 100644 index 21405377..00000000 --- a/src/fmtmsg/MM_NULLACT.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <fmtmsg.h> -#define MM_NULLACT (char*)0 -/* -XOPEN(400) -*/ diff --git a/src/fmtmsg/MM_NULLLBL.h b/src/fmtmsg/MM_NULLLBL.h deleted file mode 100644 index 533bde3e..00000000 --- a/src/fmtmsg/MM_NULLLBL.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <fmtmsg.h> -#define MM_NULLLBL (char*)0 -/* -XOPEN(400) -*/ diff --git a/src/fmtmsg/MM_NULLMC.h b/src/fmtmsg/MM_NULLMC.h deleted file mode 100644 index c29432f1..00000000 --- a/src/fmtmsg/MM_NULLMC.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <fmtmsg.h> -#define MM_NULLMC 0L -/* -XOPEN(400) -*/ diff --git a/src/fmtmsg/MM_NULLSEV.h b/src/fmtmsg/MM_NULLSEV.h deleted file mode 100644 index ed029829..00000000 --- a/src/fmtmsg/MM_NULLSEV.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <fmtmsg.h> -#define MM_NULLSEV 0 -/* -XOPEN(400) -*/ diff --git a/src/fmtmsg/MM_NULLTAG.h b/src/fmtmsg/MM_NULLTAG.h deleted file mode 100644 index b8c41334..00000000 --- a/src/fmtmsg/MM_NULLTAG.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <fmtmsg.h> -#define MM_NULLTAG (char*)0 -/* -XOPEN(400) -*/ diff --git a/src/fmtmsg/MM_NULLTXT.h b/src/fmtmsg/MM_NULLTXT.h deleted file mode 100644 index 0b0512b9..00000000 --- a/src/fmtmsg/MM_NULLTXT.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <fmtmsg.h> -#define MM_NULLTXT (char*)0 -/* -XOPEN(400) -*/ diff --git a/src/fmtmsg/MM_OK.h b/src/fmtmsg/MM_OK.h deleted file mode 100644 index 0c270f4e..00000000 --- a/src/fmtmsg/MM_OK.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <fmtmsg.h> -#define MM_OK 0 -/* -XOPEN(400) -*/ diff --git a/src/fmtmsg/MM_OPSYS.h b/src/fmtmsg/MM_OPSYS.h deleted file mode 100644 index 837ec0dc..00000000 --- a/src/fmtmsg/MM_OPSYS.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <fmtmsg.h> -#define MM_OPSYS 5 -/* -XOPEN(400) -*/ diff --git a/src/fmtmsg/MM_PRINT.h b/src/fmtmsg/MM_PRINT.h deleted file mode 100644 index a3746213..00000000 --- a/src/fmtmsg/MM_PRINT.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <fmtmsg.h> -#define MM_PRINT 13 -/* -XOPEN(400) -*/ diff --git a/src/fmtmsg/MM_RECOVER.h b/src/fmtmsg/MM_RECOVER.h deleted file mode 100644 index 2c8de62b..00000000 --- a/src/fmtmsg/MM_RECOVER.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <fmtmsg.h> -#define MM_RECOVER 6 -/* -XOPEN(400) -*/ diff --git a/src/fmtmsg/MM_SOFT.h b/src/fmtmsg/MM_SOFT.h deleted file mode 100644 index ce39c1e5..00000000 --- a/src/fmtmsg/MM_SOFT.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <fmtmsg.h> -#define MM_SOFT 1 -/* -XOPEN(400) -*/ diff --git a/src/fmtmsg/MM_UTIL.h b/src/fmtmsg/MM_UTIL.h deleted file mode 100644 index ce8b7334..00000000 --- a/src/fmtmsg/MM_UTIL.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <fmtmsg.h> -#define MM_UTIL 4 -/* -XOPEN(400) -*/ diff --git a/src/fmtmsg/MM_WARNING.h b/src/fmtmsg/MM_WARNING.h deleted file mode 100644 index 21f699c3..00000000 --- a/src/fmtmsg/MM_WARNING.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <fmtmsg.h> -#define MM_WARNING 10 -/* -XOPEN(400) -*/ diff --git a/src/fmtmsg/fmtmsg.c b/src/fmtmsg/fmtmsg.c deleted file mode 100644 index 1c9eabb6..00000000 --- a/src/fmtmsg/fmtmsg.c +++ /dev/null @@ -1,15 +0,0 @@ -#if 0 - -#include <fmtmsg.h> - -int fmtmsg(long classification, const char * label, int severity, const char * text, const char * action, const char * tag) -{ - return 0; -} - -/* -XOPEN(400) -*/ - - -#endif diff --git a/src/fnmatch/FNM_NOESCAPE.h b/src/fnmatch/FNM_NOESCAPE.h deleted file mode 100644 index ff40d013..00000000 --- a/src/fnmatch/FNM_NOESCAPE.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <fnmatch.h> -#define FNM_NOESCAPE (1<<2) -/* -POSIX(2) -*/ - diff --git a/src/fnmatch/FNM_NOMATCH.h b/src/fnmatch/FNM_NOMATCH.h deleted file mode 100644 index a4076d33..00000000 --- a/src/fnmatch/FNM_NOMATCH.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <fnmatch.h> -#define FNM_NOMATCH (-1) -/* -POSIX(2) -*/ - diff --git a/src/fnmatch/FNM_NOSYS.h b/src/fnmatch/FNM_NOSYS.h deleted file mode 100644 index 8880c2cc..00000000 --- a/src/fnmatch/FNM_NOSYS.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <fnmatch.h> -#define FNM_NOSYS (-2) -/* -POSIX(2) -*/ - diff --git a/src/fnmatch/FNM_PATHNAME.h b/src/fnmatch/FNM_PATHNAME.h deleted file mode 100644 index 646e20fa..00000000 --- a/src/fnmatch/FNM_PATHNAME.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <fnmatch.h> -#define FNM_PATHNAME (1<<0) -/* -POSIX(2) -*/ - diff --git a/src/fnmatch/FNM_PERIOD.h b/src/fnmatch/FNM_PERIOD.h deleted file mode 100644 index 4d87f2c7..00000000 --- a/src/fnmatch/FNM_PERIOD.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <fnmatch.h> -#define FNM_PERIOD (1<<1) -/* -POSIX(2) -*/ - diff --git a/src/fnmatch/fnmatch.c b/src/fnmatch/fnmatch.c deleted file mode 100644 index 188638bd..00000000 --- a/src/fnmatch/fnmatch.c +++ /dev/null @@ -1,104 +0,0 @@ -#if 0 - -#include <fnmatch.h> -#include <string.h> -#include "_assert.h" - -int fnmatch(const char * pattern, const char * string, int flags) -{ - ASSERT_NONNULL(pattern); - ASSERT_NONNULL(string); - /* __ASSERT_FLAGS(flags, FNM_PATHNAME | FNM_NOESCAPE | FNM_PERIOD); */ - const int period = flags & FNM_PERIOD; - const int pathname = flags & FNM_PATHNAME; - const int noescape = flags & FNM_NOESCAPE; - char last = '/'; - - while (*pattern && *string) { - if (*pattern == '?') { - pattern++; - if (pathname && *string == '/') { - return FNM_NOMATCH; - } - - if (period && *string == '.') { - if (pathname && !(last == '/')) { - return FNM_NOMATCH; - } - /* TODO: period & !pathname */ - } - - last = *string; - string++; - - continue; - } - - if (*pattern == '[') { - char *ket = strchr(pattern, ']'); - if (ket) { - /* TODO: FNM_PATHNAME */ - /* TODO: FNM_PERIOD */ - /* match all or none */ - pattern = ket + 1; - if (0) { - return FNM_NOMATCH; - } - - last = *string; - string++; - continue; - } - /* match a literal bracket, handled by main branch */ - } - - if (*pattern == '*') { - /* multiple * is the same as one * */ - while (*pattern == '*') { - pattern++; - } - - /* TODO: period and pathname */ - if (*pattern == '\0') { - return 0; - } - - while (*string) { - /* TODO: period and pathname */ - if (fnmatch(pattern, string, flags) == 0) { - return 0; - } - string++; - } - return FNM_NOMATCH; - } - - if (*pattern == '\\' && !noescape) { - pattern++; - if (*string != *pattern) { - return FNM_NOMATCH; - } - } - - if (*pattern != *string) { - return FNM_NOMATCH; - } - - last = *string; - pattern++; - string++; - } - - if (*pattern || *string) { - return FNM_NOMATCH; - } - - return 0; -} - -/* -POSIX(2) -*/ - - -#endif diff --git a/src/ftw/FTW_CHDIR.h b/src/ftw/FTW_CHDIR.h deleted file mode 100644 index 8f966615..00000000 --- a/src/ftw/FTW_CHDIR.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <ftw.h> -#define FTW_CHDIR (1<<3) - -/* -XOPEN(400) -*/ diff --git a/src/ftw/FTW_D.h b/src/ftw/FTW_D.h deleted file mode 100644 index c640daac..00000000 --- a/src/ftw/FTW_D.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <ftw.h> -#define FTW_D (1<<1) - -/* -XOPEN(4) -*/ diff --git a/src/ftw/FTW_DEPTH.h b/src/ftw/FTW_DEPTH.h deleted file mode 100644 index d5bcb1f1..00000000 --- a/src/ftw/FTW_DEPTH.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <ftw.h> -#define FTW_DEPTH (1<<2) - -/* -XOPEN(400) -*/ diff --git a/src/ftw/FTW_DNR.h b/src/ftw/FTW_DNR.h deleted file mode 100644 index 2ca5e194..00000000 --- a/src/ftw/FTW_DNR.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <ftw.h> -#define FTW_DNR (1<<2) - -/* -XOPEN(4) -*/ diff --git a/src/ftw/FTW_F.h b/src/ftw/FTW_F.h deleted file mode 100644 index 55978ff9..00000000 --- a/src/ftw/FTW_F.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <ftw.h> -#define FTW_F (1<<0) - -/* -XOPEN(4) -*/ diff --git a/src/ftw/FTW_MOUNT.h b/src/ftw/FTW_MOUNT.h deleted file mode 100644 index ef4762c2..00000000 --- a/src/ftw/FTW_MOUNT.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <ftw.h> -#define FTW_MOUNT (1<<1) - -/* -XOPEN(400) -*/ diff --git a/src/ftw/FTW_NS.h b/src/ftw/FTW_NS.h deleted file mode 100644 index 2f213766..00000000 --- a/src/ftw/FTW_NS.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <ftw.h> -#define FTW_NS (1<<4) - -/* -XOPEN(4) -*/ diff --git a/src/ftw/FTW_PHYS.h b/src/ftw/FTW_PHYS.h deleted file mode 100644 index 52cd4a51..00000000 --- a/src/ftw/FTW_PHYS.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <ftw.h> -#define FTW_PHYS (1<<0) - -/* -XOPEN(400) -*/ diff --git a/src/ftw/FTW_SL.h b/src/ftw/FTW_SL.h deleted file mode 100644 index 894905d2..00000000 --- a/src/ftw/FTW_SL.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <ftw.h> -#define FTW_SL (1<<5) - -/* -XOPEN(400) -*/ diff --git a/src/ftw/FTW_SLN.h b/src/ftw/FTW_SLN.h deleted file mode 100644 index ac2ba934..00000000 --- a/src/ftw/FTW_SLN.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <ftw.h> -#define FTW_SLN (1<<6) - -/* -XOPEN(400) -*/ diff --git a/src/ftw/__ftw.c b/src/ftw/__ftw.c deleted file mode 100644 index 0f9b2f79..00000000 --- a/src/ftw/__ftw.c +++ /dev/null @@ -1,17 +0,0 @@ -#if 0 - -#include "_ftw.h" - -int __ftw(const char *path, int (*fn)(), int fd_limit, int flags) -{ - struct FTW ft; - struct stat st; - int type = 0; - - int ret = (flags == __FTW_OLD) ? fn(path, &st, type) : fn(path, &st, type, &ft); - - return ret; -} - - -#endif diff --git a/src/ftw/_ftw.h b/src/ftw/_ftw.h deleted file mode 100644 index 2225061e..00000000 --- a/src/ftw/_ftw.h +++ /dev/null @@ -1,8 +0,0 @@ -#ifndef ___FTW_H__ -#define ___FTW_H__ - -#define __FTW_OLD (-1) - -int __ftw(const char *path, int (*fn)(), int fd_limit, int flags); - -#endif diff --git a/src/ftw/ftw.c b/src/ftw/ftw.c deleted file mode 100644 index 7e3bff57..00000000 --- a/src/ftw/ftw.c +++ /dev/null @@ -1,17 +0,0 @@ -#if 0 - -#include <ftw.h> -#include <sys/stat.h> -#include "_ftw.h" - -int ftw(const char * path, int (*fn) (const char *, const struct stat * ptr, int flag), int ndirs) -{ - return __ftw(path, fn, ndirs, __FTW_OLD); -} - -/* -XOPEN(4) -*/ - - -#endif diff --git a/src/ftw/nftw.c b/src/ftw/nftw.c deleted file mode 100644 index 463d9fe5..00000000 --- a/src/ftw/nftw.c +++ /dev/null @@ -1,15 +0,0 @@ -#if 0 - -#include <ftw.h> - -int nftw(const char * path, int (*fn) (const char *, const struct stat *, int, struct FTW *), int fd_limit, int flags) -{ - return __ftw(path, fn, fd_limit, flags); -} - -/* -XOPEN(400) -*/ - - -#endif diff --git a/src/ftw/struct_FTW.h b/src/ftw/struct_FTW.h deleted file mode 100644 index fb218883..00000000 --- a/src/ftw/struct_FTW.h +++ /dev/null @@ -1,10 +0,0 @@ -#include <ftw.h> - -struct FTW { - int base; - int level; -}; - -/* -XOPEN(400) -*/ diff --git a/src/ftw/struct_stat.ref b/src/ftw/struct_stat.ref deleted file mode 100644 index 8ec7969f..00000000 --- a/src/ftw/struct_stat.ref +++ /dev/null @@ -1,3 +0,0 @@ -#include <ftw.h> -REFERENCE(sys/stat/struct_stat.c) -XOPEN(4) diff --git a/src/glob/GLOB_ABORTED.h b/src/glob/GLOB_ABORTED.h deleted file mode 100644 index 4fff433e..00000000 --- a/src/glob/GLOB_ABORTED.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <glob.h> -#define GLOB_ABORTED 1 -/* -POSIX(2) -*/ - diff --git a/src/glob/GLOB_APPEND.h b/src/glob/GLOB_APPEND.h deleted file mode 100644 index e9cdddac..00000000 --- a/src/glob/GLOB_APPEND.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <glob.h> -#define GLOB_APPEND (1<<0) -/* -POSIX(2) -*/ - diff --git a/src/glob/GLOB_DOOFFS.h b/src/glob/GLOB_DOOFFS.h deleted file mode 100644 index 5c1615ec..00000000 --- a/src/glob/GLOB_DOOFFS.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <glob.h> -#define GLOB_DOOFFS (1<<1) -/* -POSIX(2) -*/ - diff --git a/src/glob/GLOB_ERR.h b/src/glob/GLOB_ERR.h deleted file mode 100644 index 1b28a495..00000000 --- a/src/glob/GLOB_ERR.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <glob.h> -#define GLOB_ERR (1<<2) -/* -POSIX(2) -*/ - diff --git a/src/glob/GLOB_MARK.h b/src/glob/GLOB_MARK.h deleted file mode 100644 index 628b1e0d..00000000 --- a/src/glob/GLOB_MARK.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <glob.h> -#define GLOB_MARK (1<<3) -/* -POSIX(2) -*/ - diff --git a/src/glob/GLOB_NOCHECK.h b/src/glob/GLOB_NOCHECK.h deleted file mode 100644 index 323fdf40..00000000 --- a/src/glob/GLOB_NOCHECK.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <glob.h> -#define GLOB_NOCHECK (1<<4) -/* -POSIX(2) -*/ - diff --git a/src/glob/GLOB_NOESCAPE.h b/src/glob/GLOB_NOESCAPE.h deleted file mode 100644 index befaaaef..00000000 --- a/src/glob/GLOB_NOESCAPE.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <glob.h> -#define GLOB_NOESCAPE (1<<5) -/* -POSIX(2) -*/ - diff --git a/src/glob/GLOB_NOMATCH.h b/src/glob/GLOB_NOMATCH.h deleted file mode 100644 index 1d404a00..00000000 --- a/src/glob/GLOB_NOMATCH.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <glob.h> -#define GLOB_NOMATCH 2 -/* -POSIX(2) -*/ - diff --git a/src/glob/GLOB_NOSORT.h b/src/glob/GLOB_NOSORT.h deleted file mode 100644 index c17dcf28..00000000 --- a/src/glob/GLOB_NOSORT.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <glob.h> -#define GLOB_NOSORT (1<<6) -/* -POSIX(2) -*/ - diff --git a/src/glob/GLOB_NOSPACE.h b/src/glob/GLOB_NOSPACE.h deleted file mode 100644 index e57a197b..00000000 --- a/src/glob/GLOB_NOSPACE.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <glob.h> -#define GLOB_NOSPACE 3 -/* -POSIX(2) -*/ - diff --git a/src/glob/GLOB_NOSYS.h b/src/glob/GLOB_NOSYS.h deleted file mode 100644 index 4c0682c4..00000000 --- a/src/glob/GLOB_NOSYS.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <glob.h> -#define GLOB_NOSYS (-2) -/* -POSIX(2) -*/ - diff --git a/src/glob/glob.c b/src/glob/glob.c deleted file mode 100644 index 8a45ed65..00000000 --- a/src/glob/glob.c +++ /dev/null @@ -1,126 +0,0 @@ -#if 0 - -#include <sys/types.h> -#include <glob.h> -#include <stdlib.h> -#include <string.h> -#include <dirent.h> -#include <fnmatch.h> -#include <errno.h> -#include <unistd.h> -#include "_assert.h" - -int glob(const char * restrict pattern, int flags, int (*errfunc) (const char * epath, int eerrno), glob_t * restrict pglob) -{ - ASSERT_NONNULL(pattern); - ASSERT_NONNULL(pglob); - - int slashes = 0; - size_t i; - - int fnmatch_flags = FNM_PATHNAME | FNM_PERIOD; - - if (flags & GLOB_NOESCAPE) { - fnmatch_flags |= FNM_NOESCAPE; - } - - if (flags & GLOB_APPEND) { - if (pglob->gl_pathc == 0) { - /* no good */ - } - - if (pglob->gl_offs > 0 && !(flags & GLOB_DOOFFS)) { - /* nope */ - } - } else { - if (pglob->gl_pathc != 0) { - /* also no */ - } - } - - char *path = malloc(strlen(pattern) + 1); - strcpy(path, pattern); - - for (i = 0; path[i]; i++) { - if (path[i] == '/') { - slashes++; - path[i] = '\0'; - } - } - - if (path[0] == '\0') { - path[0] = '/'; - slashes--; - } - - /* TODO: check for trailing slash to match only directories */ - /* TODO: compress adjacent slashes */ - /* TODO: DOOFFS */ - - do { - const char *p = path + strlen(path) + 1; - struct dirent *de; - DIR *d = opendir(slashes ? path : "."); - if (d == NULL) { - if (errfunc != NULL) { - if (errfunc(path, errno) != 0) { - return GLOB_ABORTED; - } - } - - if (flags & GLOB_ERR) { - return GLOB_ABORTED; - } - } - - while ((de = readdir(d)) != NULL) { - if (fnmatch(p, de->d_name, fnmatch_flags) == 0) { - pglob->gl_pathc++; - char **tmp = realloc(pglob->gl_pathv, sizeof(char*) * pglob->gl_pathc); - if (tmp == NULL) { - pglob->gl_pathc--; - return GLOB_NOSPACE; - } - - pglob->gl_pathv = tmp; - /* FIXME: add path to front */ - pglob->gl_pathv[pglob->gl_pathc - 1] = malloc(strlen(de->d_name) + 1); - strcat(pglob->gl_pathv[pglob->gl_pathc - 1], de->d_name); - /* TODO: MARK */ - } - } - - closedir(d); - - path[strlen(path)] = '/'; - slashes--; - } while (slashes); - - if (pglob->gl_pathc == 0) { - if (flags & GLOB_NOCHECK) { - /* TODO: DOOFFS */ - pglob->gl_pathc = 1; - pglob->gl_pathv = malloc(sizeof(char*)); - pglob->gl_pathv[0] = malloc(strlen(pattern) + 1); - strcpy(pglob->gl_pathv[0], pattern); - } else { - return GLOB_NOMATCH; - } - } - - if (!(flags & GLOB_NOSORT)) { - qsort(pglob->gl_pathv + pglob->gl_offs, pglob->gl_pathc, - sizeof(char*), - (int (*)(const void *, const void *))strcoll); - } - - return 0; -} - -/* -POSIX(2) -*/ - - - -#endif diff --git a/src/glob/glob_t.h b/src/glob/glob_t.h deleted file mode 100644 index 21fcf4f6..00000000 --- a/src/glob/glob_t.h +++ /dev/null @@ -1,11 +0,0 @@ -#include <glob.h> - -typedef struct { - size_t gl_pathc; - char ** gl_pathv; - size_t gl_offs; -} glob_t; -/* -POSIX(2) -*/ - diff --git a/src/glob/globfree.c b/src/glob/globfree.c deleted file mode 100644 index c9e6dc1a..00000000 --- a/src/glob/globfree.c +++ /dev/null @@ -1,30 +0,0 @@ -#if 0 - -#include <sys/types.h> -#include <glob.h> -#include <stdlib.h> - -void globfree(glob_t * pglob) -{ - size_t i; - - if (pglob == NULL) { - return; - } - - for (i = 0; i < pglob->gl_pathc; i++) { - if (pglob->gl_pathv[i] != NULL) { - free(pglob->gl_pathv[i]); - } - } - - free(pglob); -} - -/* -POSIX(2) -*/ - - - -#endif diff --git a/src/grp/__grp.c b/src/grp/__grp.c deleted file mode 100644 index 6ac139f1..00000000 --- a/src/grp/__grp.c +++ /dev/null @@ -1,24 +0,0 @@ -#if 0 - -#include "_grp.h" - -#ifndef _XOPEN_SOURCE -#undef getgrent -#define getgrent __getgrent -#include "getgrent.c" -#endif - -struct __grp __grp = -{ - NULL, - { 0 }, - getgrent, - { 0 }, -}; - -/* -POSIX(1) -*/ - - -#endif diff --git a/src/grp/_grp.h b/src/grp/_grp.h deleted file mode 100644 index e3a15be4..00000000 --- a/src/grp/_grp.h +++ /dev/null @@ -1,32 +0,0 @@ -#ifndef ___GRP_H__ -#define ___GRP_H__ - -#include <sys/types.h> -#include <grp.h> -#include <stdio.h> - -#define MAX_MEMBERS 128 - -struct __grp { - FILE *db; - struct group grp; - struct group * (*getgrent)(void); - char *members[MAX_MEMBERS]; -}; - -extern struct __grp __grp; - -#ifndef _XOPEN_SOURCE -#define setgrent() (__grp.db == NULL ? (void)0 : (void)rewind(__grp.db)) - -#define endgrent() do { \ - if (__grp.db) { \ - fclose(__grp.db); \ - __grp.db = NULL; \ - } \ -} while (0) - -#define getgrent __grp.getgrent -#endif - -#endif diff --git a/src/grp/endgrent.c b/src/grp/endgrent.c deleted file mode 100644 index 6869ed1f..00000000 --- a/src/grp/endgrent.c +++ /dev/null @@ -1,20 +0,0 @@ -#if 0 - -#include <grp.h> -#include <stdio.h> -#include "_grp.h" - -void endgrent(void) -{ - if (__grp.db != NULL) { - fclose(__grp.db); - __grp.db = NULL; - } -} - -/* -XOPEN(400) -*/ - - -#endif diff --git a/src/grp/getgrent.c b/src/grp/getgrent.c deleted file mode 100644 index 5b455ae7..00000000 --- a/src/grp/getgrent.c +++ /dev/null @@ -1,94 +0,0 @@ -#if 0 - -#if ((!defined _POSIX_C_SOURCE) || (_POSIX_C_SOURCE < 2)) -#undef _POSIX_C_SOURCE -#define _POSIX_C_SOURCE 2 -#endif - -#include <sys/types.h> -#include <grp.h> -#include <stdlib.h> -#include <stdio.h> -#include <limits.h> -#include <string.h> -#include "_config.h" -#include "_grp.h" - -#ifndef LINE_MAX -#define LINE_MAX _POSIX2_LINE_MAX -#endif - -#ifndef _XOPEN_SOURCE -static -#endif - -struct group * getgrent(void) -{ - static char buf[LINE_MAX + 1]; - char *group, *password, *gid, *members, *nl; - int member = 0; - - /* TODO: attempt first calling _GRP_CMD */ - - if (__grp.db == NULL) { - __grp.db = fopen(_GRP_DB, "r"); - if (__grp.db == NULL) { - return NULL; - } - } - - if (fgets(buf, sizeof(buf), __grp.db) == NULL) { - endgrent(); - return NULL; - } - - group = buf; - if ((password = strchr(buf, ':')) != NULL) { - *password = '\0'; - password++; - } else { - return NULL; - } - - if ((gid = strchr(password, ':')) != NULL) { - *gid = '\0'; - gid++; - } else { - return NULL; - } - - if ((members = strchr(gid, ':')) != NULL) { - *members = '\0'; - members++; - if ((nl = strchr(members, '\n')) != NULL) { - *nl = '\0'; - } - } else { - return NULL; - } - - __grp.grp.gr_name = group; - __grp.grp.gr_gid = strtoul(gid, NULL, 10); - - while (members && *members) { - __grp.members[member++] = members; - members = strchr(members, ','); - if (members) { - *members = '\0'; - members++; - } - } - - __grp.members[member] = NULL; - - __grp.grp.gr_mem = __grp.members; - - return &__grp.grp; -} - -/* -XOPEN(400) -*/ - - -#endif diff --git a/src/grp/getgrgid.c b/src/grp/getgrgid.c deleted file mode 100644 index 3b745f97..00000000 --- a/src/grp/getgrgid.c +++ /dev/null @@ -1,28 +0,0 @@ -#if 0 - -#include <sys/types.h> -#include <grp.h> -#include "_grp.h" - -struct group * getgrgid(gid_t gid) -{ - struct group *grp = NULL; - setgrent(); - - while ((grp = getgrent()) != NULL) { - if (grp->gr_gid == gid) { - endgrent(); - return grp; - } - } - - endgrent(); - return NULL; -} - -/* -POSIX(1) -*/ - - -#endif diff --git a/src/grp/getgrnam.c b/src/grp/getgrnam.c deleted file mode 100644 index dfa0d5e7..00000000 --- a/src/grp/getgrnam.c +++ /dev/null @@ -1,29 +0,0 @@ -#if 0 - -#include <sys/types.h> -#include <grp.h> -#include <string.h> -#include "_grp.h" - -struct group * getgrnam(const char * name) -{ - struct group *grp = NULL; - setgrent(); - - while ((grp = getgrent()) != NULL) { - if (strcmp(name, grp->gr_name) == 0) { - endgrent(); - return grp; - } - } - - endgrent(); - return NULL; -} - -/* -POSIX(1) -*/ - - -#endif diff --git a/src/grp/gid_t.ref b/src/grp/gid_t.ref deleted file mode 100644 index 18ec6499..00000000 --- a/src/grp/gid_t.ref +++ /dev/null @@ -1,2 +0,0 @@ -REFERENCE(sys/types/gid_t.c) -XOPEN(4) diff --git a/src/grp/setgrent.c b/src/grp/setgrent.c deleted file mode 100644 index 13c20a1f..00000000 --- a/src/grp/setgrent.c +++ /dev/null @@ -1,19 +0,0 @@ -#if 0 - -#include <grp.h> -#include <stdio.h> -#include "_grp.h" - -void setgrent(void) -{ - if (__grp.db != NULL) { - rewind(__grp.db); - } -} - -/* -XOPEN(400) -*/ - - -#endif diff --git a/src/grp/struct_group.c b/src/grp/struct_group.c deleted file mode 100644 index b1abb325..00000000 --- a/src/grp/struct_group.c +++ /dev/null @@ -1,14 +0,0 @@ -#if 0 - -struct group { - char * gr_name; - gid_t gr_gid; - char ** gr_mem; -}; - -/* -POSIX(1) -*/ - - -#endif diff --git a/src/iconv/iconv.c b/src/iconv/iconv.c deleted file mode 100644 index 55a22401..00000000 --- a/src/iconv/iconv.c +++ /dev/null @@ -1,16 +0,0 @@ -#if 0 - -#include <iconv.h> - -size_t iconv(iconv_t cd, char ** restrict inbuf, size_t * restrict inbytesleft, char ** restrict outbuf, size_t * restrict outbytesleft) -{ - return 0; -} - -/* -XOPEN(4) -POSIX(200809) -*/ - - -#endif diff --git a/src/iconv/iconv_close.c b/src/iconv/iconv_close.c deleted file mode 100644 index 83c416e1..00000000 --- a/src/iconv/iconv_close.c +++ /dev/null @@ -1,16 +0,0 @@ -#if 0 - -#include <iconv.h> - -int iconv_close(iconv_t cd) -{ - return -1; -} - -/* -XOPEN(4) -POSIX(200809) -*/ - - -#endif diff --git a/src/iconv/iconv_open.c b/src/iconv/iconv_open.c deleted file mode 100644 index 49d1e444..00000000 --- a/src/iconv/iconv_open.c +++ /dev/null @@ -1,16 +0,0 @@ -#if 0 - -#include <iconv.h> - -iconv_t iconv_open(const char * tocode, const char * fromcode) -{ - return -1; -} - -/* -XOPEN(4) -POSIX(200809) -*/ - - -#endif diff --git a/src/iconv/iconv_t.h b/src/iconv/iconv_t.h deleted file mode 100644 index 84cab53e..00000000 --- a/src/iconv/iconv_t.h +++ /dev/null @@ -1,7 +0,0 @@ -#include <iconv.h> -typedef unsigned long int iconv_t; - -/* -XOPEN(4) -POSIX(200809) -*/ diff --git a/src/libgen/__loc1.c b/src/libgen/__loc1.c deleted file mode 100644 index ec03e369..00000000 --- a/src/libgen/__loc1.c +++ /dev/null @@ -1,10 +0,0 @@ -#if 0 - -#include <libgen.h> -char *__loc1; -/* -XOPEN(400,600) -*/ - - -#endif diff --git a/src/libgen/basename.c b/src/libgen/basename.c deleted file mode 100644 index 0f408939..00000000 --- a/src/libgen/basename.c +++ /dev/null @@ -1,46 +0,0 @@ -#if 0 - -#include <libgen.h> -#include <string.h> - -char * basename(char * path) -{ - static char *dot = "."; - static char *slash = "/"; - char *lastslash; - size_t len; - - if (path == NULL) { - return dot; - } - - len = strlen(path); - - if (len == 0) { - return dot; - } - - /* Trim trailing slashes */ - while (path[len] == '/') { - path[len--] = '\0'; - } - - /* path consisted entirely of slashes */ - if (len == 0) { - return slash; - } - - lastslash = strrchr(path, '/'); - if (lastslash) { - path = lastslash + 1; - } - - return path; -} - -/* -XOPEN(400) -*/ - - -#endif diff --git a/src/libgen/dirname.c b/src/libgen/dirname.c deleted file mode 100644 index e4c1e611..00000000 --- a/src/libgen/dirname.c +++ /dev/null @@ -1,16 +0,0 @@ -#if 0 - -#include <libgen.h> -#include <string.h> - -char * dirname(char * path) -{ - return NULL; -} - -/* -XOPEN(400) -*/ - - -#endif diff --git a/src/libgen/regcmp.c b/src/libgen/regcmp.c deleted file mode 100644 index 3f6a2eed..00000000 --- a/src/libgen/regcmp.c +++ /dev/null @@ -1,14 +0,0 @@ -#if 0 - -#include <libgen.h> -char *regcmp(const char *string1, ... /*, (char*)0 */) -{ - return string1; -} - -/* -XOPEN(400,600) -*/ - - -#endif diff --git a/src/libgen/regex.c b/src/libgen/regex.c deleted file mode 100644 index 0db7a342..00000000 --- a/src/libgen/regex.c +++ /dev/null @@ -1,15 +0,0 @@ -#if 0 - -#include <libgen.h> - -char *regex(const char *re, const char *subject, ...) -{ - return re; -} - -/* -XOPEN(400,600) -*/ - - -#endif diff --git a/src/monetary/size_t.ref b/src/monetary/size_t.ref deleted file mode 100644 index f1340027..00000000 --- a/src/monetary/size_t.ref +++ /dev/null @@ -1,3 +0,0 @@ -#include <monetary.h> -REFERENCE(stddef/size_t.c) -XOPEN(4) diff --git a/src/monetary/ssize_t.ref b/src/monetary/ssize_t.ref deleted file mode 100644 index 446f4d3e..00000000 --- a/src/monetary/ssize_t.ref +++ /dev/null @@ -1,3 +0,0 @@ -#include <monetary.h> -REFERENCE(sys/types/ssize_t.c) -XOPEN(4) diff --git a/src/monetary/strfmon.c b/src/monetary/strfmon.c deleted file mode 100644 index 829d8ffc..00000000 --- a/src/monetary/strfmon.c +++ /dev/null @@ -1,151 +0,0 @@ -#if 0 - -#include <monetary.h> -#include <ctype.h> -#include <locale.h> -#include <stdarg.h> -#include <stdio.h> -#include <stdlib.h> -#include <string.h> - -ssize_t strfmon(char * restrict s, size_t maxsize, const char * restrict format, ...) -{ - size_t i = 0; - va_list ap; - va_start(ap, format); - - struct lconv *lc = localeconv(); - - while (*format && i < maxsize) { - if (*format != '%') { - s[i++] = *format++; - continue; - } - - format++; - - if (*format == '%') { - s[i++] = '%'; - format++; - continue; - } - - char fill = ' '; - char positive_negative_style = '+'; - char *positive_sign = lc->positive_sign; - char *negative_sign = lc->negative_sign; - char *negative_end = ""; - char *symbol = lc->currency_symbol; - int grouping = 1; - - enum { left, right } align = right; - - while (strchr("=^+(!-", *format)) { - switch (*format) { - case '=': - fill = format[1]; - format++; - break; - - case '^': - grouping = 0; - break; - - case '+': - /* is default */ - break; - - case '(': - positive_sign = ""; - negative_sign = "("; - negative_end = ")"; - break; - - case '!': - symbol = ""; - break; - - case '-': - align = left; - break; - } - format++; - } - - int width = 0; - if (isdigit(*format)) { - char *end = NULL; - width = (int)strtol(format, &end, 10); - format = end; - } - - int lprecision = 0; - if (*format == '#') { - if (!isdigit(format[1])) { - va_end(ap); - return -1; - } - char *end = NULL; - lprecision = (int)strtol(format + 1, &end, 10); - format = end; - } - - int rprecision = lc->frac_digits; - if (*format == '.') { - if (!isdigit(format[1])) { - va_end(ap); - return -1; - } - char *end = NULL; - rprecision = (int)strtol(format + 1, &end, 10); - format = end; - } - - if (*format != 'i' && *format != 'n') { - va_end(ap); - return -1; - } - - /* i == international format */ - /* n == national format */ - - double value = va_arg(ap, double); - int negative = 0; - if (value < 0) { - negative = 1; - value = value * -1; - } - - char *currency = lc->currency_symbol; - - char *sign = negative ? negative_sign : positive_sign; - - i += snprintf(s + i, maxsize - i, "%s", sign); - i += snprintf(s + i, maxsize - i, "%s", symbol); - - char valuebuf[64]; - snprintf(valuebuf, sizeof(valuebuf), "%'*.2f", width, value); - for (char *s = valuebuf; *s == ' '; s++) { - *s = fill; - } - - i += snprintf(s + i, maxsize - i, "%s", valuebuf); - - if (negative) { - i += snprintf(s + i, maxsize - i, "%s", negative_end); - } - - format++; - } - - va_end(ap); - return i; -} - -/* -XOPEN(4) -POSIX(200809) -*/ - - -#endif diff --git a/src/mqueue/mq_close.c b/src/mqueue/mq_close.c deleted file mode 100644 index 03a6f074..00000000 --- a/src/mqueue/mq_close.c +++ /dev/null @@ -1,16 +0,0 @@ -#if 0 - -#include <mqueue.h> - -int mq_close(mqd_t mqdes) -{ - return 0; -} - -/* -POSIX(199309) -LINK(rt) -*/ - - -#endif diff --git a/src/mqueue/mq_getattr.c b/src/mqueue/mq_getattr.c deleted file mode 100644 index 1908b862..00000000 --- a/src/mqueue/mq_getattr.c +++ /dev/null @@ -1,16 +0,0 @@ -#if 0 - -#include <mqueue.h> - -int mq_getattr(mqd_t mqdes, struct mq_attr * mqstat) -{ - return 0; -} - -/* -POSIX(199309) -LINK(rt) -*/ - - -#endif diff --git a/src/mqueue/mq_notify.c b/src/mqueue/mq_notify.c deleted file mode 100644 index 985aa5dc..00000000 --- a/src/mqueue/mq_notify.c +++ /dev/null @@ -1,16 +0,0 @@ -#if 0 - -#include <mqueue.h> - -int mq_notify(mqd_t mqdes, const struct sigevent * notification) -{ - return 0; -} - -/* -POSIX(199309) -LINK(rt) -*/ - - -#endif diff --git a/src/mqueue/mq_open.c b/src/mqueue/mq_open.c deleted file mode 100644 index f9414b56..00000000 --- a/src/mqueue/mq_open.c +++ /dev/null @@ -1,16 +0,0 @@ -#if 0 - -#include <mqueue.h> - -mqd_t mq_open(const char * name, int oflag, ...) -{ - return 0; -} - -/* -POSIX(199309) -LINK(rt) -*/ - - -#endif diff --git a/src/mqueue/mq_receive.c b/src/mqueue/mq_receive.c deleted file mode 100644 index eaf9d2f0..00000000 --- a/src/mqueue/mq_receive.c +++ /dev/null @@ -1,16 +0,0 @@ -#if 0 - -#include <mqueue.h> - -ssize_t mq_receive(mqd_t mqdes, char * msg_ptr, size_t msg_len, unsigned * msg_prio) -{ - return 0; -} - -/* -POSIX(199309) -LINK(rt) -*/ - - -#endif diff --git a/src/mqueue/mq_send.c b/src/mqueue/mq_send.c deleted file mode 100644 index 7e03dd49..00000000 --- a/src/mqueue/mq_send.c +++ /dev/null @@ -1,16 +0,0 @@ -#if 0 - -#include <mqueue.h> - -int mq_send(mqd_t mqdes, const char * msg_ptr, size_t msg_len, unsigned msg_prio) -{ - return 0; -} - -/* -POSIX(199309) -LINK(rt) -*/ - - -#endif diff --git a/src/mqueue/mq_setattr.c b/src/mqueue/mq_setattr.c deleted file mode 100644 index d27543c4..00000000 --- a/src/mqueue/mq_setattr.c +++ /dev/null @@ -1,16 +0,0 @@ -#if 0 - -#include <mqueue.h> - -int mq_setattr(mqd_t mqdes, const struct mq_attr * restrict mqstat, struct mq_attr * restrict omqstat) -{ - return 0; -} - -/* -POSIX(199309) -LINK(rt) -*/ - - -#endif diff --git a/src/mqueue/mq_unlink.c b/src/mqueue/mq_unlink.c deleted file mode 100644 index 1004fa14..00000000 --- a/src/mqueue/mq_unlink.c +++ /dev/null @@ -1,16 +0,0 @@ -#if 0 - -#include <mqueue.h> - -int mq_unlink(const char * name) -{ - return 0; -} - -/* -POSIX(199309) -LINK(rt) -*/ - - -#endif diff --git a/src/mqueue/mqd_t.h b/src/mqueue/mqd_t.h deleted file mode 100644 index 3d6e5deb..00000000 --- a/src/mqueue/mqd_t.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <mqueue.h> -typedef unsigned long int mqd_t; -/* -POSIX(199309) -*/ diff --git a/src/mqueue/struct_mq_attr.c b/src/mqueue/struct_mq_attr.c deleted file mode 100644 index b79bff2f..00000000 --- a/src/mqueue/struct_mq_attr.c +++ /dev/null @@ -1,17 +0,0 @@ -#if 0 - -#include <mqueue.h> - -struct mq_attr { - long mq_flags; - long mq_maxmsg; - long mq_msgsize; - long mq_curmsgs; -}; - -/* -POSIX(199309) -*/ - - -#endif diff --git a/src/ndbm/DBM.h b/src/ndbm/DBM.h deleted file mode 100644 index ca291450..00000000 --- a/src/ndbm/DBM.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <ndbm.h> -typedef struct __DBM DBM; -/* -XOPEN(400) -*/ diff --git a/src/ndbm/DBM_INSERT.h b/src/ndbm/DBM_INSERT.h deleted file mode 100644 index 820e6529..00000000 --- a/src/ndbm/DBM_INSERT.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <ndbm.h> -#define DBM_INSERT 1 -/* -XOPEN(400) -*/ diff --git a/src/ndbm/DBM_REPLACE.h b/src/ndbm/DBM_REPLACE.h deleted file mode 100644 index 9db51974..00000000 --- a/src/ndbm/DBM_REPLACE.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <ndbm.h> -#define DBM_REPLACE 2 -/* -XOPEN(400) -*/ diff --git a/src/ndbm/datum.c b/src/ndbm/datum.c deleted file mode 100644 index aa4f56d7..00000000 --- a/src/ndbm/datum.c +++ /dev/null @@ -1,15 +0,0 @@ -#if 0 - -#include <ndbm.h> - -typedef struct { - void * dptr; - size_t dsize; -} datum; - -/* -XOPEN(400) -*/ - - -#endif diff --git a/src/ndbm/dbm_clearerr.c b/src/ndbm/dbm_clearerr.c deleted file mode 100644 index 08508d65..00000000 --- a/src/ndbm/dbm_clearerr.c +++ /dev/null @@ -1,15 +0,0 @@ -#if 0 - -#include <ndbm.h> - -int dbm_clearerr(DBM * db) -{ - return -1; -} - -/* -XOPEN(400) -*/ - - -#endif diff --git a/src/ndbm/dbm_close.c b/src/ndbm/dbm_close.c deleted file mode 100644 index da4930ff..00000000 --- a/src/ndbm/dbm_close.c +++ /dev/null @@ -1,14 +0,0 @@ -#if 0 - -#include <ndbm.h> - -void dbm_close(DBM * db) -{ -} - -/* -XOPEN(400) -*/ - - -#endif diff --git a/src/ndbm/dbm_delete.c b/src/ndbm/dbm_delete.c deleted file mode 100644 index c3b367f0..00000000 --- a/src/ndbm/dbm_delete.c +++ /dev/null @@ -1,15 +0,0 @@ -#if 0 - -#include <ndbm.h> - -int dbm_delete(DBM * db, datum key) -{ - return -1; -} - -/* -XOPEN(400) -*/ - - -#endif diff --git a/src/ndbm/dbm_error.c b/src/ndbm/dbm_error.c deleted file mode 100644 index ff88e824..00000000 --- a/src/ndbm/dbm_error.c +++ /dev/null @@ -1,15 +0,0 @@ -#if 0 - -#include <ndbm.h> - -int dbm_error(DBM * db) -{ - return 0; -} - -/* -XOPEN(400) -*/ - - -#endif diff --git a/src/ndbm/dbm_fetch.c b/src/ndbm/dbm_fetch.c deleted file mode 100644 index 44d27837..00000000 --- a/src/ndbm/dbm_fetch.c +++ /dev/null @@ -1,15 +0,0 @@ -#if 0 - -#include <ndbm.h> - -datum dbm_fetch(DBM * db, datum key) -{ - return key; -} - -/* -XOPEN(400) -*/ - - -#endif diff --git a/src/ndbm/dbm_firstkey.c b/src/ndbm/dbm_firstkey.c deleted file mode 100644 index 41cc76b5..00000000 --- a/src/ndbm/dbm_firstkey.c +++ /dev/null @@ -1,14 +0,0 @@ -#if 0 - -#include <ndbm.h> - -datum dbm_firstkey(DBM * db) -{ -} - -/* -XOPEN(400) -*/ - - -#endif diff --git a/src/ndbm/dbm_nextkey.c b/src/ndbm/dbm_nextkey.c deleted file mode 100644 index df0e65ec..00000000 --- a/src/ndbm/dbm_nextkey.c +++ /dev/null @@ -1,14 +0,0 @@ -#if 0 - -#include <ndbm.h> - -datum dbm_nextkey(DBM * db) -{ -} - -/* -XOPEN(400) -*/ - - -#endif diff --git a/src/ndbm/dbm_open.c b/src/ndbm/dbm_open.c deleted file mode 100644 index 7152ccd5..00000000 --- a/src/ndbm/dbm_open.c +++ /dev/null @@ -1,15 +0,0 @@ -#if 0 - -#include <ndbm.h> - -DBM *dbm_open(const char * file, int open_flags, mode_t file_mode) -{ - return 0; -} - -/* -XOPEN(400) -*/ - - -#endif diff --git a/src/ndbm/dbm_store.c b/src/ndbm/dbm_store.c deleted file mode 100644 index 1e0d48b8..00000000 --- a/src/ndbm/dbm_store.c +++ /dev/null @@ -1,15 +0,0 @@ -#if 0 - -#include <ndbm.h> - -int dbm_store(DBM * db, datum key, datum content, int store_mode) -{ - return 0; -} - -/* -XOPEN(400) -*/ - - -#endif diff --git a/src/netinet/tcp/TCP_NODELAY.h b/src/netinet/tcp/TCP_NODELAY.h deleted file mode 100644 index 587cb2c8..00000000 --- a/src/netinet/tcp/TCP_NODELAY.h +++ /dev/null @@ -1 +0,0 @@ -#define TCP_NODELAY (1) diff --git a/src/nl_types/NL_CAT_LOCALE.h b/src/nl_types/NL_CAT_LOCALE.h deleted file mode 100644 index 1959f6c4..00000000 --- a/src/nl_types/NL_CAT_LOCALE.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <nl_types.h> -#define NL_CAT_LOCALE 1 -/* -XOPEN(4) -*/ diff --git a/src/nl_types/NL_SETD.h b/src/nl_types/NL_SETD.h deleted file mode 100644 index eb58283c..00000000 --- a/src/nl_types/NL_SETD.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <nl_types.h> -#define NL_SETD 1 -/* -XOPEN(4) -*/ diff --git a/src/nl_types/catclose.c b/src/nl_types/catclose.c deleted file mode 100644 index c6e22ffa..00000000 --- a/src/nl_types/catclose.c +++ /dev/null @@ -1,15 +0,0 @@ -#if 0 - -#include <nl_types.h> - -int catclose(nl_catd catd) -{ - return 0; -} - -/* -XOPEN(4) -*/ - - -#endif diff --git a/src/nl_types/catgets.c b/src/nl_types/catgets.c deleted file mode 100644 index 3401b696..00000000 --- a/src/nl_types/catgets.c +++ /dev/null @@ -1,15 +0,0 @@ -#if 0 - -#include <nl_types.h> - -char * catgets(nl_catd catd, int set_id, int msg_id, const char * s) -{ - return (char*)s; -} - -/* -XOPEN(4) -*/ - - -#endif diff --git a/src/nl_types/catopen.c b/src/nl_types/catopen.c deleted file mode 100644 index 0ff564b3..00000000 --- a/src/nl_types/catopen.c +++ /dev/null @@ -1,15 +0,0 @@ -#if 0 - -#include <nl_types.h> - -nl_catd catopen(const char* name, int oflag) -{ - return 0; -} - -/* -XOPEN(4) -*/ - - -#endif diff --git a/src/nl_types/nl_catd.c b/src/nl_types/nl_catd.c deleted file mode 100644 index 32066760..00000000 --- a/src/nl_types/nl_catd.c +++ /dev/null @@ -1,10 +0,0 @@ -#if 0 - -#include <nl_types.h> -typedef unsigned long int nl_catd; -/* -XOPEN(4) -*/ - - -#endif diff --git a/src/nl_types/nl_item.c b/src/nl_types/nl_item.c deleted file mode 100644 index 891547da..00000000 --- a/src/nl_types/nl_item.c +++ /dev/null @@ -1,10 +0,0 @@ -#if 0 - -#include <nl_types.h> -typedef int nl_item; -/* -XOPEN(4) -*/ - - -#endif diff --git a/src/poll/POLLERR.h b/src/poll/POLLERR.h deleted file mode 100644 index 9d77f5a9..00000000 --- a/src/poll/POLLERR.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <poll.h> -#define POLLERR (8) -/* -XOPEN(400) -POSIX(200809) -*/ diff --git a/src/poll/POLLHUP.h b/src/poll/POLLHUP.h deleted file mode 100644 index 44b823bc..00000000 --- a/src/poll/POLLHUP.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <poll.h> -#define POLLHUP (9) -/* -XOPEN(400) -POSIX(200809) -*/ diff --git a/src/poll/POLLIN.h b/src/poll/POLLIN.h deleted file mode 100644 index b48dadcf..00000000 --- a/src/poll/POLLIN.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <poll.h> -#define POLLIN (1) -/* -XOPEN(400) -POSIX(200809) -*/ diff --git a/src/poll/POLLNVAL.h b/src/poll/POLLNVAL.h deleted file mode 100644 index cc93f335..00000000 --- a/src/poll/POLLNVAL.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <poll.h> -#define POLLNVAL (10) -/* -XOPEN(400) -POSIX(200809) -*/ diff --git a/src/poll/POLLOUT.h b/src/poll/POLLOUT.h deleted file mode 100644 index f1a2827d..00000000 --- a/src/poll/POLLOUT.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <poll.h> -#define POLLOUT (5) -/* -XOPEN(400) -POSIX(200809) -*/ diff --git a/src/poll/POLLPRI.h b/src/poll/POLLPRI.h deleted file mode 100644 index 4de252ee..00000000 --- a/src/poll/POLLPRI.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <poll.h> -#define POLLPRI (4) -/* -XOPEN(400) -POSIX(200809) -*/ diff --git a/src/poll/POLLRDBAND.h b/src/poll/POLLRDBAND.h deleted file mode 100644 index dfd5cae8..00000000 --- a/src/poll/POLLRDBAND.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <poll.h> -#define POLLRDBAND (3) -/* -XOPEN(400) -POSIX(200809) -*/ diff --git a/src/poll/POLLRDNORM.h b/src/poll/POLLRDNORM.h deleted file mode 100644 index ebf84eb9..00000000 --- a/src/poll/POLLRDNORM.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <poll.h> -#define POLLRDNORM (2) -/* -XOPEN(400) -POSIX(200809) -*/ diff --git a/src/poll/POLLWRBAND.h b/src/poll/POLLWRBAND.h deleted file mode 100644 index ff5d5e3d..00000000 --- a/src/poll/POLLWRBAND.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <poll.h> -#define POLLWRBAND (7) -/* -XOPEN(400) -POSIX(200809) -*/ diff --git a/src/poll/POLLWRNORM.h b/src/poll/POLLWRNORM.h deleted file mode 100644 index c920b7c1..00000000 --- a/src/poll/POLLWRNORM.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <poll.h> -#define POLLWRNORM (6) -/* -XOPEN(400) -POSIX(200809) -*/ diff --git a/src/poll/nfds_t.h b/src/poll/nfds_t.h deleted file mode 100644 index 2a8b8208..00000000 --- a/src/poll/nfds_t.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <poll.h> -typedef unsigned int nfds_t; -/* -XOPEN(400) -POSIX(200809) -*/ diff --git a/src/poll/poll.c b/src/poll/poll.c deleted file mode 100644 index 134e881d..00000000 --- a/src/poll/poll.c +++ /dev/null @@ -1,16 +0,0 @@ -#if 0 - -#include <poll.h> - -int poll(struct pollfd fds[], nfds_t nfds, int timeout) -{ - return 0; -} - -/* -XOPEN(400) -POSIX(200809) -*/ - - -#endif diff --git a/src/poll/struct_pollfd.h b/src/poll/struct_pollfd.h deleted file mode 100644 index 2f609bb2..00000000 --- a/src/poll/struct_pollfd.h +++ /dev/null @@ -1,12 +0,0 @@ -#include <poll.h> - -struct pollfd { - int fd; - short events; - short revents; -}; - -/* -XOPEN(400) -POSIX(200809) -*/ diff --git a/src/pwd/__pwd.c b/src/pwd/__pwd.c deleted file mode 100644 index be407735..00000000 --- a/src/pwd/__pwd.c +++ /dev/null @@ -1,23 +0,0 @@ -#if 0 - -#include "_pwd.h" - -#ifndef _XOPEN_SOURCE -#undef getpwent -#define getpwent __getpwent -#include "getpwent.c" -#endif - -struct __pwd __pwd = -{ - NULL, - { 0 }, - getpwent, -}; - -/* -POSIX(1) -*/ - - -#endif diff --git a/src/pwd/_pwd.h b/src/pwd/_pwd.h deleted file mode 100644 index b5d666bf..00000000 --- a/src/pwd/_pwd.h +++ /dev/null @@ -1,29 +0,0 @@ -#ifndef ___PWD_H__ -#define ___PWD_H__ - -#include <sys/types.h> -#include <pwd.h> -#include <stdio.h> - -struct __pwd { - FILE *db; - struct passwd pwd; - struct passwd * (*getpwent)(void); -}; - -extern struct __pwd __pwd; - -#ifndef _XOPEN_SOURCE -#define setpwent() (__pwd.db == NULL ? (void)0 : (void)rewind(__pwd.db)) - -#define endpwent() do { \ - if (__pwd.db) { \ - fclose(__pwd.db); \ - __pwd.db = NULL; \ - } \ -} while (0) - -#define getpwent __pwd.getpwent -#endif - -#endif diff --git a/src/pwd/endpwent.c b/src/pwd/endpwent.c deleted file mode 100644 index 9241c01c..00000000 --- a/src/pwd/endpwent.c +++ /dev/null @@ -1,20 +0,0 @@ -#if 0 - -#include <pwd.h> -#include <stdio.h> -#include "_pwd.h" - -void endpwent(void) -{ - if (__pwd.db != NULL) { - fclose(__pwd.db); - __pwd.db = NULL; - } -} - -/* -XOPEN(400) -*/ - - -#endif diff --git a/src/pwd/getpwent.c b/src/pwd/getpwent.c deleted file mode 100644 index 72e15109..00000000 --- a/src/pwd/getpwent.c +++ /dev/null @@ -1,104 +0,0 @@ -#if 0 - -#if ((!defined _POSIX_C_SOURCE) || (_POSIX_C_SOURCE < 2)) -#undef _POSIX_C_SOURCE -#define _POSIX_C_SOURCE 2 -#endif - -#include <sys/types.h> -#include <pwd.h> -#include <stdlib.h> -#include <stdio.h> -#include <limits.h> -#include <string.h> -#include "_config.h" -#include "_pwd.h" - -#ifndef LINE_MAX -#define LINE_MAX _POSIX2_LINE_MAX -#endif - -#ifndef _XOPEN_SOURCE -static -#endif - -struct passwd * getpwent(void) -{ - static char buf[LINE_MAX + 1]; - char *user, *password, *uid, *gid, *gecos, *home, *shell, *nl; - - /* TODO: attempt first calling _PWD_CMD */ - - if (__pwd.db == NULL) { - __pwd.db = fopen(_PWD_DB, "r"); - if (__pwd.db == NULL) { - return NULL; - } - } - - if (fgets(buf, sizeof(buf), __pwd.db) == NULL) { - endpwent(); - return NULL; - } - - user = buf; - if ((password = strchr(buf, ':')) != NULL) { - *password = '\0'; - password++; - } else { - return NULL; - } - - if ((uid = strchr(password, ':')) != NULL) { - *uid = '\0'; - uid++; - } else { - return NULL; - } - - if ((gid = strchr(uid, ':')) != NULL) { - *gid = '\0'; - gid++; - } else { - return NULL; - } - - if ((gecos = strchr(gid, ':')) != NULL) { - *gecos = '\0'; - gecos++; - } else { - return NULL; - } - - if ((home = strchr(gecos, ':')) != NULL) { - *home = '\0'; - home++; - } else { - return NULL; - } - - if ((shell = strchr(home, ':')) != NULL) { - *shell = '\0'; - shell++; - if ((nl = strchr(shell, '\n')) != NULL) { - *nl = '\0'; - } - } else { - return NULL; - } - - __pwd.pwd.pw_name = user; - __pwd.pwd.pw_uid = strtoul(uid, NULL, 10); - __pwd.pwd.pw_gid = strtoul(gid, NULL, 10); - __pwd.pwd.pw_dir = home; - __pwd.pwd.pw_shell = shell; - - return &__pwd.pwd; -} - -/* -XOPEN(400) -*/ - - -#endif diff --git a/src/pwd/getpwnam.c b/src/pwd/getpwnam.c deleted file mode 100644 index 14ba3690..00000000 --- a/src/pwd/getpwnam.c +++ /dev/null @@ -1,29 +0,0 @@ -#if 0 - -#include <sys/types.h> -#include <pwd.h> -#include <string.h> -#include "_pwd.h" - -struct passwd * getpwnam(const char * name) -{ - struct passwd *pwd = NULL; - setpwent(); - - while ((pwd = getpwent()) != NULL) { - if (strcmp(name, pwd->pw_name) == 0) { - endpwent(); - return pwd; - } - } - - endpwent(); - return NULL; -} - -/* -POSIX(1) -*/ - - -#endif diff --git a/src/pwd/getpwuid.c b/src/pwd/getpwuid.c deleted file mode 100644 index 7c8eaadf..00000000 --- a/src/pwd/getpwuid.c +++ /dev/null @@ -1,28 +0,0 @@ -#if 0 - -#include <sys/types.h> -#include <pwd.h> -#include "_pwd.h" - -struct passwd * getpwuid(uid_t uid) -{ - struct passwd *pwd = NULL; - setpwent(); - - while ((pwd = getpwent()) != NULL) { - if (pwd->pw_uid == uid) { - endpwent(); - return pwd; - } - } - - endpwent(); - return NULL; -} - -/* -POSIX(1) -*/ - - -#endif diff --git a/src/pwd/gid_t.ref b/src/pwd/gid_t.ref deleted file mode 100644 index 076b4c20..00000000 --- a/src/pwd/gid_t.ref +++ /dev/null @@ -1,3 +0,0 @@ -#include <pwd.h> -REFERENCE(sys/types/gid_t.c) -XOPEN(4) diff --git a/src/pwd/setpwent.c b/src/pwd/setpwent.c deleted file mode 100644 index 1b7a304b..00000000 --- a/src/pwd/setpwent.c +++ /dev/null @@ -1,19 +0,0 @@ -#if 0 - -#include <pwd.h> -#include <stdio.h> -#include "_pwd.h" - -void setpwent(void) -{ - if (__pwd.db != NULL) { - rewind(__pwd.db); - } -} - -/* -XOPEN(400) -*/ - - -#endif diff --git a/src/pwd/struct_passwd.c b/src/pwd/struct_passwd.c deleted file mode 100644 index 71ae8ab6..00000000 --- a/src/pwd/struct_passwd.c +++ /dev/null @@ -1,18 +0,0 @@ -#if 0 - -#include <pwd.h> - -struct passwd { - char * pw_name; - uid_t pw_uid; - gid_t pw_gid; - char * pw_dir; - char * pw_shell; -}; - -/* -POSIX(1) -*/ - - -#endif diff --git a/src/pwd/uid_t.ref b/src/pwd/uid_t.ref deleted file mode 100644 index 0ce632cb..00000000 --- a/src/pwd/uid_t.ref +++ /dev/null @@ -1,3 +0,0 @@ -#include <pwd.h> -REFERENCE(sys/types/uid_t.c) -XOPEN(4) diff --git a/src/re_comp/re_comp.c b/src/re_comp/re_comp.c deleted file mode 100644 index b6b7e7d4..00000000 --- a/src/re_comp/re_comp.c +++ /dev/null @@ -1,15 +0,0 @@ -#if 0 - -#include <re_comp.h> - -char *re_comp(const char *string) -{ - return string; -} - -/* -XOPEN(400,600) -*/ - - -#endif diff --git a/src/re_comp/re_exec.c b/src/re_comp/re_exec.c deleted file mode 100644 index 92035952..00000000 --- a/src/re_comp/re_exec.c +++ /dev/null @@ -1,17 +0,0 @@ -#if 0 - -#include <re_comp.h> - -#define _XOPEN_LEGACY 500 - -int re_exec(const char *string) -{ - return 0; -} - -/* -XOPEN(400,600) -*/ - - -#endif diff --git a/src/regex/REG_BADBR.h b/src/regex/REG_BADBR.h deleted file mode 100644 index 39c38d8e..00000000 --- a/src/regex/REG_BADBR.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <regex.h> -#define REG_BADBR (10) -/* -POSIX(2) -*/ - diff --git a/src/regex/REG_BADPAT.h b/src/regex/REG_BADPAT.h deleted file mode 100644 index 9df88255..00000000 --- a/src/regex/REG_BADPAT.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <regex.h> -#define REG_BADPAT (2) -/* -POSIX(2) -*/ - diff --git a/src/regex/REG_BADRPT.h b/src/regex/REG_BADRPT.h deleted file mode 100644 index db7f750c..00000000 --- a/src/regex/REG_BADRPT.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <regex.h> -#define REG_BADRPT (13) -/* -POSIX(2) -*/ - diff --git a/src/regex/REG_EBRACE.h b/src/regex/REG_EBRACE.h deleted file mode 100644 index f198a6f9..00000000 --- a/src/regex/REG_EBRACE.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <regex.h> -#define REG_EBRACE (9) -/* -POSIX(2) -*/ - diff --git a/src/regex/REG_EBRACK.h b/src/regex/REG_EBRACK.h deleted file mode 100644 index 867613e5..00000000 --- a/src/regex/REG_EBRACK.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <regex.h> -#define REG_EBRACK (7) -/* -POSIX(2) -*/ - diff --git a/src/regex/REG_ECOLLATE.h b/src/regex/REG_ECOLLATE.h deleted file mode 100644 index 82524785..00000000 --- a/src/regex/REG_ECOLLATE.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <regex.h> -#define REG_ECOLLATE (3) -/* -POSIX(2) -*/ - diff --git a/src/regex/REG_ECTYPE.h b/src/regex/REG_ECTYPE.h deleted file mode 100644 index 30d9b1dd..00000000 --- a/src/regex/REG_ECTYPE.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <regex.h> -#define REG_ECTYPE (4) -/* -POSIX(2) -*/ - diff --git a/src/regex/REG_EESCAPE.h b/src/regex/REG_EESCAPE.h deleted file mode 100644 index c331540e..00000000 --- a/src/regex/REG_EESCAPE.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <regex.h> -#define REG_EESCAPE (5) -/* -POSIX(2) -*/ - diff --git a/src/regex/REG_ENOSYS.h b/src/regex/REG_ENOSYS.h deleted file mode 100644 index 25218610..00000000 --- a/src/regex/REG_ENOSYS.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <regex.h> -#define REG_ENOSYS (-1) -/* -POSIX(2) -*/ - diff --git a/src/regex/REG_EPAREN.h b/src/regex/REG_EPAREN.h deleted file mode 100644 index d9513988..00000000 --- a/src/regex/REG_EPAREN.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <regex.h> -#define REG_EPAREN (8) -/* -POSIX(2) -*/ - diff --git a/src/regex/REG_ERANGE.h b/src/regex/REG_ERANGE.h deleted file mode 100644 index ff85a8da..00000000 --- a/src/regex/REG_ERANGE.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <regex.h> -#define REG_ERANGE (11) -/* -POSIX(2) -*/ - diff --git a/src/regex/REG_ESPACE.h b/src/regex/REG_ESPACE.h deleted file mode 100644 index 81971dcb..00000000 --- a/src/regex/REG_ESPACE.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <regex.h> -#define REG_ESPACE (12) -/* -POSIX(2) -*/ - diff --git a/src/regex/REG_ESUBREG.h b/src/regex/REG_ESUBREG.h deleted file mode 100644 index 48353dbc..00000000 --- a/src/regex/REG_ESUBREG.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <regex.h> -#define REG_ESUBREG (6) -/* -POSIX(2) -*/ - diff --git a/src/regex/REG_EXTENDED.h b/src/regex/REG_EXTENDED.h deleted file mode 100644 index 8b665c9e..00000000 --- a/src/regex/REG_EXTENDED.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <regex.h> -#define REG_EXTENDED (1<<0) -/* -POSIX(2) -*/ - diff --git a/src/regex/REG_ICASE.h b/src/regex/REG_ICASE.h deleted file mode 100644 index a06e5cd9..00000000 --- a/src/regex/REG_ICASE.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <regex.h> -#define REG_ICASE (1<<1) -/* -POSIX(2) -*/ - diff --git a/src/regex/REG_NEWLINE.h b/src/regex/REG_NEWLINE.h deleted file mode 100644 index a77ca4f3..00000000 --- a/src/regex/REG_NEWLINE.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <regex.h> -#define REG_NEWLINE (1<<3) -/* -POSIX(2) -*/ - diff --git a/src/regex/REG_NOMATCH.h b/src/regex/REG_NOMATCH.h deleted file mode 100644 index 7437dc81..00000000 --- a/src/regex/REG_NOMATCH.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <regex.h> -#define REG_NOMATCH (1) -/* -POSIX(2) -*/ - diff --git a/src/regex/REG_NOSUB.h b/src/regex/REG_NOSUB.h deleted file mode 100644 index b60dae7e..00000000 --- a/src/regex/REG_NOSUB.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <regex.h> -#define REG_NOSUB (1<<2) -/* -POSIX(2) -*/ - diff --git a/src/regex/REG_NOTBOL.h b/src/regex/REG_NOTBOL.h deleted file mode 100644 index 07ec5a49..00000000 --- a/src/regex/REG_NOTBOL.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <regex.h> -#define REG_NOTBOL (1<<0) -/* -POSIX(2) -*/ - diff --git a/src/regex/REG_NOTEOL.h b/src/regex/REG_NOTEOL.h deleted file mode 100644 index b9cc8f09..00000000 --- a/src/regex/REG_NOTEOL.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <regex.h> -#define REG_NOTEOL (1<<1) -/* -POSIX(2) -*/ - diff --git a/src/regex/regcomp.c b/src/regex/regcomp.c deleted file mode 100644 index ea7214d6..00000000 --- a/src/regex/regcomp.c +++ /dev/null @@ -1,20 +0,0 @@ -#if 0 - -#include <sys/types.h> -#include <regex.h> - -int regcomp(regex_t * restrict preg, const char * restrict pattern, int cflags) -{ - (void)preg; - (void)pattern; - (void)cflags; - return 0; -} - - -/* -POSIX(2) -*/ - - -#endif diff --git a/src/regex/regerror.c b/src/regex/regerror.c deleted file mode 100644 index 129c97df..00000000 --- a/src/regex/regerror.c +++ /dev/null @@ -1,21 +0,0 @@ -#if 0 - -#include <sys/types.h> -#include <regex.h> - -size_t regerror(int errcode, const regex_t * restrict preg, char * restrict errbuf, size_t errbuf_size) -{ - (void)errcode; - (void)preg; - (void)errbuf; - (void)errbuf_size; - return 0; -} - -/* -POSIX(2) -*/ - - - -#endif diff --git a/src/regex/regex_t.h b/src/regex/regex_t.h deleted file mode 100644 index dba1a5e4..00000000 --- a/src/regex/regex_t.h +++ /dev/null @@ -1,10 +0,0 @@ -#include <regex.h> - -typedef struct { - size_t re_nsub; -} regex_t; - -/* -POSIX(2) -*/ - diff --git a/src/regex/regexec.c b/src/regex/regexec.c deleted file mode 100644 index fdfcc047..00000000 --- a/src/regex/regexec.c +++ /dev/null @@ -1,22 +0,0 @@ -#if 0 - -#include <sys/types.h> -#include <regex.h> - -int regexec(const regex_t * restrict preg, const char * restrict string, size_t nmatch, regmatch_t pmatch[restrict], int eflags) -{ - (void)preg; - (void)string; - (void)nmatch; - (void)pmatch; - (void)eflags; - return 0; -} - -/* -POSIX(2) -*/ - - - -#endif diff --git a/src/regex/regfree.c b/src/regex/regfree.c deleted file mode 100644 index 572af6af..00000000 --- a/src/regex/regfree.c +++ /dev/null @@ -1,18 +0,0 @@ -#if 0 - -#include <sys/types.h> -#include <regex.h> -#include <stdlib.h> - -void regfree(regex_t * preg) -{ - free(preg); -} - -/* -POSIX(2) -*/ - - - -#endif diff --git a/src/regex/regmatch_t.h b/src/regex/regmatch_t.h deleted file mode 100644 index 0525530a..00000000 --- a/src/regex/regmatch_t.h +++ /dev/null @@ -1,10 +0,0 @@ -#include <regex.h> - -typedef struct { - regoff_t rm_so; - regoff_t rm_eo; -} regmatch_t; -/* -POSIX(2) -*/ - diff --git a/src/regex/regoff_t.h b/src/regex/regoff_t.h deleted file mode 100644 index a87283e1..00000000 --- a/src/regex/regoff_t.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <regex.h> -typedef long long int regoff_t; -/* -POSIX(2) -*/ - diff --git a/src/regexp/ERROR.h b/src/regexp/ERROR.h deleted file mode 100644 index e8125ec0..00000000 --- a/src/regexp/ERROR.h +++ /dev/null @@ -1,5 +0,0 @@ -#undef ERROR - -/* -XOPEN(4,600) -*/ diff --git a/src/regexp/GETC.h b/src/regexp/GETC.h deleted file mode 100644 index 67f6cadc..00000000 --- a/src/regexp/GETC.h +++ /dev/null @@ -1,5 +0,0 @@ -#undef GETC - -/* -XOPEN(4,600) -*/ diff --git a/src/regexp/INIT.h b/src/regexp/INIT.h deleted file mode 100644 index 73ee616c..00000000 --- a/src/regexp/INIT.h +++ /dev/null @@ -1,5 +0,0 @@ -#undef INIT - -/* -XOPEN(4,600) -*/ diff --git a/src/regexp/PEEK.h b/src/regexp/PEEK.h deleted file mode 100644 index 07cfc61c..00000000 --- a/src/regexp/PEEK.h +++ /dev/null @@ -1,4 +0,0 @@ -#undef PEEK -/* -XOPEN(4,600) -*/ diff --git a/src/regexp/RETURN.h b/src/regexp/RETURN.h deleted file mode 100644 index 20a5d6a4..00000000 --- a/src/regexp/RETURN.h +++ /dev/null @@ -1,4 +0,0 @@ -#undef RETURN -/* -XOPEN(4,600) -*/ diff --git a/src/regexp/UNGETC.h b/src/regexp/UNGETC.h deleted file mode 100644 index 6672c64f..00000000 --- a/src/regexp/UNGETC.h +++ /dev/null @@ -1,4 +0,0 @@ -#undef UNGETC -/* -XOPEN(4,600) -*/ diff --git a/src/regexp/advance.c b/src/regexp/advance.c deleted file mode 100644 index c2ce2359..00000000 --- a/src/regexp/advance.c +++ /dev/null @@ -1,17 +0,0 @@ -#if 0 - -#include <regexp.h> - -# define _XOPEN_LEGACY 500 - -int advance(const char *string, const char *expbuf) -{ - return 0; -} - -/* -XOPEN(4,600) -*/ - - -#endif diff --git a/src/regexp/compile.c b/src/regexp/compile.c deleted file mode 100644 index 96a39470..00000000 --- a/src/regexp/compile.c +++ /dev/null @@ -1,17 +0,0 @@ -#if 0 - -#include <regexp.h> - -# define _XOPEN_LEGACY 500 - -char *compile(char *instring, char *expbuf, const char *endbuf, int eof) -{ - return 0; -} - -/* -XOPEN(4,600) -*/ - - -#endif diff --git a/src/regexp/loc1.c b/src/regexp/loc1.c deleted file mode 100644 index 16061d27..00000000 --- a/src/regexp/loc1.c +++ /dev/null @@ -1,12 +0,0 @@ -#if 0 - -#include <regexp.h> - -char *loc1; - -/* -XOPEN(4,600) -*/ - - -#endif diff --git a/src/regexp/loc2.c b/src/regexp/loc2.c deleted file mode 100644 index 674e2606..00000000 --- a/src/regexp/loc2.c +++ /dev/null @@ -1,10 +0,0 @@ -#if 0 - -#include <regexp.h> -char *loc2; -/* -XOPEN(4,600) -*/ - - -#endif diff --git a/src/regexp/locs.c b/src/regexp/locs.c deleted file mode 100644 index 9f06d927..00000000 --- a/src/regexp/locs.c +++ /dev/null @@ -1,10 +0,0 @@ -#if 0 - -#include <regexp.h> -char *locs; -/* -XOPEN(4,600) -*/ - - -#endif diff --git a/src/regexp/step.c b/src/regexp/step.c deleted file mode 100644 index 2e255a47..00000000 --- a/src/regexp/step.c +++ /dev/null @@ -1,17 +0,0 @@ -#if 0 - -#include <regexp.h> - -#define _XOPEN_LEGACY 500 - -int step(const char *string, const char *expbuf) -{ - return 0; -} - -/* -XOPEN(4,600) -*/ - - -#endif diff --git a/src/sched/SCHED_FIFO.h b/src/sched/SCHED_FIFO.h deleted file mode 100644 index 7002d376..00000000 --- a/src/sched/SCHED_FIFO.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <sched.h> -#define SCHED_FIFO (0) -/* -POSIX(199309) -*/ diff --git a/src/sched/SCHED_OTHER.h b/src/sched/SCHED_OTHER.h deleted file mode 100644 index e949a6cc..00000000 --- a/src/sched/SCHED_OTHER.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <sched.h> -#define SCHED_OTHER (3) - -/* -POSIX(199309) -*/ diff --git a/src/sched/SCHED_RR.h b/src/sched/SCHED_RR.h deleted file mode 100644 index ce611c8f..00000000 --- a/src/sched/SCHED_RR.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <sched.h> -#define SCHED_RR (1) - -/* -POSIX(199309) -*/ diff --git a/src/sched/sched_get_priority_max.c b/src/sched/sched_get_priority_max.c deleted file mode 100644 index 658c0f62..00000000 --- a/src/sched/sched_get_priority_max.c +++ /dev/null @@ -1,16 +0,0 @@ -#if 0 - -#include <sched.h> - -int sched_get_priority_max(int policy) -{ - return 0; -} - -/* -POSIX(199309) -LINK(rt) -*/ - - -#endif diff --git a/src/sched/sched_get_priority_min.c b/src/sched/sched_get_priority_min.c deleted file mode 100644 index 37a53afc..00000000 --- a/src/sched/sched_get_priority_min.c +++ /dev/null @@ -1,16 +0,0 @@ -#if 0 - -#include <sched.h> - -int sched_get_priority_min(int policy) -{ - return 0; -} - -/* -POSIX(199309) -LINK(rt) -*/ - - -#endif diff --git a/src/sched/sched_getparam.c b/src/sched/sched_getparam.c deleted file mode 100644 index f5c5e7f0..00000000 --- a/src/sched/sched_getparam.c +++ /dev/null @@ -1,16 +0,0 @@ -#if 0 - -#include <sched.h> - -int sched_getparam(pid_t pid, struct sched_param * param) -{ - return -1; -} - -/* -POSIX(199309) -LINK(rt) -*/ - - -#endif diff --git a/src/sched/sched_getscheduler.c b/src/sched/sched_getscheduler.c deleted file mode 100644 index a04d3efa..00000000 --- a/src/sched/sched_getscheduler.c +++ /dev/null @@ -1,16 +0,0 @@ -#if 0 - -#include <sched.h> - -int sched_getscheduler(pid_t pid) -{ - return -1; -} - -/* -POSIX(199309) -LINK(rt) -*/ - - -#endif diff --git a/src/sched/sched_rr_get_interval.c b/src/sched/sched_rr_get_interval.c deleted file mode 100644 index 0686279e..00000000 --- a/src/sched/sched_rr_get_interval.c +++ /dev/null @@ -1,16 +0,0 @@ -#if 0 - -#include <sched.h> - -int sched_rr_get_interval(pid_t pid, struct timespec * interval) -{ - return 0; -} - -/* -POSIX(199309) -LINK(rt) -*/ - - -#endif diff --git a/src/sched/sched_setparam.c b/src/sched/sched_setparam.c deleted file mode 100644 index c757c7ce..00000000 --- a/src/sched/sched_setparam.c +++ /dev/null @@ -1,16 +0,0 @@ -#if 0 - -#include <sched.h> - -int sched_setparam(pid_t pid, const struct sched_param * param) -{ - return 0; -} - -/* -POSIX(199309) -LINK(rt) -*/ - - -#endif diff --git a/src/sched/sched_setscheduler.c b/src/sched/sched_setscheduler.c deleted file mode 100644 index d7055496..00000000 --- a/src/sched/sched_setscheduler.c +++ /dev/null @@ -1,16 +0,0 @@ -#if 0 - -#include <sched.h> - -int sched_setscheduler(pid_t pid, int policy, const struct sched_param * param) -{ - return 0; -} - -/* -POSIX(199309) -LINK(rt) -*/ - - -#endif diff --git a/src/sched/sched_yield.c b/src/sched/sched_yield.c deleted file mode 100644 index 561a48b9..00000000 --- a/src/sched/sched_yield.c +++ /dev/null @@ -1,16 +0,0 @@ -#if 0 - -#include <sched.h> - -int sched_yield(void) -{ - return 0; -} - -/* -POSIX(199309) -LINK(rt) -*/ - - -#endif diff --git a/src/sched/struct_sched_param.h b/src/sched/struct_sched_param.h deleted file mode 100644 index 1ef5bf55..00000000 --- a/src/sched/struct_sched_param.h +++ /dev/null @@ -1,15 +0,0 @@ -#include <sched.h> - -struct sched_param { - int sched_priority; - #if defined _POSIX_SS || defined _POSIX_TSP - int sched_ss_low_priority; - struct timespec sched_ss_repl_period; - struct timespec sched_ss_init_budget; - int sched_ss_max_repl; - #endif -}; - -/* -POSIX(199309) -*/ diff --git a/src/search/ACTION.h b/src/search/ACTION.h deleted file mode 100644 index 30a349aa..00000000 --- a/src/search/ACTION.h +++ /dev/null @@ -1,8 +0,0 @@ -#include <search.h> -typedef enum { - FIND, - ENTER -} ACTION; -/* -XOPEN(4) -*/ diff --git a/src/search/ENTRY.h b/src/search/ENTRY.h deleted file mode 100644 index 4fa66ed8..00000000 --- a/src/search/ENTRY.h +++ /dev/null @@ -1,10 +0,0 @@ -#include <search.h> - -typedef struct { - char * key; - void * data; -} ENTRY; - -/* -XOPEN(4) -*/ diff --git a/src/search/VISIT.h b/src/search/VISIT.h deleted file mode 100644 index 9cd95101..00000000 --- a/src/search/VISIT.h +++ /dev/null @@ -1,10 +0,0 @@ -#include <search.h> -typedef enum { - preorder, - postorder, - endorder, - leaf -} VISIT; -/* -XOPEN(4) -*/ diff --git a/src/search/hcreate.c b/src/search/hcreate.c deleted file mode 100644 index 8317d32c..00000000 --- a/src/search/hcreate.c +++ /dev/null @@ -1,15 +0,0 @@ -#if 0 - -#include <search.h> - -int hcreate(size_t nel) -{ - return 0; -} - -/* -XOPEN(4) -*/ - - -#endif diff --git a/src/search/hdestroy.c b/src/search/hdestroy.c deleted file mode 100644 index debf6113..00000000 --- a/src/search/hdestroy.c +++ /dev/null @@ -1,14 +0,0 @@ -#if 0 - -#include <search.h> - -void hdestroy(void) -{ -} - -/* -XOPEN(4) -*/ - - -#endif diff --git a/src/search/hsearch.c b/src/search/hsearch.c deleted file mode 100644 index 973d562e..00000000 --- a/src/search/hsearch.c +++ /dev/null @@ -1,16 +0,0 @@ -#if 0 - -#include <search.h> -#include <stddef.h> - -ENTRY * hsearch(ENTRY item, ACTION action) -{ - return NULL; -} - -/* -XOPEN(4) -*/ - - -#endif diff --git a/src/search/insque.c b/src/search/insque.c deleted file mode 100644 index dd7ced89..00000000 --- a/src/search/insque.c +++ /dev/null @@ -1,14 +0,0 @@ -#if 0 - -#include <search.h> - -void insque(void * element, void * pred) -{ -} - -/* -XOPEN(400) -*/ - - -#endif diff --git a/src/search/lfind.c b/src/search/lfind.c deleted file mode 100644 index 1ede5e29..00000000 --- a/src/search/lfind.c +++ /dev/null @@ -1,15 +0,0 @@ -#if 0 - -#include <search.h> - -void * lfind(const void * key, const void * base, size_t * nelp, size_t width, int (*compar) (const void *, const void *)) -{ - return (void*)base; -} - -/* -XOPEN(4) -*/ - - -#endif diff --git a/src/search/lsearch.c b/src/search/lsearch.c deleted file mode 100644 index 846e4dbc..00000000 --- a/src/search/lsearch.c +++ /dev/null @@ -1,15 +0,0 @@ -#if 0 - -#include <search.h> - -void * lsearch(const void * key, void * base, size_t * nelp, size_t width, int (*compar) (const void *, const void *)) -{ - return base; -} - -/* -XOPEN(4) -*/ - - -#endif diff --git a/src/search/remque.c b/src/search/remque.c deleted file mode 100644 index 6f3be635..00000000 --- a/src/search/remque.c +++ /dev/null @@ -1,14 +0,0 @@ -#if 0 - -#include <search.h> - -void remque(void * element) -{ -} - -/* -XOPEN(400) -*/ - - -#endif diff --git a/src/search/size_t.ref b/src/search/size_t.ref deleted file mode 100644 index 98b38b28..00000000 --- a/src/search/size_t.ref +++ /dev/null @@ -1,3 +0,0 @@ -#include <search.h> -REFERENCE(stddef/size_t.c) -XOPEN(4) diff --git a/src/search/tdelete.c b/src/search/tdelete.c deleted file mode 100644 index 9d36d553..00000000 --- a/src/search/tdelete.c +++ /dev/null @@ -1,15 +0,0 @@ -#if 0 - -#include <search.h> - -void *tdelete(const void * restrict key, void ** restrict rootp, int (*compar) (const void *, const void *)) -{ - return (void*)key; -} - -/* -XOPEN(4) -*/ - - -#endif diff --git a/src/search/tfind.c b/src/search/tfind.c deleted file mode 100644 index b11e4441..00000000 --- a/src/search/tfind.c +++ /dev/null @@ -1,15 +0,0 @@ -#if 0 - -#include <search.h> - -void *tfind(const void * key, void * const * rootp, int (*compar) (const void *, const void *)) -{ - return (void*)key; -} - -/* -XOPEN(4) -*/ - - -#endif diff --git a/src/search/tsearch.c b/src/search/tsearch.c deleted file mode 100644 index cb2f8891..00000000 --- a/src/search/tsearch.c +++ /dev/null @@ -1,15 +0,0 @@ -#if 0 - -#include <search.h> - -void *tsearch(const void * key, void ** rootp, int (*compar) (const void *, const void *)) -{ - return (void*)key; -} - -/* -XOPEN(4) -*/ - - -#endif diff --git a/src/search/twalk.c b/src/search/twalk.c deleted file mode 100644 index 3e6802cd..00000000 --- a/src/search/twalk.c +++ /dev/null @@ -1,14 +0,0 @@ -#if 0 - -#include <search.h> - -void twalk(const void * root, void (*action) (const void *, VISIT, int)) -{ -} - -/* -XOPEN(4) -*/ - - -#endif diff --git a/src/semaphore/sem_close.c b/src/semaphore/sem_close.c deleted file mode 100644 index 33344a39..00000000 --- a/src/semaphore/sem_close.c +++ /dev/null @@ -1,16 +0,0 @@ -#if 0 - -#include <semaphore.h> - -int sem_close(sem_t *sem) -{ - return 0; -} - -/* -POSIX(199309) -LINK(rt) -*/ - - -#endif diff --git a/src/semaphore/sem_destroy.c b/src/semaphore/sem_destroy.c deleted file mode 100644 index dd3a7633..00000000 --- a/src/semaphore/sem_destroy.c +++ /dev/null @@ -1,16 +0,0 @@ -#if 0 - -#include <semaphore.h> - -int sem_destroy(sem_t * sem) -{ - return 0; -} - -/* -POSIX(199309) -LINK(rt) -*/ - - -#endif diff --git a/src/semaphore/sem_getvalue.c b/src/semaphore/sem_getvalue.c deleted file mode 100644 index 25c8b15a..00000000 --- a/src/semaphore/sem_getvalue.c +++ /dev/null @@ -1,16 +0,0 @@ -#if 0 - -#include <semaphore.h> - -int sem_getvalue(sem_t * restrict sem, int * restrict sval) -{ - return *sval; -} - -/* -POSIX(199309) -LINK(rt) -*/ - - -#endif diff --git a/src/semaphore/sem_init.c b/src/semaphore/sem_init.c deleted file mode 100644 index cd6b14f4..00000000 --- a/src/semaphore/sem_init.c +++ /dev/null @@ -1,16 +0,0 @@ -#if 0 - -#include <semaphore.h> - -int sem_init(sem_t * sem, int pshared, unsigned value) -{ - return pshared; -} - -/* -POSIX(199309) -LINK(rt) -*/ - - -#endif diff --git a/src/semaphore/sem_open.c b/src/semaphore/sem_open.c deleted file mode 100644 index 20a6492d..00000000 --- a/src/semaphore/sem_open.c +++ /dev/null @@ -1,16 +0,0 @@ -#if 0 - -#include <semaphore.h> - -sem_t * sem_open(const char * name, int oflag, ...) -{ - return SEM_FAILED; -} - -/* -POSIX(199309) -LINK(rt) -*/ - - -#endif diff --git a/src/semaphore/sem_post.c b/src/semaphore/sem_post.c deleted file mode 100644 index d7a3b596..00000000 --- a/src/semaphore/sem_post.c +++ /dev/null @@ -1,16 +0,0 @@ -#if 0 - -#include <semaphore.h> - -int sem_post(sem_t * sem) -{ - return 0; -} - -/* -POSIX(199309) -LINK(rt) -*/ - - -#endif diff --git a/src/semaphore/sem_t.h b/src/semaphore/sem_t.h deleted file mode 100644 index e0fcb4cc..00000000 --- a/src/semaphore/sem_t.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <semaphore.h> -typedef struct __sem_t sem_t; -/* -POSIX(199309) -*/ diff --git a/src/semaphore/sem_trywait.c b/src/semaphore/sem_trywait.c deleted file mode 100644 index b47d3766..00000000 --- a/src/semaphore/sem_trywait.c +++ /dev/null @@ -1,16 +0,0 @@ -#if 0 - -#include <semaphore.h> - -int sem_trywait(sem_t * sem) -{ - return 0; -} - -/* -POSIX(199309) -LINK(rt) -*/ - - -#endif diff --git a/src/semaphore/sem_unlink.c b/src/semaphore/sem_unlink.c deleted file mode 100644 index d9eb13fa..00000000 --- a/src/semaphore/sem_unlink.c +++ /dev/null @@ -1,16 +0,0 @@ -#if 0 - -#include <semaphore.h> - -int sem_unlink(const char * name) -{ - return -1; -} - -/* -POSIX(199309) -LINK(rt) -*/ - - -#endif diff --git a/src/semaphore/sem_wait.c b/src/semaphore/sem_wait.c deleted file mode 100644 index 622590ee..00000000 --- a/src/semaphore/sem_wait.c +++ /dev/null @@ -1,16 +0,0 @@ -#if 0 - -#include <semaphore.h> - -int sem_wait(sem_t * sem) -{ - return 0; -} - -/* -POSIX(199309) -LINK(rt) -*/ - - -#endif diff --git a/src/stdatomic/ATOMIC_BOOL_LOCK_FREE.c b/src/stdatomic/ATOMIC_BOOL_LOCK_FREE.h index 966534b2..966534b2 100644 --- a/src/stdatomic/ATOMIC_BOOL_LOCK_FREE.c +++ b/src/stdatomic/ATOMIC_BOOL_LOCK_FREE.h diff --git a/src/stdatomic/ATOMIC_CHAR16_T_LOCK_FREE.c b/src/stdatomic/ATOMIC_CHAR16_T_LOCK_FREE.h index 7e651e83..7e651e83 100644 --- a/src/stdatomic/ATOMIC_CHAR16_T_LOCK_FREE.c +++ b/src/stdatomic/ATOMIC_CHAR16_T_LOCK_FREE.h diff --git a/src/stdatomic/ATOMIC_CHAR32_T_LOCK_FREE.c b/src/stdatomic/ATOMIC_CHAR32_T_LOCK_FREE.h index 8b338429..8b338429 100644 --- a/src/stdatomic/ATOMIC_CHAR32_T_LOCK_FREE.c +++ b/src/stdatomic/ATOMIC_CHAR32_T_LOCK_FREE.h diff --git a/src/stdatomic/ATOMIC_CHAR_LOCK_FREE.c b/src/stdatomic/ATOMIC_CHAR_LOCK_FREE.h index 6edf6eac..6edf6eac 100644 --- a/src/stdatomic/ATOMIC_CHAR_LOCK_FREE.c +++ b/src/stdatomic/ATOMIC_CHAR_LOCK_FREE.h diff --git a/src/stdatomic/ATOMIC_INT_LOCK_FREE.c b/src/stdatomic/ATOMIC_INT_LOCK_FREE.h index 2dc2c968..2dc2c968 100644 --- a/src/stdatomic/ATOMIC_INT_LOCK_FREE.c +++ b/src/stdatomic/ATOMIC_INT_LOCK_FREE.h diff --git a/src/stdatomic/ATOMIC_LLONG_LOCK_FREE.c b/src/stdatomic/ATOMIC_LLONG_LOCK_FREE.h index f5d61400..f5d61400 100644 --- a/src/stdatomic/ATOMIC_LLONG_LOCK_FREE.c +++ b/src/stdatomic/ATOMIC_LLONG_LOCK_FREE.h diff --git a/src/stdatomic/ATOMIC_LONG_LOCK_FREE.c b/src/stdatomic/ATOMIC_LONG_LOCK_FREE.h index b9493e80..b9493e80 100644 --- a/src/stdatomic/ATOMIC_LONG_LOCK_FREE.c +++ b/src/stdatomic/ATOMIC_LONG_LOCK_FREE.h diff --git a/src/stdatomic/ATOMIC_POINTER_LOCK_FREE.c b/src/stdatomic/ATOMIC_POINTER_LOCK_FREE.h index 20cbd5df..20cbd5df 100644 --- a/src/stdatomic/ATOMIC_POINTER_LOCK_FREE.c +++ b/src/stdatomic/ATOMIC_POINTER_LOCK_FREE.h diff --git a/src/stdatomic/ATOMIC_SHORT_LOCK_FREE.c b/src/stdatomic/ATOMIC_SHORT_LOCK_FREE.h index b86db863..b86db863 100644 --- a/src/stdatomic/ATOMIC_SHORT_LOCK_FREE.c +++ b/src/stdatomic/ATOMIC_SHORT_LOCK_FREE.h diff --git a/src/stdatomic/ATOMIC_WCHAR_T_LOCK_FREE.c b/src/stdatomic/ATOMIC_WCHAR_T_LOCK_FREE.h index 8b0e3e3b..8b0e3e3b 100644 --- a/src/stdatomic/ATOMIC_WCHAR_T_LOCK_FREE.c +++ b/src/stdatomic/ATOMIC_WCHAR_T_LOCK_FREE.h diff --git a/src/stdatomic/__types.sh b/src/stdatomic/__types.sh deleted file mode 100644 index 297e7a19..00000000 --- a/src/stdatomic/__types.sh +++ /dev/null @@ -1,37 +0,0 @@ -echo 'typedef _Atomic _Bool atomic_bool;' > atomic_bool.c -echo 'typedef _Atomic char atomic_char;' > atomic_char.c -echo 'typedef _Atomic signed char atomic_schar;' > atomic_schar.c -echo 'typedef _Atomic unsigned char atomic_uchar;' > atomic_uchar.c -echo 'typedef _Atomic short atomic_short;' > atomic_short.c -echo 'typedef _Atomic unsigned short atomic_ushort;' > atomic_ushort.c -echo 'typedef _Atomic int atomic_int;' > atomic_int.c -echo 'typedef _Atomic unsigned int atomic_uint;' > atomic_uint.c -echo 'typedef _Atomic long atomic_long;' > atomic_long.c -echo 'typedef _Atomic unsigned long atomic_ulong;' > atomic_ulong.c -echo 'typedef _Atomic llong atomic_llong;' > atomic_llong.c -echo 'typedef _Atomic unsigned long long atomic_ullong;' > atomic_ullong.c -echo 'typedef _Atomic char16_t atomic_char16_t;' > atomic_char16_t.c -echo 'typedef _Atomic char32_t atomic_char32_t;' > atomic_char32_t.c -echo 'typedef _Atomic wchar_t atomic_wchar_t;' > atomic_wchar_t.c -echo 'typedef _Atomic int_least8_t atomic_int_least8_t;' > atomic_int_least8_t.c -echo 'typedef _Atomic uint_least8_t atomic_uint_least8_t;' > atomic_uint_least8_t.c -echo 'typedef _Atomic int_least16_t atomic_int_least16_t;' > atomic_int_least16_t.c -echo 'typedef _Atomic uint_least16_t atomic_uint_least16_t;' > atomic_uint_least16_t.c -echo 'typedef _Atomic int_least32_t atomic_int_least32_t;' > atomic_int_least32_t.c -echo 'typedef _Atomic uint_least32_t atomic_uint_least32_t;' > atomic_uint_least32_t.c -echo 'typedef _Atomic int_least64_t atomic_int_least64_t;' > atomic_int_least64_t.c -echo 'typedef _Atomic uint_least64_t atomic_uint_least64_t;' > atomic_uint_least64_t.c -echo 'typedef _Atomic int_fast8_t atomic_int_fast8_t;' > atomic_int_fast8_t.c -echo 'typedef _Atomic uint_fast8_t atomic_uint_fast8_t;' > atomic_uint_fast8_t.c -echo 'typedef _Atomic int_fast16_t atomic_int_fast16_t;' > atomic_int_fast16_t.c -echo 'typedef _Atomic uint_fast16_t atomic_uint_fast16_t;' > atomic_uint_fast16_t.c -echo 'typedef _Atomic int_fast32_t atomic_int_fast32_t;' > atomic_int_fast32_t.c -echo 'typedef _Atomic uint_fast32_t atomic_uint_fast32_t;' > atomic_uint_fast32_t.c -echo 'typedef _Atomic int_fast64_t atomic_int_fast64_t;' > atomic_int_fast64_t.c -echo 'typedef _Atomic uint_fast64_t atomic_uint_fast64_t;' > atomic_uint_fast64_t.c -echo 'typedef _Atomic intptr_t atomic_intptr_t;' > atomic_intptr_t.c -echo 'typedef _Atomic uintptr_t atomic_uintptr_t;' > atomic_uintptr_t.c -echo 'typedef _Atomic size_t atomic_size_t;' > atomic_size_t.c -echo 'typedef _Atomic ptrdiff_t atomic_ptrdiff_t;' > atomic_ptrdiff_t.c -echo 'typedef _Atomic intmax_t atomic_intmax_t;' > atomic_intmax_t.c -echo 'typedef _Atomic uintmax_t atomic_uintmax_t;' > atomic_uintmax_t.c diff --git a/src/stdatomic/__types.txt b/src/stdatomic/__types.txt deleted file mode 100644 index a1bdb3b2..00000000 --- a/src/stdatomic/__types.txt +++ /dev/null @@ -1,37 +0,0 @@ -bool _Bool -char -schar signed char -uchar unsigned char -short -ushort unsigned short -int -uint unsigned int -long -ulong unsigned long -llong -ullong unsigned long long -char16_t -char32_t -wchar_t -int_least8_t -uint_least8_t -int_least16_t -uint_least16_t -int_least32_t -uint_least32_t -int_least64_t -uint_least64_t -int_fast8_t -uint_fast8_t -int_fast16_t -uint_fast16_t -int_fast32_t -uint_fast32_t -int_fast64_t -uint_fast64_t -intptr_t -uintptr_t -size_t -ptrdiff_t -intmax_t -uintmax_t diff --git a/src/stdatomic/__types2defs.awk b/src/stdatomic/__types2defs.awk deleted file mode 100644 index dab85e1e..00000000 --- a/src/stdatomic/__types2defs.awk +++ /dev/null @@ -1,6 +0,0 @@ -BEGIN { - FS = "\t"; -} - -NF == 2 { printf("echo 'typedef _Atomic %s atomic_%s;' > atomic_%s.c\n", $2, $1, $1); } -NF == 1 { printf("echo 'typedef _Atomic %s atomic_%s;' > atomic_%s.c\n", $1, $1, $1); } diff --git a/src/stdatomic/atomic_bool.c b/src/stdatomic/atomic_bool.h index 60c86680..60c86680 100644 --- a/src/stdatomic/atomic_bool.c +++ b/src/stdatomic/atomic_bool.h diff --git a/src/stdatomic/atomic_char.c b/src/stdatomic/atomic_char.h index 36b0ca0c..36b0ca0c 100644 --- a/src/stdatomic/atomic_char.c +++ b/src/stdatomic/atomic_char.h diff --git a/src/stdatomic/atomic_char16_t.c b/src/stdatomic/atomic_char16_t.h index 2d6db114..2d6db114 100644 --- a/src/stdatomic/atomic_char16_t.c +++ b/src/stdatomic/atomic_char16_t.h diff --git a/src/stdatomic/atomic_char32_t.c b/src/stdatomic/atomic_char32_t.h index bc414da4..bc414da4 100644 --- a/src/stdatomic/atomic_char32_t.c +++ b/src/stdatomic/atomic_char32_t.h diff --git a/src/stdatomic/atomic_int.c b/src/stdatomic/atomic_int.h index 31508356..31508356 100644 --- a/src/stdatomic/atomic_int.c +++ b/src/stdatomic/atomic_int.h diff --git a/src/stdatomic/atomic_int_fast16_t.c b/src/stdatomic/atomic_int_fast16_t.h index 4f88eb3d..4f88eb3d 100644 --- a/src/stdatomic/atomic_int_fast16_t.c +++ b/src/stdatomic/atomic_int_fast16_t.h diff --git a/src/stdatomic/atomic_int_fast32_t.c b/src/stdatomic/atomic_int_fast32_t.h index bf0d3d91..bf0d3d91 100644 --- a/src/stdatomic/atomic_int_fast32_t.c +++ b/src/stdatomic/atomic_int_fast32_t.h diff --git a/src/stdatomic/atomic_int_fast64_t.c b/src/stdatomic/atomic_int_fast64_t.h index d54a128c..d54a128c 100644 --- a/src/stdatomic/atomic_int_fast64_t.c +++ b/src/stdatomic/atomic_int_fast64_t.h diff --git a/src/stdatomic/atomic_int_fast8_t.c b/src/stdatomic/atomic_int_fast8_t.h index f25e7dda..f25e7dda 100644 --- a/src/stdatomic/atomic_int_fast8_t.c +++ b/src/stdatomic/atomic_int_fast8_t.h diff --git a/src/stdatomic/atomic_int_least16_t.c b/src/stdatomic/atomic_int_least16_t.h index 8302d0d0..8302d0d0 100644 --- a/src/stdatomic/atomic_int_least16_t.c +++ b/src/stdatomic/atomic_int_least16_t.h diff --git a/src/stdatomic/atomic_int_least32_t.c b/src/stdatomic/atomic_int_least32_t.h index 84fe5837..84fe5837 100644 --- a/src/stdatomic/atomic_int_least32_t.c +++ b/src/stdatomic/atomic_int_least32_t.h diff --git a/src/stdatomic/atomic_int_least64_t.c b/src/stdatomic/atomic_int_least64_t.h index 37a81c7a..37a81c7a 100644 --- a/src/stdatomic/atomic_int_least64_t.c +++ b/src/stdatomic/atomic_int_least64_t.h diff --git a/src/stdatomic/atomic_int_least8_t.c b/src/stdatomic/atomic_int_least8_t.h index 551adecc..551adecc 100644 --- a/src/stdatomic/atomic_int_least8_t.c +++ b/src/stdatomic/atomic_int_least8_t.h diff --git a/src/stdatomic/atomic_intmax_t.c b/src/stdatomic/atomic_intmax_t.h index 329a8577..329a8577 100644 --- a/src/stdatomic/atomic_intmax_t.c +++ b/src/stdatomic/atomic_intmax_t.h diff --git a/src/stdatomic/atomic_intptr_t.c b/src/stdatomic/atomic_intptr_t.h index 9c611640..9c611640 100644 --- a/src/stdatomic/atomic_intptr_t.c +++ b/src/stdatomic/atomic_intptr_t.h diff --git a/src/stdatomic/atomic_llong.c b/src/stdatomic/atomic_llong.h index 6c7eaf0f..6c7eaf0f 100644 --- a/src/stdatomic/atomic_llong.c +++ b/src/stdatomic/atomic_llong.h diff --git a/src/stdatomic/atomic_long.c b/src/stdatomic/atomic_long.h index 36ed0a76..36ed0a76 100644 --- a/src/stdatomic/atomic_long.c +++ b/src/stdatomic/atomic_long.h diff --git a/src/stdatomic/atomic_ptrdiff_t.c b/src/stdatomic/atomic_ptrdiff_t.h index ae9bd452..ae9bd452 100644 --- a/src/stdatomic/atomic_ptrdiff_t.c +++ b/src/stdatomic/atomic_ptrdiff_t.h diff --git a/src/stdatomic/atomic_schar.c b/src/stdatomic/atomic_schar.h index d4f86772..d4f86772 100644 --- a/src/stdatomic/atomic_schar.c +++ b/src/stdatomic/atomic_schar.h diff --git a/src/stdatomic/atomic_short.c b/src/stdatomic/atomic_short.h index 570bd805..570bd805 100644 --- a/src/stdatomic/atomic_short.c +++ b/src/stdatomic/atomic_short.h diff --git a/src/stdatomic/atomic_size_t.c b/src/stdatomic/atomic_size_t.h index 22878df0..22878df0 100644 --- a/src/stdatomic/atomic_size_t.c +++ b/src/stdatomic/atomic_size_t.h diff --git a/src/stdatomic/atomic_uchar.c b/src/stdatomic/atomic_uchar.h index 18d3a674..18d3a674 100644 --- a/src/stdatomic/atomic_uchar.c +++ b/src/stdatomic/atomic_uchar.h diff --git a/src/stdatomic/atomic_uint.c b/src/stdatomic/atomic_uint.h index fa26228f..fa26228f 100644 --- a/src/stdatomic/atomic_uint.c +++ b/src/stdatomic/atomic_uint.h diff --git a/src/stdatomic/atomic_uint_fast16_t.c b/src/stdatomic/atomic_uint_fast16_t.h index 6a6e2e2b..6a6e2e2b 100644 --- a/src/stdatomic/atomic_uint_fast16_t.c +++ b/src/stdatomic/atomic_uint_fast16_t.h diff --git a/src/stdatomic/atomic_uint_fast32_t.c b/src/stdatomic/atomic_uint_fast32_t.h index 2ca3b742..2ca3b742 100644 --- a/src/stdatomic/atomic_uint_fast32_t.c +++ b/src/stdatomic/atomic_uint_fast32_t.h diff --git a/src/stdatomic/atomic_uint_fast64_t.c b/src/stdatomic/atomic_uint_fast64_t.h index 5fefe1c0..5fefe1c0 100644 --- a/src/stdatomic/atomic_uint_fast64_t.c +++ b/src/stdatomic/atomic_uint_fast64_t.h diff --git a/src/stdatomic/atomic_uint_fast8_t.c b/src/stdatomic/atomic_uint_fast8_t.h index f9d97f86..f9d97f86 100644 --- a/src/stdatomic/atomic_uint_fast8_t.c +++ b/src/stdatomic/atomic_uint_fast8_t.h diff --git a/src/stdatomic/atomic_uint_least16_t.c b/src/stdatomic/atomic_uint_least16_t.h index f4ad7591..f4ad7591 100644 --- a/src/stdatomic/atomic_uint_least16_t.c +++ b/src/stdatomic/atomic_uint_least16_t.h diff --git a/src/stdatomic/atomic_uint_least32_t.c b/src/stdatomic/atomic_uint_least32_t.h index 61d95348..61d95348 100644 --- a/src/stdatomic/atomic_uint_least32_t.c +++ b/src/stdatomic/atomic_uint_least32_t.h diff --git a/src/stdatomic/atomic_uint_least64_t.c b/src/stdatomic/atomic_uint_least64_t.h index aa8d3c26..aa8d3c26 100644 --- a/src/stdatomic/atomic_uint_least64_t.c +++ b/src/stdatomic/atomic_uint_least64_t.h diff --git a/src/stdatomic/atomic_uint_least8_t.c b/src/stdatomic/atomic_uint_least8_t.h index 469780d2..469780d2 100644 --- a/src/stdatomic/atomic_uint_least8_t.c +++ b/src/stdatomic/atomic_uint_least8_t.h diff --git a/src/stdatomic/atomic_uintmax_t.c b/src/stdatomic/atomic_uintmax_t.h index 8bfb8441..8bfb8441 100644 --- a/src/stdatomic/atomic_uintmax_t.c +++ b/src/stdatomic/atomic_uintmax_t.h diff --git a/src/stdatomic/atomic_uintptr_t.c b/src/stdatomic/atomic_uintptr_t.h index c51e8b85..c51e8b85 100644 --- a/src/stdatomic/atomic_uintptr_t.c +++ b/src/stdatomic/atomic_uintptr_t.h diff --git a/src/stdatomic/atomic_ullong.c b/src/stdatomic/atomic_ullong.h index 20603e0b..20603e0b 100644 --- a/src/stdatomic/atomic_ullong.c +++ b/src/stdatomic/atomic_ullong.h diff --git a/src/stdatomic/atomic_ulong.c b/src/stdatomic/atomic_ulong.h index e971d4bb..e971d4bb 100644 --- a/src/stdatomic/atomic_ulong.c +++ b/src/stdatomic/atomic_ulong.h diff --git a/src/stdatomic/atomic_ushort.c b/src/stdatomic/atomic_ushort.h index 680680ff..680680ff 100644 --- a/src/stdatomic/atomic_ushort.c +++ b/src/stdatomic/atomic_ushort.h diff --git a/src/stdatomic/atomic_wchar_t.c b/src/stdatomic/atomic_wchar_t.h index abd42f48..abd42f48 100644 --- a/src/stdatomic/atomic_wchar_t.c +++ b/src/stdatomic/atomic_wchar_t.h diff --git a/src/strings/bcmp.c b/src/strings/bcmp.c deleted file mode 100644 index 7c5010e7..00000000 --- a/src/strings/bcmp.c +++ /dev/null @@ -1,16 +0,0 @@ -#if 0 - -#include <string.h> -#include <strings.h> - -int bcmp(const void *s1, const void *s2, size_t n) -{ - return memcmp(s1, s2, n); -} - -/* -XOPEN(400,700) -*/ - - -#endif diff --git a/src/strings/bcopy.c b/src/strings/bcopy.c deleted file mode 100644 index 3cc0ac6b..00000000 --- a/src/strings/bcopy.c +++ /dev/null @@ -1,17 +0,0 @@ -#if 0 - -#include <string.h> -#include <strings.h> - -int bcopy(const void *s1, void *s2, size_t n) -{ - memcpy(s1, s2, n); - return n; -} - -/* -XOPEN(400,700) -*/ - - -#endif diff --git a/src/strings/bzero.c b/src/strings/bzero.c deleted file mode 100644 index dd28c8b6..00000000 --- a/src/strings/bzero.c +++ /dev/null @@ -1,16 +0,0 @@ -#if 0 - -#include <string.h> -#include <strings.h> - -void bzero(void* s, size_t n) -{ - (void)memset(s, '\0', n); -} - -/* -XOPEN(400,700) -*/ - - -#endif diff --git a/src/strings/ffs.c b/src/strings/ffs.c deleted file mode 100644 index 8c37ed0b..00000000 --- a/src/strings/ffs.c +++ /dev/null @@ -1,25 +0,0 @@ -#if 0 - -#include <strings.h> - -int ffs(int i) -{ - int bit = 0; - - if (i == 0) { - return 0; - } - - while (!(i & (1 << bit))) { - bit++; - } - - return bit; -} - -/* -XOPEN(400) -*/ - - -#endif diff --git a/src/strings/index.c b/src/strings/index.c deleted file mode 100644 index 5531451f..00000000 --- a/src/strings/index.c +++ /dev/null @@ -1,16 +0,0 @@ -#if 0 - -#include <string.h> -#include <strings.h> - -char *index(const char *s, int c) -{ - return strchr(s, c); -} - -/* -XOPEN(400,700) -*/ - - -#endif diff --git a/src/strings/rindex.c b/src/strings/rindex.c deleted file mode 100644 index 4f381cc0..00000000 --- a/src/strings/rindex.c +++ /dev/null @@ -1,16 +0,0 @@ -#if 0 - -#include <string.h> -#include <strings.h> - -char *rindex(const char *s, int c) -{ - return strrchr(s, c); -} - -/* -XOPEN(400,700) -*/ - - -#endif diff --git a/src/strings/strcasecmp.c b/src/strings/strcasecmp.c deleted file mode 100644 index b8f6ea11..00000000 --- a/src/strings/strcasecmp.c +++ /dev/null @@ -1,31 +0,0 @@ -#if 0 - -#include <strings.h> -#include <ctype.h> - -int strcasecmp(const char *s1, const char *s2) -{ - while (*s1 && *s2) { - char c1 = tolower(*s1); - char c2 = tolower(*s2); - if (c1 != c2) { - return c1 - c2; - } - } - - if (*s1) { - return -1; - } else if (*s2) { - return 1; - } - - return 0; -} - -/* -XOPEN(400) -POSIX(200809) -*/ - - -#endif diff --git a/src/strings/strncasecmp.c b/src/strings/strncasecmp.c deleted file mode 100644 index 7942be88..00000000 --- a/src/strings/strncasecmp.c +++ /dev/null @@ -1,36 +0,0 @@ -#if 0 - -#include <strings.h> -#include <ctype.h> - -int strncasecmp(const char *s1, const char *s2, size_t n) -{ - while (n > 0 && *s1 && *s2) { - char c1 = tolower(*s1); - char c2 = tolower(*s2); - if (c1 != c2) { - return c1 - c2; - } - n--; - } - - if (n == 0) { - return 0; - } - - if (*s1) { - return -1; - } else if (*s2) { - return 1; - } - - return 0; -} - -/* -XOPEN(400) -POSIX(200809) -*/ - - -#endif diff --git a/src/stropts/ANYMARK.h b/src/stropts/ANYMARK.h deleted file mode 100644 index 83b233b3..00000000 --- a/src/stropts/ANYMARK.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <stropts.h> -#define ANYMARK /* TODO */ -/* -XOPEN(400) -*/
\ No newline at end of file diff --git a/src/stropts/FLUSHR.h b/src/stropts/FLUSHR.h deleted file mode 100644 index 18b72484..00000000 --- a/src/stropts/FLUSHR.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <stropts.h> -#define FLUSHR /* TODO */ -/* -XOPEN(400) -*/
\ No newline at end of file diff --git a/src/stropts/FLUSHRW.h b/src/stropts/FLUSHRW.h deleted file mode 100644 index 78681d58..00000000 --- a/src/stropts/FLUSHRW.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <stropts.h> -#define FLUSHRW /* TODO */ -/* -XOPEN(400) -*/
\ No newline at end of file diff --git a/src/stropts/FLUSHW.h b/src/stropts/FLUSHW.h deleted file mode 100644 index 952d92f9..00000000 --- a/src/stropts/FLUSHW.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <stropts.h> -#define FLUSHW /* TODO */ -/* -XOPEN(400) -*/
\ No newline at end of file diff --git a/src/stropts/FMNAMESZ.h b/src/stropts/FMNAMESZ.h deleted file mode 100644 index f7857e53..00000000 --- a/src/stropts/FMNAMESZ.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <stropts.h> -#define FMNAMESZ /* TODO */ -/* -XOPEN(400) -*/
\ No newline at end of file diff --git a/src/stropts/I_ATMARK.h b/src/stropts/I_ATMARK.h deleted file mode 100644 index 2afc51c9..00000000 --- a/src/stropts/I_ATMARK.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <stropts.h> -#define I_ATMARK /* TODO */ -/* -XOPEN(400) -*/
\ No newline at end of file diff --git a/src/stropts/I_CANPUT.h b/src/stropts/I_CANPUT.h deleted file mode 100644 index 98c445db..00000000 --- a/src/stropts/I_CANPUT.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <stropts.h> -#define I_CANPUT /* TODO */ -/* -XOPEN(400) -*/
\ No newline at end of file diff --git a/src/stropts/I_CKBAND.h b/src/stropts/I_CKBAND.h deleted file mode 100644 index b6e6465c..00000000 --- a/src/stropts/I_CKBAND.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <stropts.h> -#define I_CKBAND /* TODO */ -/* -XOPEN(400) -*/
\ No newline at end of file diff --git a/src/stropts/I_FDINSERT.h b/src/stropts/I_FDINSERT.h deleted file mode 100644 index 9ecdf7f0..00000000 --- a/src/stropts/I_FDINSERT.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <stropts.h> -#define I_FDINSERT /* TODO */ -/* -XOPEN(400) -*/
\ No newline at end of file diff --git a/src/stropts/I_FIND.h b/src/stropts/I_FIND.h deleted file mode 100644 index 0b502fcf..00000000 --- a/src/stropts/I_FIND.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <stropts.h> -#define I_FIND /* TODO */ -/* -XOPEN(400) -*/
\ No newline at end of file diff --git a/src/stropts/I_FLUSH.h b/src/stropts/I_FLUSH.h deleted file mode 100644 index 693099cb..00000000 --- a/src/stropts/I_FLUSH.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <stropts.h> -#define I_FLUSH /* TODO */ -/* -XOPEN(400) -*/
\ No newline at end of file diff --git a/src/stropts/I_FLUSHBAND.h b/src/stropts/I_FLUSHBAND.h deleted file mode 100644 index 46b81252..00000000 --- a/src/stropts/I_FLUSHBAND.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <stropts.h> -#define I_FLUSHBAND /* TODO */ -/* -XOPEN(400) -*/
\ No newline at end of file diff --git a/src/stropts/I_GETBAND.h b/src/stropts/I_GETBAND.h deleted file mode 100644 index 9afe8e81..00000000 --- a/src/stropts/I_GETBAND.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <stropts.h> -#define I_GETBAND /* TODO */ -/* -XOPEN(400) -*/
\ No newline at end of file diff --git a/src/stropts/I_GETCLTIME.h b/src/stropts/I_GETCLTIME.h deleted file mode 100644 index 540ba1fb..00000000 --- a/src/stropts/I_GETCLTIME.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <stropts.h> -#define I_GETCLTIME /* TODO */ -/* -XOPEN(400) -*/
\ No newline at end of file diff --git a/src/stropts/I_GETSIG.h b/src/stropts/I_GETSIG.h deleted file mode 100644 index 0c99017b..00000000 --- a/src/stropts/I_GETSIG.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <stropts.h> -#define I_GETSIG /* TODO */ -/* -XOPEN(400) -*/
\ No newline at end of file diff --git a/src/stropts/I_GRDOPT.h b/src/stropts/I_GRDOPT.h deleted file mode 100644 index 70381ef6..00000000 --- a/src/stropts/I_GRDOPT.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <stropts.h> -#define I_GRDOPT /* TODO */ -/* -XOPEN(400) -*/
\ No newline at end of file diff --git a/src/stropts/I_GWROPT.h b/src/stropts/I_GWROPT.h deleted file mode 100644 index 22a8aaac..00000000 --- a/src/stropts/I_GWROPT.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <stropts.h> -#define I_GWROPT /* TODO */ -/* -XOPEN(400) -*/
\ No newline at end of file diff --git a/src/stropts/I_LINK.h b/src/stropts/I_LINK.h deleted file mode 100644 index 90466a8d..00000000 --- a/src/stropts/I_LINK.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <stropts.h> -#define I_LINK /* TODO */ -/* -XOPEN(400) -*/
\ No newline at end of file diff --git a/src/stropts/I_LIST.h b/src/stropts/I_LIST.h deleted file mode 100644 index f39f38be..00000000 --- a/src/stropts/I_LIST.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <stropts.h> -#define I_LIST /* TODO */ -/* -XOPEN(400) -*/
\ No newline at end of file diff --git a/src/stropts/I_LOOK.h b/src/stropts/I_LOOK.h deleted file mode 100644 index e767944d..00000000 --- a/src/stropts/I_LOOK.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <stropts.h> -#define I_LOOK /* TODO */ -/* -XOPEN(400) -*/
\ No newline at end of file diff --git a/src/stropts/I_NREAD.h b/src/stropts/I_NREAD.h deleted file mode 100644 index 14d2c190..00000000 --- a/src/stropts/I_NREAD.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <stropts.h> -#define I_NREAD /* TODO */ -/* -XOPEN(400) -*/
\ No newline at end of file diff --git a/src/stropts/I_PEEK.h b/src/stropts/I_PEEK.h deleted file mode 100644 index e8628767..00000000 --- a/src/stropts/I_PEEK.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <stropts.h> -#define I_PEEK /* TODO */ -/* -XOPEN(400) -*/
\ No newline at end of file diff --git a/src/stropts/I_PLINK.h b/src/stropts/I_PLINK.h deleted file mode 100644 index 42f79ffc..00000000 --- a/src/stropts/I_PLINK.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <stropts.h> -#define I_PLINK /* TODO */ -/* -XOPEN(400) -*/
\ No newline at end of file diff --git a/src/stropts/I_POP.h b/src/stropts/I_POP.h deleted file mode 100644 index a9ab2f0c..00000000 --- a/src/stropts/I_POP.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <stropts.h> -#define I_POP /* TODO */ -/* -XOPEN(400) -*/
\ No newline at end of file diff --git a/src/stropts/I_PUNLINK.h b/src/stropts/I_PUNLINK.h deleted file mode 100644 index d0cf0382..00000000 --- a/src/stropts/I_PUNLINK.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <stropts.h> -#define I_PUNLINK /* TODO */ -/* -XOPEN(400) -*/
\ No newline at end of file diff --git a/src/stropts/I_PUSH.h b/src/stropts/I_PUSH.h deleted file mode 100644 index cc2f212a..00000000 --- a/src/stropts/I_PUSH.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <stropts.h> -#define I_PUSH /* TODO */ -/* -XOPEN(400) -*/
\ No newline at end of file diff --git a/src/stropts/I_RECVFD.h b/src/stropts/I_RECVFD.h deleted file mode 100644 index e8027fe5..00000000 --- a/src/stropts/I_RECVFD.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <stropts.h> -#define I_RECVFD /* TODO */ -/* -XOPEN(400) -*/
\ No newline at end of file diff --git a/src/stropts/I_SENDFD.h b/src/stropts/I_SENDFD.h deleted file mode 100644 index 426a2cf5..00000000 --- a/src/stropts/I_SENDFD.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <stropts.h> -#define I_SENDFD /* TODO */ -/* -XOPEN(400) -*/
\ No newline at end of file diff --git a/src/stropts/I_SETCLTIME.h b/src/stropts/I_SETCLTIME.h deleted file mode 100644 index e6301d92..00000000 --- a/src/stropts/I_SETCLTIME.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <stropts.h> -#define I_SETCLTIME /* TODO */ -/* -XOPEN(400) -*/
\ No newline at end of file diff --git a/src/stropts/I_SETSIG.h b/src/stropts/I_SETSIG.h deleted file mode 100644 index 392a8624..00000000 --- a/src/stropts/I_SETSIG.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <stropts.h> -#define I_SETSIG /* TODO */ -/* -XOPEN(400) -*/
\ No newline at end of file diff --git a/src/stropts/I_SRDOPT.h b/src/stropts/I_SRDOPT.h deleted file mode 100644 index 8b464e07..00000000 --- a/src/stropts/I_SRDOPT.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <stropts.h> -#define I_SRDOPT /* TODO */ -/* -XOPEN(400) -*/
\ No newline at end of file diff --git a/src/stropts/I_STR.h b/src/stropts/I_STR.h deleted file mode 100644 index 97f14ae6..00000000 --- a/src/stropts/I_STR.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <stropts.h> -#define I_STR /* TODO */ -/* -XOPEN(400) -*/
\ No newline at end of file diff --git a/src/stropts/I_SWROPT.h b/src/stropts/I_SWROPT.h deleted file mode 100644 index c544e91f..00000000 --- a/src/stropts/I_SWROPT.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <stropts.h> -#define I_SWROPT /* TODO */ -/* -XOPEN(400) -*/
\ No newline at end of file diff --git a/src/stropts/I_UNLINK.h b/src/stropts/I_UNLINK.h deleted file mode 100644 index 10156ab1..00000000 --- a/src/stropts/I_UNLINK.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <stropts.h> -#define I_UNLINK /* TODO */ -/* -XOPEN(400) -*/
\ No newline at end of file diff --git a/src/stropts/LASTMARK.h b/src/stropts/LASTMARK.h deleted file mode 100644 index 3d253959..00000000 --- a/src/stropts/LASTMARK.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <stropts.h> -#define LASTMARK /* TODO */ -/* -XOPEN(400) -*/
\ No newline at end of file diff --git a/src/stropts/MORECTL.h b/src/stropts/MORECTL.h deleted file mode 100644 index b7ccc8df..00000000 --- a/src/stropts/MORECTL.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <stropts.h> -#define MORECTL /* TODO */ -/* -XOPEN(400) -*/
\ No newline at end of file diff --git a/src/stropts/MOREDATA.h b/src/stropts/MOREDATA.h deleted file mode 100644 index 586fc060..00000000 --- a/src/stropts/MOREDATA.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <stropts.h> -#define MOREDATA /* TODO */ -/* -XOPEN(400) -*/
\ No newline at end of file diff --git a/src/stropts/MSG_ANY.h b/src/stropts/MSG_ANY.h deleted file mode 100644 index a66f5cd8..00000000 --- a/src/stropts/MSG_ANY.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <stropts.h> -#define MSG_ANY /* TODO */ -/* -XOPEN(400) -*/
\ No newline at end of file diff --git a/src/stropts/MSG_BAND.h b/src/stropts/MSG_BAND.h deleted file mode 100644 index eec58375..00000000 --- a/src/stropts/MSG_BAND.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <stropts.h> -#define MSG_BAND /* TODO */ -/* -XOPEN(400) -*/
\ No newline at end of file diff --git a/src/stropts/MSG_HIPRI.h b/src/stropts/MSG_HIPRI.h deleted file mode 100644 index 46aef5fc..00000000 --- a/src/stropts/MSG_HIPRI.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <stropts.h> -#define MSG_HIPRI /* TODO */ -/* -XOPEN(400) -*/
\ No newline at end of file diff --git a/src/stropts/MUXID_ALL.h b/src/stropts/MUXID_ALL.h deleted file mode 100644 index 4a68e0e3..00000000 --- a/src/stropts/MUXID_ALL.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <stropts.h> -#define MUXID_ALL /* TODO */ -/* -XOPEN(400) -*/
\ No newline at end of file diff --git a/src/stropts/RMSGD.h b/src/stropts/RMSGD.h deleted file mode 100644 index a1452f20..00000000 --- a/src/stropts/RMSGD.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <stropts.h> -#define RMSGD /* TODO */ -/* -XOPEN(400) -*/
\ No newline at end of file diff --git a/src/stropts/RMSGN.h b/src/stropts/RMSGN.h deleted file mode 100644 index a433e224..00000000 --- a/src/stropts/RMSGN.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <stropts.h> -#define RMSGN /* TODO */ -/* -XOPEN(400) -*/
\ No newline at end of file diff --git a/src/stropts/RNORM.h b/src/stropts/RNORM.h deleted file mode 100644 index 5525201e..00000000 --- a/src/stropts/RNORM.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <stropts.h> -#define RNORM /* TODO */ -/* -XOPEN(400) -*/
\ No newline at end of file diff --git a/src/stropts/RPOTNORM.h b/src/stropts/RPOTNORM.h deleted file mode 100644 index b65c8870..00000000 --- a/src/stropts/RPOTNORM.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <stropts.h> -#define RPOTNORM /* TODO */ -/* -XOPEN(400) -*/
\ No newline at end of file diff --git a/src/stropts/RPROTDAT.h b/src/stropts/RPROTDAT.h deleted file mode 100644 index 0d2d6bbe..00000000 --- a/src/stropts/RPROTDAT.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <stropts.h> -#define RPROTDAT /* TODO */ -/* -XOPEN(400) -*/
\ No newline at end of file diff --git a/src/stropts/RPROTDIS.h b/src/stropts/RPROTDIS.h deleted file mode 100644 index 83d28aec..00000000 --- a/src/stropts/RPROTDIS.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <stropts.h> -#define RPROTDIS /* TODO */ -/* -XOPEN(400) -*/
\ No newline at end of file diff --git a/src/stropts/RS_HIPRI.h b/src/stropts/RS_HIPRI.h deleted file mode 100644 index d27c29d2..00000000 --- a/src/stropts/RS_HIPRI.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <stropts.h> -#define RS_HIPRI /* TODO */ -/* -XOPEN(400) -*/
\ No newline at end of file diff --git a/src/stropts/SNDZERO.h b/src/stropts/SNDZERO.h deleted file mode 100644 index 12f2d054..00000000 --- a/src/stropts/SNDZERO.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <stropts.h> -#define SNDZERO /* TODO */ -/* -XOPEN(400) -*/
\ No newline at end of file diff --git a/src/stropts/S_BANDURG.h b/src/stropts/S_BANDURG.h deleted file mode 100644 index 655004ce..00000000 --- a/src/stropts/S_BANDURG.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <stropts.h> -#define S_BANDURG /* TODO */ -/* -XOPEN(400) -*/
\ No newline at end of file diff --git a/src/stropts/S_ERROR.h b/src/stropts/S_ERROR.h deleted file mode 100644 index 696c01d2..00000000 --- a/src/stropts/S_ERROR.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <stropts.h> -#define S_ERROR /* TODO */ -/* -XOPEN(400) -*/
\ No newline at end of file diff --git a/src/stropts/S_HANGUP.h b/src/stropts/S_HANGUP.h deleted file mode 100644 index 401c88bb..00000000 --- a/src/stropts/S_HANGUP.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <stropts.h> -#define S_HANGUP /* TODO */ -/* -XOPEN(400) -*/
\ No newline at end of file diff --git a/src/stropts/S_HIPRI.h b/src/stropts/S_HIPRI.h deleted file mode 100644 index 44a8c5c8..00000000 --- a/src/stropts/S_HIPRI.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <stropts.h> -#define S_HIPRI /* TODO */ -/* -XOPEN(400) -*/
\ No newline at end of file diff --git a/src/stropts/S_INPUT.h b/src/stropts/S_INPUT.h deleted file mode 100644 index 32c42045..00000000 --- a/src/stropts/S_INPUT.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <stropts.h> -#define S_INPUT /* TODO */ -/* -XOPEN(400) -*/
\ No newline at end of file diff --git a/src/stropts/S_MSG.h b/src/stropts/S_MSG.h deleted file mode 100644 index 1ed4bad9..00000000 --- a/src/stropts/S_MSG.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <stropts.h> -#define S_MSG /* TODO */ -/* -XOPEN(400) -*/
\ No newline at end of file diff --git a/src/stropts/S_OUTPUT.h b/src/stropts/S_OUTPUT.h deleted file mode 100644 index 0e3db217..00000000 --- a/src/stropts/S_OUTPUT.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <stropts.h> -#define S_OUTPUT /* TODO */ -/* -XOPEN(400) -*/
\ No newline at end of file diff --git a/src/stropts/S_RDBAND.h b/src/stropts/S_RDBAND.h deleted file mode 100644 index 1d1d6601..00000000 --- a/src/stropts/S_RDBAND.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <stropts.h> -#define S_RDBAND /* TODO */ -/* -XOPEN(400) -*/
\ No newline at end of file diff --git a/src/stropts/S_RDNORM.h b/src/stropts/S_RDNORM.h deleted file mode 100644 index e01e0b7c..00000000 --- a/src/stropts/S_RDNORM.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <stropts.h> -#define S_RDNORM /* TODO */ -/* -XOPEN(400) -*/
\ No newline at end of file diff --git a/src/stropts/S_WRBAND.h b/src/stropts/S_WRBAND.h deleted file mode 100644 index da317ebb..00000000 --- a/src/stropts/S_WRBAND.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <stropts.h> -#define S_WRBAND /* TODO */ -/* -XOPEN(400) -*/
\ No newline at end of file diff --git a/src/stropts/S_WRNORM.h b/src/stropts/S_WRNORM.h deleted file mode 100644 index 51c7486d..00000000 --- a/src/stropts/S_WRNORM.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <stropts.h> -#define S_WRNORM /* TODO */ -/* -XOPEN(400) -*/
\ No newline at end of file diff --git a/src/stropts/fattach.c b/src/stropts/fattach.c deleted file mode 100644 index f407f636..00000000 --- a/src/stropts/fattach.c +++ /dev/null @@ -1,14 +0,0 @@ -#if 0 - -#include <stropts.h> - -int fattach(int fildes, const char * path ) -{ -} - -/* -XOPEN(400) -*/ - - -#endif diff --git a/src/stropts/fdetach.c b/src/stropts/fdetach.c deleted file mode 100644 index 1917f91b..00000000 --- a/src/stropts/fdetach.c +++ /dev/null @@ -1,14 +0,0 @@ -#if 0 - -#include <stropts.h> - -int fdetach(const char * path ) -{ -} - -/* -XOPEN(400) -*/ - - -#endif diff --git a/src/stropts/getmsg.c b/src/stropts/getmsg.c deleted file mode 100644 index 7596d550..00000000 --- a/src/stropts/getmsg.c +++ /dev/null @@ -1,14 +0,0 @@ -#if 0 - -#include <stropts.h> - -int getmsg(int fd , struct strbuf * ctlptr , struct strbuf * dataptr , int * flagsp ) -{ -} - -/* -XOPEN(400) -*/ - - -#endif diff --git a/src/stropts/getpmsg.c b/src/stropts/getpmsg.c deleted file mode 100644 index 39147cc0..00000000 --- a/src/stropts/getpmsg.c +++ /dev/null @@ -1,14 +0,0 @@ -#if 0 - -#include <stropts.h> - -int getpmsg(int fd , struct strbuf * ctlptr , struct strbuf * dataptr , int * bandp , int * flagsp ) -{ -} - -/* -XOPEN(400) -*/ - - -#endif diff --git a/src/stropts/ioctl.c b/src/stropts/ioctl.c deleted file mode 100644 index af0ab043..00000000 --- a/src/stropts/ioctl.c +++ /dev/null @@ -1,14 +0,0 @@ -#if 0 - -#include <stropts.h> - -int ioctl(int fildes , int request , ... ) -{ -} - -/* -XOPEN(400) -*/ - - -#endif diff --git a/src/stropts/isastream.c b/src/stropts/isastream.c deleted file mode 100644 index d52a1fca..00000000 --- a/src/stropts/isastream.c +++ /dev/null @@ -1,14 +0,0 @@ -#if 0 - -#include <stropts.h> - -int isastream(int fildes ) -{ -} - -/* -XOPEN(400) -*/ - - -#endif diff --git a/src/stropts/putmsg.c b/src/stropts/putmsg.c deleted file mode 100644 index ba2e5893..00000000 --- a/src/stropts/putmsg.c +++ /dev/null @@ -1,14 +0,0 @@ -#if 0 - -#include <stropts.h> - -int putmsg(int fd , const struct strbuf * ctlptr , const struct strbuf * dataptr , int flags ) -{ -} - -/* -XOPEN(400) -*/ - - -#endif diff --git a/src/stropts/putpmsg.c b/src/stropts/putpmsg.c deleted file mode 100644 index 4b2813cf..00000000 --- a/src/stropts/putpmsg.c +++ /dev/null @@ -1,14 +0,0 @@ -#if 0 - -#include <stropts.h> - -int putpmsg(int fd , const struct strbuf * ctlptr , const struct strbuf * dataptr , int band , int flags ) -{ -} - -/* -XOPEN(400) -*/ - - -#endif diff --git a/src/stropts/struct_bandinfo.h b/src/stropts/struct_bandinfo.h deleted file mode 100644 index 10abe0dd..00000000 --- a/src/stropts/struct_bandinfo.h +++ /dev/null @@ -1,10 +0,0 @@ -#include <stropts.h> - -struct bandinfo { - unsigned char bi_pri; - int bi_flag; -}; - -/* -XOPEN(400) -*/ diff --git a/src/stropts/struct_str_list.h b/src/stropts/struct_str_list.h deleted file mode 100644 index a3f6958b..00000000 --- a/src/stropts/struct_str_list.h +++ /dev/null @@ -1,10 +0,0 @@ -#include <stropts.h> - -struct str_list { - int sl_nmods; - struct str_mlist *sl_modlist; -}; - -/* -XOPEN(400) -*/ diff --git a/src/stropts/struct_str_mlist.h b/src/stropts/struct_str_mlist.h deleted file mode 100644 index f54a9603..00000000 --- a/src/stropts/struct_str_mlist.h +++ /dev/null @@ -1,9 +0,0 @@ -#include <stropts.h> - -struct str_mlist { - char l_name[FMNAMESZ+1]; -}; - -/* -XOPEN(400) -*/ diff --git a/src/stropts/struct_strbuf.h b/src/stropts/struct_strbuf.h deleted file mode 100644 index 37e10700..00000000 --- a/src/stropts/struct_strbuf.h +++ /dev/null @@ -1,11 +0,0 @@ -#include <stropts.h> - -struct strbuf { - int maxlen; - int len; - char *buf; -}; - -/* -XOPEN(400) -*/ diff --git a/src/stropts/struct_strfdinsert.h b/src/stropts/struct_strfdinsert.h deleted file mode 100644 index 46fcf691..00000000 --- a/src/stropts/struct_strfdinsert.h +++ /dev/null @@ -1,13 +0,0 @@ -#include <stropts.h> - -struct strfdinsert { - struct strbuf ctlbuf; - struct strbuf databuf; - long flags; - int fildes; - int offset; -}; - -/* -XOPEN(400) -*/ diff --git a/src/stropts/struct_strioctl.h b/src/stropts/struct_strioctl.h deleted file mode 100644 index 8b89f4ed..00000000 --- a/src/stropts/struct_strioctl.h +++ /dev/null @@ -1,12 +0,0 @@ -#include <stropts.h> - -struct strioctl { - int ic_cmd; - int ic_timeout; - int ic_len; - char *ic_dp; -}; - -/* -XOPEN(400) -*/ diff --git a/src/stropts/struct_strpeek.h b/src/stropts/struct_strpeek.h deleted file mode 100644 index 75f1c1e9..00000000 --- a/src/stropts/struct_strpeek.h +++ /dev/null @@ -1,11 +0,0 @@ -#include <stropts.h> - -struct strpeek { - int maxlen; - int len; - char *buf; -}; - -/* -XOPEN(400) -*/ diff --git a/src/stropts/struct_strrecvfd.h b/src/stropts/struct_strrecvfd.h deleted file mode 100644 index 60b31d9b..00000000 --- a/src/stropts/struct_strrecvfd.h +++ /dev/null @@ -1,11 +0,0 @@ -#include <stropts.h> - -struct strrecvfd { - int fd; - uid_t uid; - gid_t gid; -}; - -/* -XOPEN(400) -*/ diff --git a/src/syslog/LOG_ALERT.h b/src/syslog/LOG_ALERT.h deleted file mode 100644 index 26f1daab..00000000 --- a/src/syslog/LOG_ALERT.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <syslog.h> -#define LOG_ALERT (1<<1) -/* -XOPEN(400) -*/ diff --git a/src/syslog/LOG_AUTH.h b/src/syslog/LOG_AUTH.h deleted file mode 100644 index e30654f9..00000000 --- a/src/syslog/LOG_AUTH.h +++ /dev/null @@ -1,5 +0,0 @@ -#incude <syslog.h> -#define LOG_AUTH 6 -/* -XOPEN(400) -*/ diff --git a/src/syslog/LOG_CONS.h b/src/syslog/LOG_CONS.h deleted file mode 100644 index 8be20861..00000000 --- a/src/syslog/LOG_CONS.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <syslog.h> -#define LOG_CONS (1<<1) -/* -XOPEN(400) -*/ diff --git a/src/syslog/LOG_CRIT.h b/src/syslog/LOG_CRIT.h deleted file mode 100644 index 514dc21d..00000000 --- a/src/syslog/LOG_CRIT.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <syslog.h> -#define LOG_CRIT (1<<2) -/* -XOPEN(400) -*/ diff --git a/src/syslog/LOG_CRON.h b/src/syslog/LOG_CRON.h deleted file mode 100644 index 1a0540cd..00000000 --- a/src/syslog/LOG_CRON.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <syslog.h> -#define LOG_CRON 7 -/* -XOPEN(400) -*/ diff --git a/src/syslog/LOG_DAEMON.h b/src/syslog/LOG_DAEMON.h deleted file mode 100644 index c4c1ef90..00000000 --- a/src/syslog/LOG_DAEMON.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <syslog.h> -#define LOG_DAEMON 5 -/* -XOPEN(400) -*/ diff --git a/src/syslog/LOG_DEBUG.h b/src/syslog/LOG_DEBUG.h deleted file mode 100644 index cddda36c..00000000 --- a/src/syslog/LOG_DEBUG.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <syslog.h> -#define LOG_DEBUG (1<<7) -/* -XOPEN(400) -*/ diff --git a/src/syslog/LOG_EMERG.h b/src/syslog/LOG_EMERG.h deleted file mode 100644 index 4f4b4862..00000000 --- a/src/syslog/LOG_EMERG.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <syslog.h> -#define LOG_EMERG (1<<0) -/* -XOPEN(400) -*/ diff --git a/src/syslog/LOG_ERR.h b/src/syslog/LOG_ERR.h deleted file mode 100644 index cb34df79..00000000 --- a/src/syslog/LOG_ERR.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <syslog.h> -#define LOG_ERR (1<<3) -/* -XOPEN(400) -*/ diff --git a/src/syslog/LOG_INFO.h b/src/syslog/LOG_INFO.h deleted file mode 100644 index 1380c12d..00000000 --- a/src/syslog/LOG_INFO.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <syslog.h> -#define LOG_INFO (1<<6) -/* -XOPEN(400) -*/ diff --git a/src/syslog/LOG_KERN.h b/src/syslog/LOG_KERN.h deleted file mode 100644 index ed7ddc45..00000000 --- a/src/syslog/LOG_KERN.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <syslog.h> -#define LOG_KERN 0 -/* -XOPEN(400) -*/ diff --git a/src/syslog/LOG_LOCAL0.h b/src/syslog/LOG_LOCAL0.h deleted file mode 100644 index 482bf5ca..00000000 --- a/src/syslog/LOG_LOCAL0.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <syslog.h> -#define LOG_LOCAL0 10 -/* -XOPEN(400) -*/ diff --git a/src/syslog/LOG_LOCAL1.h b/src/syslog/LOG_LOCAL1.h deleted file mode 100644 index 62e320cb..00000000 --- a/src/syslog/LOG_LOCAL1.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <syslog.h> -#define LOG_LOCAL1 11 -/* -XOPEN(400) -*/ diff --git a/src/syslog/LOG_LOCAL2.h b/src/syslog/LOG_LOCAL2.h deleted file mode 100644 index 65c56de6..00000000 --- a/src/syslog/LOG_LOCAL2.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <syslog.h> -#define LOG_LOCAL2 12 -/* -XOPEN(400) -*/ diff --git a/src/syslog/LOG_LOCAL3.h b/src/syslog/LOG_LOCAL3.h deleted file mode 100644 index adb1964d..00000000 --- a/src/syslog/LOG_LOCAL3.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <syslog.h> -#define LOG_LOCAL3 13 -/* -XOPEN(400) -*/ diff --git a/src/syslog/LOG_LOCAL4.h b/src/syslog/LOG_LOCAL4.h deleted file mode 100644 index 9f772560..00000000 --- a/src/syslog/LOG_LOCAL4.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <syslog.h> -#define LOG_LOCAL4 14 -/* -XOPEN(400) -*/ diff --git a/src/syslog/LOG_LOCAL5.h b/src/syslog/LOG_LOCAL5.h deleted file mode 100644 index 6b971e2e..00000000 --- a/src/syslog/LOG_LOCAL5.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <syslog.h> -#define LOG_LOCAL5 15 -/* -XOPEN(400) -*/ diff --git a/src/syslog/LOG_LOCAL6.h b/src/syslog/LOG_LOCAL6.h deleted file mode 100644 index 03f0a242..00000000 --- a/src/syslog/LOG_LOCAL6.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <syslog.h> -#define LOG_LOCAL6 16 -/* -XOPEN(400) -*/ diff --git a/src/syslog/LOG_LOCAL7.h b/src/syslog/LOG_LOCAL7.h deleted file mode 100644 index 52ba82b2..00000000 --- a/src/syslog/LOG_LOCAL7.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <syslog.h> -#define LOG_LOCAL7 17 -/* -XOPEN(400) -*/ diff --git a/src/syslog/LOG_LPR.h b/src/syslog/LOG_LPR.h deleted file mode 100644 index adee4db8..00000000 --- a/src/syslog/LOG_LPR.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <syslog.h> -#define LOG_LPR 8 -/* -XOPEN(400) -*/ diff --git a/src/syslog/LOG_MAIL.h b/src/syslog/LOG_MAIL.h deleted file mode 100644 index c7354748..00000000 --- a/src/syslog/LOG_MAIL.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <syslog.h> -#define LOG_MAIL 2 -/* -XOPEN(400) -*/ diff --git a/src/syslog/LOG_MASK.h b/src/syslog/LOG_MASK.h deleted file mode 100644 index 42eb4a5c..00000000 --- a/src/syslog/LOG_MASK.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <syslog.h> -#define LOG_MASK(__pri) (1<<__pri) -/* -XOPEN(400) -*/ diff --git a/src/syslog/LOG_NDELAY.h b/src/syslog/LOG_NDELAY.h deleted file mode 100644 index a204c932..00000000 --- a/src/syslog/LOG_NDELAY.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <syslog.h> -#define LOG_NDELAY (1<<2) -/* -XOPEN(400) -*/ diff --git a/src/syslog/LOG_NEWS.h b/src/syslog/LOG_NEWS.h deleted file mode 100644 index a2072ccb..00000000 --- a/src/syslog/LOG_NEWS.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <syslog.h> -#define LOG_NEWS 3 -/* -XOPEN(400) -*/ diff --git a/src/syslog/LOG_NOTICE.h b/src/syslog/LOG_NOTICE.h deleted file mode 100644 index a97547e1..00000000 --- a/src/syslog/LOG_NOTICE.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <syslog.h> -#define LOG_NOTICE (1<<5) -/* -XOPEN(400) -*/ diff --git a/src/syslog/LOG_NOWAIT.h b/src/syslog/LOG_NOWAIT.h deleted file mode 100644 index e237028b..00000000 --- a/src/syslog/LOG_NOWAIT.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <syslog.h> -#define LOG_NOWAIT (1<<4) -/* -XOPEN(400) -*/ diff --git a/src/syslog/LOG_ODELAY.h b/src/syslog/LOG_ODELAY.h deleted file mode 100644 index e742aa16..00000000 --- a/src/syslog/LOG_ODELAY.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <syslog.h> -#define LOG_ODELAY (1<<3) -/* -XOPEN(400) -*/ diff --git a/src/syslog/LOG_PID.h b/src/syslog/LOG_PID.h deleted file mode 100644 index 836e61f7..00000000 --- a/src/syslog/LOG_PID.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <syslog.h> -#define LOG_PID (1<<0) -/* -XOPEN(400) -*/ diff --git a/src/syslog/LOG_UPTO.h b/src/syslog/LOG_UPTO.h deleted file mode 100644 index 7ee228e9..00000000 --- a/src/syslog/LOG_UPTO.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <syslog.h> -#define LOG_UPTO() /* TODO */ -/* -XOPEN(400,500) -*/ diff --git a/src/syslog/LOG_USER.h b/src/syslog/LOG_USER.h deleted file mode 100644 index 2e31723c..00000000 --- a/src/syslog/LOG_USER.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <syslog.h> -#define LOG_USER 1 -/* -XOPEN(400) -*/ diff --git a/src/syslog/LOG_UUCP.h b/src/syslog/LOG_UUCP.h deleted file mode 100644 index 5c10f65c..00000000 --- a/src/syslog/LOG_UUCP.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <syslog.h> -#define LOG_UUCP 4 -/* -XOPEN(400) -*/ diff --git a/src/syslog/LOG_WARNING.h b/src/syslog/LOG_WARNING.h deleted file mode 100644 index 95e9e9cf..00000000 --- a/src/syslog/LOG_WARNING.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <syslog.h> -#define LOG_WARNING (1<<4) -/* -XOPEN(400) -*/ diff --git a/src/syslog/closelog.c b/src/syslog/closelog.c deleted file mode 100644 index 47cf32e8..00000000 --- a/src/syslog/closelog.c +++ /dev/null @@ -1,14 +0,0 @@ -#if 0 - -#include <syslog.h> - -void closelog(void) -{ -} - -/* -XOPEN(400) -*/ - - -#endif diff --git a/src/syslog/openlog.c b/src/syslog/openlog.c deleted file mode 100644 index 5693f8cc..00000000 --- a/src/syslog/openlog.c +++ /dev/null @@ -1,14 +0,0 @@ -#if 0 - -#include <syslog.h> - -void openlog(const char * ident, int logopt, int facility) -{ -} - -/* -XOPEN(400) -*/ - - -#endif diff --git a/src/syslog/setlogmask.c b/src/syslog/setlogmask.c deleted file mode 100644 index 2b4a271d..00000000 --- a/src/syslog/setlogmask.c +++ /dev/null @@ -1,15 +0,0 @@ -#if 0 - -#include <syslog.h> - -int setlogmask(int maskpri) -{ - return maskpri; -} - -/* -XOPEN(400) -*/ - - -#endif diff --git a/src/syslog/syslog.c b/src/syslog/syslog.c deleted file mode 100644 index 137815b9..00000000 --- a/src/syslog/syslog.c +++ /dev/null @@ -1,14 +0,0 @@ -#if 0 - -#include <syslog.h> - -void syslog(int priority, const char * message, ...) -{ -} - -/* -XOPEN(400) -*/ - - -#endif diff --git a/src/tar/AREGTYPE.h b/src/tar/AREGTYPE.h deleted file mode 100644 index 9543eeea..00000000 --- a/src/tar/AREGTYPE.h +++ /dev/null @@ -1,7 +0,0 @@ -#include <tar.h> - -#define AREGTYPE '\0' -/*d Regular file. d*/ -/* -POSIX(1) -*/ diff --git a/src/tar/BLKTYPE.h b/src/tar/BLKTYPE.h deleted file mode 100644 index fd2fa542..00000000 --- a/src/tar/BLKTYPE.h +++ /dev/null @@ -1,7 +0,0 @@ -#include <tar.h> - -#define BLKTYPE '4' -/*d Block special. d*/ -/* -POSIX(1) -*/ diff --git a/src/tar/CHRTYPE.h b/src/tar/CHRTYPE.h deleted file mode 100644 index 34468291..00000000 --- a/src/tar/CHRTYPE.h +++ /dev/null @@ -1,7 +0,0 @@ -#include <tar.h> - -#define CHRTYPE '3' -/*d Character special. d*/ -/* -POSIX(1) -*/ diff --git a/src/tar/CONTTYPE.h b/src/tar/CONTTYPE.h deleted file mode 100644 index 281dbd01..00000000 --- a/src/tar/CONTTYPE.h +++ /dev/null @@ -1,7 +0,0 @@ -#include <tar.h> - -#define CONTTYPE '7' -/*d Reserved. d*/ -/* -POSIX(1) -*/ diff --git a/src/tar/DIRTYPE.h b/src/tar/DIRTYPE.h deleted file mode 100644 index 2d472b67..00000000 --- a/src/tar/DIRTYPE.h +++ /dev/null @@ -1,7 +0,0 @@ -#include <tar.h> - -#define DIRTYPE '5' -/*d Directory. d*/ -/* -POSIX(1) -*/ diff --git a/src/tar/FIFOTYPE.h b/src/tar/FIFOTYPE.h deleted file mode 100644 index d9531aab..00000000 --- a/src/tar/FIFOTYPE.h +++ /dev/null @@ -1,7 +0,0 @@ -#include <tar.h> - -#define FIFOTYPE '6' -/*d FIFO special. d*/ -/* -POSIX(1) -*/ diff --git a/src/tar/LNKTYPE.h b/src/tar/LNKTYPE.h deleted file mode 100644 index 35c8a14c..00000000 --- a/src/tar/LNKTYPE.h +++ /dev/null @@ -1,7 +0,0 @@ -#include <tar.h> - -#define LNKTYPE '1' -/*d Link. d*/ -/* -POSIX(1) -*/ diff --git a/src/tar/REGTYPE.h b/src/tar/REGTYPE.h deleted file mode 100644 index d1935b93..00000000 --- a/src/tar/REGTYPE.h +++ /dev/null @@ -1,7 +0,0 @@ -#include <tar.h> - -#define REGTYPE '0' -/*d Regular file. d*/ -/* -POSIX(1) -*/ diff --git a/src/tar/SYMTYPE.h b/src/tar/SYMTYPE.h deleted file mode 100644 index 566ca67b..00000000 --- a/src/tar/SYMTYPE.h +++ /dev/null @@ -1,7 +0,0 @@ -#include <tar.h> - -#define SYMTYPE '2' -/*d Symoblic link. d*/ -/* -POSIX(1) -*/ diff --git a/src/tar/TGEXEC.h b/src/tar/TGEXEC.h deleted file mode 100644 index 5557c981..00000000 --- a/src/tar/TGEXEC.h +++ /dev/null @@ -1,7 +0,0 @@ -#include <tar.h> - -#define TGEXEC 00010 -/*d Execute/search by group. d*/ -/* -POSIX(1) -*/ diff --git a/src/tar/TGREAD.h b/src/tar/TGREAD.h deleted file mode 100644 index 23656009..00000000 --- a/src/tar/TGREAD.h +++ /dev/null @@ -1,7 +0,0 @@ -#include <tar.h> - -#define TGREAD 00040 -/*d Read by group. d*/ -/* -POSIX(1) -*/ diff --git a/src/tar/TGWRITE.h b/src/tar/TGWRITE.h deleted file mode 100644 index 47e142db..00000000 --- a/src/tar/TGWRITE.h +++ /dev/null @@ -1,7 +0,0 @@ -#include <tar.h> - -#define TGWRITE 00020 -/*d Write by group. d*/ -/* -POSIX(1) -*/ diff --git a/src/tar/TMAGIC.h b/src/tar/TMAGIC.h deleted file mode 100644 index c162877f..00000000 --- a/src/tar/TMAGIC.h +++ /dev/null @@ -1,7 +0,0 @@ -#include <tar.h> - -#define TMAGIC "ustar" -/*d POSIX tar archive magic number. d*/ -/* -POSIX(1) -*/ diff --git a/src/tar/TMAGLEN.h b/src/tar/TMAGLEN.h deleted file mode 100644 index 48e7b52e..00000000 --- a/src/tar/TMAGLEN.h +++ /dev/null @@ -1,7 +0,0 @@ -#include <tar.h> - -#define TMAGLEN 6 -/*d The length of the POSIX tar archive magic number. d*/ -/* -POSIX(1) -*/ diff --git a/src/tar/TOEXEC.h b/src/tar/TOEXEC.h deleted file mode 100644 index 8e1d9576..00000000 --- a/src/tar/TOEXEC.h +++ /dev/null @@ -1,7 +0,0 @@ -#include <tar.h> - -#define TOEXEC 00001 -/*d Execute/search by other. d*/ -/* -POSIX(1) -*/ diff --git a/src/tar/TOREAD.h b/src/tar/TOREAD.h deleted file mode 100644 index 253fb8c5..00000000 --- a/src/tar/TOREAD.h +++ /dev/null @@ -1,7 +0,0 @@ -#include <tar.h> - -#define TOREAD 00004 -/*d Read by other. d*/ -/* -POSIX(1) -*/ diff --git a/src/tar/TOWRITE.h b/src/tar/TOWRITE.h deleted file mode 100644 index fc05a49e..00000000 --- a/src/tar/TOWRITE.h +++ /dev/null @@ -1,7 +0,0 @@ -#include <tar.h> - -#define TOWRITE 00002 -/*d Write by other. d*/ -/* -POSIX(1) -*/ diff --git a/src/tar/TSGID.h b/src/tar/TSGID.h deleted file mode 100644 index d62b177b..00000000 --- a/src/tar/TSGID.h +++ /dev/null @@ -1,7 +0,0 @@ -#include <tar.h> - -#define TSGID 02000 -/*d Set GID on execution. d*/ -/* -POSIX(1) -*/ diff --git a/src/tar/TSUID.h b/src/tar/TSUID.h deleted file mode 100644 index c4c49437..00000000 --- a/src/tar/TSUID.h +++ /dev/null @@ -1,7 +0,0 @@ -#include <tar.h> - -#define TSUID 04000 -/*d Set UID on execution. d*/ -/* -POSIX(1) -*/ diff --git a/src/tar/TSVTX.h b/src/tar/TSVTX.h deleted file mode 100644 index e1577fa1..00000000 --- a/src/tar/TSVTX.h +++ /dev/null @@ -1,7 +0,0 @@ -#include <tar.h> - -#define TSVTX 01000 -/*d Reserved d*/ -/* -POSIX(1) -*/ diff --git a/src/tar/TUEXEC.h b/src/tar/TUEXEC.h deleted file mode 100644 index 6ff9d156..00000000 --- a/src/tar/TUEXEC.h +++ /dev/null @@ -1,7 +0,0 @@ -#include <tar.h> - -#define TUEXEC 00100 -/*d Execute/search by owner. d*/ -/* -POSIX(1) -*/ diff --git a/src/tar/TUREAD.h b/src/tar/TUREAD.h deleted file mode 100644 index e60c0f19..00000000 --- a/src/tar/TUREAD.h +++ /dev/null @@ -1,7 +0,0 @@ -#include <tar.h> - -#define TUREAD 00400 -/*d Read by owner. d*/ -/* -POSIX(1) -*/ diff --git a/src/tar/TUWRITE.h b/src/tar/TUWRITE.h deleted file mode 100644 index c0730304..00000000 --- a/src/tar/TUWRITE.h +++ /dev/null @@ -1,7 +0,0 @@ -#include <tar.h> - -#define TUWRITE 00200 -/*d Write by owner. d*/ -/* -POSIX(1) -*/ diff --git a/src/tar/TVERSION.h b/src/tar/TVERSION.h deleted file mode 100644 index f4b51d58..00000000 --- a/src/tar/TVERSION.h +++ /dev/null @@ -1,7 +0,0 @@ -#include <tar.h> - -#define TVERSION "00" -/*d The version of a POSIX tar archive, not including the NULL byte. d*/ -/* -POSIX(1) -*/ diff --git a/src/tar/TVERSLEN.h b/src/tar/TVERSLEN.h deleted file mode 100644 index 4560e140..00000000 --- a/src/tar/TVERSLEN.h +++ /dev/null @@ -1,7 +0,0 @@ -#include <tar.h> - -#define TVERSLEN 2 -/*d The length of the version string in a POSIX tar archive. d*/ -/* -POSIX(1) -*/ diff --git a/src/ucontext/getcontext.c b/src/ucontext/getcontext.c deleted file mode 100644 index 202deca8..00000000 --- a/src/ucontext/getcontext.c +++ /dev/null @@ -1,15 +0,0 @@ -#if 0 - -#include <ucontext.h> - -int getcontext(ucontext_t *ucp) -{ - return 0; -} - -/* -XOPEN(400,700) -*/ - - -#endif diff --git a/src/ucontext/makecontext.c b/src/ucontext/makecontext.c deleted file mode 100644 index 3fb9b0ac..00000000 --- a/src/ucontext/makecontext.c +++ /dev/null @@ -1,14 +0,0 @@ -#if 0 - -#include <ucontext.h> - -void makecontext(ucontext_t *ucp, void (*func)(), int argc, ...) -{ -} - -/* -XOPEN(400,700) -*/ - - -#endif diff --git a/src/ucontext/mcontext_t.h b/src/ucontext/mcontext_t.h deleted file mode 100644 index f2d49169..00000000 --- a/src/ucontext/mcontext_t.h +++ /dev/null @@ -1,7 +0,0 @@ -#include <ucontext.h> - -typedef unsigned long mcontext_t; - -/* -XOPEN(400,700) -*/ diff --git a/src/ucontext/setcontext.c b/src/ucontext/setcontext.c deleted file mode 100644 index ec63d951..00000000 --- a/src/ucontext/setcontext.c +++ /dev/null @@ -1,15 +0,0 @@ -#if 0 - -#include <ucontext.h> - -int setcontext(const ucontext_t *ucp) -{ - return 0; -} - -/* -XOPEN(400,700) -*/ - - -#endif diff --git a/src/ucontext/sigset_t.ref b/src/ucontext/sigset_t.ref deleted file mode 100644 index 82dc7e7c..00000000 --- a/src/ucontext/sigset_t.ref +++ /dev/null @@ -1,3 +0,0 @@ -#include <ucontext.h> -REFERENCE(signal/sigset_t.c) -XOPEN(400,700) diff --git a/src/ucontext/stack_t.ref b/src/ucontext/stack_t.ref deleted file mode 100644 index c0c1d9c6..00000000 --- a/src/ucontext/stack_t.ref +++ /dev/null @@ -1,3 +0,0 @@ -#include <ucontext.h> -REFERENCE(signal/stack_t.c) -XOPEN(400,700) diff --git a/src/ucontext/swapcontext.c b/src/ucontext/swapcontext.c deleted file mode 100644 index 33ee9578..00000000 --- a/src/ucontext/swapcontext.c +++ /dev/null @@ -1,14 +0,0 @@ -#if 0 - -#include <ucontext.h> - -void swapcontext(ucontext_t *oucp, const ucontext_t *ucp) -{ -} - -/* -XOPEN(400,700) -*/ - - -#endif diff --git a/src/ucontext/ucontext_t.h b/src/ucontext/ucontext_t.h deleted file mode 100644 index 740df115..00000000 --- a/src/ucontext/ucontext_t.h +++ /dev/null @@ -1,12 +0,0 @@ -#include <ucontext.h> - -typedef struct ucontext_t { - struct ucontext_t * uc_link; - sigset_t uc_sigmask; - stack_t uc_stack; - mcontext_t uc_mcontext; -} ucontext_t; - -/* -XOPEN(400,700) -*/ diff --git a/src/ulimit/UL_GETFSIZE.h b/src/ulimit/UL_GETFSIZE.h deleted file mode 100644 index e3779b8e..00000000 --- a/src/ulimit/UL_GETFSIZE.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <ulimit.h> -#define UL_GETFSIZE 1 -/* -XOPEN(4) -*/ diff --git a/src/ulimit/UL_SETFSIZE.h b/src/ulimit/UL_SETFSIZE.h deleted file mode 100644 index a45da28a..00000000 --- a/src/ulimit/UL_SETFSIZE.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <ulimit.h> -#define UL_SETFSIZE 2 -/* -XOPEN(4) -*/ diff --git a/src/ulimit/ulimit.c b/src/ulimit/ulimit.c deleted file mode 100644 index b9475779..00000000 --- a/src/ulimit/ulimit.c +++ /dev/null @@ -1,68 +0,0 @@ -#if 0 - -#include <ulimit.h> -#include <sys/resource.h> -#include <stdarg.h> -#include <stddef.h> -#include <errno.h> - -long ulimit(int cmd, ...) -{ - struct rlimit rl; - - if (cmd == UL_GETFSIZE) { - if (getrlimit(RLIMIT_FSIZE, &rl) == 0) { - return (long)(rl.rlim_cur / 512); - } - return -1; - } else if (cmd == UL_SETFSIZE) { - va_list ap; - va_start(ap, cmd); - rl.rlim_cur = va_arg(ap, rlim_t) * 512; - va_end(ap); - if (setrlimit(RLIMIT_FSIZE, NULL) == 0) { - return (long)(rl.rlim_cur / 512); - } - return -1; - } - - errno = EINVAL; - return -1; -} - -/** POSIX-7-OB-XSI: ulimit.h */ - -/*d -The ulimit() function shall control process limits. The process limits that can be controlled by this function include the maximum size of a single file that can be written (this is equivalent to using setrlimit() with RLIMIT_FSIZE). The cmd values, defined in <ulimit.h>, include: - -UL_GETFSIZE -Return the file size limit (RLIMIT_FSIZE) of the process. The limit shall be in units of 512-byte blocks and shall be inherited by child processes. Files of any size can be read. The return value shall be the integer part of the soft file size limit divided by 512. If the result cannot be represented as a long, the result is unspecified. -UL_SETFSIZE -Set the file size limit for output operations of the process to the value of the second argument, taken as a long, multiplied by 512. If the result would overflow an rlim_t, the actual value set is unspecified. Any process may decrease its own limit, but only a process with appropriate privileges may increase the limit. The return value shall be the integer part of the new file size limit divided by 512. -The ulimit() function shall not change the setting of errno if successful. - -As all return values are permissible in a successful situation, an application wishing to check for error situations should set errno to 0, then call ulimit(), and, if it returns -1, check to see if errno is non-zero. - -d*/ - - -/*r -Upon successful completion, ulimit() shall return the value of the requested limit. Otherwise, -1 shall be returned and errno set to indicate the error. - -r*/ - -/*e -The ulimit() function shall fail and the limit shall be unchanged if: - -[EINVAL] -The cmd argument is not valid. -[EPERM] -A process not having appropriate privileges attempts to increase its file size limit. -e*/ - -/* -XOPEN(4) -*/ - - -#endif diff --git a/src/utime/struct_utimbuf.c b/src/utime/struct_utimbuf.c deleted file mode 100644 index 8a2a3b90..00000000 --- a/src/utime/struct_utimbuf.c +++ /dev/null @@ -1,15 +0,0 @@ -#if 0 - -#include <utime.h> - -struct utimbuf { - time_t actime; - time_t modtime; -}; - -/* -POSIX(1) -*/ - - -#endif diff --git a/src/utime/time_t.ref b/src/utime/time_t.ref deleted file mode 100644 index 4920b205..00000000 --- a/src/utime/time_t.ref +++ /dev/null @@ -1,4 +0,0 @@ -#include <utime.h> -REFERENCE(time/time_t.c) -XOPEN(4) -POSIX(200112) diff --git a/src/utime/utime.c b/src/utime/utime.c deleted file mode 100644 index d7972d7a..00000000 --- a/src/utime/utime.c +++ /dev/null @@ -1,16 +0,0 @@ -#if 0 - -#include <time.h> -#include <utime.h> -#include "_syscall.h" - -int utime(const char *path, const struct utimbuf *times) -{ - SYSCALL(utime, int, -1, path, times, 0, 0, 0, 0); -} -/* -POSIX(1) -*/ - - -#endif diff --git a/src/utmpx/BOOT_TIME.h b/src/utmpx/BOOT_TIME.h deleted file mode 100644 index 99ade1be..00000000 --- a/src/utmpx/BOOT_TIME.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <utmpx.h> -#define BOOT_TIME /* TODO */ -/* -XOPEN(400) -*/ diff --git a/src/utmpx/DEAD_PROCESS.h b/src/utmpx/DEAD_PROCESS.h deleted file mode 100644 index d36be234..00000000 --- a/src/utmpx/DEAD_PROCESS.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <utmpx.h> -#define DEAD_PROCESS /* TODO */ -/* -XOPEN(400) -*/ diff --git a/src/utmpx/EMPTY.h b/src/utmpx/EMPTY.h deleted file mode 100644 index 52722204..00000000 --- a/src/utmpx/EMPTY.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <utmpx.h> -#define EMPTY /* TODO */ -/* -XOPEN(400) -*/ diff --git a/src/utmpx/INIT_PROCESS.h b/src/utmpx/INIT_PROCESS.h deleted file mode 100644 index 865a1b67..00000000 --- a/src/utmpx/INIT_PROCESS.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <utmpx.h> -#define INIT_PROCESS /* TODO */ -/* -XOPEN(400) -*/ diff --git a/src/utmpx/LOGIN_PROCESS.h b/src/utmpx/LOGIN_PROCESS.h deleted file mode 100644 index 5a5cac5f..00000000 --- a/src/utmpx/LOGIN_PROCESS.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <utmpx.h> -#define LOGIN_PROCESS /* TODO */ -/* -XOPEN(400) -*/ diff --git a/src/utmpx/NEW_TIME.h b/src/utmpx/NEW_TIME.h deleted file mode 100644 index 3faf0ee8..00000000 --- a/src/utmpx/NEW_TIME.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <utmpx.h> -#define NEW_TIME /* TODO */ -/* -XOPEN(400) -*/ diff --git a/src/utmpx/OLD_TIME.h b/src/utmpx/OLD_TIME.h deleted file mode 100644 index 19bb6e51..00000000 --- a/src/utmpx/OLD_TIME.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <utmpx.h> -#define OLD_TIME /* TODO */ -/* -XOPEN(400) -*/ diff --git a/src/utmpx/USER_PROCESS.h b/src/utmpx/USER_PROCESS.h deleted file mode 100644 index 53b0c9fa..00000000 --- a/src/utmpx/USER_PROCESS.h +++ /dev/null @@ -1,5 +0,0 @@ -#include <utmpx.h> -#define USER_PROCESS /* TODO */ -/* -XOPEN(400) -*/ diff --git a/src/utmpx/endutxent.c b/src/utmpx/endutxent.c deleted file mode 100644 index 2132beda..00000000 --- a/src/utmpx/endutxent.c +++ /dev/null @@ -1,14 +0,0 @@ -#if 0 - -#include <utmpx.h> - -void endutxent(void) -{ -} - -/* -XOPEN(400) -*/ - - -#endif diff --git a/src/utmpx/getutxent.c b/src/utmpx/getutxent.c deleted file mode 100644 index 10fbb35d..00000000 --- a/src/utmpx/getutxent.c +++ /dev/null @@ -1,16 +0,0 @@ -#if 0 - -#include <utmpx.h> -#include <stddef.h> - -struct utmpx * getutxent(void) -{ - return NULL; -} - -/* -XOPEN(400) -*/ - - -#endif diff --git a/src/utmpx/getutxid.c b/src/utmpx/getutxid.c deleted file mode 100644 index 7177931c..00000000 --- a/src/utmpx/getutxid.c +++ /dev/null @@ -1,16 +0,0 @@ -#if 0 - -#include <utmpx.h> -#include <stddef.h> - -struct utmpx * getutxid(const struct utmpx *id) -{ - return NULL; -} - -/* -XOPEN(400) -*/ - - -#endif diff --git a/src/utmpx/getutxline.c b/src/utmpx/getutxline.c deleted file mode 100644 index ef420f5c..00000000 --- a/src/utmpx/getutxline.c +++ /dev/null @@ -1,16 +0,0 @@ -#if 0 - -#include <utmpx.h> -#include <stddef.h> - -struct utmpx * getutxline(const struct utmpx *line) -{ - return NULL; -} - -/* -XOPEN(400) -*/ - - -#endif diff --git a/src/utmpx/pututxline.c b/src/utmpx/pututxline.c deleted file mode 100644 index 5dcf31d2..00000000 --- a/src/utmpx/pututxline.c +++ /dev/null @@ -1,16 +0,0 @@ -#if 0 - -#include <utmpx.h> -#include <stddef.h> - -struct utmpx * pututxline(const struct utmpx *utmpx) -{ - return NULL; -} - -/* -XOPEN(400) -*/ - - -#endif diff --git a/src/utmpx/setutxent.c b/src/utmpx/setutxent.c deleted file mode 100644 index 4908065b..00000000 --- a/src/utmpx/setutxent.c +++ /dev/null @@ -1,14 +0,0 @@ -#if 0 - -#include <utmpx.h> - -void setutxent(void) -{ -} - -/* -XOPEN(400) -*/ - - -#endif diff --git a/src/utmpx/struct_utmpx.h b/src/utmpx/struct_utmpx.h deleted file mode 100644 index 298a846e..00000000 --- a/src/utmpx/struct_utmpx.h +++ /dev/null @@ -1,14 +0,0 @@ -#include <utmpx.h> - -struct utmpx { - char ut_user[]; - char ut_id[]; - char ut_line[]; - pid_t ut_pid; - short ut_type; - struct timeval ut_tv; -}; - -/* -XOPEN(400) -*/ diff --git a/src/varargs/va_alist.h b/src/varargs/va_alist.h deleted file mode 100644 index 59f46f53..00000000 --- a/src/varargs/va_alist.h +++ /dev/null @@ -1,4 +0,0 @@ -#include <varargs.h> -/* -XOPEN(4,600) -*/ diff --git a/src/varargs/va_arg.h b/src/varargs/va_arg.h deleted file mode 100644 index 59f46f53..00000000 --- a/src/varargs/va_arg.h +++ /dev/null @@ -1,4 +0,0 @@ -#include <varargs.h> -/* -XOPEN(4,600) -*/ diff --git a/src/varargs/va_dcl.h b/src/varargs/va_dcl.h deleted file mode 100644 index 59f46f53..00000000 --- a/src/varargs/va_dcl.h +++ /dev/null @@ -1,4 +0,0 @@ -#include <varargs.h> -/* -XOPEN(4,600) -*/ diff --git a/src/varargs/va_end.h b/src/varargs/va_end.h deleted file mode 100644 index 59f46f53..00000000 --- a/src/varargs/va_end.h +++ /dev/null @@ -1,4 +0,0 @@ -#include <varargs.h> -/* -XOPEN(4,600) -*/ diff --git a/src/varargs/va_list.h b/src/varargs/va_list.h deleted file mode 100644 index 59f46f53..00000000 --- a/src/varargs/va_list.h +++ /dev/null @@ -1,4 +0,0 @@ -#include <varargs.h> -/* -XOPEN(4,600) -*/ diff --git a/src/varargs/va_start.h b/src/varargs/va_start.h deleted file mode 100644 index 59f46f53..00000000 --- a/src/varargs/va_start.h +++ /dev/null @@ -1,4 +0,0 @@ -#include <varargs.h> -/* -XOPEN(4,600) -*/ diff --git a/src/wordexp/WRDE_APPEND.h b/src/wordexp/WRDE_APPEND.h deleted file mode 100644 index 81c709c1..00000000 --- a/src/wordexp/WRDE_APPEND.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <wordexp.h> -#define WRDE_APPEND 1 -/* -POSIX(2) -*/ - diff --git a/src/wordexp/WRDE_BADCHAR.h b/src/wordexp/WRDE_BADCHAR.h deleted file mode 100644 index b91c845e..00000000 --- a/src/wordexp/WRDE_BADCHAR.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <wordexp.h> -#define WRDE_BADCHAR 1 -/* -POSIX(2) -*/ - diff --git a/src/wordexp/WRDE_BADVAL.h b/src/wordexp/WRDE_BADVAL.h deleted file mode 100644 index 706c17f0..00000000 --- a/src/wordexp/WRDE_BADVAL.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <wordexp.h> -#define WRDE_BADVAL 2 -/* -POSIX(2) -*/ - diff --git a/src/wordexp/WRDE_CMDSUB.h b/src/wordexp/WRDE_CMDSUB.h deleted file mode 100644 index 41c0be87..00000000 --- a/src/wordexp/WRDE_CMDSUB.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <wordexp.h> -#define WRDE_CMDSUB 3 -/* -POSIX(2) -*/ - diff --git a/src/wordexp/WRDE_DOOFFS.h b/src/wordexp/WRDE_DOOFFS.h deleted file mode 100644 index c74e162b..00000000 --- a/src/wordexp/WRDE_DOOFFS.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <wordexp.h> -#define WRDE_DOOFFS 2 -/* -POSIX(2) -*/ - diff --git a/src/wordexp/WRDE_NOCMD.h b/src/wordexp/WRDE_NOCMD.h deleted file mode 100644 index 729d9bae..00000000 --- a/src/wordexp/WRDE_NOCMD.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <wordexp.h> -#define WRDE_NOCMD 3 -/* -POSIX(2) -*/ - diff --git a/src/wordexp/WRDE_NOSPACE.h b/src/wordexp/WRDE_NOSPACE.h deleted file mode 100644 index c3edabf4..00000000 --- a/src/wordexp/WRDE_NOSPACE.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <wordexp.h> -#define WRDE_NOSPACE 4 -/* -POSIX(2) -*/ - diff --git a/src/wordexp/WRDE_NOSYS.h b/src/wordexp/WRDE_NOSYS.h deleted file mode 100644 index 03e0ba0c..00000000 --- a/src/wordexp/WRDE_NOSYS.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <wordexp.h> -#define WRDE_NOSYS -1 -/* -POSIX(2) -*/ - diff --git a/src/wordexp/WRDE_REUSE.h b/src/wordexp/WRDE_REUSE.h deleted file mode 100644 index 0552fad4..00000000 --- a/src/wordexp/WRDE_REUSE.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <wordexp.h> -#define WRDE_REUSE 4 -/* -POSIX(2) -*/ - diff --git a/src/wordexp/WRDE_SHOWERR.h b/src/wordexp/WRDE_SHOWERR.h deleted file mode 100644 index c40db1e4..00000000 --- a/src/wordexp/WRDE_SHOWERR.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <wordexp.h> -#define WRDE_SHOWERR 5 -/* -POSIX(2) -*/ - diff --git a/src/wordexp/WRDE_SYNTAX.h b/src/wordexp/WRDE_SYNTAX.h deleted file mode 100644 index af83c6b9..00000000 --- a/src/wordexp/WRDE_SYNTAX.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <wordexp.h> -#define WRDE_SYNTAX 5 -/* -POSIX(2) -*/ - diff --git a/src/wordexp/WRDE_UNDEF.h b/src/wordexp/WRDE_UNDEF.h deleted file mode 100644 index 1f533a5b..00000000 --- a/src/wordexp/WRDE_UNDEF.h +++ /dev/null @@ -1,6 +0,0 @@ -#include <wordexp.h> -#define WRDE_UNDEF 6 -/* -POSIX(2) -*/ - diff --git a/src/wordexp/wordexp.c b/src/wordexp/wordexp.c deleted file mode 100644 index 412449cb..00000000 --- a/src/wordexp/wordexp.c +++ /dev/null @@ -1,18 +0,0 @@ -#if 0 - -#include <wordexp.h> - -int wordexp(const char *restrict words, wordexp_t *restrict pwordexp, int flags) -{ - (void)words; - (void)pwordexp; - (void)flags; - return 0; -} - -/* -POSIX(2) -*/ - - -#endif diff --git a/src/wordexp/wordexp_t.h b/src/wordexp/wordexp_t.h deleted file mode 100644 index 1bf6eac9..00000000 --- a/src/wordexp/wordexp_t.h +++ /dev/null @@ -1,12 +0,0 @@ -#include <wordexp.h> - -typedef struct { - size_t we_wordc; - char ** we_wordv; - size_t we_offs; -} wordexp_t; - -/* -POSIX(2) -*/ - diff --git a/src/wordexp/wordfree.c b/src/wordexp/wordfree.c deleted file mode 100644 index b8dfc8fa..00000000 --- a/src/wordexp/wordfree.c +++ /dev/null @@ -1,16 +0,0 @@ -#if 0 - -#include <wordexp.h> -#include <stdlib.h> - -void wordfree(wordexp_t *pwordexp) -{ - free(pwordexp); -} - -/* -POSIX(2) -*/ - - -#endif |
