Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 400106 Details for
Bug 544118
sys-libs/uclibc-0.9.33.2-r14: setbuf(stdout,NULL) is not respected after a printf()
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
poc to test where stdout/stderr go
test-stdout-stderr.c (text/x-csrc), 417 bytes, created by
Anthony Basile
on 2015-03-30 00:20:53 UTC
(
hide
)
Description:
poc to test where stdout/stderr go
Filename:
MIME Type:
Creator:
Anthony Basile
Created:
2015-03-30 00:20:53 UTC
Size:
417 bytes
patch
obsolete
>#include <stdio.h> >#include <stdlib.h> >#include <unistd.h> > >int main() { >#ifndef BUF > fflush(stdout); > fflush(stderr); > setbuf(stdout, NULL); > setbuf(stderr, NULL); >#endif > fprintf(stderr,"stderr 1\n"); > printf("stdout 1\n"); > fputs("stderr 2\n", stderr); > fputs("stdout 2\n", stdout); > fprintf(stderr,"stderr 3\n"); > printf("stdout 3\n"); >#ifdef FLUSH > exit(0); >#else > _exit(0); >#endif >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 544118
:
399474
|
399476
|
399478
|
399480
| 400106 |
400108