X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=platform%2Fexample%2Ffunctions%2Fstdio%2Ftmpfile.c;h=3f384e7d6ef44431ebbba5a473feb764e19cafe4;hb=4b1f856ea2b21f30b6af8d4cca7129ebc84d3d6f;hp=255a35eb75721d58d352cd1279a1dd7f3fdda622;hpb=393020b6e48719d27699dea6b29e53025bbd5123;p=pdclib diff --git a/platform/example/functions/stdio/tmpfile.c b/platform/example/functions/stdio/tmpfile.c index 255a35e..3f384e7 100644 --- a/platform/example/functions/stdio/tmpfile.c +++ b/platform/example/functions/stdio/tmpfile.c @@ -10,9 +10,16 @@ #ifndef REGTEST +#include +#include <_PDCLIB_glue.h> + +extern struct _PDCLIB_file_t * _PDCLIB_filelist; + +/* This is a stub implementation of tmpfile +*/ struct _PDCLIB_file_t * tmpfile( void ) { - /* TODO: Implement */ + errno = ENOTSUP; return NULL; } @@ -20,11 +27,12 @@ struct _PDCLIB_file_t * tmpfile( void ) #ifdef TEST #include <_PDCLIB_test.h> +#include -int main() +int main( void ) { - TESTCASE( NO_TESTDRIVER ); return TEST_RESULTS; } #endif +