Use intern GENMF function.
[AROS.git] / compiler / posixc / rmdir.c
blob096dd77f2a0f2262da9c4f2d3890930eecb79dbc
1 /*
2 Copyright © 2003-2013, The AROS Development Team. All rights reserved.
3 $Id$
5 POSIX.1-2008 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() */