rfile.h,v
来自「TCP-IP红宝书源代码」· H,V 代码 · 共 79 行
H,V
79 行
head 1.2;
access;
symbols;
locks
dls:1.2; strict;
comment @ * @;
1.2
date 97.09.21.19.26.19; author dls; state Dist;
branches;
next 1.1;
1.1
date 94.05.10.20.48.46; author dls; state Old;
branches;
next ;
desc
@@
1.2
log
@pre-3e code
@
text
@/* rfile.h */
#include <file.h>
/* Remote file device control block and defined constants */
/* Constants for server device control functions */
#define RFCLEAR 1 /* Clear incoming messages */
/* Constants for controlling retrys for server communication */
#define RTIMOUT 5 /* Timeout for server response */
#define RMAXTRY 2 /* Number of retrys per op. */
/* Constants for rf pseudo-device state variable */
#define RFREE -1 /* This pseudo-device is unused */
#define RUSED 1 /* This pseudo-device is used */
/* Declaration of rf pseudo-device I/O control block */
struct rfblk { /* Remote file control block */
int rf_dnum; /* File's device num in devtab */
char rf_name[RNAMLEN]; /* Name of remote file */
int rf_state; /* State of this pseudo device */
int rf_mode; /* FLREAD, FLWRITE or both */
int rf_mutex; /* exclusion for this file */
long rf_pos; /* current byte offset in file */
};
#ifndef Nrf
#define Nrf 1
#endif
struct rfinfo { /* all remote server info. */
int device; /* device descriptor for server */
int rmutex; /* mutual exclusion for server */
struct rfblk rftab[Nrf]; /* remote file control blocks */
};
extern struct rfinfo Rf;
@
1.1
log
@Initial revision
@
text
@@
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?