home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / a_man / cat7 / unix.z / unix
Encoding:
Text File  |  2002-10-03  |  4.2 KB  |  133 lines

  1.  
  2.  
  3.  
  4. UUUUNNNNIIIIXXXX((((7777FFFF))))                                                              UUUUNNNNIIIIXXXX((((7777FFFF))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      unix - UNIX-domain protocol family
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ####iiiinnnncccclllluuuuddddeeee <<<<ssssyyyyssss////ttttyyyyppppeeeessss....hhhh>>>>
  13.      ####iiiinnnncccclllluuuuddddeeee <<<<ssssyyyyssss////uuuunnnn....hhhh>>>>
  14.  
  15. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  16.      The UNIX-domain protocol family is a collection of protocols that
  17.      provides local (on-machine) interprocess communication through the normal
  18.      _s_o_c_k_e_t(2) mechanisms.  The UNIX-domain family supports the SOCK_STREAM
  19.      and SOCK_DGRAM socket types and uses filesystem pathnames for addressing.
  20.  
  21. AAAADDDDDDDDRRRREEEESSSSSSSSIIIINNNNGGGG
  22.      UNIX-domain addresses are variable-length filesystem pathnames of at most
  23.      108 characters.  The include file <_s_y_s/_u_n._h> defines this address:
  24.  
  25.      struct sockaddr_un {
  26.             short     sun_family;
  27.             char      sun_path[108];
  28.      };
  29.  
  30.      Binding a name to a UNIX-domain socket with _b_i_n_d(2) causes a socket file
  31.      to be created in the filesystem.  This file is _n_o_t removed when the
  32.      socket is closed - _u_n_l_i_n_k(2) must be used to remove the file.
  33.  
  34.      The UNIX-domain does not support broadcast addressing or any form of
  35.      "wildcard" matching on incoming messages. All addresses are absolute- or
  36.      relative-pathnames of other UNIX-domain sockets.  Normal filesystem
  37.      access-control mechanisms are also applied when referencing pathnames;
  38.      e.g., the destination of a _c_o_n_n_e_c_t(2) or _s_e_n_d_t_o(2) must be writable.
  39.  
  40. PPPPRRRROOOOTTTTOOOOCCCCOOOOLLLLSSSS
  41.      The UNIX-domain protocol family is comprised of simple transport
  42.      protocols that support the SOCK_STREAM and SOCK_DGRAM abstractions.
  43.      SOCK_STREAM sockets also support the communication of file descriptors
  44.      through the use of the _m_s_g__a_c_c_r_i_g_h_t_s field in the _m_s_g argument to
  45.      _s_e_n_d_m_s_g(2) and _r_e_c_v_m_s_g(2).  Any valid descriptor may be sent in a
  46.      message.  The received descriptor is a _d_u_p_l_i_c_a_t_e of the sender's
  47.      descriptor, as if it were created with a call to _d_u_p(2).  Per-process
  48.      descriptor flags, set with _f_c_n_t_l(2), are _n_o_t passed to a receiver.
  49.      Descriptors that are awaiting delivery, or that are purposely not
  50.      received, are automatically closed by the system when the destination
  51.      socket is closed.
  52.  
  53. DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
  54.      The _b_i_n_d(2) and _c_o_n_n_e_c_t(2) socket operations may fail with one of the
  55.      following errors returned:
  56.  
  57.      [ENOTDIR]           A component of the path prefix is not a directory.
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. UUUUNNNNIIIIXXXX((((7777FFFF))))                                                              UUUUNNNNIIIIXXXX((((7777FFFF))))
  71.  
  72.  
  73.  
  74.      [ENOENT]            The named file does not exist.
  75.  
  76.      [EACCES]            Search permission is denied for a component of the
  77.                          path prefix.
  78.  
  79.      [ENAMETOOLONG]      The length of _p_a_t_h exceeds {_P_A_T_H__M_A_X}, or a pathname
  80.                          component is longer than {_N_A_M_E__M_A_X}.
  81.  
  82.      [ELOOP]             Too many symbolic links were encountered in
  83.                          translating the pathname.
  84.  
  85. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  86.      socket(2), netintro(7)
  87.      _I_R_I_X _N_e_t_w_o_r_k _P_r_o_g_r_a_m_m_i_n_g _G_u_i_d_e.
  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.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.