]> pd.if.org Git - pdclib/blob - platform/example/functions/_PDCLIB/_PDCLIB_close.c
_PDCLIB_* prefixing of filenames.
[pdclib] / platform / example / functions / _PDCLIB / _PDCLIB_close.c
1 /* _PDCLIB_close( _PDCLIB_fd_t )
2
3    This file is part of the Public Domain C Library (PDCLib).
4    Permission is granted to use, modify, and / or redistribute at will.
5 */
6
7 /* This is an example implementation of _PDCLIB_close() fit for use with POSIX
8    kernels.
9 */
10
11 #include <stdio.h>
12
13 #ifndef REGTEST
14
15 #include "_PDCLIB_glue.h"
16
17 extern int close( int fd );
18
19 int _PDCLIB_close( int fd )
20 {
21     return close( fd );
22 }
23
24 #endif
25
26 #ifdef TEST
27
28 #include "_PDCLIB_test.h"
29
30 int main( void )
31 {
32     /* No testdriver; tested in driver for _PDCLIB_open(). */
33     return TEST_RESULTS;
34 }
35
36 #endif