Commit Graph

188 Commits

Author SHA1 Message Date
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
jdolecek
78b866e95a change the type of *syscallnames[] array to 'const char * const foo[]' 2000-11-13 21:32:15 +00:00
cgd
0199b04bef update for changed makesyscalls.master 2000-08-18 19:35:15 +00:00
cgd
e539b49106 update for my change to makesyscalls.sh, and apparently previous
changes as well...
2000-08-18 19:25:37 +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
44b56d917e regen 1999-07-30 16:04:41 +00:00
drochner
287f2ffe69 emulate fcntl(F_SETLK) & Co.
(seti@home works now:-)
1999-07-30 16:03:49 +00:00
kleink
dfa5aad003 Regen. 1999-07-12 22:04:00 +00:00
kleink
e79a283e47 XSH5: change function signature to `void *sbrk(intptr_t)'. 1999-07-12 21:55:19 +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
simonb
8a8e8d144f Shut 'gcc -Wuninitialized' up. 1999-04-25 02:42:01 +00:00
christos
908adf3eef Regen 1999-02-09 20:31:43 +00:00
christos
a30a9f3d94 const poisoning and CHECK_ALT_CREAT fixes. 1999-02-09 20:30:38 +00:00
drochner
ba4af3c3de regen 1998-12-18 18:59:06 +00:00
drochner
b71f154130 remove compat_xxx dependencies where they don't belong 1998-12-18 18:49:59 +00:00
christos
f0c7751046 Regen 1998-12-10 17:13:06 +00:00
christos
b0b86b5b7f Defopt COMPAT_43 1998-12-10 17:03:19 +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
eeh
0a89614e93 Fixup big-endian syscall args. 1998-10-03 19:45:37 +00:00
drochner
304929e7ff regen 1998-10-03 16:15:39 +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
bdecb86492 regen 1998-09-26 16:29:13 +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
christos
8fb507a3b7 Assign copyright to TNF. 1998-09-05 14:50:25 +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
8aee7782f5 defopt COMPAT_SUNOS 1998-06-25 23:40:33 +00:00
thorpej
21592147a1 defopt COMPAT_ULTRIX 1998-06-25 23:27:56 +00:00
thorpej
bb13cd15fb Regen: defopt NFSSERVER 1998-06-25 22:20:04 +00:00
thorpej
5b34683734 defopt NFSSERVER 1998-06-25 22:19:50 +00:00
thorpej
8118bb3984 Make this compile again in light of Lite2. 1998-03-05 22:51:35 +00:00
thorpej
c5ecc8ab11 Arrgh, I said "abort", dammit... 1998-03-05 22:49:20 +00:00
thorpej
dfdde49707 *** empty log message *** 1998-03-05 22:48:34 +00:00
thorpej
dc4fe3d32d Regen: makesyscalls.sh changed. 1998-02-19 03:34:15 +00:00
thorpej
7db8266c3d Regen; syscalls.master and makesyscalls.sh changed. 1998-02-19 00:46:39 +00:00
thorpej
e533010083 Include the NFS option header. 1998-02-19 00:46:02 +00:00
kleink
9d4229ed21 Regen: use POSIX semantics for chown()/fchown(). 1998-02-14 22:06:38 +00:00
kleink
d3e69807a6 Use sys___posix_{chown,fchown}() instead of sys_{chown,fchown}(). 1998-02-14 22:04:56 +00:00
mycroft
0a4f0e60de Regen. 1998-01-22 17:33:03 +00:00
mycroft
e8283b7944 This doesn't actually use COMPAT_10. 1998-01-22 17:32:25 +00:00
thorpej
80fff795f9 Regen. 1998-01-09 06:19:02 +00:00
thorpej
0068dec705 Regen: back out RCD ID related changes. 1998-01-08 00:27:16 +00:00
perry
36bd5a5407 regened with RCSIDs in place 1998-01-05 18:23:00 +00:00
jonathan
2e47a5547e Use void* not caddr_t for 'addr' argument to native mmap(). 1997-10-19 00:15:31 +00:00
christos
dc60c14ef6 Regen. 1997-10-16 23:56:40 +00:00
christos
5f2f2ac9b2 ostat -> stat43 1997-10-16 23:55:50 +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
mrg
74f573d85d remove advertising clause from all my licenses. 1997-10-10 05:39:47 +00:00
mhitch
3bda138b2b Fix a missed *setregs() change. 1997-09-24 02:13:11 +00:00
thorpej
7b3b89d852 Regen: Use compat_12_sys_swapon(). 1997-06-13 19:16:12 +00:00
thorpej
35b5fbf200 Use compat_12_sys_swapon(). 1997-06-13 19:15:18 +00:00
jonathan
530b4df7e3 Emulate RISC Ultrix cacheflush() and cachectl() syscalls on mips. 1997-06-09 11:57:43 +00:00
jonathan
184599798d Declare ultrix_sys_symshs(). Ultrix uses the standard (BRL?) hack to
implement sysV shm using one system call.
1997-06-09 11:50:52 +00:00
jonathan
8b35fc95ad GC old ultrix-emul syscall stub used to debug ultrix signals. 1997-05-25 11:09:39 +00:00
jonathan
0087cea09e lint: add prototypes for termio/termios emul conversions and ioctl handlers. 1997-05-25 10:38:00 +00:00
jonathan
894ea52659 Update copyright. 1997-05-25 10:24:05 +00:00
jonathan
d06117b286 lint: add prototype for static function make_ultrix_mntent(). 1997-05-25 10:21:34 +00:00
jonathan
7411774547 lint: add prototype for static local function ultrixstatfs(). 1997-05-25 05:30:21 +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
2b708ca438 lint: gc unused variables in ultrix_sys_mount(). 1997-05-24 09:56:47 +00:00
jonathan
6aaa702220 lint: add explicit return type to ultrix_sys_shmsys(). 1997-05-24 09:53:11 +00:00
jonathan
68db3bde6d NetBSD doesn't have VSWTCH, so we can't emulate it; clarify. (see PR#2793). 1997-05-05 22:21:18 +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
jonathan
b28097e684 * Fix typo in SIOGIFCONF handling.
* Change explicit SunOS-compat ioctl codes to Ultrix-compat codes.
1997-04-06 21:33:44 +00:00
thorpej
8e50039b7c Syscalls.master changed, regen. (NFSCLIENT -> NFS) 1997-01-31 02:20:58 +00:00
thorpej
90b1ce5234 NFSCLIENT -> NFS 1997-01-31 02:20:03 +00:00
jonathan
0ef88d333a Fix const-pointer lint in copyout of consed-up native fstype string,
from consed-up  native mount args.
1997-01-15 01:41:35 +00:00
thorpej
8f8abcd69c Regen; makesyscalls.sh emits comments now. 1997-01-13 18:49:02 +00:00
jonathan
05c95ca095 Update copyright. 1996-10-19 12:40:31 +00:00
mhitch
c376b68e9d Now needs sys/proc.h since compat/common/compat_util.h doesn't anymore. 1996-10-14 05:15:39 +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
thorpej
0644233c4c Merge the netbsd-1-2 branch back into the mainline. 1996-10-09 00:49:40 +00:00
mrg
6ad189ffbb minor copyright update. 1996-10-05 23:50:49 +00:00
jonathan
3281d4c16d Fix cut-and-paste (ouap vs ap) bugs so the previous revision actually
compiles.  Change variable names to use "ap" instead of "ouap" everywhere
to avoid similar bugs in future.
1996-09-29 10:52:02 +00:00
mycroft
e9e01a4d00 Regen. 1996-09-03 03:19:46 +00:00
mycroft
5de9f548a2 Give every emulation its own Makefile for the syscall table. 1996-09-03 03:18:04 +00:00
mycroft
a8fd25767d Define execv() and execve() consistently across emulations.
Do path name translation.
1996-09-03 03:12:17 +00:00
mycroft
118b9b478d sys/dir.h -> sys/dirent.h 1996-08-10 09:08:26 +00:00
mycroft
f01b3b1837 Regen. 1996-06-23 11:12:22 +00:00
mycroft
3bbb29fe03 Catch up with setre[ug]id() changes. 1996-06-23 11:10:01 +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
592ca35c51 Fix typos in SUSP and DSUSP mapping when setting Ultrix posixmode tty
attributes  (was 112 and 113,  should be 12 and 13).
1996-06-13 18:13:34 +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
36817f8d02 Rewrite (a copy of) the emul-sunos termio/termios emulation code to
emulate Ultrix termio/termios instead. Ultrix termio c_cc has separate
VMIM/VTIME attributes, and the Ultrix termios c_cc is a strict
superset of Ultrix termio c_cc. The termios-only c_cc indices are
all changed, relative to SunOS.
1996-01-04 19:03:32 +00:00