📄 klm_prot.h
字号:
/* static char *sccsid = "@(#)klm_prot.h 4.1 7/2/90"; *//************************************************************************ * * * Copyright (c) 1986 by * * Digital Equipment Corporation, Maynard, MA * * All rights reserved. * * * * This software is furnished under a license and may be used and * * copied only in accordance with the terms of such license and * * with the inclusion of the above copyright notice. This * * software or any other copies thereof may not be provided or * * otherwise made available to any other person. No title to and * * ownership of the software is hereby transferred. * * * * This software is derived from software received from the * * University of California, Berkeley, and from Bell * * Laboratories. Use, duplication, or disclosure is subject to * * restrictions under license agreements with University of * * California and with AT&T. * * * * The information in this software is subject to change without * * notice and should not be construed as a commitment by Digital * * Equipment Corporation. * * * * Digital assumes no responsibility for the use or reliability * * of its software on equipment which is not supplied by Digital. * * * ************************************************************************//* * Portions of this software have been licensed to * Digital Equipment Company, Maynard, MA. * Copyright (c) 1986 Sun Microsystems, Inc. ALL RIGHTS RESERVED. *//* * Modification history: * ~~~~~~~~~~~~~~~~~~~~ * * revision comments * -------- ----------------------------------------------- * * 01-Jun-89 Fred Glover * Update for nfssrc 4.0 * * 08-Aug-88 Fred Glover * Add klm_would_deadlock to klm_stats * * 18-Jan-88 fries * Added Header and Copyright notice. * * */#define KLM_PROG 100020#define KLM_VERS 1#define KLM_TEST 1#define KLM_LOCK 2#define KLM_CANCEL 3#define KLM_UNLOCK 4#define LM_MAXSTRLEN 1024enum klm_stats { klm_granted = 0, klm_denied = 1, klm_denied_nolocks = 2, klm_working = 3, klm_would_deadlock = 5 /* Ultrix mod - fsg */};typedef enum klm_stats klm_stats;bool_t xdr_klm_stats();struct klm_lock { char *server_name; netobj fh; int pid; u_int l_offset; u_int l_len;};typedef struct klm_lock klm_lock;bool_t xdr_klm_lock();struct klm_holder { bool_t exclusive; int svid; u_int l_offset; u_int l_len;};typedef struct klm_holder klm_holder;bool_t xdr_klm_holder();struct klm_stat { klm_stats stat;};typedef struct klm_stat klm_stat;bool_t xdr_klm_stat();struct klm_testrply { klm_stats stat; union { struct klm_holder holder; } klm_testrply_u;};typedef struct klm_testrply klm_testrply;bool_t xdr_klm_testrply();struct klm_lockargs { bool_t block; bool_t exclusive; struct klm_lock alock;};typedef struct klm_lockargs klm_lockargs;bool_t xdr_klm_lockargs();struct klm_testargs { bool_t exclusive; struct klm_lock alock;};typedef struct klm_testargs klm_testargs;bool_t xdr_klm_testargs();struct klm_unlockargs { struct klm_lock alock;};typedef struct klm_unlockargs klm_unlockargs;bool_t xdr_klm_unlockargs();
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -