X-Git-Url: https://pd.if.org/git/?p=pdclib.old;a=blobdiff_plain;f=platform%2Fgandr%2Ffunctions%2Fstdio%2Fremove.c;fp=platform%2Fgandr%2Ffunctions%2Fstdio%2Fremove.c;h=0c4f050f29b477598d87612f52af18a3a6d08ccd;hp=0000000000000000000000000000000000000000;hb=4ee48c2e350472aa6832594409bbdcf87c0ade54;hpb=ad5b4430336998c5117621106beb00e3375d1d55 diff --git a/platform/gandr/functions/stdio/remove.c b/platform/gandr/functions/stdio/remove.c new file mode 100644 index 0000000..0c4f050 --- /dev/null +++ b/platform/gandr/functions/stdio/remove.c @@ -0,0 +1,39 @@ +/* $Id$ */ + +/* remove( const char * ) + + This file is part of the Public Domain C Library (PDCLib). + Permission is granted to use, modify, and / or redistribute at will. +*/ + +/* This is an example implementation of remove() fit for use with POSIX kernels. +*/ + +#include + +#ifndef REGTEST + +#include +#include + +extern struct _PDCLIB_file_t * _PDCLIB_filelist; + +int remove( const char * pathname ) +{ + errno = ENOTSUP; + return 1; +} + +#endif + +#ifdef TEST +#include <_PDCLIB_test.h> + +int main( void ) +{ + /* Testing covered by ftell.c (and several others) */ + return TEST_RESULTS; +} + +#endif +