aboutsummaryrefslogtreecommitdiff
path: root/lib/lib.h
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2021-07-04 11:57:40 -0500
committerRob Landley <rob@landley.net>2021-07-04 11:57:40 -0500
commitba242e08ee83910596420f42830fd3d6fc1868d0 (patch)
treeb9b45e99216ea7a716be25a15f3405e5a82b9008 /lib/lib.h
parent933f238bd1dfd8931fa3cc60f61aea19802daefd (diff)
downloadtoybox-ba242e08ee83910596420f42830fd3d6fc1868d0.tar.gz
Teach tail -F to work on file that doesn't initially exist (needed
new lib/ flag), allow -s to be fraction of a second, inline (anonymous) struct so globals.h isn't using an incomplete type, blank line in GLOBALS() between option args and other variables, collate tail_continue() to one function, add test.
Diffstat (limited to 'lib/lib.h')
-rw-r--r--lib/lib.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/lib.h b/lib/lib.h
index cf1920f9..7484eb8f 100644
--- a/lib/lib.h
+++ b/lib/lib.h
@@ -112,7 +112,8 @@ 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
// plenty of headroom.
-#define WARN_ONLY (1<<31)
+#define WARN_ONLY (1<<31) // don't exit, just warn
+#define LOOPFILES_ANYWAY (1<<30) // call function with fd -1
// xwrap.c
void xstrncpy(char *dest, char *src, size_t size);