Skip to content

Commit

Permalink
Disable building POSIX compatibility functions for handling directories
Browse files Browse the repository at this point in the history
  • Loading branch information
siteshwar authored and krader1961 committed Nov 2, 2017
1 parent be1c81f commit 55317d3
Show file tree
Hide file tree
Showing 11 changed files with 4 additions and 767 deletions.
5 changes: 2 additions & 3 deletions src/lib/libast/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ CCFLAGS = $(CC.SUFFIX.DEBUG:+$(CC.DEBUG)) $(CC.OPTIMIZE) $(CC.DLL)

IFFEFLAGS = -v -X ast -X std

.SOURCE : aso cdt comp dir disc hash man misc obsolete path port preroot \
.SOURCE : aso cdt comp disc hash man misc obsolete path port preroot \
regex sfio stdio string tm uwin vec vmalloc

.SOURCE.h : include comp std cdt vmalloc
Expand Down Expand Up @@ -65,7 +65,6 @@ $(ID) 5.4 :LIBRARY: README RELEASE \
swap.3 tab.3 tm.3 tmx.3 tok.3 touch.3 tv.3 vecargs.3 vmalloc.3 \
$(HEADERSRC) \
state.c intercept.c transition.c \
dirlib.h opendir.c readdir.c rewinddir.c seekdir.c telldir.c \
fgetcwd.c getcwd.c fastfind.c \
hashlib.h hashalloc.c hashdump.c hashfree.c hashlast.c \
hashlook.c hashscan.c hashsize.c hashview.c hashwalk.c \
Expand Down Expand Up @@ -128,7 +127,7 @@ $(ID) 5.4 :LIBRARY: README RELEASE \
fakelink.h readlink.c symlink.c \
getpgrp.c setpgid.c setsid.c waitpid.c \
creat64.c at.c \
atexit.c getdents.c getwd.c dup2.c errno.c \
atexit.c getwd.c dup2.c errno.c \
getpreroot.c ispreroot.c realopen.c setpreroot.c \
getgroups.c mount.c system.c iblocks.c \
modedata.c tmdata.c \
Expand Down
56 changes: 2 additions & 54 deletions src/lib/libast/Mamfile
Original file line number Diff line number Diff line change
Expand Up @@ -477,11 +477,6 @@ meta transition.o %.c>%.o comp/transition.c transition
prev comp/transition.c
exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -D_PACKAGE_ast -c comp/transition.c
done transition.o generated
make opendir.o
make dir/opendir.c
make dir/dirlib.h implicit
make dir/dirstd.h implicit
done dir/dirstd.h dontcare
make direntry.h implicit
done direntry.h dontcare virtual
make ast_param.h implicit
Expand Down Expand Up @@ -509,44 +504,6 @@ prev ast_fs.h implicit
prev include/ast_std.h implicit
done include/ls.h dontcare
prev include/ast.h implicit
done dir/dirlib.h
done dir/opendir.c
meta opendir.o %.c>%.o dir/opendir.c opendir
prev dir/opendir.c
exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Idir -Iinclude -Istd -D_PACKAGE_ast -c dir/opendir.c
done opendir.o generated
make readdir.o
make dir/readdir.c
prev dir/dirlib.h implicit
done dir/readdir.c
meta readdir.o %.c>%.o dir/readdir.c readdir
prev dir/readdir.c
exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Idir -Iinclude -Istd -D_PACKAGE_ast -c dir/readdir.c
done readdir.o generated
make rewinddir.o
make dir/rewinddir.c
prev dir/dirlib.h implicit
done dir/rewinddir.c
meta rewinddir.o %.c>%.o dir/rewinddir.c rewinddir
prev dir/rewinddir.c
exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Idir -Iinclude -Istd -D_PACKAGE_ast -c dir/rewinddir.c
done rewinddir.o generated
make seekdir.o
make dir/seekdir.c
prev dir/dirlib.h implicit
done dir/seekdir.c
meta seekdir.o %.c>%.o dir/seekdir.c seekdir
prev dir/seekdir.c
exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Idir -Iinclude -Istd -D_PACKAGE_ast -c dir/seekdir.c
done seekdir.o generated
make telldir.o
make dir/telldir.c
prev dir/dirlib.h implicit
done dir/telldir.c
meta telldir.o %.c>%.o dir/telldir.c telldir
prev dir/telldir.c
exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Idir -Iinclude -Istd -D_PACKAGE_ast -c dir/telldir.c
done telldir.o generated
make fgetcwd.o
make misc/fgetcwd.c
make include/fs3d.h implicit
Expand All @@ -555,7 +512,6 @@ done include/fs3d.h dontcare
prev include/error.h implicit
make include/ast_dir.h implicit
prev std/dirent.h implicit
prev dir/dirlib.h implicit
prev ast_lib.h implicit
done include/ast_dir.h dontcare
prev include/ast.h implicit
Expand Down Expand Up @@ -3393,14 +3349,6 @@ meta atexit.o %.c>%.o comp/atexit.c atexit
prev comp/atexit.c
exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -D_PACKAGE_ast -c comp/atexit.c
done atexit.o generated
make getdents.o
make dir/getdents.c
prev dir/dirlib.h implicit
done dir/getdents.c
meta getdents.o %.c>%.o dir/getdents.c getdents
prev dir/getdents.c
exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Idir -Iinclude -Istd -D_PACKAGE_ast -c dir/getdents.c
done getdents.o generated
make getwd.o
make comp/getwd.c
prev include/ast.h implicit
Expand Down Expand Up @@ -6309,10 +6257,10 @@ meta spawn.o %.c>%.o obsolete/spawn.c spawn
prev obsolete/spawn.c
exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -D_PACKAGE_ast -c obsolete/spawn.c
done spawn.o generated
exec - ${AR} rc libast.a state.o intercept.o transition.o opendir.o readdir.o rewinddir.o seekdir.o telldir.o fgetcwd.o getcwd.o fastfind.o hashalloc.o hashdump.o hashfree.o hashlast.o hashlook.o hashscan.o hashsize.o hashview.o hashwalk.o memhash.o memsum.o strhash.o strkey.o strsum.o stracmp.o strnacmp.o ccmap.o ccmapid.o ccnative.o
exec - ${AR} rc libast.a state.o intercept.o transition.o fgetcwd.o getcwd.o fastfind.o hashalloc.o hashdump.o hashfree.o hashlast.o hashlook.o hashscan.o hashsize.o hashview.o hashwalk.o memhash.o memsum.o strhash.o strkey.o strsum.o stracmp.o strnacmp.o ccmap.o ccmapid.o ccnative.o
exec - ${AR} rc libast.a chresc.o chrtoi.o streval.o strexpr.o strmatch.o modei.o modex.o strmode.o stpcpy.o stpncpy.o strlcat.o strlcpy.o strcopy.o strncopy.o strlook.o strsearch.o strpsearch.o stresc.o stropt.o strtape.o strpcmp.o strnpcmp.o strvcmp.o strnvcmp.o tok.o tokline.o tokscan.o pathaccess.o pathcat.o pathcanon.o pathcheck.o pathopen.o pathpath.o pathexists.o pathfind.o pathkey.o pathprobe.o pathrepl.o pathnative.o pathposix.o pathtemp.o pathtmp.o pathstat.o pathgetlink.o pathsetlink.o pathbin.o pathshell.o pathcd.o pathprog.o fs3d.o ftwalk.o ftwflags.o fts.o astintercept.o conformance.o getenv.o setenviron.o optget.o optjoin.o optesc.o optctx.o strsort.o struniq.o magic.o mime.o mimetype.o signal.o sigflag.o systrace.o error.o errorf.o errormsg.o errorx.o localeconv.o setlocale.o translate.o catopen.o iconv.o lc.o lctab.o mc.o base64.o qp.o recfmt.o recstr.o reclen.o fmtrec.o fmtbase.o fmtbuf.o fmtclock.o fmtdev.o fmtelapsed.o fmterror.o fmtesc.o fmtfmt.o fmtfs.o fmtident.o fmtint.o fmtip4.o fmtip6.o fmtls.o
exec - ${AR} rc libast.a fmtmatch.o fmtmode.o fmtnum.o fmtperm.o fmtre.o fmttime.o fmtuid.o fmtgid.o fmtsignal.o fmtscale.o fmttmx.o fmttv.o fmtversion.o strelapsed.o strperm.o struid.o strgid.o strtoip4.o strtoip6.o stack.o stk.o swapget.o swapmem.o swapop.o swapput.o sigdata.o sigcrit.o sigunblock.o procopen.o procclose.o procrun.o procfree.o tmdate.o tmequiv.o tmfix.o tmfmt.o tmform.o tmgoff.o tminit.o tmleap.o tmlex.o tmlocale.o tmmake.o tmpoff.o tmscan.o tmsleep.o tmtime.o tmtype.o tmweek.o tmword.o tmzone.o tmxdate.o tmxduration.o tmxfmt.o tmxgettime.o tmxleap.o tmxmake.o tmxscan.o tmxsettime.o tmxsleep.o tmxtime.o tmxtouch.o tvcmp.o tvgettime.o tvsettime.o tvsleep.o tvtouch.o cmdarg.o vecargs.o vecfile.o vecfree.o vecload.o vecstring.o univdata.o touch.o mnt.o debug.o memccpy.o memchr.o memcmp.o memcpy.o memdup.o memmove.o memset.o mkdir.o mkfifo.o mknod.o rmdir.o remove.o rename.o link.o unlink.o strdup.o strchr.o strrchr.o strstr.o strtod.o strtold.o strtol.o strtoll.o strtoul.o
exec - ${AR} rc libast.a strtoull.o strton.o strtonll.o strntod.o strntold.o strnton.o strntonll.o strntol.o strntoll.o strntoul.o strntoull.o strcasecmp.o strncasecmp.o strerror.o mktemp.o tmpnam.o fsync.o execlp.o execve.o execvp.o execvpe.o spawnveg.o spawnvex.o qsort.o qsort_r.o vfork.o killpg.o hsearch.o tsearch.o getlogin.o putenv.o setenv.o unsetenv.o lstat.o statvfs.o eaccess.o gross.o omitted.o readlink.o symlink.o getpgrp.o setpgid.o setsid.o waitpid.o creat64.o at.o atexit.o getdents.o getwd.o dup2.o errno.o getpreroot.o ispreroot.o realopen.o setpreroot.o getgroups.o mount.o system.o iblocks.o modedata.o tmdata.o memfatal.o sfkeyprintf.o sfdcdio.o sfdcdos.o sfdcfilter.o sfdcseekable.o sfdcslow.o sfdcsubstr.o sfdctee.o sfdcunion.o sfdcmore.o sfdcprefix.o codeset.o wc.o utf32toutf8.o utf8toutf32.o wcstoutf32s.o utf32stowcs.o basename.o closelog.o dirname.o fmtmsglib.o fnmatch.o ftw.o getdate.o getsubopt.o glob.o nftw.o openlog.o re_comp.o resolvepath.o realpath.o regcmp.o regexp.o setlogmask.o strftime.o strptime.o swab.o syslog.o tempnam.o
exec - ${AR} rc libast.a strtoull.o strton.o strtonll.o strntod.o strntold.o strnton.o strntonll.o strntol.o strntoll.o strntoul.o strntoull.o strcasecmp.o strncasecmp.o strerror.o mktemp.o tmpnam.o fsync.o execlp.o execve.o execvp.o execvpe.o spawnveg.o spawnvex.o qsort.o qsort_r.o vfork.o killpg.o hsearch.o tsearch.o getlogin.o putenv.o setenv.o unsetenv.o lstat.o statvfs.o eaccess.o gross.o omitted.o readlink.o symlink.o getpgrp.o setpgid.o setsid.o waitpid.o creat64.o at.o atexit.o getwd.o dup2.o errno.o getpreroot.o ispreroot.o realopen.o setpreroot.o getgroups.o mount.o system.o iblocks.o modedata.o tmdata.o memfatal.o sfkeyprintf.o sfdcdio.o sfdcdos.o sfdcfilter.o sfdcseekable.o sfdcslow.o sfdcsubstr.o sfdctee.o sfdcunion.o sfdcmore.o sfdcprefix.o codeset.o wc.o utf32toutf8.o utf8toutf32.o wcstoutf32s.o utf32stowcs.o basename.o closelog.o dirname.o fmtmsglib.o fnmatch.o ftw.o getdate.o getsubopt.o glob.o nftw.o openlog.o re_comp.o resolvepath.o realpath.o regcmp.o regexp.o setlogmask.o strftime.o strptime.o swab.o syslog.o tempnam.o
exec - ${AR} rc libast.a wordexp.o mktime.o regalloc.o regclass.o regcoll.o regcomp.o regcache.o regdecomp.o regerror.o regexec.o regfatal.o reginit.o regnexec.o regsubcomp.o regsubexec.o regsub.o regrecord.o regrexec.o regstat.o dtclose.o dtdisc.o dthash.o dtlist.o dtmethod.o dtopen.o dtrehash.o dtstat.o dtstrhash.o dttree.o dtuser.o dtview.o dtwalk.o dtnew.o dtcomp.o sfclose.o sfclrlock.o sfdisc.o sfdlen.o sfexcept.o sfgetl.o sfgetu.o sfcvt.o sfecvt.o sffcvt.o sfextern.o sffilbuf.o sfflsbuf.o sfprints.o sfgetd.o sfgetr.o sfllen.o sfmode.o sfmove.o sfnew.o sfpkrd.o sfnotify.o sfnputc.o sfopen.o sfpeek.o sfpoll.o sfpool.o sfpopen.o sfprintf.o sfputd.o sfputl.o sfputr.o sfputu.o sfrd.o sfread.o sfreserve.o sfscanf.o sfseek.o sfset.o sfsetbuf.o sfsetfd.o sfsize.o sfsk.o sfstack.o sfstrtod.o sfsync.o sfswap.o sftable.o sftell.o sftmp.o sfungetc.o sfvprintf.o sfvscanf.o sfwr.o sfwrite.o sfpurge.o sfraise.o sfwalk.o sfgetm.o sfmutex.o sfputm.o sfresize.o sfgetwc.o sfputwc.o _sfclrerr.o _sfeof.o _sferror.o
exec - ${AR} rc libast.a _sffileno.o _sfopen.o _sfstacked.o _sfvalue.o _sfgetc.o _sfgetl.o _sfgetl2.o _sfgetu.o _sfgetu2.o _sfdlen.o _sfllen.o _sfslen.o _sfulen.o _sfputc.o _sfputd.o _sfputl.o _sfputm.o _sfputu.o clearerr.o fclose.o fdopen.o feof.o ferror.o fflush.o fgetc.o fgetpos.o fgets.o fileno.o fopen.o fprintf.o fpurge.o fputc.o fputs.o fread.o freopen.o fscanf.o fseek.o fseeko.o fsetpos.o ftell.o ftello.o fwrite.o flockfile.o ftrylockfile.o funlockfile.o getc.o getchar.o getw.o pclose.o popen.o printf.o putc.o putchar.o puts.o putw.o rewind.o scanf.o setbuf.o setbuffer.o setlinebuf.o setvbuf.o snprintf.o sprintf.o sscanf.o asprintf.o vasprintf.o tmpfile.o ungetc.o vfprintf.o vfscanf.o vprintf.o vscanf.o vsnprintf.o vsprintf.o vsscanf.o _doprnt.o _doscan.o _filbuf.o _flsbuf.o _stdfun.o _stdopen.o _stdprintf.o _stdscanf.o _stdsprnt.o _stdvbuf.o _stdvsnprnt.o _stdvsprnt.o _stdvsscn.o fgetwc.o fwprintf.o putwchar.o vfwscanf.o wprintf.o fgetws.o fwscanf.o swprintf.o vswprintf.o wscanf.o fputwc.o getwc.o swscanf.o
exec - ${AR} rc libast.a vswscanf.o fputws.o getwchar.o ungetwc.o vwprintf.o fwide.o putwc.o vfwprintf.o vwscanf.o stdio_c99.o fcloseall.o fmemopen.o getdelim.o getline.o frexp.o frexpl.o astcopy.o astconf.o astdynamic.o astlicense.o astquery.o astwinsize.o conftab.o aststatic.o getopt.o getoptl.o aso.o asoactivecpu.o asolock.o asorelax.o asothreadid.o asoyield.o malloc.o vmbest.o vmclear.o vmclose.o vmdcderive.o vmdcshare.o vmdcsystem.o vmdebug.o vmdisc.o vmexit.o vmgetmem.o vmlast.o vmmaddress.o vmopen.o vmpool.o vmsegment.o vmset.o vmstat.o vmstrdup.o vmtrace.o vmuserdata.o a64l.o acosh.o asinh.o atanh.o cbrt.o crypt.o erf.o err.o exp.o exp__E.o expm1.o gamma.o getpass.o lgamma.o log.o log1p.o log__L.o rand48.o random.o rcmd.o rint.o support.o sfstrtmp.o spawn.o
Expand Down
174 changes: 0 additions & 174 deletions src/lib/libast/dir/dirlib.h

This file was deleted.

63 changes: 0 additions & 63 deletions src/lib/libast/dir/dirstd.h

This file was deleted.

0 comments on commit 55317d3

Please sign in to comment.