|
|
1.1 ! root 1: /* ! 2: * Copyright (c) 1986, 1987 Xerox Corporation. ! 3: */ ! 4: ! 5: /* $Log: filing_server.h,v $ ! 6: * Revision 1.2 87/03/17 16:33:00 ed ! 7: * Added defines for classes of attributes. ! 8: * ! 9: * Revision 1.1 87/01/06 16:29:06 ed ! 10: * Initial revision ! 11: * ! 12: * ! 13: */ ! 14: ! 15: #define MAX_HANDLES 10 /* maximum number of open files */ ! 16: ! 17: #define MAX_FILE_NAME_LENGTH 256 /* maximum length of file name */ ! 18: ! 19: #define SUPPORTEDATTRIBUTES 8 /* see make_attribute_sequence */ ! 20: #define REQUIREDATTRIBUTES 6 /* see make_attribute_sequence */ ! 21: #define OPTIONALATTRIBUTES 50 /* for Viewpoint files */ ! 22: ! 23: /* ! 24: * file handle ! 25: * one per open file ! 26: */ ! 27: ! 28: typedef struct { ! 29: int state; /* current state */ ! 30: #define FILE_CLOSED 0 ! 31: #define FILE_OPEN 1 ! 32: char *pathname; /* ptr to pathname value */ ! 33: LongCardinal type; /* client requested type (from Open) */ ! 34: LongCardinal truetype; /* file system file type */ ! 35: Cardinal datasize; /* dataSize value */ ! 36: Boolean isdirectory; /* isDirectory */ ! 37: LongCardinal createdon; /* createdOn */ ! 38: LongCardinal modifiedon; /* modifiedOn */ ! 39: FILE *file_desc; /* ptr to file descriptor for open file */ ! 40: } file_handle; ! 41: ! 42: /* ! 43: * session handle ! 44: * one per session ! 45: */ ! 46: ! 47: typedef struct { ! 48: int state; /* current state */ ! 49: #define SESSION_CLOSED 0 ! 50: #define SESSION_OPEN 1 ! 51: ! 52: CourierConnection *connection; /* connection id */ ! 53: FILING_Credentials credentials; /* user credentials */ ! 54: AUTHENTICATION_SimpleVerifier verifier; /* user verifier */ ! 55: file_handle handle[MAX_HANDLES]; /* array of open files */ ! 56: } session_handle; ! 57:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.