From a6c1ed4716cf02626ea035beb6dd4a921642ba80 Mon Sep 17 00:00:00 2001 From: PikalaxALT Date: Wed, 3 Jan 2018 17:39:24 -0700 Subject: Use libc from agbcc instead of standalone newlib\nYou must have AGBCC commit 80d029caec189587f8b9294b6c8a5a489b8f5f88 in order to compile pmd_red.gba --- newlib/libc/stdio/remove.c | 69 ---------------------------------------------- 1 file changed, 69 deletions(-) delete mode 100644 newlib/libc/stdio/remove.c (limited to 'newlib/libc/stdio/remove.c') diff --git a/newlib/libc/stdio/remove.c b/newlib/libc/stdio/remove.c deleted file mode 100644 index 074dd9a..0000000 --- a/newlib/libc/stdio/remove.c +++ /dev/null @@ -1,69 +0,0 @@ -/* -FUNCTION -<>---delete a file's name - -INDEX - remove - -ANSI_SYNOPSIS - #include - int remove(char *<[filename]>); - - int _remove_r(void *<[reent]>, char *<[filename]>); - -TRAD_SYNOPSIS - #include - int remove(<[filename]>) - char *<[filename]>; - - int _remove_r(<[reent]>, <[filename]>) - char *<[reent]>; - char *<[filename]>; - -DESCRIPTION -Use <> to dissolve the association between a particular -filename (the string at <[filename]>) and the file it represents. -After calling <> with a particular filename, you will no -longer be able to open the file by that name. - -In this implementation, you may use <> on an open file without -error; existing file descriptors for the file will continue to access -the file's data until the program using them closes the file. - -The alternate function <<_remove_r>> is a reentrant version. The -extra argument <[reent]> is a pointer to a reentrancy structure. - -RETURNS -<> returns <<0>> if it succeeds, <<-1>> if it fails. - -PORTABILITY -ANSI C requires <>, but only specifies that the result on -failure be nonzero. The behavior of <> when you call it on an -open file may vary among implementations. - -Supporting OS subroutine required: <>. -*/ - -#include - -int -_remove_r (ptr, filename) - struct _reent *ptr; - _CONST char *filename; -{ - if (_unlink_r (ptr, filename) == -1) - return -1; - - return 0; -} - -#ifndef _REENT_ONLY - -int -remove (filename) - _CONST char *filename; -{ - return _remove_r (_REENT, filename); -} - -#endif -- cgit v1.2.3