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