tail is not largefile aware
cmd - userland programs
I just tried to tail a 14G file using /bin/tail, and received:
tail: foo: Value too large for defined data type
It looks like tail lost it's largefile smarts at some point?
Updated by Rich Lowe about 10 years ago
diff --git a/usr/src/cmd/tail/Makefile b/usr/src/cmd/tail/Makefile index d1e2eda..293920c 100644 --- a/usr/src/cmd/tail/Makefile +++ b/usr/src/cmd/tail/Makefile @@ -23,7 +23,7 @@ SRCS= $(OBJS:%.o=%.c) include ../Makefile.cmd CLOBBERFILES= $(PROG) - +CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 C99MODE= -xc99=%all C99LMODE= -Xc99=%all
Should be sufficient, but I've barely tested it.