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 /* See the comments on implementation-defined errno values in
41 _PDCLIB_errno = _PDCLIB_ERROR;
44 /* This should be something like EUNKNOWN. */
45 _PDCLIB_errno = _PDCLIB_ERROR;
55 #include <_PDCLIB_test.h>
59 /* Testing covered by ftell.c (and several others) */