X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/9bccf70c0258c7cac2dcb80011b2a964d884c552..935ed37a5c468c8a1c07408573c08b8b7ef80e8b:/bsd/man/man2/rmdir.2 diff --git a/bsd/man/man2/rmdir.2 b/bsd/man/man2/rmdir.2 index 8a8d595b2..5a47ed7b7 100644 --- a/bsd/man/man2/rmdir.2 +++ b/bsd/man/man2/rmdir.2 @@ -42,7 +42,9 @@ .Sh SYNOPSIS .Fd #include .Ft int -.Fn rmdir "const char *path" +.Fo rmdir +.Fa "const char *path" +.Fc .Sh DESCRIPTION .Fn Rmdir removes a directory file @@ -60,44 +62,57 @@ returned and an error code is stored in the global location .Sh ERRORS The named file is removed unless: .Bl -tag -width Er -.It Bq Er ENOTDIR -A component of the path is not a directory. +.\" =========== +.It Bq Er EACCES +Search permission is denied for a component of the path prefix. +.\" =========== +.It Bq Er EACCES +Write permission is denied on the directory containing the link +to be removed. +.\" =========== +.It Bq Er EBUSY +The directory to be removed is the mount point +for a mounted file system. +.\" =========== +.It Bq Er EFAULT +.Fa Path +points outside the process's allocated address space. +.\" =========== +.It Bq Er EIO +An I/O error occurs while deleting the directory entry +or deallocating the inode. +.\" =========== +.It Bq Er ELOOP +Too many symbolic links are encountered in translating the pathname. +This is taken to be indicative of a looping symbolic link. +.\" =========== .It Bq Er ENAMETOOLONG -A component of a pathname exceeded +A component of a pathname (possibly expanded by a symbolic link) exceeds .Dv {NAME_MAX} characters, or an entire path name exceeded .Dv {PATH_MAX} characters. +.\" =========== .It Bq Er ENOENT The named directory does not exist. -.It Bq Er ELOOP -Too many symbolic links were encountered in translating the pathname. +.\" =========== +.It Bq Er ENOTDIR +A component of the path is not a directory. +.\" =========== .It Bq Er ENOTEMPTY The named directory contains files other than .Ql \&. and .Ql \&.. in it. -.It Bq Er EACCES -Search permission is denied for a component of the path prefix. -.It Bq Er EACCES -Write permission is denied on the directory containing the link -to be removed. +.\" =========== .It Bq Er EPERM The directory containing the directory to be removed is marked sticky, and neither the containing directory nor the directory to be removed are owned by the effective user ID. -.It Bq Er EBUSY -The directory to be removed is the mount point -for a mounted file system. -.It Bq Er EIO -An I/O error occurred while deleting the directory entry -or deallocating the inode. +.\" =========== .It Bq Er EROFS The directory entry to be removed resides on a read-only file system. -.It Bq Er EFAULT -.Fa Path -points outside the process's allocated address space. .El .Sh SEE ALSO .Xr mkdir 2 ,