home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 8 / FreshFishVol8-CD1.bin / gnu / man / cat2 / mkdir.0 < prev    next >
Text File  |  1993-12-07  |  4KB  |  133 lines

  1.  
  2. MKDIR(2)                   UNIX Programmer's Manual                   MKDIR(2)
  3.  
  4. NNAAMMEE
  5.      mmkkddiirr - make a directory file
  6.  
  7. SSYYNNOOPPSSIISS
  8.      ##iinncclluuddee <<ssyyss//ssttaatt..hh>>
  9.  
  10.      _i_n_t
  11.      mmkkddiirr(_c_o_n_s_t _c_h_a_r _*_p_a_t_h, _m_o_d_e___t _m_o_d_e)
  12.  
  13. DDEESSCCRRIIPPTTIIOONN
  14.      The directory _p_a_t_h is created with the access permissions specified by
  15.      _m_o_d_e and restricted by the the umask(2) of the calling process.
  16.  
  17.      The directory's owner ID is set to the process's effective user ID.  The
  18.      directory's group ID is set to that of the parent directory in which it
  19.      is created.
  20.  
  21. RREETTUURRNN VVAALLUUEESS
  22.      A 0 return value indicates success.  A ­1 return value indicates an er­
  23.      ror, and an error code is stored in _e_r_r_n_o.
  24.  
  25. EERRRROORRSS
  26.      MMkkddiirr() will fail and no directory will be created if:
  27.  
  28.      [ENOTDIR]   A component of the path prefix is not a directory.
  29.  
  30.      [EINVAL]    The pathname contains a character with the high­order bit
  31.                  set.
  32.  
  33.      [ENAMETOOLONG]
  34.                  A component of a pathname exceeded 255 characters, or an en­
  35.                  tire path name exceeded 1023 characters.
  36.  
  37.      [ENOENT]    A component of the path prefix does not exist.
  38.  
  39.      [EACCES]    Search permission is denied for a component of the path pre­
  40.                  fix.
  41.  
  42.      [ELOOP]     Too many symbolic links were encountered in translating the
  43.                  pathname.
  44.  
  45.      [EPERM]     The _p_a_t_h argument contains a byte with the high­order bit
  46.                  set.
  47.  
  48.      [EROFS]     The named file resides on a read­only file system.
  49.  
  50.      [EEXIST]    The named file exists.
  51.  
  52.      [ENOSPC]    The directory in which the entry for the new directory is be­
  53.                  ing placed cannot be extended because there is no space left
  54.                  on the file system containing the directory.
  55.  
  56.      [ENOSPC]    The new directory cannot be created because there there is no
  57.                  space left on the file system that will contain the directo­
  58.                  ry.
  59.  
  60.      [ENOSPC]    There are no free inodes on the file system on which the di­
  61.                  rectory is being created.
  62.  
  63.      [EDQUOT]    The directory in which the entry for the new directory is be­
  64.                  ing placed cannot be extended because the user's quota of
  65.                  disk blocks on the file system containing the directory has
  66.  
  67.                  been exhausted.
  68.  
  69.      [EDQUOT]    The new directory cannot be created because the user's quota
  70.                  of disk blocks on the file system that will contain the di­
  71.                  rectory has been exhausted.
  72.  
  73.      [EDQUOT]    The user's quota of inodes on the file system on which the
  74.                  directory is being created has been exhausted.
  75.  
  76.      [EIO]       An I/O error occurred while making the directory entry or al­
  77.                  locating the inode.
  78.  
  79.      [EIO]       An I/O error occurred while reading from or writing to the
  80.                  file system.
  81.  
  82.      [EFAULT]    _P_a_t_h points outside the process's allocated address space.
  83.  
  84. SSEEEE AALLSSOO
  85.      chmod(2),  stat(2),  umask(2)
  86.  
  87. SSTTAANNDDAARRDDSS
  88.      MMkkddiirr() conforms to IEEE Std 1003.1­1988 (``POSIX'').
  89.  
  90. 4.2 Berkeley Distribution       March 10, 1991                               2
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.