]> pd.if.org Git - pdclib.old/blobdiff - platform/example/functions/_PDCLIB/_PDCLIB_open.c
Bring example platform up to date
[pdclib.old] / platform / example / functions / _PDCLIB / _PDCLIB_open.c
similarity index 71%
rename from platform/example/functions/_PDCLIB/open.c
rename to platform/example/functions/_PDCLIB/_PDCLIB_open.c
index 1d292f6e3c15892fa8e46eee4fc599994569ae8e..b7b64fec366bd2586d5ec6849637e309258c0eea 100644 (file)
@@ -1,38 +1,39 @@
-/* $Id$ */
-
-/* _PDCLIB_open( char const * const, int )
-
-   This file is part of the Public Domain C Library (PDCLib).
-   Permission is granted to use, modify, and / or redistribute at will.
-*/
-
-/* This is a stub implementation of open.
-*/
-
-#include <stdio.h>
-#include <errno.h>
-
-#ifndef REGTEST
-#include <_PDCLIB_glue.h>
-
-int _PDCLIB_open( char const * const filename, unsigned int mode )
-{
-    errno = ENOTSUP;
-    return 1;
-}
-
-#endif
-
-#ifdef TEST
-#include <_PDCLIB_test.h>
-
-#include <stdlib.h>
-#include <string.h>
-
-int main( void )
-{
-    return TEST_RESULTS;
-}
-
-#endif
-
+/* $Id$ */\r
+\r
+/* _PDCLIB_open( char const * const, int )\r
+\r
+   This file is part of the Public Domain C Library (PDCLib).\r
+   Permission is granted to use, modify, and / or redistribute at will.\r
+*/\r
+\r
+/* This is a stub implementation of open.\r
+*/\r
+\r
+#include <stdio.h>\r
+#include <errno.h>\r
+\r
+#ifndef REGTEST\r
+#include <_PDCLIB_glue.h>\r
+\r
+bool _PDCLIB_open( _PDCLIB_fd_t * pFd, const _PDCLIB_fileops_t ** pOps,\r
+                   char const * const filename, unsigned int mode )\r
+{\r
+    errno = ENOTSUP;\r
+    return false;\r
+}\r
+\r
+#endif\r
+\r
+#ifdef TEST\r
+#include <_PDCLIB_test.h>\r
+\r
+#include <stdlib.h>\r
+#include <string.h>\r
+\r
+int main( void )\r
+{\r
+    return TEST_RESULTS;\r
+}\r
+\r
+#endif\r
+\r