thorpej
009d2d725c
Grok __HAVE_MINIMAL_EMUL and __HAVE_SYSCALL_INTERN.
2001-01-15 21:33:52 +00:00
simonb
f514e805ed
Move prototypes for mips_user_cachectl() and mips_user_cacheflush()
...
to <mips/cachectl.h>.
2001-01-07 04:13:16 +00:00
jdolecek
72014988d6
adapt to recent struct emul changes
2000-12-16 13:30:08 +00:00
jdolecek
a6ca890142
always fill in e_syscall in respective emul_*; if the emulation doesn't
...
have it's own separated *_syscall() function, use syscall()
2000-12-09 12:38:23 +00:00
jdolecek
217ab37653
split ecoff specific code to separate file ultrix_exec_ecoff.c
2000-12-09 12:19:28 +00:00
jdolecek
8e91e3f0bd
make LKM safe
2000-12-01 19:26:57 +00:00
jdolecek
01040d97a2
add e_path (emulation path) to struct emul, which replaces emulation-specific
...
*_emul_path variables
change macros CHECK_ALT_{CREAT|EXIST} to use that, 'root' doesn't need
to be passed explicitly any more and *_CHECK_ALT_{CREAT|EXIST} are removed
change explicit emul_find() calls in probe functions to get the emulation
path from the checked exec switch entry's emulation
remove no longer needed header files
add e_flags and e_syscall to struct emul; these are unsed and empty for now
2000-12-01 12:28:30 +00:00
jdolecek
baae0324b9
restructure struct emul and execsw, in preparation to make emulations LKMable:
...
* move all exec-type specific information from struct emul to execsw[] and
provide single struct emul per emulation
* elf:
- kern/exec_elf32.c:probe_funcs[] is gone, execsw[] how has one entry
per emulation and contains pointer to respective probe function
- interp is allocated via MALLOC() rather than on stack
- elf_args structure is allocated via MALLOC() rather than malloc()
* ecoff: the per-emulation hooks moved from alpha and mips specific code
to OSF1 and Ultrix compat code as appropriate, execsw[] has one entry per
emulation supporting ecoff with appropriate probe function
* the makecmds/probe functions don't set emulation, pointer to emulation is
part of appropriate execsw[] entry
* constify couple of structures
2000-11-21 00:37:49 +00:00
simonb
f2df695c3b
Update extern declarations of {hpux,ultrix}_syscallnames for change
...
to e_syscallnames in struct emul. Untested on HP, but should be ok.
2000-11-19 12:47:51 +00:00
nisimura
7d6022a0db
version[] string was const'ifed. Pointed out by Izumi Tsutsui.
2000-07-20 08:29:41 +00:00
mrg
13f211c52e
remove include of <vm/vm.h>. <vm/vm.h> -> <uvm/uvm_extern.h>
2000-06-28 15:39:24 +00:00
simonb
3c359c262d
The size of the members of struct ultrix_utsname were nothing like
...
reality - adjust and fill in "version" the same way that some other
compat routines do. An Ultrix "uname -a" returns something meaninful
now instead of just "NetBSD ".
2000-04-28 12:52:52 +00:00
augustss
a82aeb5508
Kill register declarations.
2000-03-30 11:24:16 +00:00
simonb
2f1fef39b3
Centralise the declarations of cpu_model, machine, machine_arch,
...
osrelease, and ostype and remove "extern char foo[];" (for hostname
and domainname too).
Also delete redunctant decl of boottime in kern_info_43.c.
2000-03-28 23:57:24 +00:00
kleink
230876cf26
Merge parts of chs-ubc2 into the trunk:
...
* Remove the casts to vaddr_t from the round_page() and trunc_page() macros to
make them type-generic, which is necessary i.e. to operate on file offsets
without truncating them.
* In due course, cast pointer arguments to these macros to an appropriate
integral type (paddr_t, vaddr_t).
Originally done by Chuck Silvers, updated by myself.
2000-03-26 20:42:21 +00:00
thorpej
2c358fca82
Update for new msgctl()/semctl()/shmctl() calls.
1999-08-25 04:52:06 +00:00
drochner
287f2ffe69
emulate fcntl(F_SETLK) & Co.
...
(seti@home works now:-)
1999-07-30 16:03:49 +00:00
thorpej
e3669c3393
Add "use counting" to file entries. When closing a file, and it's reference
...
count is 0, wait for use count to drain before finishing the close.
This is necessary in order for multiple processes to safely share file
descriptor tables.
1999-05-05 20:01:01 +00:00
christos
908adf3eef
Regen
1999-02-09 20:31:43 +00:00
sommerfe
6f6b09a92a
s/SunOS/Ultrix/ in comment
1998-10-26 18:31:01 +00:00
matt
3ad026ac87
vax -> __vax__ (and mips to __mips__ in ultrix_misc.c)
1998-10-20 01:46:27 +00:00
tron
eb17acb9b3
Defopt SYSVMSG, SYSVSEM and SYSVSHM.
1998-10-19 22:43:58 +00:00
drochner
720885a1e9
Use a private implementation of sys_sigvec(). Ultrix uses an sv_flags bit
...
unknown to NetBSD and sigaction1() does (now?) complain about it.
1998-10-03 16:13:20 +00:00
drochner
6b079d1e82
repair signal handling:
...
-use own sigcode since the native one uses a sigreturn syscall not present
in Ultrix
-route sigreturn to compat_13_sigreturn
1998-10-02 18:53:23 +00:00
drochner
eb9936b47a
Make Ultrix emulation private functions for sigreturn and sigsuspend
...
because the NetBSD implementation differs now.
1998-09-26 16:24:14 +00:00
drochner
61af1b2158
Update for sigmask changes.
1998-09-26 15:32:26 +00:00
eeh
a2dd74ed79
Merge paddr_t changes into the main branch.
1998-08-13 02:10:37 +00:00
perry
e1601dc2ca
bzero->memset, bcopy->memcpy, bcmp->memcmp
1998-08-09 20:36:58 +00:00
mhitch
3950d164c0
Add missing include of "opt_nfsserver.h".
1998-07-03 20:03:04 +00:00
thorpej
e533010083
Include the NFS option header.
1998-02-19 00:46:02 +00:00
jonathan
2e47a5547e
Use void* not caddr_t for 'addr' argument to native mmap().
1997-10-19 00:15:31 +00:00
jonathan
8494c2cf67
Correct name of author in license clause 3, as per email with mrg.
1997-10-10 08:31:10 +00:00
mhitch
3bda138b2b
Fix a missed *setregs() change.
1997-09-24 02:13:11 +00:00
jonathan
530b4df7e3
Emulate RISC Ultrix cacheflush() and cachectl() syscalls on mips.
1997-06-09 11:57:43 +00:00
jonathan
8b35fc95ad
GC old ultrix-emul syscall stub used to debug ultrix signals.
1997-05-25 11:09:39 +00:00
jonathan
d5b9a48fd5
Add prototype for cpu_exec_ecoff_setregs() to mips/inuclde/ecoff_machdep.h.
...
Use it in compat/ultrix/ultrix_misc.c (setting emul type on mips).
1997-05-24 10:26:30 +00:00
jonathan
6aaa702220
lint: add explicit return type to ultrix_sys_shmsys().
1997-05-24 09:53:11 +00:00
jonathan
bbf513e2e5
Correct shm ifdefs for when SVSHM is defined. Fix from Ted Lemon in PR 3542.
1997-04-26 02:00:11 +00:00
jonathan
aee0270b51
Add changes to make vic-2.8 Ultrix binaries work on NetBSD with COMPAT_ULTRIX:
...
* Add IPmulticast setsockopt emulation.
* Add Ultrix shmsys emulation (untested).
* tidy up use of stackgap.
1997-04-06 23:26:52 +00:00
thorpej
90b1ce5234
NFSCLIENT -> NFS
1997-01-31 02:20:03 +00:00
jonathan
05c95ca095
Update copyright.
1996-10-19 12:40:31 +00:00
christos
53e42f3487
Backout previous kprintf change.
1996-10-13 00:46:49 +00:00
christos
5476886e52
printf -> kprintf, sprintf -> ksprintf
1996-10-10 17:47:29 +00:00
mycroft
118b9b478d
sys/dir.h -> sys/dirent.h
1996-08-10 09:08:26 +00:00
cgd
d73abf41aa
avoid unnecessary checks of m_get/MGET/etc.'s return values. When
...
they're called with M_WAIT, they are defined to never return NULL.
1996-06-14 22:21:12 +00:00
jonathan
b72f41635e
Remove gcc -Wall lint from ultrix emulation.-
...
Mostly adding explicit != comparison to "if (error = copyin/out( ... ))".
Fix comment glitch in ultrix_fs.c
1996-04-07 17:23:04 +00:00
jonathan
938d7138be
Add vax setregs() support for exec'ing vax ultrix a.out binaries.
1996-04-07 16:38:03 +00:00
pk
9bfd34f41e
Adapt to NFSv3.
1996-02-19 15:41:38 +00:00
jonathan
aadc0baf87
Add '/emul/ultrix' pathname processing to Ultrix emulation, and move
...
Ultrix syscalls that require that processing out of ultrix_misc.c
to ultrix_pathname.c.
1996-01-07 13:38:49 +00:00
jonathan
ac604db4dd
Add sigcode and esigcode to emul_ultrix, so that signal trampoline
...
code is set up for emul_ultrix processes.
1996-01-03 21:07:33 +00:00