X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=platform%2Fexample%2Ffunctions%2F_PDCLIB%2Fopen.c;h=40d294f7de1150deabb11b2c601468ac330f58ee;hp=5feec6e828a89a3c8ccb0e2ff8c14492b2cdf22f;hb=f95a96d949a941d03a18cdacf4442656c7db9233;hpb=48eaeb5a970b950dfce14dddc183ec8762fdb53b diff --git a/platform/example/functions/_PDCLIB/open.c b/platform/example/functions/_PDCLIB/open.c index 5feec6e..40d294f 100644 --- a/platform/example/functions/_PDCLIB/open.c +++ b/platform/example/functions/_PDCLIB/open.c @@ -20,7 +20,7 @@ #include #include -_PDCLIB_fd_t _PDCLIB_open( char const * const filename, unsigned int mode ) +int _PDCLIB_open( char const * const filename, unsigned int mode ) { /* FIXME: THIS IS NOT TO BE USED OUT-OF-THE-BOX. It is a proof-of-concept implementation. E.g. a stream may only be fully @@ -78,7 +78,7 @@ int main( void ) /* This testdriver assumes POSIX, i.e. _PDCLIB_fd_t being int and being incremented by one on each successful open. */ - _PDCLIB_fd_t fh; + int fh; char buffer[ 10 ]; /* Trying to read non-existent file. */ TESTCASE( _PDCLIB_open( "testfile", _PDCLIB_FREAD ) == _PDCLIB_NOHANDLE );