|
|
1.1 root 1: /* $Id: os-defaults.h,v 5.2 90/06/23 22:20:44 jsp Rel $ */
2:
3: /*
4: * Common OS definitions. These may be overridden in
5: * the OS specific files ("os-foo.h").
6: *
7: * Copyright (c) 1989 Jan-Simon Pendry
8: * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
9: * Copyright (c) 1989 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 provided
16: * that: (1) source distributions retain this entire copyright notice and
17: * comment, and (2) distributions including binaries display the following
18: * acknowledgement: ``This product includes software developed by the
19: * University of California, Berkeley and its contributors'' in the
20: * documentation or other materials provided with the distribution and in
21: * all advertising materials mentioning features or use of this software.
22: * Neither the name of the University nor the names of its contributors may
23: * be used to endorse or promote products derived from this software without
24: * specific prior written permission.
25: * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
26: * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
27: * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
28: *
29: * @(#)os-defaults.h 5.1 (Berkeley) 6/29/90
30: */
31:
32: /*
33: * What level of AMD are we backward compatible with?
34: * This only applies to externally visible characteristics.
35: * Rev.Minor.Branch.Patch (2 digits each)
36: */
37: #define AMD_COMPAT 5000000 /* 5.0 */
38:
39: /*
40: * What type is free(void*) returning?
41: */
42: #define FREE_RETURN_TYPE void
43:
44: /*
45: * Is the mount table mirrored in software
46: */
47: #define UPDATE_MTAB
48:
49: /*
50: * Where to get union wait
51: */
52: #define WAIT <sys/wait.h>
53:
54: /*
55: * Where to get mount entry info
56: */
57: #define MNTENT_HDR <mntent.h>
58:
59: /*
60: * Include support for syslog()
61: */
62: #define HAS_SYSLOG
63:
64: /*
65: * Byte ordering
66: */
67: #define ARCH_ENDIAN "unknown"
68:
69: /*
70: * Name of filesystem types
71: */
72: #define MTAB_TYPE_NFS "nfs"
73: #define MTAB_TYPE_UFS "4.2"
74:
75: /*
76: * Name of mount & unmount system calls
77: *
78: * NOTE:
79: * UNMOUNT_TRAP takes a struct mntent *
80: */
81: #define MOUNT_TRAP(type, mnt, flags, mnt_data) \
82: mount(type, mnt->mnt_dir, flags, mnt_data)
83: #define UNMOUNT_TRAP(mnt) unmount(mnt->mnt_dir)
84:
85: /*
86: * How to unmount filesystems.
87: * NEED_UMOUNT_FS includes code to scan the mount table
88: * to find the correct information for the unmount system
89: * call. Some systems, such as 4.4bsd, do not require
90: * this - they can just do an unmount system call directly.
91: */
92: #define NEED_UMOUNT_FS
93: #define UMOUNT_FS(dir) umount_fs(dir)
94:
95: /*
96: * Type of a file handle
97: */
98: #define NFS_FH_TYPE fhandle_t *
99: #define NFS_FH_DREF(dst, src) { (dst) = (src); }
100:
101: /*
102: * How to copy an address into an NFS filehandle
103: */
104: #define NFS_SA_DREF(dst, src) { (dst).addr = (src); }
105:
106: /*
107: * Type of filesystem type
108: */
109: #define MTYPE_TYPE int
110:
111: /*
112: * How to get a mount list
113: */
114: #define READ_MTAB_FROM_FILE
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.