Annotation of sys/compat/osf1/osf1_cvt.h, Revision 1.1.1.1
1.1 nbrk 1: /* $OpenBSD: osf1_cvt.h,v 1.1 2000/08/04 15:47:54 ericj Exp $ */
2: /* $NetBSD: osf1_cvt.h,v 1.5 1999/05/10 05:58:44 cgd Exp $ */
3:
4: /*
5: * Copyright (c) 1999 Christopher G. Demetriou. All rights reserved.
6: *
7: * Redistribution and use in source and binary forms, with or without
8: * modification, are permitted provided that the following conditions
9: * are met:
10: * 1. Redistributions of source code must retain the above copyright
11: * notice, this list of conditions and the following disclaimer.
12: * 2. Redistributions in binary form must reproduce the above copyright
13: * notice, this list of conditions and the following disclaimer in the
14: * documentation and/or other materials provided with the distribution.
15: * 3. All advertising materials mentioning features or use of this software
16: * must display the following acknowledgement:
17: * This product includes software developed by Christopher G. Demetriou
18: * for the NetBSD Project.
19: * 4. The name of the author may not be used to endorse or promote products
20: * derived from this software without specific prior written permission
21: *
22: * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
23: * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
24: * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
25: * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
26: * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
27: * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28: * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29: * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30: * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
31: * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
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 /* _COMPAT_OSF1_OSF1_CVT_H_ */
CVSweb