Debian Codegraph @

WWW/Library/Implementation/HTVMSUtils.h

raw
1 /* VMS specific routines
2
3 */
4
5 #ifndef HTVMSUTIL_H
6 #define HTVMSUTIL_H
7
8 #ifndef HTUTILS_H
9 #include <HTUtils.h>
10 #endif
11
12 #include <HTAnchor.h>
13
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 extern BOOL HTVMSFileVersions; /* Include version numbers in listing? */
18
19 /* PUBLIC HTVMS_authSysPrv()
20 * CHECKS IF THIS PROCESS IS AUTHORIZED TO ENABLE SYSPRV
21 * ON ENTRY:
22 * No arguments.
23 *
24 * ON EXIT:
25 * returns YES if SYSPRV is authorized
26 */
27 extern BOOL HTVMS_authSysPrv(void);
28
29 /* PUBLIC HTVMS_enableSysPrv()
30 * ENABLES SYSPRV
31 * ON ENTRY:
32 * No arguments.
33 *
34 * ON EXIT:
35 *
36 */
37 extern void HTVMS_enableSysPrv(void);
38
39 /* PUBLIC HTVMS_disableSysPrv()
40 * DISABLES SYSPRV
41 * ON ENTRY:
42 * No arguments.
43 *
44 * ON EXIT:
45 *
46 */
47 extern void HTVMS_disableSysPrv(void);
48
49 /* PUBLIC HTVMS_checkAccess()
50 * CHECKS ACCESS TO FILE FOR CERTAIN USER
51 * ON ENTRY:
52 * FileName The file to be accessed
53 * UserName Name of the user to check access for
54 *
55 * ON EXIT:
56 * returns YES if access is allowed
57 *
58 */
59 extern BOOL HTVMS_checkAccess(const char *FileName,
60 const char *UserName,
61 const char *Method);
62
63 /* PUBLIC HTVMS_wwwName()
64 * CONVERTS VMS Name into WWW Name
65 * ON ENTRY:
66 * vmsname VMS file specification (NO NODE)
67 *
68 * ON EXIT:
69 * returns www file specification
70 *
71 * EXAMPLES:
72 * vmsname wwwname
73 * DISK$USER disk$user
74 * DISK$USER: /disk$user/
75 * DISK$USER:[DUNS] /disk$user/duns
76 * DISK$USER:[DUNS.ECHO] /disk$user/duns/echo
77 * [DUNS] duns
78 * [DUNS.ECHO] duns/echo
79 * [DUNS.ECHO.-.TRANS] duns/echo/../trans
80 * [DUNS.ECHO.--.TRANS] duns/echo/../../trans
81 * [.DUNS] duns
82 * [.DUNS.ECHO] duns/echo
83 * [.DUNS.ECHO]TEST.COM duns/echo/test.com
84 * TEST.COM test.com
85 *
86 *
87 */
88 extern const char *HTVMS_wwwName(const char *vmsname);
89
90 extern int HTVMSBrowseDir(const char *address,
91 HTParentAnchor *anchor,
92 HTFormat format_out,
93 HTStream *sink);
94
95 extern int HTVMS_remove(char *filename);
96 extern void HTVMS_purge(char *filename);
97
98 #ifdef __cplusplus
99 }
100 #endif
101 #endif /* not HTVMSUTIL_H */