Commit | Line | Data |
---|---|---|
136704f7 JSP |
1 | /* $Id: os-irix.h,v 5.2.1.2 91/03/03 20:50:27 jsp Alpha $ */ |
2 | ||
3 | /* | |
4 | * IRIX 3.3 definitions for Amd (automounter) | |
5 | * Contributed by Scott R. Presnell <srp@cgl.ucsf.edu> | |
6 | * | |
7 | * Copyright (c) 1990 Jan-Simon Pendry | |
8 | * Copyright (c) 1990 Imperial College of Science, Technology & Medicine | |
9 | * Copyright (c) 1990 The Regents of the University of California. | |
10 | * All rights reserved. | |
11 | * | |
12 | * This code is derived from software contributed to Berkeley by | |
13 | * Jan-Simon Pendry at Imperial College, London. | |
14 | * | |
15 | * Redistribution and use in source and binary forms are permitted | |
16 | * provided that the above copyright notice and this paragraph are | |
17 | * duplicated in all such forms and that any documentation, | |
18 | * advertising materials, and other materials related to such | |
19 | * distribution and use acknowledge that the software was developed | |
20 | * by Imperial College of Science, Technology and Medicine, London, UK. | |
21 | * The names of the College and University may not be used to endorse | |
22 | * or promote products derived from this software without specific | |
23 | * prior written permission. | |
24 | * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR | |
25 | * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED | |
26 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | |
27 | * | |
28 | * @(#)os-irix.h 5.1 (Berkeley) %G% | |
29 | */ | |
30 | ||
31 | /* | |
32 | * Does the compiler grok void * | |
33 | */ | |
34 | #define VOIDP | |
35 | ||
36 | /* | |
37 | * Which version of the Sun RPC library we are using | |
38 | * This is the implementation release number, not | |
39 | * the protocol revision number. | |
40 | */ | |
41 | #define RPC_3 | |
42 | ||
43 | /* | |
44 | * Which version of the NFS interface are we using. | |
45 | * This is the implementation release number, not | |
46 | * the protocol revision number. | |
47 | */ | |
48 | #define NFS_3 | |
49 | ||
50 | /* | |
51 | * Byte ordering | |
52 | */ | |
53 | #undef ARCH_ENDIAN | |
54 | #define ARCH_ENDIAN "big" | |
55 | ||
56 | /* | |
57 | * Has support for syslog() | |
58 | */ | |
59 | #define HAS_SYSLOG | |
60 | ||
61 | #define M_GRPID MS_GRPID | |
62 | #define M_RDONLY MS_RDONLY | |
63 | /* | |
64 | * Support for ndbm | |
65 | */ | |
66 | #define OS_HAS_NDBM | |
67 | ||
68 | #define UPDATE_MTAB | |
69 | ||
70 | #undef MTAB_TYPE_NFS | |
71 | #define MTAB_TYPE_NFS "nfs" | |
72 | ||
73 | #undef MTAB_TYPE_UFS | |
74 | #define MTAB_TYPE_UFS "efs" | |
75 | ||
76 | #define NMOUNT 40 /* The std sun value */ | |
77 | /* | |
78 | * Name of filesystem types | |
79 | */ | |
80 | #define MOUNT_TYPE_UFS sysfs(GETFSIND, FSID_EFS) | |
81 | #define MOUNT_TYPE_NFS sysfs(GETFSIND, FSID_NFS) | |
82 | ||
83 | #define SYS5_SIGNALS | |
84 | ||
85 | /* | |
86 | * Use <fcntl.h> rather than <sys/file.h> | |
87 | */ | |
88 | /*#define USE_FCNTL*/ | |
89 | ||
90 | /* | |
91 | * Use fcntl() rather than flock() | |
92 | */ | |
93 | /*#define LOCK_FCNTL*/ | |
94 | ||
95 | #ifdef __GNUC__ | |
96 | #define alloca(sz) __builtin_alloca(sz) | |
97 | #endif | |
98 | ||
99 | #define bzero(ptr, len) memset(ptr, 0, len) | |
100 | #define bcopy(from, to, len) memcpy(to, from, len) | |
101 | ||
102 | #undef MOUNT_TRAP | |
103 | #define MOUNT_TRAP(type, mnt, flags, mnt_data) \ | |
104 | irix_mount(mnt->mnt_fsname, mnt->mnt_dir,flags, type, mnt_data) | |
105 | #undef UNMOUNT_TRAP | |
106 | #define UNMOUNT_TRAP(mnt) umount(mnt->mnt_dir) | |
107 | #define NFDS 30 /* conservative */ | |
108 | ||
109 | #define NFS_HDR "misc-irix.h" | |
110 | #define UFS_HDR "misc-irix.h" | |
111 | ||
112 | /* not included in sys/param.h */ | |
113 | #include <sys/types.h> | |
114 | ||
115 | #define MOUNT_HELPER_SOURCE "mount_irix.c" | |
116 | ||
117 | #define MNTINFO_DEV "fsid" | |
118 | #define MNTINFO_PREF "0x" |