X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstdio%2Ffdopen.c;h=98a849fec7988672b9c6c27fbac169f6ec9bdfbb;hb=3c60f40d564ec78f1403eff277095640aed3f01c;hp=7e85165a2aa4bacedcf0b7c9e52d283e968ca55f;hpb=7308b342633ce6b61ec9b33e06e630622058ebcf;p=libc-test diff --git a/src/stdio/fdopen.c b/src/stdio/fdopen.c index 7e85165..98a849f 100644 --- a/src/stdio/fdopen.c +++ b/src/stdio/fdopen.c @@ -1,10 +1,12 @@ +#ifndef _XOPEN_SOURCE #define _XOPEN_SOURCE 700 -#include "test.h" -#include -#include -#include +#endif #include +#include +#include #include +#include +#include "test.h" #define TEST(c) do { \ errno = 0; \ @@ -12,7 +14,7 @@ error("%s failed (errno = %d)\n", #c, errno); \ } while(0) -void test_fdopen(void) +int main(void) { char tmp[] = "/tmp/testsuite-XXXXXX"; char foo[6]; @@ -32,4 +34,5 @@ void test_fdopen(void) } if (fd > 2) TEST(unlink(tmp) != -1); + return test_status; }