1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34 #ifndef _COMPAT_OSF1_OSF1_CVT_H_
35 #define _COMPAT_OSF1_OSF1_CVT_H_
36
37 #include <sys/param.h>
38 #include <sys/proc.h>
39 #include <sys/mount.h>
40 #include <sys/resource.h>
41 #include <sys/signal.h>
42 #include <sys/stat.h>
43 #include <sys/fcntl.h>
44
45 #include <compat/common/compat_util.h>
46
47 #define osf1_cvt_dev_from_native(dev) \
48 osf1_makedev(major(dev), minor(dev))
49 #define osf1_cvt_dev_to_native(dev) \
50 makedev(osf1_major(dev), osf1_minor(dev))
51
52 void osf1_cvt_flock_from_native(const struct flock *nf,
53 struct osf1_flock *of);
54 int osf1_cvt_flock_to_native(const struct osf1_flock *of,
55 struct flock *nf);
56 int osf1_cvt_msghdr_xopen_to_native(const struct osf1_msghdr_xopen *omh,
57 struct msghdr *nmh);
58 int osf1_cvt_pathconf_name_to_native(int oname, int *bnamep);
59 void osf1_cvt_rusage_from_native(const struct rusage *nru,
60 struct osf1_rusage *oru);
61 void osf1_cvt_sigaction_from_native(const struct sigaction *nsa,
62 struct osf1_sigaction *osa);
63 int osf1_cvt_sigaction_to_native(const struct osf1_sigaction *osa,
64 struct sigaction *nsa);
65 void osf1_cvt_sigaltstack_from_native(const struct sigaltstack *nss,
66 struct osf1_sigaltstack *oss);
67 int osf1_cvt_sigaltstack_to_native(const struct osf1_sigaltstack *oss,
68 struct sigaltstack *nss);
69 void osf1_cvt_sigset_from_native(const sigset_t *nss, osf1_sigset_t *oss);
70 int osf1_cvt_sigset_to_native(const osf1_sigset_t *oss, sigset_t *nss);
71 void osf1_cvt_stat_from_native(const struct stat *nst,
72 struct osf1_stat *ost);
73 void osf1_cvt_statfs_from_native(const struct statfs *nsfs,
74 struct osf1_statfs *osfs);
75
76 extern const int osf1_errno_rxlist[];
77 extern const int osf1_signal_xlist[];
78 extern const int osf1_signal_rxlist[];
79
80 extern const struct emul_flags_xtab osf1_access_flags_xtab[];
81 extern const struct emul_flags_xtab osf1_fcntl_getsetfd_flags_rxtab[];
82 extern const struct emul_flags_xtab osf1_fcntl_getsetfd_flags_xtab[];
83 extern const struct emul_flags_xtab osf1_fcntl_getsetfl_flags_rxtab[];
84 extern const struct emul_flags_xtab osf1_fcntl_getsetfl_flags_xtab[];
85 extern const struct emul_flags_xtab osf1_mmap_flags_xtab[];
86 extern const struct emul_flags_xtab osf1_mmap_prot_xtab[];
87 extern const struct emul_flags_xtab osf1_nfs_mount_flags_xtab[];
88 extern const struct emul_flags_xtab osf1_open_flags_rxtab[];
89 extern const struct emul_flags_xtab osf1_open_flags_xtab[];
90 extern const struct emul_flags_xtab osf1_reboot_opt_xtab[];
91 extern const struct emul_flags_xtab osf1_sendrecv_msg_flags_xtab[];
92 extern const struct emul_flags_xtab osf1_sigaction_flags_rxtab[];
93 extern const struct emul_flags_xtab osf1_sigaction_flags_xtab[];
94 extern const struct emul_flags_xtab osf1_sigaltstack_flags_rxtab[];
95 extern const struct emul_flags_xtab osf1_sigaltstack_flags_xtab[];
96 extern const struct emul_flags_xtab osf1_wait_options_xtab[];
97
98 #endif