From a2cd46a5f342553c05ae6ef4e7a73069df0e1be1 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Fri, 3 Jan 2020 03:10:17 -0600 Subject: Add MAYFORK to "help", teach it to behave differently when called as a builtin, and add -u. --- lib/lib.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/lib.h') diff --git a/lib/lib.h b/lib/lib.h index 5ec648c8..398d261d 100644 --- a/lib/lib.h +++ b/lib/lib.h @@ -55,6 +55,7 @@ struct num_cache *add_num_cache(struct num_cache **cache, long long num, // args.c #define FLAGS_NODASH (1LL<<63) +#define FLAGS_BUILTIN (1LL<<62) void get_optflags(void); // dirtree.c @@ -107,7 +108,7 @@ struct dirtree *dirtree_read(char *path, int (*callback)(struct dirtree *node)); // help.c -void show_help(FILE *out); +void show_help(FILE *out, int full); // Tell xopen and friends to print warnings but return -1 as necessary // The largest O_BLAH flag so far is arch/alpha's O_PATH at 0x800000 so -- cgit v1.2.3