* syscalls.cc (_remove_r): Define.
This commit is contained in:
parent
9d4aef1930
commit
be1ea8cde7
|
@ -1,3 +1,7 @@
|
|||
2003-08-23 Christopher Faylor <cgf@redhat.com>
|
||||
|
||||
* syscalls.cc (_remove_r): Define.
|
||||
|
||||
2003-08-22 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* cygheap.h (enum cygheap_types): Add HEAP_MMAP.
|
||||
|
|
|
@ -231,6 +231,21 @@ unlink (const char *ourname)
|
|||
return res;
|
||||
}
|
||||
|
||||
extern "C" int
|
||||
_remove_r (struct _reent *, const char *ourname)
|
||||
{
|
||||
path_conv win32_name (ourname, PC_SYM_NOFOLLOW | PC_FULL);
|
||||
|
||||
if (win32_name.error)
|
||||
{
|
||||
set_errno (win32_name.error);
|
||||
syscall_printf ("-1 = remove (%s)", ourname);
|
||||
return -1;
|
||||
}
|
||||
|
||||
return win32_name.isdir () ? rmdir (ourname) : unlink (ourname);
|
||||
}
|
||||
|
||||
extern "C" int
|
||||
remove (const char *ourname)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue