3 /* remove( const char * )
5 This file is part of the Public Domain C Library (PDCLib).
6 Permission is granted to use, modify, and / or redistribute at will.
9 /* This is an example implementation of remove() fit for use with POSIX kernels.
16 #include "/usr/include/errno.h"
18 extern int unlink( const char * pathname );
20 int remove( const char * pathname )
23 if ( ( rc = unlink( pathname ) ) == -1 )
27 /* These are the values possible on a Linux machine. Adapt the
28 values and their mapping to PDCLib errno values at will. (This
29 is an example implementation, so we keep it very simple.)
42 _PDCLIB_errno = _PDCLIB_EIO;
45 _PDCLIB_errno = _PDCLIB_EUNKNOWN;
55 #include <_PDCLIB_test.h>
59 /* Testing covered by ftell.c (and several others) */