man(1) Manual page archive


     MKDIR(2)                                                 MKDIR(2)

     NAME
          mkdir, rmdir - make or remove a directory

     SYNOPSIS
          int mkdir(name, mode)
          char *name;

          int rmdir(name)
          char *name;

     DESCRIPTION
          Mkdir creates a new directory whose name is the null-
          terminated string pointed to by name. The mode of the direc-
          tory is set to mode, as modified by the process's mode mask;
          see stat(2) and umask(2). The directory initially contains
          two entries: . (a link to the directory itself) and .. (a
          link to the parent directory).

          Rmdir removes the directory name, which must have only `.'
          and `..'  entries.

     SEE ALSO
          mkdir(1), rm(1), mknod(2), stat(2), umask(2)

     DIAGNOSTICS
          mkdir: EEXIST, EFAULT, EIO, ELOOP, ENOENT, ENOTDIR, EROFS
          rmdir: EFAULT, EHASF, EINVAL, EIO, ELOOP, ENOENT, ENOTDIR,
          EROFS