Upgraded GRUB2 to 2.00 release.
[AROS.git] / compiler / clib / rmdir.c
blob6d66df034f40343cbd511a01d8ac7f5e7167cb19
1 /*
2 Copyright © 2003-2012, The AROS Development Team. All rights reserved.
3 $Id$
5 POSIX function rmdir().
6 */
8 #include <stdio.h>
10 /*****************************************************************************
12 NAME */
13 #include <unistd.h>
15 int rmdir(
17 /* SYNOPSIS */
18 const char * pathname)
20 /* FUNCTION
21 Deletes an empty directory.
23 INPUTS
24 pathname - Complete path to the directory.
26 RESULT
27 0 on success and -1 on error. In case of an error, errno is set.
29 NOTES
31 EXAMPLE
33 BUGS
35 SEE ALSO
36 unlink(), remove()
38 INTERNALS
40 ******************************************************************************/
42 /* FIXME: Shouldn't we check if pathname is actually a directory ? */
43 return remove(pathname);
44 } /* rmdir() */