From e596091daf51443248a0cb427832be62552eaf27 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Mon, 28 Oct 2013 19:50:41 +0100 Subject: Reorganization. Move preseed-related stuff in ./preseed/, and vm-related stuff in ./virtualenv/. --- src/fripost-partman-udeb/lib/stdbuf.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/fripost-partman-udeb/lib/stdbuf.c (limited to 'src/fripost-partman-udeb/lib') diff --git a/src/fripost-partman-udeb/lib/stdbuf.c b/src/fripost-partman-udeb/lib/stdbuf.c new file mode 100644 index 0000000..13e6c06 --- /dev/null +++ b/src/fripost-partman-udeb/lib/stdbuf.c @@ -0,0 +1,11 @@ +/* All credits to https://lists.gnu.org/archive/html/bug-coreutils/2008-11/msg00138.html + * Cf. also http://www.pixelbeat.org/programming/stdio_buffering/ + * http://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=blob;f=src/stdbuf.c;h=2500c300147f30aa5d2d99fd29b5865637a11290;hb=HEAD + */ + +#include + +__attribute__ ((constructor)) void +cah9mion4ocim6ip () { + setvbuf (stdout, NULL, _IOLBF, 0); +} -- cgit v1.2.3