--- /dev/null
+SUBDIR= chflags \
+ chmod \
+ chown \
+ cksum \
+ compress \
+ cp \
+ dd \
+ df \
+ du \
+ gzip \
+ install \
+ ipcrm \
+ ipcs \
+ ln \
+ ls \
+ mkdir \
+ mkfifo \
+ mknod \
+ mtree \
+ mv \
+ pathchk \
+ pax \
+ rm \
+ rmdir \
+ rmt \
+ shar \
+ stat \
+ touch
+
+.include <bsd.subdir.mk>
--- /dev/null
+PROG= chflags
+
+.include <bsd.prog.mk>
--- /dev/null
+PROG= chmod
+SRCS= chmod.c \
+ chmod_acl.c
+
+.include <bsd.prog.mk>
--- /dev/null
+PROG= chown
+MAN= chown.8 chgrp.1
+
+BINDIR=/usr/sbin
+
+LINKS= ${BINDIR}/chown /usr/bin/chgrp
+
+.include <bsd.prog.mk>
--- /dev/null
+PROG= cksum
+MAN= cksum.1 sum.1
+SRCS= cksum.c \
+ crc.c \
+ crc32.c \
+ print.c \
+ sum1.c \
+ sum2.c
+
+.include <bsd.prog.mk>
--- /dev/null
+PROG= compress
+MAN= compress.1 uncompress.1 zopen.3
+SRCS= compress.c zopen.c
+SCRIPTS= zcat.sh
+
+.include <bsd.prog.mk>
--- /dev/null
+PROG= cp
+SRCS= cp.c utils.c
+
+.include <bsd.prog.mk>
--- /dev/null
+PROG= dd
+SRCS= args.c conv_tab.c conv.c dd.c misc.c position.c
+
+.include <bsd.prog.mk>
--- /dev/null
+PROG= df
+SRCS= df.c vfslist.c
+
+LDADD=-lutil
+
+.include <bsd.prog.mk>
--- /dev/null
+PROG= du
+
+.include <bsd.prog.mk>
--- /dev/null
+PROG= gzip
+SRCS= futimens.c \
+ gzip.c
+MAN= gzexe.1 gzip.1 zdiff.1 zforce.1 zmore.1 znew.1
+SCRIPTS= gzexe \
+ gzip \
+ zdiff \
+ zforce \
+ zmore \
+ znew
+
+CFLAGS+=-DGZIP_APPLE_VERSION=\"321.40.3\"
+LDADD=-llzma -lz -lbz2
+
+.include <bsd.prog.mk>
--- /dev/null
+PROG= install
+SRCS= xinstall.c
+
+.include <bsd.prog.mk>
--- /dev/null
+PROG= ipcrm
+
+.include <bsd.prog.mk>
--- /dev/null
+PROG= ipcs
+
+.include <bsd.prog.mk>
--- /dev/null
+PROG= ln
+MAN= link.1 ln.1 symlink.7
+LINKS= ${BINDIR}/ln ${BINDIR}/link
+
+.include <bsd.prog.mk>
--- /dev/null
+PROG= ls
+SRCS= cmp.c ls.c print.c util.c
+
+LDADD=-lutil
+
+.include <bsd.prog.mk>
#include <sys/param.h>
#include <get_compat.h>
#include <sys/sysctl.h>
-#include <System/sys/fsctl.h>
#else
#define COMPAT_MODE(a,b) (1)
#endif /* __APPLE__ */
--- /dev/null
+PROG= mkdir
+
+.include <bsd.prog.mk>
--- /dev/null
+PROG= mkfifo
+
+.include <bsd.prog.mk>
--- /dev/null
+PROG= mknod
+MAN= mknod.8
+
+.include <bsd.prog.mk>
--- /dev/null
+PROG= mtree
+MAN= mtree.8
+SRCS= commoncrypto.c \
+ compare.c \
+ create.c \
+ excludes.c \
+ metrics.c \
+ misc.c \
+ mtree.c \
+ spec.c \
+ specspec.c \
+ verify.c \
+ crc.c
+
+.PATH: ../cksum
+
+LDADD=-framework CoreFoundation
+
+.include <bsd.prog.mk>
#include <unistd.h>
#include <sys/xattr.h>
#include <sys/mount.h>
-#include <apfs/apfs_fsctl.h>
+//#include <apfs/apfs_fsctl.h>
#include "commoncrypto.h"
#include "extern.h"
nextName += strlen(name) + 1;
}
+#ifdef APFSIOC_XDSTREAM_OBJ_ID
for (int i = 0; i < xattrIndex; i++) {
char *name = xattrs[i];
// System volume has stream based xattrs only in form of resource forks
}
}
}
+#endif
ai->xdstream_priv_id = xd_obj_id;
// insert a dummy value as digest is not used in presence of mflag
--- /dev/null
+PROG= mv
+
+.include <bsd.prog.mk>
--- /dev/null
+PROG= pathchk
+
+.include <bsd.prog.mk>
--- /dev/null
+PROG= pax
+MAN= cpio.1 pax.1
+SRCS= ar_io.c \
+ ar_subs.c \
+ buf_subs.c \
+ cache.c \
+ cpio.c \
+ file_subs.c \
+ ftree.c \
+ gen_subs.c \
+ getoldopt.c \
+ options.c \
+ pat_rep.c \
+ pax_format.c \
+ pax.c \
+ sel_subs.c \
+ tables.c \
+ tar.c \
+ tty_subs.c
+
+.include <bsd.prog.mk>
int bad_opt(void);
int pax_format_opt_add(char *);
int pax_opt(void);
-char *chdname;
+extern char *chdname;
/*
* pat_rep.c
#include "tar.h"
#include "extern.h"
+char *chdname;
+
/*
* Routines which handle command line options
*/
--- /dev/null
+PROG= rm
+MAN= rm.1 unlink.1
+
+.include <bsd.prog.mk>
--- /dev/null
+PROG= rmdir
+
+.include <bsd.prog.mk>
--- /dev/null
+PROG= rmt
+MAN= rmt.8
+
+.include <bsd.prog.mk>
--- /dev/null
+SCRIPTS= shar.sh
+MAN= shar.1
+
+.include <bsd.prog.mk>
--- /dev/null
+PROG= stat
+MAN= readlink.1 stat.1
+
+.include <bsd.prog.mk>
--- /dev/null
+PROG= touch
+
+.include <bsd.prog.mk>