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

  1.  
  2. SYMLINK(2)                 UNIX Programmer's Manual                 SYMLINK(2)
  3.  
  4. NNAAMMEE
  5.      ssyymmlliinnkk - make symbolic link to a file
  6.  
  7. SSYYNNOOPPSSIISS
  8.      ##iinncclluuddee <<uunniissttdd..hh>>
  9.  
  10.      _i_n_t
  11.      ssyymmlliinnkk(_c_o_n_s_t _c_h_a_r _*_n_a_m_e_1, _c_o_n_s_t _c_h_a_r _*_n_a_m_e_2)
  12.  
  13. DDEESSCCRRIIPPTTIIOONN
  14.      A symbolic link _n_a_m_e_2 is created to _n_a_m_e_1 (_n_a_m_e_2 is the name of the file
  15.      created, _n_a_m_e_1 is the string used in creating the symbolic link).  Either
  16.      name may be an arbitrary path name; the files need not be on the same
  17.      file system.
  18.  
  19. RREETTUURRNN VVAALLUUEESS
  20.      Upon successful completion, a zero value is returned.  If an error oc­
  21.      curs, the error code is stored in _e_r_r_n_o and a ­1 value is returned.
  22.  
  23. EERRRROORRSS
  24.      The symbolic link succeeds unless:
  25.  
  26.      [ENOTDIR]
  27.                A component of the _n_a_m_e_2 prefix is not a directory.
  28.  
  29.      [EINVAL]  Either _n_a_m_e_1 or _n_a_m_e_2 contains a character with the high­order
  30.                bit set.
  31.  
  32.      [ENAMETOOLONG]
  33.                A component of either pathname exceeded 255 characters, or the
  34.                entire length of either path name exceeded 1023 characters.
  35.  
  36.      [ENOENT]  The named file does not exist.
  37.  
  38.      [EACCES]  A component of the _n_a_m_e_2 path prefix denies search permission.
  39.  
  40.      [ELOOP]   Too many symbolic links were encountered in translating the
  41.                pathname.
  42.  
  43.      [EEXIST]  _N_a_m_e_2 already exists.
  44.  
  45.      [EIO]     An I/O error occurred while making the directory entry for
  46.                _n_a_m_e_2, or allocating the inode for _n_a_m_e_2, or writing out the
  47.                link contents of _n_a_m_e_2.
  48.  
  49.      [EROFS]   The file _n_a_m_e_2 would reside on a read­only file system.
  50.  
  51.      [ENOSPC]  The directory in which the entry for the new symbolic link is
  52.                being placed cannot be extended because there is no space left
  53.                on the file system containing the directory.
  54.  
  55.      [ENOSPC]  The new symbolic link cannot be created because there there is
  56.                no space left on the file system that will contain the symbolic
  57.                link.
  58.  
  59.      [ENOSPC]  There are no free inodes on the file system on which the sym­
  60.                bolic link is being created.
  61.  
  62.      [EDQUOT]  The directory in which the entry for the new symbolic link is
  63.                being placed cannot be extended because the user's quota of
  64.                disk blocks on the file system containing the directory has
  65.  
  66.                been exhausted.
  67.  
  68.      [EDQUOT]  The new symbolic link cannot be created because the user's quo­
  69.                ta of disk blocks on the file system that will contain the sym­
  70.                bolic link has been exhausted.
  71.  
  72.      [EDQUOT]  The user's quota of inodes on the file system on which the sym­
  73.                bolic link is being created has been exhausted.
  74.  
  75.      [EIO]     An I/O error occurred while making the directory entry or allo­
  76.                cating the inode.
  77.  
  78.      [EFAULT]  _N_a_m_e_1 or _n_a_m_e_2 points outside the process's allocated address
  79.                space.
  80.  
  81. SSEEEE AALLSSOO
  82.      link(2),  ln(1),  unlink(2)
  83.  
  84. HHIISSTTOORRYY
  85.      The ssyymmlliinnkk function call appeared in 4.2BSD.
  86.  
  87. 4.2 Berkeley Distribution       March 10, 1991                               2
  88.  
  89.  
  90.  
  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.