[BACK]Return to cvsd.h CVS log [TXT][DIR] Up to [local] / src / usr.bin / cvs

Diff for /src/usr.bin/cvs/Attic/cvsd.h between version 1.5 and 1.6

version 1.5, 2004/09/27 13:42:39 version 1.6, 2004/11/09 20:51:33
Line 74 
Line 74 
 #define CVSD_MSG_MAXLEN    256  #define CVSD_MSG_MAXLEN    256
   
   
 #define CVSD_SET_ROOT        1  #define CVSD_SET_ROOT     1
 #define CVSD_SET_CHMIN       2  #define CVSD_SET_CHMIN    2
 #define CVSD_SET_CHMAX       3  #define CVSD_SET_CHMAX    3
 #define CVSD_SET_ADDR        4  #define CVSD_SET_ADDR     4
 #define CVSD_SET_SOCK        5  #define CVSD_SET_SOCK     5
 #define CVSD_SET_USER        6  #define CVSD_SET_USER     6
 #define CVSD_SET_GROUP       7  #define CVSD_SET_GROUP    7
   #define CVSD_SET_MODDIR   8
   
   
 #define CVSD_ST_UNKNOWN      0  #define CVSD_ST_UNKNOWN      0
Line 98 
Line 99 
 };  };
   
   
   struct cvsd_addr {
           sa_family_t ca_fam;
           union {
                   struct sockaddr_in  sin;
                   struct sockaddr_in6 sin6;
           } ca_addr;
   };
   
   #define CVSD_SESS_LOCAL   0
   #define CVSD_SESS_REMOTE  1
   
   struct cvsd_sess {
           int              cs_fd;
           int              cs_type;
           uid_t            cs_uid;     /* user ID of the session */
           struct cvsd_addr cs_raddr;   /* remote address */
   };
   
   
 struct cvsd_child {  struct cvsd_child {
         pid_t  ch_pid;          pid_t  ch_pid;
         int    ch_sock;          int    ch_sock;
         u_int  ch_state;          u_int  ch_state;
   
           struct cvsd_sess *ch_sess;
   
         TAILQ_ENTRY(cvsd_child) ch_list;          TAILQ_ENTRY(cvsd_child) ch_list;
 };  };
   
   
 struct cvsd_addr {  
         sa_family_t ca_fam;  
         union {  
                 struct sockaddr_in *sin;  
                 struct sockaddr_in6 *sin6;  
         } ca_addr;  
 };  
   
   
   
 extern uid_t    cvsd_uid;  extern uid_t    cvsd_uid;
 extern gid_t    cvsd_gid;  extern gid_t    cvsd_gid;
   
Line 128 
Line 141 
 struct cvsd_child* cvsd_child_get  (void);  struct cvsd_child* cvsd_child_get  (void);
 int                cvsd_child_reap (void);  int                cvsd_child_reap (void);
   
 /* from fdpass.c */  
 int   cvsd_sendfd  (int, int);  
 int   cvsd_recvfd  (int);  
   
   
 /* from conf.y */  /* from conf.y */
 int    cvs_conf_read (const char *);  int    cvs_conf_read (const char *);
 u_int  cvs_acl_eval  (struct cvs_op *);  u_int  cvs_acl_eval  (struct cvs_op *);
Line 140 
Line 149 
 /* from msg.c */  /* from msg.c */
 int    cvsd_sendmsg (int, u_int, const void *, size_t);  int    cvsd_sendmsg (int, u_int, const void *, size_t);
 int    cvsd_recvmsg (int, u_int *, void *, size_t *);  int    cvsd_recvmsg (int, u_int *, void *, size_t *);
   int    cvsd_sendfd  (int, int);
   int    cvsd_recvfd  (int);
   
   
   struct cvsd_sess*  cvsd_sess_alloc  (int);
   void               cvsd_sess_free   (struct cvsd_sess *);
   
   
 #endif /* CVSD_H */  #endif /* CVSD_H */

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6