[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.110.4.2 and 1.121

version 1.110.4.2, 2015/12/27 12:10:18 version 1.121, 2017/02/08 17:58:41
Line 335  struct sockaddr_storage {
Line 335  struct sockaddr_storage {
   
 #if defined(_NETBSD_SOURCE)  #if defined(_NETBSD_SOURCE)
   
   #ifndef pid_t
   typedef __pid_t         pid_t;          /* process id */
   #define pid_t           __pid_t
   #endif
   
 #ifndef gid_t  #ifndef gid_t
 typedef __gid_t         gid_t;          /* group id */  typedef __gid_t         gid_t;          /* group id */
 #define gid_t           __gid_t  #define gid_t           __gid_t
Line 349  typedef __uid_t  uid_t;  /* user id */
Line 354  typedef __uid_t  uid_t;  /* user id */
  * Socket credentials.   * Socket credentials.
  */   */
 struct sockcred {  struct sockcred {
           pid_t   sc_pid;                 /* process id */
         uid_t   sc_uid;                 /* real user id */          uid_t   sc_uid;                 /* real user id */
         uid_t   sc_euid;                /* effective user id */          uid_t   sc_euid;                /* effective user id */
         gid_t   sc_gid;                 /* real group id */          gid_t   sc_gid;                 /* real group id */
Line 466  struct kinfo_pcb {
Line 472  struct kinfo_pcb {
  *      Fifth: type of info, defined below   *      Fifth: type of info, defined below
  *      Sixth: flag(s) to mask with for NET_RT_FLAGS   *      Sixth: flag(s) to mask with for NET_RT_FLAGS
  */   */
 #define NET_RT_DUMP     1               /* dump; may limit to a.f. */  #define NET_RT_DUMP             1       /* dump; may limit to a.f. */
 #define NET_RT_FLAGS    2               /* by flags, e.g. RESOLVING */  #define NET_RT_FLAGS            2       /* by flags, e.g. RESOLVING */
 #define NET_RT_OOIFLIST 3               /* old NET_RT_IFLIST (pre 1.5) */  #define NET_RT_OOOIFLIST        3       /* old NET_RT_IFLIST (pre 1.5) */
 #define NET_RT_OIFLIST  4               /* survey interface list */  #define NET_RT_OOIFLIST         4       /* old NET_RT_IFLIST (pre-64bit time) */
 #define NET_RT_IFLIST   5  #define NET_RT_OIFLIST          5       /* old NET_RT_IFLIST (pre 8.0) */
 #define NET_RT_MAXID    6  #define NET_RT_IFLIST           6       /* survey interface list */
   #define NET_RT_MAXID            7
   
 #define CTL_NET_RT_NAMES { \  #define CTL_NET_RT_NAMES { \
         { 0, 0 }, \          { 0, 0 }, \
Line 595  struct cmsghdr {
Line 602  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) */
 #if defined(_NETBSD_SOURCE)  #if defined(_NETBSD_SOURCE)
 /*                      0x02               timestamp (struct timeval50) */  /*                      0x02               timestamp (struct timeval50) */
 #define SCM_CREDS       0x04            /* credentials (struct sockcred) */  /*                      0x04               credentials (struct sockcred70) */
 #define SCM_TIMESTAMP   0x08            /* timestamp (struct timeval) */  #define SCM_TIMESTAMP   0x08            /* timestamp (struct timeval) */
   #define SCM_CREDS       0x10            /* credentials (struct sockcred) */
 #endif  #endif
   
 /*  /*
Line 636  __END_DECLS
Line 644  __END_DECLS
   
 __BEGIN_DECLS  __BEGIN_DECLS
 int     accept(int, struct sockaddr * __restrict, socklen_t * __restrict);  int     accept(int, struct sockaddr * __restrict, socklen_t * __restrict);
   int     accept4(int, struct sockaddr * __restrict, socklen_t * __restrict, int);
 int     bind(int, const struct sockaddr *, socklen_t);  int     bind(int, const struct sockaddr *, socklen_t);
 int     connect(int, const struct sockaddr *, socklen_t);  int     connect(int, const struct sockaddr *, socklen_t);
 int     getpeername(int, struct sockaddr * __restrict, socklen_t * __restrict);  int     getpeername(int, struct sockaddr * __restrict, socklen_t * __restrict);

Legend:
Removed from v.1.110.4.2  
changed lines
  Added in v.1.121

CVSweb <webmaster@jp.NetBSD.org>