]>
git.ipfire.org Git - thirdparty/bash.git/blob - portbash/stdio.sh
3 # test certain aspects of stdio
16 vfprintf(stdout, "abcde", args);
26 if ${CC} x.c
>/dev
/null
2>&1
28 echo '#define HAVE_VFPRINTF'
41 if ${CC} x.c
>/dev
/null
2>&1
43 echo '#define USE_VFPRINTF_EMULATION'
56 if ${CC} x.c
> /dev
/null
2>&1
59 echo '#define HAVE_SETLINEBUF'
62 # If this compiles, the system has setvbuf. If this segfaults while
63 # running, non-reversed systems get a seg violation
70 setvbuf(stdout, _IOLBF, (char *)0, BUFSIZ); /* reversed */
71 exit(0); /* non-reversed systems segv */
75 if ${CC} x.c
>/dev
/null
2>&1 ; then
76 echo '#define HAVE_SETVBUF'
81 echo '#define REVERSED_SETVBUF_ARGS'