Commit | Line | Data |
---|---|---|
136704f7 | 1 | /* |
136704f7 JSP |
2 | * Copyright (c) 1990 Jan-Simon Pendry |
3 | * Copyright (c) 1990 Imperial College of Science, Technology & Medicine | |
4 | * Copyright (c) 1990 The Regents of the University of California. | |
5 | * All rights reserved. | |
6 | * | |
7 | * This code is derived from software contributed to Berkeley by | |
8 | * Jan-Simon Pendry at Imperial College, London. | |
9 | * | |
af359dea C |
10 | * Redistribution and use in source and binary forms, with or without |
11 | * modification, are permitted provided that the following conditions | |
12 | * are met: | |
13 | * 1. Redistributions of source code must retain the above copyright | |
14 | * notice, this list of conditions and the following disclaimer. | |
15 | * 2. Redistributions in binary form must reproduce the above copyright | |
16 | * notice, this list of conditions and the following disclaimer in the | |
17 | * documentation and/or other materials provided with the distribution. | |
18 | * 3. All advertising materials mentioning features or use of this software | |
19 | * must display the following acknowledgement: | |
20 | * This product includes software developed by the University of | |
21 | * California, Berkeley and its contributors. | |
22 | * 4. Neither the name of the University nor the names of its contributors | |
23 | * may be used to endorse or promote products derived from this software | |
24 | * without specific prior written permission. | |
25 | * | |
26 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | |
27 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | |
28 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | |
29 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | |
30 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | |
31 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | |
32 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |
33 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | |
34 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | |
35 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |
36 | * SUCH DAMAGE. | |
136704f7 | 37 | * |
af359dea C |
38 | * @(#)os-irix.h 5.3 (Berkeley) 5/12/91 |
39 | * | |
40 | * $Id: os-irix.h,v 5.2.1.4 91/05/07 22:19:47 jsp Alpha $ | |
41 | * | |
42 | * IRIX 3.3 definitions for Amd (automounter) | |
43 | * Contributed by Scott R. Presnell <srp@cgl.ucsf.edu> | |
136704f7 JSP |
44 | */ |
45 | ||
46 | /* | |
47 | * Does the compiler grok void * | |
48 | */ | |
49 | #define VOIDP | |
50 | ||
51 | /* | |
52 | * Which version of the Sun RPC library we are using | |
53 | * This is the implementation release number, not | |
54 | * the protocol revision number. | |
55 | */ | |
56 | #define RPC_3 | |
57 | ||
58 | /* | |
59 | * Which version of the NFS interface are we using. | |
60 | * This is the implementation release number, not | |
61 | * the protocol revision number. | |
62 | */ | |
63 | #define NFS_3 | |
64 | ||
65 | /* | |
66 | * Byte ordering | |
67 | */ | |
68 | #undef ARCH_ENDIAN | |
69 | #define ARCH_ENDIAN "big" | |
70 | ||
71 | /* | |
72 | * Has support for syslog() | |
73 | */ | |
74 | #define HAS_SYSLOG | |
75 | ||
76 | #define M_GRPID MS_GRPID | |
77 | #define M_RDONLY MS_RDONLY | |
78 | /* | |
79 | * Support for ndbm | |
80 | */ | |
81 | #define OS_HAS_NDBM | |
82 | ||
83 | #define UPDATE_MTAB | |
84 | ||
85 | #undef MTAB_TYPE_NFS | |
86 | #define MTAB_TYPE_NFS "nfs" | |
87 | ||
88 | #undef MTAB_TYPE_UFS | |
89 | #define MTAB_TYPE_UFS "efs" | |
90 | ||
91 | #define NMOUNT 40 /* The std sun value */ | |
92 | /* | |
93 | * Name of filesystem types | |
94 | */ | |
95 | #define MOUNT_TYPE_UFS sysfs(GETFSIND, FSID_EFS) | |
96 | #define MOUNT_TYPE_NFS sysfs(GETFSIND, FSID_NFS) | |
97 | ||
98 | #define SYS5_SIGNALS | |
99 | ||
100 | /* | |
101 | * Use <fcntl.h> rather than <sys/file.h> | |
102 | */ | |
103 | /*#define USE_FCNTL*/ | |
104 | ||
105 | /* | |
106 | * Use fcntl() rather than flock() | |
107 | */ | |
108 | /*#define LOCK_FCNTL*/ | |
109 | ||
110 | #ifdef __GNUC__ | |
111 | #define alloca(sz) __builtin_alloca(sz) | |
112 | #endif | |
113 | ||
114 | #define bzero(ptr, len) memset(ptr, 0, len) | |
115 | #define bcopy(from, to, len) memcpy(to, from, len) | |
116 | ||
117 | #undef MOUNT_TRAP | |
118 | #define MOUNT_TRAP(type, mnt, flags, mnt_data) \ | |
119 | irix_mount(mnt->mnt_fsname, mnt->mnt_dir,flags, type, mnt_data) | |
120 | #undef UNMOUNT_TRAP | |
121 | #define UNMOUNT_TRAP(mnt) umount(mnt->mnt_dir) | |
122 | #define NFDS 30 /* conservative */ | |
123 | ||
124 | #define NFS_HDR "misc-irix.h" | |
125 | #define UFS_HDR "misc-irix.h" | |
126 | ||
127 | /* not included in sys/param.h */ | |
128 | #include <sys/types.h> | |
129 | ||
130 | #define MOUNT_HELPER_SOURCE "mount_irix.c" | |
131 | ||
132 | #define MNTINFO_DEV "fsid" | |
133 | #define MNTINFO_PREF "0x" |