[0001] [0002] [0003] [0004] [0005] [0006] [0007] [0008] [0009] [0010] [0011] [0012] [0013] [0014] [0015] [0016] [0017] [0018] [0019] [0020] [0021] [0022] [0023] [0024] [0025] [0026] [0027] [0028] [0029] [0030] [0031] [0032] [0033] [0034] [0035] [0036] [0037] [0038] [0039] [0040] [0041] [0042] [0043] [0044] [0045] [0046] [0047] [0048] [0049] [0050] [0051] [0052] [0053] [0054] [0055] [0056] [0057] [0058] [0059] [0060] [0061] [0062] [0063] [0064] [0065] [0066] [0067] [0068] [0069] [0070] [0071] [0072] [0073] [0074] [0075] [0076] [0077] [0078] [0079] [0080] [0081] [0082] [0083] [0084] [0085] [0086] [0087] [0088] [0089] [0090] [0091] [0092] [0093] [0094] [0095] [0096] [0097] [0098] [0099] [0100] [0101]
/*****************************************************************************/ /* Put.h */ /*****************************************************************************/ #ifndef PUT_H_LOADED #define PUT_H_LOADED 1 #include "wasd.h" /**********/ /* macros */ /**********/ /* default is UDF */ #define PUT_RFM_STM 1 #define PUT_RFM_STMCR 2 #define PUT_RFM_STMLF 3 #define PUT_RFM_FIX512 4 #define PUT_RFM_UDF 5 #define PUT_MULTIBLOCK_COUNT_DEFAULT 127 /**************/ /* structures */ /**************/ typedef struct PutTaskStruct PUT_TASK; struct PutTaskStruct { BOOL /* the body is an object not a composite like a form or multipart */ ContentLengthFixed, /* a file has been created and is currently with this request */ FileOpen, /* document posted is "text/..." */ ContentTypeText, /* file is to be deleted with request rundown */ PreviewOnly; int /* length of file contents pointed to in buffer */ ContentFileLength, /* just notes the size of the file for reporting */ FileSizeBytes, /* length of file name */ FileNameLength, /* length of server specified directory */ SpecifiedDirectoryLength, /* status returned from sys$create() */ SysCreateStatus; unsigned long /* when creating files and directories */ ProtectionMask; char /* points to start of file contents in buffer */ *ContentFilePtr, /* used as pointer into buffer */ *FileContentPtr, /* used as pointer into buffer */ *FileContentTypePtr; char /* buffer file name */ FileName [ODS_MAX_FILE_NAME_LENGTH+1], /* file is to be put into this server-specified directory */ SpecifiedDirectory [ODS_MAX_FILE_NAME_LENGTH+1]; /* structure for file system access */ ODS_STRUCT FileOds, SearchOds; REQUEST_AST /* function used for specifying AST function following */ NextFunction, /* function used for specifying the next task */ NextTaskFunction, /* function used for specifying AST function following */ WriteFileNextFunction; }; /***********************/ /* function prototypes */ /***********************/ PutBegin (REQUEST_STRUCT*, REQUEST_AST); PutIfBegin (REQUEST_STRUCT*); int PutChangeFileAttributes (REQUEST_STRUCT*); int PutCheckAccess (char*); PutCreateDirectory (REQUEST_STRUCT*); PutDelete (REQUEST_STRUCT*); PutEnd (REQUEST_STRUCT*); PutWasdBegin (REQUEST_STRUCT*); PutWriteFile (REQUEST_STRUCT*); PutWriteFileAst (struct RAB*); PutWriteFileOpen (REQUEST_STRUCT*); PutWriteFileClose (REQUEST_STRUCT*); int PutText (REQUEST_STRUCT*); #endif /* PUT_H_LOADED */ /*****************************************************************************/