Don't call ReadArgs() if started from WB.
[tangerine.git] / compiler / clib / rmdir.c
blobbb422d0aa743abf30a00b6319c3fd990f6126525
1 /*
2 Copyright © 2003, The AROS Development Team. All rights reserved.
3 $Id$
5 POSIX function rmdir().
6 */
8 #define remove remove
10 #include <proto/dos.h>
11 #include "__errno.h"
13 /*****************************************************************************
15 NAME */
16 #include <stdio.h>
18 int rmdir(
20 /* SYNOPSIS */
21 const char * pathname)
23 /* FUNCTION
24 Deletes an empty directory.
26 INPUTS
27 pathname - Complete path to the directory.
29 RESULT
30 0 on success and -1 on error. In case of an error, errno is set.
32 NOTES
34 EXAMPLE
36 BUGS
38 SEE ALSO
39 unlink(), remove()
41 INTERNALS
43 ******************************************************************************/
45 return remove(pathname);
46 } /* rmdir() */