simplify by using krnCreateROMHeader()
[AROS.git] / compiler / posixc / rmdir.c
blobde8ce1e884e1a4005e1263457bf086abe79946f1
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>
9 #include "__upath.h"
11 /*****************************************************************************
13 NAME */
14 #include <unistd.h>
16 int rmdir(
18 /* SYNOPSIS */
19 const char * pathname)
21 /* FUNCTION
22 Deletes an empty directory.
24 INPUTS
25 pathname - Complete path to the directory.
27 RESULT
28 0 on success and -1 on error. In case of an error, errno is set.
30 NOTES
32 EXAMPLE
34 BUGS
36 SEE ALSO
37 unlink(), remove()
39 INTERNALS
41 ******************************************************************************/
43 /* FIXME: Shouldn't we check if pathname is actually a directory ? */
44 return remove(__path_u2a(pathname));
45 } /* rmdir() */