1999-08-28 01:08:13 +00:00
|
|
|
$FreeBSD$
|
Remove old files no longer needed.
Add new files created for emulator.
Modify NetBSD import to work with FreeBSD and add new features and
code. The complete emulator is essentially a combination of work/code
implemented by Sean Eric Fagan, Soren Schmidt, Scott Bartram, and myself,
Steven Wallace.
Features of this new emulator system include:
o "clean" code, including strict prototyping.
o Auto-generation of ibcs2 system calls, xenix system calls, isc system
calls. Generation includes system tables, structure definitions,
and prototyping of function calls.
o ibcs2 emulator does not rely on any COMPAT_43 system calls.
o embedded socksys support
o ibcs2 msgsys, semsys, shmsys calls supported if supported in kernel
o alternate /emul/ibcs2 namespace searched first for files in ibcs2
system. Usefull to keep sysv libraries, binaries in /emul/ibcs2.
o many other finer details and functions fixed or implemented.
1995-10-10 07:59:30 +00:00
|
|
|
|
|
|
|
#include <sys/param.h>
|
|
|
|
#include <sys/sysent.h>
|
|
|
|
#include <sys/sysproto.h>
|
|
|
|
#include <i386/ibcs2/ibcs2_types.h>
|
|
|
|
#include <i386/ibcs2/ibcs2_signal.h>
|
|
|
|
#include <i386/ibcs2/ibcs2_xenix.h>
|
|
|
|
|
2005-06-29 17:27:40 +00:00
|
|
|
0 AUE_NULL UNIMPL nosys
|
|
|
|
1 AUE_NULL UNIMPL xenix_xlocking
|
|
|
|
2 AUE_NULL UNIMPL xenix_creatsem
|
|
|
|
3 AUE_NULL UNIMPL xenix_opensem
|
|
|
|
4 AUE_NULL UNIMPL xenix_sigsem
|
|
|
|
5 AUE_NULL UNIMPL xenix_waitsem
|
|
|
|
6 AUE_NULL UNIMPL xenix_nbwaitsem
|
2006-07-28 19:05:28 +00:00
|
|
|
7 AUE_NULL STD { int xenix_rdchk(int fd); }
|
2005-06-29 17:27:40 +00:00
|
|
|
8 AUE_NULL UNIMPL nosys
|
|
|
|
9 AUE_NULL UNIMPL nosys
|
2006-07-28 19:05:28 +00:00
|
|
|
10 AUE_FTRUNCATE STD { int xenix_chsize(int fd, long size); }
|
|
|
|
11 AUE_NULL STD { int xenix_ftime(struct timeb *tp); }
|
|
|
|
12 AUE_NULL STD { int xenix_nap(int millisec); }
|
2005-06-29 17:27:40 +00:00
|
|
|
13 AUE_NULL UNIMPL xenix_sdget
|
|
|
|
14 AUE_NULL UNIMPL xenix_sdfree
|
|
|
|
15 AUE_NULL UNIMPL xenix_sdenter
|
|
|
|
16 AUE_NULL UNIMPL xenix_sdleave
|
|
|
|
17 AUE_NULL UNIMPL xenix_sdgetv
|
|
|
|
18 AUE_NULL UNIMPL xenix_sdwaitv
|
|
|
|
19 AUE_NULL UNIMPL nosys
|
|
|
|
20 AUE_NULL UNIMPL nosys
|
2006-07-28 19:05:28 +00:00
|
|
|
21 AUE_NULL STD { int xenix_scoinfo(void); }
|
2005-06-29 17:27:40 +00:00
|
|
|
22 AUE_NULL UNIMPL nosys
|
|
|
|
23 AUE_NULL UNIMPL nosys
|
|
|
|
24 AUE_NULL UNIMPL nosys
|
|
|
|
25 AUE_NULL UNIMPL nosys
|
|
|
|
26 AUE_NULL UNIMPL nosys
|
|
|
|
27 AUE_NULL UNIMPL nosys
|
|
|
|
28 AUE_NULL UNIMPL nosys
|
|
|
|
29 AUE_NULL UNIMPL nosys
|
|
|
|
30 AUE_NULL UNIMPL nosys
|
|
|
|
31 AUE_NULL UNIMPL nosys
|
|
|
|
32 AUE_NULL UNIMPL xenix_proctl
|
|
|
|
33 AUE_NULL UNIMPL xenix_execseg
|
|
|
|
34 AUE_NULL UNIMPL xenix_unexecseg
|
|
|
|
35 AUE_NULL UNIMPL nosys
|
2006-07-28 19:05:28 +00:00
|
|
|
36 AUE_SELECT NOPROTO { int select(u_int nd, fd_set *in, \
|
2005-06-29 17:27:40 +00:00
|
|
|
fd_set *ou, fd_set *ex, \
|
|
|
|
struct timeval *tv); }
|
2006-07-28 19:05:28 +00:00
|
|
|
37 AUE_EACCESS STD { int xenix_eaccess(char *path, int flags); }
|
2005-06-29 17:27:40 +00:00
|
|
|
38 AUE_NULL UNIMPL xenix_paccess
|
2006-07-28 19:05:28 +00:00
|
|
|
39 AUE_NULL STD { int ibcs2_sigaction(int sig, \
|
2005-06-29 17:27:40 +00:00
|
|
|
struct ibcs2_sigaction *act, \
|
|
|
|
struct ibcs2_sigaction *oact); }
|
2006-07-28 19:05:28 +00:00
|
|
|
40 AUE_NULL STD { int ibcs2_sigprocmask(int how, \
|
2005-06-29 17:27:40 +00:00
|
|
|
ibcs2_sigset_t *set, \
|
|
|
|
ibcs2_sigset_t *oset); }
|
2006-07-28 19:05:28 +00:00
|
|
|
41 AUE_NULL STD { int ibcs2_sigpending(ibcs2_sigset_t *mask); }
|
|
|
|
42 AUE_NULL STD { int ibcs2_sigsuspend(ibcs2_sigset_t *mask); }
|
|
|
|
43 AUE_GETGROUPS STD { int ibcs2_getgroups(int gidsetsize, \
|
2005-06-29 17:27:40 +00:00
|
|
|
ibcs2_gid_t *gidset); }
|
2006-07-28 19:05:28 +00:00
|
|
|
44 AUE_SETGROUPS STD { int ibcs2_setgroups(int gidsetsize, \
|
2005-06-29 17:27:40 +00:00
|
|
|
ibcs2_gid_t *gidset); }
|
2006-07-28 19:05:28 +00:00
|
|
|
45 AUE_NULL STD { int ibcs2_sysconf(int name); }
|
|
|
|
46 AUE_PATHCONF STD { int ibcs2_pathconf(char *path, int name); }
|
|
|
|
47 AUE_FPATHCONF STD { int ibcs2_fpathconf(int fd, int name); }
|
|
|
|
48 AUE_RENAME STD { int ibcs2_rename(char *from, char *to); }
|
2005-06-29 17:27:40 +00:00
|
|
|
49 AUE_NULL UNIMPL nosys
|
2006-07-28 19:05:28 +00:00
|
|
|
50 AUE_NULL STD { int xenix_utsname(long addr); }
|
2005-06-29 17:27:40 +00:00
|
|
|
51 AUE_NULL UNIMPL nosys
|
|
|
|
52 AUE_NULL UNIMPL nosys
|
|
|
|
53 AUE_NULL UNIMPL nosys
|
|
|
|
54 AUE_NULL UNIMPL nosys
|
2006-07-28 19:05:28 +00:00
|
|
|
55 AUE_GETITIMER NOPROTO { int getitimer(u_int which, \
|
2005-06-29 17:27:40 +00:00
|
|
|
struct itimerval *itv); }
|
2006-07-28 19:05:28 +00:00
|
|
|
56 AUE_SETITIMER NOPROTO { int setitimer(u_int which, \
|
2005-06-29 17:27:40 +00:00
|
|
|
struct itimerval *itv, \
|
|
|
|
struct itimerval *otv); }
|