]> pd.if.org Git - pdclib.old/blob - platform/example/functions/_PDCLIB/close.c
Enable per-thread locale support to be compiled out
[pdclib.old] / platform / example / functions / _PDCLIB / close.c
1 /* $Id$ */
2
3 /* _PDCLIB_close( _PDCLIB_fd_t fd )
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 example implementation of _PDCLIB_close()
10 */
11
12 #include <stdio.h>
13
14 #ifndef REGTEST
15 #include <_PDCLIB_glue.h>
16 #include <errno.h>
17
18 int _PDCLIB_close( int fd )
19 {
20     errno = ENOTSUP;
21     return 1;
22 }
23
24 #endif
25
26 #ifdef TEST
27 #include <_PDCLIB_test.h>
28
29 int main( void )
30 {
31     /* No testdriver; tested in driver for _PDCLIB_open(). */
32     return TEST_RESULTS;
33 }
34
35 #endif