]> sjero.net Git - wget/blob - vms/vms.h
Space before closing brace. Fixes paramcheck.pl output.
[wget] / vms / vms.h
1 /*
2  *    Various VMS-specific items.
3  *
4  *    Includes:
5  *
6  *  Emergency replacement for <utime.h> for VMS CRTL before V7.3.
7  *
8  *  Emergency replacement for <pwd.h> for VMS CRTL before V7.0.
9  *
10  *  Emergency substitution of stat() for lstat() for VAX and VMS CRTL
11  *  before V7.3-1.
12  *
13  *  Prototypes for VMS-specific functions:
14  *     acc_cb()
15  *     utime() (CRTL < V7.3)
16  *     ods_conform()
17  *     set_ods5_dest()
18  *     vms_arch()
19  *     vms_vers()
20  *
21  *  Global storage:
22  *     ods5_dest
23  */
24
25 #ifndef __VMS_H_INCLUDED
26 #define __VMS_H_INCLUDED
27
28 /* Emergency replacement for <utime.h> for VMS before V7.3. */
29
30 #if __CRTL_VER < 70300000
31
32 #include <types.h>
33
34 /* The "utimbuf" structure is used by "utime()". */
35 struct utimbuf {
36         time_t actime;          /* access time */
37         time_t modtime;         /* modification time */
38 };
39
40 /* Function prototypes for utime(), */
41
42 int utime( const char *path, const struct utimbuf *times);
43
44 #else /* __CRTL_VER < 70300000 */
45
46 #include <utime.h>
47
48 #endif /* __CRTL_VER < 70300000 */
49
50
51 /* Emergency substitution of stat() for lstat() for VAX and VMS CRTL
52    before V7.3-1.
53 */
54 #if defined(__VAX) || __CRTL_VER < 70301000
55
56 #define lstat( __p1, __p2) stat( __p1, __p2)
57
58 #endif /* defined(__VAX) || __CRTL_VER < 70301000 */
59
60
61 /* Global storage. */
62
63 /*    VMS destination file system type.  < 0: unset/unknown
64                                          = 0: ODS2
65                                          > 0: ODS5
66 */
67
68 extern int ods5_dest;
69
70
71 /* Function prototypes. */
72
73 extern int acc_cb();
74
75 char *ods_conform( char *path);
76
77 int set_ods5_dest( char *path);
78
79 char *vms_arch( void);
80
81 char *vms_vers( void);
82
83 /* Emergency replacement for <pwd.h> (for VMS CRTL before V7.0). */
84
85 /* Declare "passwd" structure, if needed. */
86
87 #ifndef HAVE_PWD_H
88
89 struct passwd {
90         char    *pw_name;
91         char    *pw_passwd;
92         int     pw_uid;
93         int     pw_gid;
94         short   pw_salt;
95         int     pw_encrypt;
96         char    *pw_age;
97         char    *pw_comment;
98         char    *pw_gecos;
99         char    *pw_dir;
100         char    *pw_shell;
101 };
102
103 struct passwd *getpwuid();
104
105 #endif /* HAVE_PWD_H */
106
107 #endif /* __VMS_H_INCLUDED */