compiler/clib: Rename IoErr2errno() to __arosc_ioerr2errno(); function is now defined...
[AROS.git] / compiler / clib / rmdir.c
blobcdae1f2c7a11debf17b4cb7dfc34d1c45137c64f
1 /*
2 Copyright © 2003-2012, The AROS Development Team. All rights reserved.
3 $Id$
5 POSIX function rmdir().
6 */
8 #define remove remove
10 #include <proto/dos.h>
12 /*****************************************************************************
14 NAME */
15 #include <stdio.h>
17 int rmdir(
19 /* SYNOPSIS */
20 const char * pathname)
22 /* FUNCTION
23 Deletes an empty directory.
25 INPUTS
26 pathname - Complete path to the directory.
28 RESULT
29 0 on success and -1 on error. In case of an error, errno is set.
31 NOTES
33 EXAMPLE
35 BUGS
37 SEE ALSO
38 unlink(), remove()
40 INTERNALS
42 ******************************************************************************/
44 return remove(pathname);
45 } /* rmdir() */