[BACK]Return to socket.h CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / sys

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/sys/socket.h between version 1.26 and 1.27

version 1.26, 1997/05/05 06:29:09 version 1.27, 1998/01/07 22:46:26
Line 189  struct sockproto {
Line 189  struct sockproto {
 #define PF_MAX          AF_MAX  #define PF_MAX          AF_MAX
   
 /*  /*
    * Socket credentials.
    */
   struct sockcred {
           uid_t   sc_uid;                 /* real user id */
           uid_t   sc_euid;                /* effective user id */
           gid_t   sc_gid;                 /* real group id */
           gid_t   sc_egid;                /* effective group id */
           int     sc_ngroups;             /* number of supplemental groups */
           gid_t   sc_groups[1];           /* variable length */
   };
   
   /*
    * Compute size of a sockcred structure with groups.
    */
   #define SOCKCREDSIZE(ngrps) \
           (sizeof(struct sockcred) + (sizeof(gid_t) * ((ngrps) - 1)))
   
   /*
  * Definitions for network related sysctl, CTL_NET.   * Definitions for network related sysctl, CTL_NET.
  *   *
  * Second level is protocol family.   * Second level is protocol family.
Line 308  struct cmsghdr {
Line 326  struct cmsghdr {
 /* "Socket"-level control message types: */  /* "Socket"-level control message types: */
 #define SCM_RIGHTS      0x01            /* access rights (array of int) */  #define SCM_RIGHTS      0x01            /* access rights (array of int) */
 #define SCM_TIMESTAMP   0x02            /* timestamp (struct timeval) */  #define SCM_TIMESTAMP   0x02            /* timestamp (struct timeval) */
   #define SCM_CREDS       0x04            /* credientials (struct sockcred) */
   
 /*  /*
  * 4.3 compat sockaddr, move to compat file later   * 4.3 compat sockaddr, move to compat file later

Legend:
Removed from v.1.26  
changed lines
  Added in v.1.27

CVSweb <webmaster@jp.NetBSD.org>