1 /*
2 * System call prototypes.
3 *
4 * DO NOT EDIT-- this file is automatically generated.
5 * $FreeBSD$
6 * created from FreeBSD: src/sys/i386/ibcs2/syscalls.xenix,v 1.14 2006/07/28 19:05:27 jhb Exp
7 */
8
9 #ifndef _IBCS2_XENIX_H_
10 #define _IBCS2_XENIX_H_
11
12 #include <sys/signal.h>
13 #include <sys/acl.h>
14 #include <sys/_semaphore.h>
15 #include <sys/ucontext.h>
16
17 #include <bsm/audit_kevents.h>
18
19 struct proc;
20
21 struct thread;
22
23 #define PAD_(t) (sizeof(register_t) <= sizeof(t) ? \
24 0 : sizeof(register_t) - sizeof(t))
25
26 #if BYTE_ORDER == LITTLE_ENDIAN
27 #define PADL_(t) 0
28 #define PADR_(t) PAD_(t)
29 #else
30 #define PADL_(t) PAD_(t)
31 #define PADR_(t) 0
32 #endif
33
34 struct xenix_rdchk_args {
35 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
36 };
37 struct xenix_chsize_args {
38 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
39 char size_l_[PADL_(long)]; long size; char size_r_[PADR_(long)];
40 };
41 struct xenix_ftime_args {
42 char tp_l_[PADL_(struct timeb *)]; struct timeb * tp; char tp_r_[PADR_(struct timeb *)];
43 };
44 struct xenix_nap_args {
45 char millisec_l_[PADL_(int)]; int millisec; char millisec_r_[PADR_(int)];
46 };
47 struct xenix_scoinfo_args {
48 register_t dummy;
49 };
50 struct xenix_eaccess_args {
51 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
52 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
53 };
54 struct ibcs2_sigaction_args {
55 char sig_l_[PADL_(int)]; int sig; char sig_r_[PADR_(int)];
56 char act_l_[PADL_(struct ibcs2_sigaction *)]; struct ibcs2_sigaction * act; char act_r_[PADR_(struct ibcs2_sigaction *)];
57 char oact_l_[PADL_(struct ibcs2_sigaction *)]; struct ibcs2_sigaction * oact; char oact_r_[PADR_(struct ibcs2_sigaction *)];
58 };
59 struct ibcs2_sigprocmask_args {
60 char how_l_[PADL_(int)]; int how; char how_r_[PADR_(int)];
61 char set_l_[PADL_(ibcs2_sigset_t *)]; ibcs2_sigset_t * set; char set_r_[PADR_(ibcs2_sigset_t *)];
62 char oset_l_[PADL_(ibcs2_sigset_t *)]; ibcs2_sigset_t * oset; char oset_r_[PADR_(ibcs2_sigset_t *)];
63 };
64 struct ibcs2_sigpending_args {
65 char mask_l_[PADL_(ibcs2_sigset_t *)]; ibcs2_sigset_t * mask; char mask_r_[PADR_(ibcs2_sigset_t *)];
66 };
67 struct ibcs2_sigsuspend_args {
68 char mask_l_[PADL_(ibcs2_sigset_t *)]; ibcs2_sigset_t * mask; char mask_r_[PADR_(ibcs2_sigset_t *)];
69 };
70 struct ibcs2_getgroups_args {
71 char gidsetsize_l_[PADL_(int)]; int gidsetsize; char gidsetsize_r_[PADR_(int)];
72 char gidset_l_[PADL_(ibcs2_gid_t *)]; ibcs2_gid_t * gidset; char gidset_r_[PADR_(ibcs2_gid_t *)];
73 };
74 struct ibcs2_setgroups_args {
75 char gidsetsize_l_[PADL_(int)]; int gidsetsize; char gidsetsize_r_[PADR_(int)];
76 char gidset_l_[PADL_(ibcs2_gid_t *)]; ibcs2_gid_t * gidset; char gidset_r_[PADR_(ibcs2_gid_t *)];
77 };
78 struct ibcs2_sysconf_args {
79 char name_l_[PADL_(int)]; int name; char name_r_[PADR_(int)];
80 };
81 struct ibcs2_pathconf_args {
82 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
83 char name_l_[PADL_(int)]; int name; char name_r_[PADR_(int)];
84 };
85 struct ibcs2_fpathconf_args {
86 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
87 char name_l_[PADL_(int)]; int name; char name_r_[PADR_(int)];
88 };
89 struct ibcs2_rename_args {
90 char from_l_[PADL_(char *)]; char * from; char from_r_[PADR_(char *)];
91 char to_l_[PADL_(char *)]; char * to; char to_r_[PADR_(char *)];
92 };
93 struct xenix_utsname_args {
94 char addr_l_[PADL_(long)]; long addr; char addr_r_[PADR_(long)];
95 };
96 int xenix_rdchk(struct thread *, struct xenix_rdchk_args *);
97 int xenix_chsize(struct thread *, struct xenix_chsize_args *);
98 int xenix_ftime(struct thread *, struct xenix_ftime_args *);
99 int xenix_nap(struct thread *, struct xenix_nap_args *);
100 int xenix_scoinfo(struct thread *, struct xenix_scoinfo_args *);
101 int xenix_eaccess(struct thread *, struct xenix_eaccess_args *);
102 int ibcs2_sigaction(struct thread *, struct ibcs2_sigaction_args *);
103 int ibcs2_sigprocmask(struct thread *, struct ibcs2_sigprocmask_args *);
104 int ibcs2_sigpending(struct thread *, struct ibcs2_sigpending_args *);
105 int ibcs2_sigsuspend(struct thread *, struct ibcs2_sigsuspend_args *);
106 int ibcs2_getgroups(struct thread *, struct ibcs2_getgroups_args *);
107 int ibcs2_setgroups(struct thread *, struct ibcs2_setgroups_args *);
108 int ibcs2_sysconf(struct thread *, struct ibcs2_sysconf_args *);
109 int ibcs2_pathconf(struct thread *, struct ibcs2_pathconf_args *);
110 int ibcs2_fpathconf(struct thread *, struct ibcs2_fpathconf_args *);
111 int ibcs2_rename(struct thread *, struct ibcs2_rename_args *);
112 int xenix_utsname(struct thread *, struct xenix_utsname_args *);
113
114 #ifdef COMPAT_43
115
116
117 #endif /* COMPAT_43 */
118
119
120 #ifdef COMPAT_FREEBSD4
121
122
123 #endif /* COMPAT_FREEBSD4 */
124
125 #define IBCS2_XENIX_AUE_xenix_rdchk AUE_NULL
126 #define IBCS2_XENIX_AUE_xenix_chsize AUE_FTRUNCATE
127 #define IBCS2_XENIX_AUE_xenix_ftime AUE_NULL
128 #define IBCS2_XENIX_AUE_xenix_nap AUE_NULL
129 #define IBCS2_XENIX_AUE_xenix_scoinfo AUE_NULL
130 #define IBCS2_XENIX_AUE_xenix_eaccess AUE_EACCESS
131 #define IBCS2_XENIX_AUE_ibcs2_sigaction AUE_NULL
132 #define IBCS2_XENIX_AUE_ibcs2_sigprocmask AUE_NULL
133 #define IBCS2_XENIX_AUE_ibcs2_sigpending AUE_NULL
134 #define IBCS2_XENIX_AUE_ibcs2_sigsuspend AUE_NULL
135 #define IBCS2_XENIX_AUE_ibcs2_getgroups AUE_GETGROUPS
136 #define IBCS2_XENIX_AUE_ibcs2_setgroups AUE_SETGROUPS
137 #define IBCS2_XENIX_AUE_ibcs2_sysconf AUE_NULL
138 #define IBCS2_XENIX_AUE_ibcs2_pathconf AUE_PATHCONF
139 #define IBCS2_XENIX_AUE_ibcs2_fpathconf AUE_FPATHCONF
140 #define IBCS2_XENIX_AUE_ibcs2_rename AUE_RENAME
141 #define IBCS2_XENIX_AUE_xenix_utsname AUE_NULL
142
143 #undef PAD_
144 #undef PADL_
145 #undef PADR_
146
147 #endif /* !_IBCS2_XENIX_H_ */
Cache object: 405b23957595142aaab45036c14cba74
|