| 1 | /* $Id: os-aux.h,v 5.2 90/06/23 22:20:37 jsp Rel $ */ |
| 2 | |
| 3 | /* |
| 4 | * A/UX macII definitions for Amd (automounter) |
| 5 | * Contributed by Julian Onions <jpo@cs.nott.ac.uk> |
| 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 | * %sccs.include.redist.c% |
| 16 | * |
| 17 | * @(#)os-aux.h 5.1 (Berkeley) %G% |
| 18 | */ |
| 19 | |
| 20 | /* |
| 21 | * Does the compiler grok void * |
| 22 | */ |
| 23 | #define VOIDP |
| 24 | |
| 25 | /* |
| 26 | * Which version of the Sun RPC library we are using |
| 27 | * This is the implementation release number, not |
| 28 | * the protocol revision number. |
| 29 | */ |
| 30 | #define RPC_3 |
| 31 | |
| 32 | /* |
| 33 | * Which version of the NFS interface are we using. |
| 34 | * This is the implementation release number, not |
| 35 | * the protocol revision number. |
| 36 | */ |
| 37 | #define NFS_3 |
| 38 | |
| 39 | /* |
| 40 | * Byte ordering |
| 41 | */ |
| 42 | #undef ARCH_ENDIAN |
| 43 | #define ARCH_ENDIAN "big" |
| 44 | |
| 45 | /* |
| 46 | * Has support for syslog() |
| 47 | */ |
| 48 | #define HAS_SYSLOG |
| 49 | |
| 50 | /* |
| 51 | * No support for ndbm |
| 52 | */ |
| 53 | #undef OS_HAS_NDBM |
| 54 | |
| 55 | /* |
| 56 | * Name of filesystem types |
| 57 | */ |
| 58 | #define MOUNT_TYPE_UFS MOUNT_UFS |
| 59 | #define MOUNT_TYPE_NFS MOUNT_NFS |
| 60 | |
| 61 | #undef MTAB_TYPE_UFS |
| 62 | #define MTAB_TYPE_UFS "5.2" |
| 63 | |
| 64 | #define SIGCHLD SIGCLD |
| 65 | #define SYS5_SIGNALS |
| 66 | |
| 67 | /* |
| 68 | * Use <fcntl.h> rather than <sys/file.h> |
| 69 | */ |
| 70 | #define USE_FCNTL |
| 71 | |
| 72 | /* |
| 73 | * Use fcntl() rather than flock() |
| 74 | */ |
| 75 | #define LOCK_FCNTL |
| 76 | |
| 77 | #ifdef __GNUC__ |
| 78 | #define alloca(sz) __builtin_alloca(sz) |
| 79 | #endif |
| 80 | |
| 81 | #define bzero(ptr, len) memset(ptr, 0, len) |
| 82 | #define bcopy(from, to, len) memcpy(to, from, len) |
| 83 | #define getpagesize() (2048) |
| 84 | #undef MOUNT_TRAP |
| 85 | #define MOUNT_TRAP(type, mnt, flags, mnt_data) \ |
| 86 | fsmount(type, mnt->mnt_dir, flags, mnt_data) |
| 87 | #undef UNMOUNT_TRAP |
| 88 | #define UNMOUNT_TRAP(mnt) unmount(mnt->mnt_dir) |
| 89 | #define NFDS 30 /* conservative */ |
| 90 | |
| 91 | /* not included in sys/param.h */ |
| 92 | #include <sys/types.h> |
| 93 | /* not part of sys/time.h */ |
| 94 | #include <time.h> |
| 95 | /* for NMOUNT */ |
| 96 | #include <sys/config.h> |