stdbuf: A new program to run a command with modified stdio buffering
authorPádraig Brady <P@draigBrady.com>
Wed, 17 Dec 2008 11:30:03 +0000 (11:30 +0000)
committerPádraig Brady <P@draigBrady.com>
Wed, 17 Jun 2009 13:54:29 +0000 (14:54 +0100)
commita5a2a406f8d65f0e852d9ed7fbfb630c6b81dd7f
treed6ec40e289bbe748eb05f5e6cb9e8d376d79f446
parentff6fe3d17d9294f2494b4535a320bc9bfc86cc49
stdbuf: A new program to run a command with modified stdio buffering

* AUTHORS: Register as the author.
* NEWS: Mention this change.
* README: Add stdbuf command to list.
* configure.ac: Only enable on ELF systems with GCC.
* cfg.mk (sc_system_h_headers): Use VC_LIST_EXCEPT rather than
VC_LIST, so we can add an exception, if needed.
* .x-sc_system_h_headers: New file.  Exempt libstdbuf.c.
* Makefile.am (syntax_check_exceptions): Add .x-sc_system_h_headers.
* doc/coreutils.texi (stdbuf invocation): Add stdbuf info.
* man/.gitignore: Ignore generated manpage.
* src/.gitignore: Ignore stdbuf and libstdbuf.so binaries.
* man/Makefile.am (stdbuf.1): Add dependency.
* man/stdbuf.x: New file with example usage.
* po/POTFILES.in: Reference new command and shared library sources.
* src/Makefile.am (build_if_possible__progs): Add stdbuf and libstdbuf,
(pkglib_PROGRAMS): Reference optional shared lib,
(libstdbuf_so_LDADD): Ensure we don't link with non PIC libcoreutils.a.
(libstdbuf_so_LDFLAGS): Add -shared GCC option,
(libstdbuf_so_CFLAGS): Add -fPIC GCC option.
(check-README): Exclude libstbuf.
(check-AUTHORS): ditto.
(sc_tight_scope): Exclude functions starting with __.
* src/libstdbuf.c: The LD_PRELOAD shared library to control buffering.
* src/stdbuf.c: New file to setup env variables before execing command.
* tests/Makefile.am: Reference new test file.
* tests/misc/help-version: Set expected exit codes.
* tests/misc/invalid-opt: ditto.
* tests/misc/stdbuf: Add 9 tests.
20 files changed:
.x-sc_system_h_headers [new file with mode: 0644]
AUTHORS
Makefile.am
NEWS
README
cfg.mk
configure.ac
doc/coreutils.texi
man/.gitignore
man/Makefile.am
man/stdbuf.x [new file with mode: 0644]
po/POTFILES.in
src/.gitignore
src/Makefile.am
src/libstdbuf.c [new file with mode: 0644]
src/stdbuf.c [new file with mode: 0644]
tests/Makefile.am
tests/misc/help-version
tests/misc/invalid-opt
tests/misc/stdbuf [new file with mode: 0755]