aboutsummaryrefslogtreecommitdiffstats
path: root/src/fripost-partman-udeb/lib/stdbuf.c
blob: 13e6c063d20389028f21e3eca7d710c01502f857 (plain)
1
2
3
4
5
6
7
8
9
10
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 <stdio.h>

__attribute__ ((constructor)) void
cah9mion4ocim6ip () {
    setvbuf (stdout, NULL, _IOLBF, 0);
}