diff options
Diffstat (limited to 'static/unix-v10/man2/mkdir.2')
| -rw-r--r-- | static/unix-v10/man2/mkdir.2 | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/static/unix-v10/man2/mkdir.2 b/static/unix-v10/man2/mkdir.2 new file mode 100644 index 00000000..5af01904 --- /dev/null +++ b/static/unix-v10/man2/mkdir.2 @@ -0,0 +1,68 @@ +.TH MKDIR 2 +.CT 2 dirs +.SH NAME +mkdir, rmdir \(mi make or remove a directory +.SH SYNOPSIS +.nf +.B int mkdir(name, mode) +.B char *name; +.sp +.B int rmdir(name) +.B char *name; +.fi +.SH DESCRIPTION +.I Mkdir +creates a new directory +whose name is the null-terminated string +pointed to by +.IR name . +The mode of the directory +is set to +.IR mode , +as modified by the process's mode mask (see +.IR stat (2) +and +.IR umask (2)). +The directory initially contains two entries: +.B . +(a link to the directory itself) and +.B .. +(a link to the parent directory). +.PP +If the +.I mode +includes +.BR S_IBLIND , +the directory is `blind'. +A blind directory cannot be read, and +its security label is not checked when the +directory is searched. +.PP +.I Rmdir +removes the directory +.IR name , +which must only have the entries +.L \&. +and +.LR \&.. . +.SH "SEE ALSO +.IR mkdir (1), +.IR rm (1), +.IR mknod (2) +.SH DIAGNOSTICS +.B EEXIST +.RI ( mkdir +only), +.BR EFAULT , +.B EHASF +.RI ( rmdir +only), +.B EINVAL +.RI ( rmdir +only), +.BR EIO , +.BR ELAB , +.BR ELOOP , +.BR ENOENT , +.BR ENOTDIR , +.BR EROFS |
