Open System Services System Calls Reference Manual (G06.28+)
rmdir(2) OSS System Calls Reference Manual
RELATED INFORMATION
Functions: chmod(2), chroot(2), mkdir(2), mkfifo(3), mknod(2), remove(3), rename(2),
umask(2), unlink(2).
Commands: rmdir(1).
STANDARDS CONFORMANCE
The POSIX standards leave some features to the implementing vendor to define. The following
features are affected in the HP implementation:
• The rmdir() function can be used to remove the root directory or the current working
directory of a process. The consequences of such an action are described under
DESCRIPTION.
• The errno value [ENOTEMPTY] is returned instead of [EEXIST].
The following are HP extensions to the XPG4 Version 2 specification:
• The errno values [EFAULT], [EFSBAD], [EINVAL], [ENOROOT], [ENOTEMPTY],
[ENXIO], and [EOSSNOTRUNNING] can be returned.
6−38 Hewlett-Packard Company 527186-005