4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
22 * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
29 #pragma ident "%Z%%M% %I% %E% SMI"
32 * Translate from BSD to System V, where possible.
35 * System-V specific header files
40 #include <sys/utsname.h>
41 #include <sys/statvfs.h>
42 #include <sys/systeminfo.h>
43 #include <sys/vfstab.h>
44 #include <sys/fs/ufs_inode.h>
45 #include <sys/fs/ufs_fs.h>
46 #include <sys/fs/ufs_fsdir.h>
47 #include <sys/fs/ufs_acl.h>
49 #include <sys/mnttab.h>
50 #include <sys/vfstab.h>
57 * make mnttab look like mtab
59 #define MOUNTED MNTTAB
61 #define mnt_fsname mnt_special
62 #define mnt_dir mnt_mountp
63 #define mnt_type mnt_fstype
64 #define mnt_opts mnt_mntopts
65 #define MNTTYPE_42 "ufs"
66 #define MNTINFO_DEV "dev"
68 #define setmntent fopen
69 #define endmntent fclose
72 * Function translations
74 #define gethostname(name, len) \
75 ((sysinfo(SI_HOSTNAME, (name), (len)) < 0) ? -1 : 0)
76 #define signal nsignal /* defined in dumpmain.c */
77 #define sigvec sigaction /* both struct and func */
78 #define sv_flags sa_flags
79 #define sv_handler sa_handler
80 #define sv_mask sa_mask
82 #define setreuid(r, e) seteuid(e)
83 #define statfs statvfs /* both struct and func */
85 #define setjmp(b) sigsetjmp((b), 1)
86 #define longjmp siglongjmp
87 #define jmp_buf sigjmp_buf
94 * Inode related translations
96 #define ROOTINO UFSROOTINO
97 #define di_rdev di_ordev
100 * For stat-inode translation.
101 * Don't forget the translation from
102 * nanosecs to usecs (or vica versa)
104 #define st_spare1 st_atim.tv_nsec
105 #define st_spare2 st_mtim.tv_nsec
106 #define st_spare3 st_ctim.tv_nsec
114 #endif /* _DUMPUSG_H */