Home | History | Annotate | Line # | Download | only in rpc.lockd
lockd_lock.h revision 1.2.4.2
      1  1.2.4.2  minoura /*	$NetBSD: lockd_lock.h,v 1.2.4.2 2000/06/22 18:01:10 minoura Exp $	*/
      2  1.2.4.2  minoura 
      3  1.2.4.2  minoura /* Headers and function declarations for file-locking utilities */
      4  1.2.4.2  minoura 
      5  1.2.4.2  minoura struct nlm4_holder * testlock __P((struct nlm4_lock *, int));
      6  1.2.4.2  minoura 
      7  1.2.4.2  minoura enum nlm_stats getlock __P((nlm4_lockargs *, struct svc_req *, int));
      8  1.2.4.2  minoura enum nlm_stats unlock __P((nlm4_lock *, int));
      9  1.2.4.2  minoura void notify __P((char *, int));
     10  1.2.4.2  minoura 
     11  1.2.4.2  minoura /* flags for testlock, getlock & unlock */
     12  1.2.4.2  minoura #define LOCK_ASYNC	0x01 /* async version (getlock only) */
     13  1.2.4.2  minoura #define LOCK_V4 	0x02 /* v4 version */
     14  1.2.4.2  minoura #define LOCK_MON 	0x04 /* monitored lock (getlock only) */
     15  1.2.4.2  minoura #define LOCK_CANCEL 0x08 /* cancel, not unlock request (unlock only) */
     16  1.2.4.2  minoura 
     17  1.2.4.2  minoura /* callbacks from lock_proc.c */
     18  1.2.4.2  minoura void	transmit_result __P((int, nlm_res *, struct sockaddr *));
     19  1.2.4.2  minoura void	transmit4_result __P((int, nlm4_res *, struct sockaddr *));
     20  1.2.4.2  minoura CLIENT  *get_client __P((struct sockaddr *, rpcvers_t));
     21