]> pd.if.org Git - pdclib/blob - platform/example/functions/_PDCLIB/_PDCLIB_open.c
Bring example platform up to date
[pdclib] / platform / example / functions / _PDCLIB / _PDCLIB_open.c
1 /* $Id$ */\r
2 \r
3 /* _PDCLIB_open( char const * const, int )\r
4 \r
5    This file is part of the Public Domain C Library (PDCLib).\r
6    Permission is granted to use, modify, and / or redistribute at will.\r
7 */\r
8 \r
9 /* This is a stub implementation of open.\r
10 */\r
11 \r
12 #include <stdio.h>\r
13 #include <errno.h>\r
14 \r
15 #ifndef REGTEST\r
16 #include <_PDCLIB_glue.h>\r
17 \r
18 bool _PDCLIB_open( _PDCLIB_fd_t * pFd, const _PDCLIB_fileops_t ** pOps,\r
19                    char const * const filename, unsigned int mode )\r
20 {\r
21     errno = ENOTSUP;\r
22     return false;\r
23 }\r
24 \r
25 #endif\r
26 \r
27 #ifdef TEST\r
28 #include <_PDCLIB_test.h>\r
29 \r
30 #include <stdlib.h>\r
31 #include <string.h>\r
32 \r
33 int main( void )\r
34 {\r
35     return TEST_RESULTS;\r
36 }\r
37 \r
38 #endif\r
39 \r