thorpej
41e29be490
Garbage-collect sunos_sys_swapon(); it is not needed.
1997-06-13 19:08:25 +00:00
thorpej
ac4da17507
Regen: Use compat_12_sys_swapon().
1997-06-13 17:31:37 +00:00
thorpej
454c1df5f3
Use compat_12_sys_swapon().
1997-06-13 17:30:19 +00:00
thorpej
8671b8f854
Don't #ifdef compat_12_sys_swapon() so that it can be used by other compat
...
modules.
1997-06-13 17:28:29 +00:00
mrg
00b1926b5b
put the front end into libc.
1997-06-12 22:04:50 +00:00
mrg
df072ab6f9
make this sys_swapon() for now.
1997-06-12 21:55:47 +00:00
mrg
b73df246f5
bring mrg-vm-swap2 onto mainline.
1997-06-12 19:18:15 +00:00
mrg
aabc4f2396
now need sunos_sys_swapon() as ours is different.
1997-06-12 19:01:02 +00:00
mrg
bd8a2cdada
bring mrg-vm-swap2 onto mainline.
1997-06-12 17:35: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
christos
ca0d389297
PR/3701: Arne H. Juul: olstat can't stat "/", because it still pretended
...
that symlinks don't have inodes.
1997-06-06 19:36:31 +00:00
cjs
7a66732d34
Back out BUILDDIR and NOINSTALL changes.
1997-05-31 21:21:13 +00:00
cjs
75380e08a1
Use new NOINSTALL option for libraries that are used only during the build
...
of a program, and not installed into the final system.
1997-05-30 01:55:09 +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
augustss
604e6c4091
Add missing initialization.
1997-05-19 23:05:14 +00:00
augustss
0decef1b80
Fix recording source selection bug.
1997-05-19 17:29:12 +00:00
jeremy
3d6483ab9a
Ignore use of sunos_audioio.monitor_gain because it has no equivalent in the
...
audio sub-system. It used to use the ``__spare'' member of the audio_info
struct, but that has been removed.
1997-05-11 05:41:13 +00:00
mycroft
e3f99a9397
Pass the vnode type to vaccess(), and use it when checking VEXEC. Make sure
...
that the mode bits passed to vaccess() and returned by foo_getattr() contain
only permission bits.
1997-05-08 16:19:43 +00:00
kleink
5482ee2d93
Fixed copyin() argument botch in shmctl() IPC_STAT handling.
1997-05-08 14:33:11 +00:00
mycroft
837a72363d
VEXEC -> VLOOKUP, as appropriate.
1997-05-08 10:57:17 +00:00
augustss
c397fa8357
Return audio buffer size in audio_info_t with ioctl() AUDIO_GETINFO.
...
Use the buffer size to implement one more OSS ioctl().
1997-05-07 19:24:25 +00:00
augustss
c4a52794f1
Convert to new orthogonal audio encoding scheme and implement
...
some of the new encodings. The change to ioctl AUDIO_GETENC is
NOT backwards compatible.
1997-05-07 18:51:31 +00:00
mycroft
185b24dd5b
Use libinstall::, not install:, to prevent instaling LIB.
1997-05-07 16:20:26 +00:00
augustss
7d386f10b8
Adjust ioctl() encoding before calling OSS audio code.
1997-05-06 23:56:43 +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
mycroft
aaf3b59589
Remove outdated comment.
1997-05-05 06:56:20 +00:00
thorpej
70ce55d5d7
Update for changes in machine-dependent COMPAT_HPUX code.
1997-04-27 21:40:47 +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
augustss
52e73da1a4
Regen.
1997-04-07 14:15:06 +00:00
augustss
bc5c0f6530
Add Linux nice() syscall.
1997-04-07 14:13:16 +00:00
augustss
91aba3ab34
Improve setting of record source.
1997-04-06 23:49:32 +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
augustss
32801cf383
* Move the Linux audio emulation into its own directory and rename it
...
OSS (aka VoxWare) audio emulation.
* Use the OSS audio emulation for Linux and FreeBSD.
* Add mixer emulation to the OSS emulator.
1997-04-04 15:35:54 +00:00
thorpej
b5f9e1cdd1
kill an unused variable
1997-04-04 09:52:40 +00:00
christos
8e5e5d1667
Fix reverse test in O_NOCTTY; pointed out by Klaus Klein
1997-04-02 15:29:18 +00:00
scottr
703bcd151c
Add prototypes, and make this compile with -Wall. Remove register
...
modifier from all declarations.
1997-04-01 19:58:58 +00:00
christos
6c41fdc592
Handle NULL shmid_ds properly in shmctl.
1997-03-30 17:21:02 +00:00
gwr
9228e630d5
s/boot/cpu_reboot/
1997-03-26 23:44:27 +00:00
mycroft
b1a3eda88c
Copy back the format we set in SNDCTL_DSP_SETFMT.
1997-03-20 16:11:29 +00:00
mycroft
41bbc3f5b6
SOUND_PCM_WRITE_CHANNELS -> SNDCTL_DSP_CHANNELS, to match current Linux code.
1997-03-20 04:21:31 +00:00
mycroft
eb41ccd5fe
Emulate the SOUND_PCM_WRITE_CHANNELS ioctl. From PR 3356, by Lennart
...
Augustsson. Also add hooks for mixer ioctls.
1997-03-19 05:12:13 +00:00
christos
4fe8f4e95f
PR/3354: From Michael Eriksson; I_SETSIG did not handle O_ASYNC properly
...
and we would never get asynchronous events back. This affected the java
SDK. Also GC O_RAIOSIG which was a Dell/SVR4'ism which is now RIP.
1997-03-18 18:57:19 +00:00
thorpej
f956bd54d3
Clean up some slighyly overzealous use of `_'.
1997-03-16 10:16:02 +00:00
thorpej
ae8392d8b1
- COMPAT_HPUX only works on machine with a 4k _hardware_ page size.
...
- Remove a slightly misguided hack.
1997-03-16 10:14:44 +00:00
thorpej
abe496a1c9
Remove a new-obsolete comment.
1997-03-16 10:13:12 +00:00
thorpej
b11751e729
Use hpux_setregs().
1997-03-16 09:16:11 +00:00
thorpej
b132875e6e
Use hpux_sendsig() and hpux_sys_sigreturn().
1997-03-16 03:48:00 +00:00
christos
f4fdc411c5
Regen
1997-03-15 00:06:47 +00:00
christos
015524c601
Add nice(2).
1997-03-15 00:01:18 +00:00
christos
5426bff5dd
Fix incorrect comment about fdinsert
1997-03-15 00:00:09 +00:00
mycroft
695fbc60e2
Use splclock() to block time updates, not splhigh().
1997-02-28 05:01:21 +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
thorpej
bf69384ef4
Syscalls.master chagned, regen. (NFSCLIENT -> NFS)
1997-01-31 02:19:34 +00:00
thorpej
83b3ffe116
NFSCLIENT -> NFS
1997-01-31 02:18:54 +00:00
thorpej
b266dedfc8
Syscalls.master changed, regen. (NFSCLIENT -> NFS)
1997-01-31 02:18:26 +00:00
thorpej
12cb3aaf21
NFSCLIENT -> NFS
1997-01-31 02:17:46 +00:00
cgd
78d5e815bf
clean up substantially. Transform clean, depend, cleandir targets from ::
...
to :, so they can be used e.g. with <bsd.prog.mk>. Standardize variable
names used to configure kernel libraries.
Variables used by these Makefile.inc's are:
S must be set to the top of the 'sys' tree.
${LIB}DST may be set to the location of the directory where library
objects are to be built. Defaults to ${.OBJDIR}/lib/${lib}.
${LIB}_AS may be set to 'obj' to build a object from the library's
object files. (Otherwise, a library will be built.)
Defaults to 'library'.
${LIB}MISCMAKEFLAGS
Miscellaneous flags to be passed to the library's Makefile when
building. See library's Makefile for more details about
supported flags and their default values.
(where LIB is COMPAT, and lib is compat, in this case.)
1997-01-23 22:58:26 +00:00
mycroft
dc3a674a08
Actually include the code conditionally, based on the SYSV* options.
1997-01-18 01:51:41 +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
perry
b89a3425b7
Eliminate obsolete TIMEZONE and DST options.
...
Eliminate obsolete global kernel variable "struct timezone tz"
Add RTC_OFFSET option
Add global kernel variable rtc_offset, which is initialized by
RTC_OFFSET at kernel compile time.
on i386, x68k, mac68k, pc532 and arm32, RTC_OFFSET indicates how many
minutes west (east) of GMT the hardware RTC runs. Defaults to 0.
Places where tz variable was used to indicate this in the past have
been replaced with rtc_offset.
Add sysctl interface to rtc_offset.
Kill obsolete DST_* macros in sys/time.h
gettimeofday now always returns zeroed timezone if zone is requested.
settimeofday now ignores and logs attempts to set non-existant kernel
timezone.
1997-01-15 01:28:28 +00:00
thorpej
8f8abcd69c
Regen; makesyscalls.sh emits comments now.
1997-01-13 18:49:02 +00:00
cjs
1c0c346e1d
This recently stopped compiling due to a warning about const being
...
dropped. This fix suggested by cgd.
1996-12-28 22:37:03 +00:00
christos
56829373e8
PR/2981: use ${VAR:Q} instead of '${VAR}' to avoid quoting problems
1996-12-26 21:30:59 +00:00
fvdl
bb31faf853
Make this compile again, including Politically Correct const handling.
1996-12-22 23:00:02 +00:00
mycroft
b8464bb9da
Fix pasto.
1996-12-10 08:54:53 +00:00
christos
4fd46ff6cb
regen
1996-12-06 03:26:33 +00:00
christos
88bb1b35b5
add syscalls acl, facl, memcntl, pause
1996-12-06 03:25:07 +00:00
christos
e0c2870d89
implement I_SETSIG
1996-12-06 03:24:32 +00:00
christos
76a77f1302
header for acl, facl
1996-12-06 03:23:30 +00:00
christos
ac0cfc70ae
implement acl, facl, memcntl
1996-12-06 03:22:34 +00:00
christos
e8aaebee8e
implement pause
1996-12-06 03:21:53 +00:00
fvdl
2452eadc60
Avoid compiler warnings when none of the SYSV* options is defined.
1996-11-15 09:51:25 +00:00
sommerfe
d26717de0e
Workaround for building linux-emulation LKM.
1996-10-29 02:19:25 +00:00
fvdl
0c32bba802
Make this compile with -Wcast-qual.
1996-10-28 08:46:35 +00:00
cgd
ce53653783
make the namei struct members ni_dirp and ni_next, and the componentname
...
struct member cn_nameptr 'const', since they should never be used to
modify the path name. (Only the pathname buffer, cn_pnbuf, should be
modified.) Propagate the const poisoning to code that uses the namei
and componentname structs.
1996-10-25 23:13:58 +00:00
explorer
8e8c326f5d
Spelling error
1996-10-22 22:28:20 +00:00
jonathan
05c95ca095
Update copyright.
1996-10-19 12:40:31 +00:00
fvdl
990f0ce9b7
Add RCS Id.
1996-10-17 19:46:39 +00:00
thorpej
04f65ff081
Need to include <sys/exec.h>
1996-10-14 06:53:23 +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
d551a4edf9
catch up with Jason's exec.h inclusion.
1996-10-13 18:30:05 +00:00
christos
bd73314ed9
backout previous kprintf changes
1996-10-13 03:19:38 +00:00
christos
4d99ae39b0
Remove STACKGAPBASE dependencies.
1996-10-13 01:16:19 +00:00
christos
e14a71a3ae
catch up with Jason's changes.
1996-10-13 00:56:02 +00:00
christos
53e42f3487
Backout previous kprintf change.
1996-10-13 00:46:49 +00:00
christos
dcf74c0b02
Catch up with Jason changes.
...
Backout kprintf stuff
1996-10-13 00:08:26 +00:00
thorpej
4879f62ed8
Need <sys/exec.h> for the PS_STRINGS definition.
1996-10-12 02:20:37 +00:00
thorpej
9c7bb13aeb
Include <sys/exec.h>
1996-10-12 02:13:52 +00:00
thorpej
bddeb30297
Don't inline stackgap_init() and stackgap_alloc(). Doing so generates
...
an include file dependency graph that's much more complicated than
it needs to be, and wastes space in the kernel.
1996-10-12 02:12:55 +00:00
christos
06555645c2
printf -> kprintf, sprintf -> ksprintf
1996-10-11 00:24:36 +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
cgd
912e6fef44
include <sys/exec.h> rather than <machine/exec.h>
1996-10-07 21:47:33 +00:00
cgd
6ab18a1959
don't include <machine/exec.h> explicitly. No other changes needed, since
...
<sys/exec.h> was already being included.
1996-10-07 21:43:02 +00:00
christos
3e00b323f3
Fix PR/2801: Zero length svr4_mmap() should return EINVAL.
1996-10-07 16:16:14 +00:00
mrg
6ad189ffbb
minor copyright update.
1996-10-05 23:50:49 +00:00
jtk
fb2727b7e6
update to compile; needs new enum name 'Elf_sht_progbits'
1996-10-05 00:12:49 +00:00
cgd
65148dea43
kill (re)definitions of EXEC_ELF32. They're no longer necessary
...
(because of the EXEC_* option changes), and now cause warnings.
1996-10-03 05:02:05 +00:00
thorpej
8dd444adbd
Fix a section header check that didn't get updated with the elf32/elf64
...
changes. Make this compile again with the new EXEC_* options.
1996-10-03 02:16:18 +00:00
ws
2da166f660
Fix p_nice vs. NZERO code.
...
Change NZERO to 20 to always make p_nice positive.
On Christos' suggestion make p_nice explicitly u_char.
1996-10-02 18:04:56 +00:00
christos
76f9ea8676
Elf32_sht_progbits -> Elf_sht_progbits
1996-09-30 23:56:01 +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
cgd
7c3255776d
slightly clean up some of the changes made when ELF64 support went in
1996-09-27 18:14:23 +00:00
cgd
9c3e274c7b
adapt ELF-using compat code to use new ELF definitions/code. At this point,
...
these are restricted to 32-bit ELF, and should be severely cleaned.
1996-09-26 20:52:42 +00:00
christos
42d3980338
Fix PR/2779: statvfs returns incorrect sizes. From Aaron Brown
1996-09-25 04:37:13 +00:00
ghudson
ed1f3fd647
Handle relative paths to the source tree if they begin with '.'.
1996-09-23 05:01:52 +00:00
christos
6e5a87c781
regen
1996-09-20 16:43:55 +00:00
christos
a9028f3d76
getlogin -> __getlogin
1996-09-20 16:19:27 +00:00
thorpej
c9bf6a7e5a
Add exec glue for `COMPAT_M68K4K'; just map the executable the way
...
a MID_M68K4K expects to be mapped. Allows any m68k port with
NBPG == 4096 to run NetBSD/hp300 executables, and will allow hp300s
to run legacy executables when that port's default format is eventually
changed to match the other m68k ports.
1996-09-10 22:01:20 +00:00
mycroft
826fb76b6f
Regen.
1996-09-07 14:24:17 +00:00
mycroft
1449e67e30
Modify poll(2) prototype.
1996-09-07 14:20:09 +00:00
mycroft
c9663d2cad
Regen.
1996-09-07 13:24:34 +00:00
mycroft
17b9974c5a
Implement poll(2).
1996-09-07 13:23:39 +00:00
mycroft
cb488ac22a
Definition of pollfd is no longer needed.
1996-09-07 13:02:43 +00:00
mycroft
f51fa207ba
Regen.
1996-09-07 13:01:41 +00:00
mycroft
4a60463da8
This is no longer needed.
1996-09-07 13:01:29 +00:00
mycroft
264dd4757c
Regen.
1996-09-07 12:56:49 +00:00
mycroft
2bc736661a
Implement poll(2).
1996-09-07 12:40:22 +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
65605b0484
Fix bogus offset calculation in ibcs2_sys_read(), per PR 1804.
1996-09-03 02:44:14 +00:00
christos
e32eb9631f
regen syscall tables
1996-08-30 23:08:21 +00:00
christos
0c1a0303ec
add obsolete stime(2)
1996-08-30 23:07:49 +00:00
christos
f8dddb3afe
add: I_FDINSERT, _I_BIND_RSVD, _I_RELE_RSVD, SI_SHUTDOWN
...
this fixes programs that use listen(2) and accept(2), and
makes unix domain sockets work both in tcp and udp.
1996-08-30 23:06:24 +00:00
thorpej
07e59e34e8
Regen; syscalls.master changed.
1996-08-26 22:52:17 +00:00
thorpej
b0f977ee6b
Implement sunos_sys_execve(). The previous code simply called
...
sys_execve() without doing an alternate patch check, which was
incorrect. Bug pointed out by Krister Walfridsson <cato@df.lth.se>
on port-sparc@NetBSD.ORG .
1996-08-26 22:49:43 +00:00
mrg
db019893b4
update sunos_sys_reboot() to actually work again.
1996-08-11 03:16:26 +00:00
mycroft
118b9b478d
sys/dir.h -> sys/dirent.h
1996-08-10 09:08:26 +00:00
mycroft
811315ca92
Add anchors so that only exactly `-I. is modified.
1996-08-10 04:01:29 +00:00
mycroft
9c5b0780c0
Convert the -I. to -I${.OBJDIR}, so that the `machine symlink is available.
1996-08-10 03:00:51 +00:00
mrg
5abbf990f3
Change reboot(2) to take two arguments: bootopt like normal and also
...
a boot string for firmware that can do this, such as the SPARC and
the sun3 models. It is currently silently ignored on all other
hardware now, however. The MD function "boot()" has been changed to
also take a char *.
1996-08-09 10:30:23 +00:00
mycroft
44f440543f
We dont need to pass down COMPATDIR and KERNDIR.
1996-08-08 15:15:16 +00:00
mycroft
3f0b5a641e
Run the child make in the source directory, so that nothing here needs to be
...
changed when the compile directory is outside the source tree.
1996-08-08 15:06:39 +00:00
christos
8979b8342a
Fix PR/2599; include <sys/dirent.h> instead of <sys/dir.h>
1996-07-05 16:31:00 +00:00
pk
39dfdd0601
Translate EIO to ENOTTY after a SunOS `TIOCGETPGRP' (tcgetpgrp(3)) fails
...
on a pty (see also kern/pty_tty.c).
1996-07-02 21:21:57 +00:00
christos
7120dce626
Fix mysterious dissappearance of the .PATH directive.
1996-06-30 00:17:02 +00:00
mycroft
5262bdf053
Remove the old (broken) setre[ug]id() emulation.
1996-06-23 11:20:42 +00:00
mycroft
fdc697b5e9
Catch up with setre[ug]id() changes.
1996-06-23 11:17:50 +00:00
mycroft
1328302bd9
Regen.
1996-06-23 11:16:12 +00:00
mycroft
365a977533
Catch up with setre[ug]id() changes.
1996-06-23 11:13:32 +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
christos
d83602c110
Simplify and add comments.
1996-06-13 19:27:01 +00:00
christos
4d9a6e0930
- Pass the Elf32_Ehdr in the linux probe function, and use it!
...
Since linux binaries are (mostly) always compiled with gcc, look for
the gcc signature in the .comment section header: "\0 GCC: (GNU) ".
I've changed the probe order in kern/exec_elf.c to probe for linux ELF
binaries first and fall back to SVR4 binaries. This makes statically
linked binaries work for both linux and svr4. Note that gcc-compiled
svr4 binaries, still contain the operating system signature first and
then the GCC signature, so there is no conflict. Yes this is a hack.
1996-06-13 18:42:01 +00:00
christos
5d27db0882
Pass the elf exec header in the probe function.
1996-06-13 18:33:54 +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
christos
38c8b72648
Many bug fixes... These now work well enough for vi, ksh, csh, stty etc.
1996-06-05 19:27:41 +00:00
christos
13bce5bb2b
- report process usage correctly. we used to get panics on SIGTSTP.
1996-06-05 19:26:13 +00:00
christos
53efdc8e32
- return EINVAL on the hardware specific 'X' ioctls, otherwise stty does not
...
work properly.
- use printf -> uprintf.
1996-06-05 19:24:22 +00:00
christos
7e8a7a54eb
- Always check if the file descriptor we are using is a socket.
...
- Make sure we get an so_internal state allocated, even if we
did not open the socket ourselves.
1996-06-05 19:10:34 +00:00
christos
dd1fe33d2e
- Always check if the file descriptor we are using is a socket.
...
- Make sure we get an so_internal state allocated, even if we
did not open the socket ourselves.
1996-06-05 19:07:37 +00:00
pk
ec587073d7
I_SIGSET => I_SETSIG (pointed out by Greg Earle).
1996-05-26 23:57:10 +00:00
mrg
663808dfc5
use ' not " when passing variables to a sub-make. pr#1199/pr#1296
1996-05-20 17:23:25 +00:00
mark
847038524a
cast -1 to a char for comparision with tc->t_brkc so that this test
...
will work with signed and unsigned chars.
1996-05-20 14:29:17 +00:00
fvdl
484a6c9fe4
Regen.
1996-05-20 02:00:53 +00:00
fvdl
69761c2aa8
Update list of Linux syscalls and implement the ones that are likely to be
...
used and doable.
1996-05-20 01:59:09 +00:00
veego
d5db0e464d
Put this into an #ifdef COMPAT_OLDTTY.
...
look in <sys/tty.h> for more infomations about that.
1996-05-18 22:17:49 +00:00
christos
4f3ac596f5
- rename cpu_exec_aout_prep_oldzmagic to exec_aout_prep_oldzmagic
1996-05-18 16:02:08 +00:00
christos
f09036d6ec
- Moving cpu_exec_aout_prep_oldzmagic -> exec_aout_prep_oldzmagic.
...
This is used by the i386, hp300 and mac68k ports.
- Added exec_aout_prep_oldomagic, and exec_aout_prep_oldnmagic
These are just copies of the respective prep functions from
kern_exec.c with text address starting at 0. Maybe a better fix
is to pass the starting address as a third argument so we don't
duplicate code, but this could be the next pass since the functions
are used in many places. These functions are used for BSDI binaries.
1996-05-18 15:52:19 +00:00
christos
268e6edf33
Support bsdi getkerninfo(SYSINFO,...) call so that the BSDI netscape
...
calling uname(3) can find out what os it is running on. Tested only with a
bsdi binary that calls getkerninfo directly. Funny thing is that I ran
the same binary on a bsdi machine, and they fill in fewer fields in the
emulation than we do; maybe I went overboard :-)
1996-05-18 01:24:34 +00:00
christos
6ba5bd8c10
Fix OGETUDATA for Solaris-2.3 (From Greg Hudson)
1996-05-13 16:57:50 +00:00
mycroft
540f9550c0
Make `make depend' work for libraries.
1996-05-11 16:11:30 +00:00
mrg
b961912b8a
sort this.
1996-05-05 17:14:25 +00:00
veego
203fc82ae2
Added a missing Makefile and run it
...
Moved the prototyp for sunos_sendsig in an #ifndef sparc
1996-05-05 16:07:42 +00:00
briggs
8b8a6fcf2f
Put prototype for sunos_sendsig() in sunos.h as suggested by veego.
1996-05-05 12:01:45 +00:00
christos
5503f7b749
Prototype and gcc -Wall cleanups
1996-05-03 19:41:56 +00:00
christos
8fd0f1f8b3
Add missing prototypes.
1996-05-03 19:26:28 +00:00
christos
029f35aa10
Avoid overruns when copying the interface name.
1996-05-03 17:09:15 +00:00
christos
a9972e1bbb
- RCSid police
...
- gcc -Wall fixes
1996-05-03 17:05:16 +00:00
christos
744868c6a0
gcc -Wall fixes.
1996-05-03 17:03:09 +00:00
christos
ffd5576439
remove include of <sys/cpu.h>
1996-04-22 01:44:31 +00:00
christos
efc7b8aec4
- don't use if_index to get the number of interfaces in SIOCGIFNUM; compute
...
the actual number.
- forgot to copyout the result in SIOGCIFFLAGS.
1996-04-22 01:17:33 +00:00
christos
02f94c17fb
Add SI_SYSTEMINFO from Solaris-2.5
1996-04-22 01:16:04 +00:00
mycroft
7a8c8f8a5c
Turn off the alignment check flag when entering a signal handler.
1996-04-18 08:36:20 +00:00
mycroft
ad790f628e
Turn off the trace flag when delivering a signal.
1996-04-12 08:44:35 +00:00
christos
5fda4b10a2
- small ioctl naming changes.
...
- pass ioctl fd explicitly.
1996-04-11 12:54:40 +00:00
christos
3b309224fd
- Pass ioctl file descriptor explicitly.
...
- some 'T' ioctl's are for streams, call the stream function in the default case
1996-04-11 12:53:48 +00:00
christos
4a0b33e910
Handle different address families, and in particular AF_UNIX.
1996-04-11 12:52:41 +00:00
christos
8edeaa1f71
Add accept message
1996-04-11 12:52:03 +00:00
christos
d37bbda397
- keep the address family in the global state, now that we are using it.
...
- add netaddr_un
1996-04-11 12:50:31 +00:00
christos
0a8a2051dc
- Make unix domain sockets work.
...
- Implement GETSOCKNAME and GETMYNAME
- Implement getmsg(ACCEPT) [incomplete]
- Implement LISTEN [incomplete]
There are too many changes in the code, this is why the incomplete checkpoint.
1996-04-11 12:49:13 +00:00
christos
8294057bdb
Svr4 does not have unix domain sockets; it emulates them with mode 0 named
...
pipes. Emulate that behavior, by telling svr4 we've found mode 0 named pipe
when we find a unix domain socket. Also record the name and device,inode
pair of sockets found.
1996-04-11 12:46:41 +00:00
christos
dcf6c8ee56
New files to provide a device,inode -> pathname mapping for unix domain
...
sockets. This is needed for putmsg(2)
1996-04-11 12:43:29 +00:00
christos
260951021b
Use uprintf instead of printf for debugging. Lot's of printing causes panics
...
on the sparcs, and even if that was not the case, you end up losing text.
1996-04-11 12:41:25 +00:00
mycroft
48643c6605
Export [gs]et_vflags(), and always use them when saving/restoring registers
...
in VM86 mode.
Allow changing of *all* PSL bits in VM86 mode; some applications don't work
right otherwise, and all the nasty bits are virtualized anyway.
Make sure PSL_VIF, PSL_VIP, and PSL_VM don't show up in the user's view of
the PSL.
1996-04-11 07:47:33 +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
christos
151fa70f78
Prototyping changes.
1996-04-05 00:01:10 +00:00
christos
d7130e8385
- Prototyping changes
...
- Fix bug that gcc -Wall found in linux_sys_getpgid()
1996-04-04 23:56:01 +00:00
christos
363777341c
- Add missing prototypes
...
- Fix bugs with reversed arguments that prototyping discovered
1996-04-04 23:51:36 +00:00
mycroft
46c087980e
Add explicit return types.
1996-04-03 08:55:20 +00:00
christos
c5cd2c8f26
Remove dependence on svr4_conf.h and the file itself.
1996-03-30 22:40:55 +00:00
christos
6c2fd36998
Fixed debug printf format args.
1996-03-30 22:37:52 +00:00
christos
ed8966b2ea
svr4_sigfillset should be void
1996-03-16 23:20:30 +00:00
christos
fc8b478bdd
Bring prototypes into scope and fix compiler warnings.
1996-03-14 19:33:44 +00:00
christos
6cbf515e30
Fix compiler warnings
1996-03-14 19:31:45 +00:00
christos
79344ff371
- add svr4_conf.h
...
- add window size ioctls
1996-03-14 19:29:11 +00:00
mycroft
8dbac07c10
Add a message to help us debug Linux compat.
1996-03-08 06:00:53 +00:00
mycroft
6bc0baa1ce
Separate ioctl emulation by group. Add (minimal) audio emulation.
1996-03-08 04:55:59 +00:00
pk
8c485c3690
syscalls.master changed.
1996-02-28 16:06:02 +00:00
pk
636580a34f
Insert sunos_sys_fcntl().
1996-02-28 16:03:54 +00:00
gwr
b1305e88db
dir => dirent
1996-02-28 01:41:25 +00:00
mycroft
5cdb5e8ebe
Map SIOCGIFFLAGS and SIOCGIFADDR (et al).
1996-02-27 08:18:16 +00:00
mycroft
48ec0383a3
Use OSIOCGIFCONF in previous.
1996-02-27 07:25:34 +00:00
mycroft
4b2741c436
Map SIOCGIFCONF.
1996-02-27 05:51:05 +00:00
pk
95d7594df0
If NFS `rsize' is specified, set `readdirsize' too.
1996-02-25 13:27:01 +00:00
cgd
c9a23604b9
fourth argument to kern_sysctl() must be a size_t *. simply passing a pointer
...
to SCARG(uap, len) won't do, because that'd be an int *. copy the value
into a size_t, and pass pointer to that.
1996-02-21 00:10:59 +00:00
pk
9bfd34f41e
Adapt to NFSv3.
1996-02-19 15:41:38 +00:00
pk
9e2cbae0ea
Adapt compat NFS mount code to NFSv3.
1996-02-18 14:46:25 +00:00
jtk
e8aa4c9806
fix stray MOUNT_UFS -> MOUNT_FFS
1996-02-17 23:08:36 +00:00
christos
47158e6548
syscalls.master changed
1996-02-10 17:14:07 +00:00
christos
eb13d0121e
- fixed wrong argument order in xmknod
...
- added proper support for {f,}pathconf
1996-02-10 17:12:31 +00:00
christos
b50214e2fa
use %p in printf's instead of casts to (unsigned int)
1996-02-10 00:48:08 +00:00
christos
647dfa216e
Don't declare MSG_COMPAT in two places.
...
More prototype fixes
1996-02-10 00:12:44 +00:00
christos
1b17f25866
fix prototype warnings
1996-02-09 23:12:14 +00:00
christos
a18394e8c3
Extracted vm compat functions from vm and added them here where they belong.
1996-02-05 01:58:28 +00:00
christos
ec3976413e
kern_sysctl was missing process argument. Elimited -Wall warnings from
...
the files that were affected
1996-02-04 02:02:14 +00:00
christos
065bada41f
so_pcb -> so_internal
1996-02-04 02:01:07 +00:00
mycroft
f96fc7f12e
Simplify, and add support for passing CPPFLAGS.
1996-02-02 20:34:38 +00:00
christos
32a57f01bc
Renamed compat_tty.c to tty_43.c and updated with the newest copy from
...
kern/tty_compat.c
1996-02-02 18:47:50 +00:00
mycroft
f19761346e
Do the previous change a little differently.
1996-02-02 08:09:45 +00:00
christos
1c35870a46
syscalls.master was changed
1996-02-02 01:18:09 +00:00
christos
9840c3ca68
Add xmknod()
1996-02-02 01:17:24 +00:00
mycroft
88e512b693
LOCORE -> _LOCORE
1996-02-01 22:28:24 +00:00
jtc
e19bfae4f9
Rename struct timespec fields to conform to POSIX.1b
1996-02-01 00:18:04 +00:00
mycroft
99686e0059
Add a vnode** argument to getvnode(), prototype it, and make it return
...
EBADF if the file descriptor has been revoked.
1996-01-30 20:05:33 +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
mycroft
6761817ae6
Correct name of sysi86 function.
1996-01-07 06:09:43 +00:00
thorpej
d9bce7422e
Move the obviously machine-dependent HP-UX compat code to hpux_machdep.{c,h}.
...
A fair bit of this, the m68k core dump and exec goo, can probably be
made into a generic m68k hpux module, eventually.
More to be placed in hpux_machdep.c - keep your eyes peeled...
1996-01-06 12:44:06 +00:00
scottb
382f551ca1
Added support for sysi86 and eaccess syscalls
1996-01-06 03:23:46 +00:00
pk
3a7b2129f3
Implement vhangup(); more or less as suggested in PR#1560 (matthew green).
...
I'm vrele'ing s_ttyvp here too, so sys_exit() won't have to go over it
again.
1996-01-05 16:53:14 +00:00
jtc
2fce159ff8
Changed name of sigaltstack's ss_base field to ss_sp to match XPG4.2 and
...
traditional usage.
1996-01-04 22:21:33 +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
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
jonathan
c02f0114ff
Ultrix-compatible termios struct and ioctl() definitions.
1995-12-27 19:57:25 +00:00
mycroft
3872a4ba45
Take a stab at implementing TCXONC and TCFLSH.
1995-12-26 17:56:36 +00:00
jonathan
a44b6c74de
Add emulation of ultrix mount(2). Sufficient to NFS-mount filesystems
...
using a NetBSD kernel in an ultrix root filesystem.
Move wait emulation to the old (v7) wait syscall number, as that's
what the Ultrix ufs_mount binary uses.
1995-12-26 10:06:14 +00:00
jonathan
e9411cae99
Fix ultrix_sys_select() entry.
1995-12-26 04:46:08 +00:00
jonathan
6a363a1101
Add emulation of Ultrix select: before calling native sys_select(),
...
limit the number of FDs to select on to the maximum supported by NetBSD --
which is as many FDs as the emul_ultrix process can have open, anyway.
Add emulation of Ultrix getmnt(2) in ultrix_fs.c
Add partial emulation of Ultrix tty ioctl()s in ultrix_ioctl.c, derived
from compat/sunos/sunos_ioctl.c. Ultrix libc's ``isatty()'' now works
in compat_emul processes.
1995-12-26 04:44:37 +00:00
jonathan
0a1e90f900
Add emulation of Ultrix select: before calling native sys_select(),
...
limit the number of FDs to select on to the maximum supported by NetBSD --
which is as many FDs as the emul_ultrix process can have open, anyway.
Add emulation of Ultrix getmnt(2) in ultrix_fs.c
Add partial emulation of Ultrix tty ioctl()s in ultrix_ioctl.c, derived
from compat/sunos/sunos_ioctl.c. Ultrix libc's ``isatty()'' now works
in compat_emul processes.
1995-12-26 04:22:30 +00:00
christos
ac82785d44
fix compile error from fvdl; thanks.
1995-12-19 18:27:02 +00:00
christos
34af3b306f
syscalls.master was changed
1995-12-19 07:14:25 +00:00
christos
20a2ff3d16
Added utime and utimes
1995-12-19 07:12:53 +00:00
fvdl
4ed045ab27
syscalls.master changed
1995-12-18 14:35:43 +00:00
fvdl
2df1785997
msync, readv and writev were recently added to the Linux kernel; add them
...
to the emulation as well.
1995-12-18 14:35:08 +00:00
ghudson
76063d53bb
Reverse pk's changes from 1.57; the faked cookies are not valid,
...
and are no longer necessary now that NFS provides cookies.
1995-12-14 18:44:44 +00:00
thorpej
3bf97cdb69
Fix a type-size glitch caught by gcc 2.7.2.
1995-12-11 16:32:46 +00:00
mycroft
018fa71167
Eliminate bogus casts.
1995-12-09 04:05:52 +00:00
mycroft
812fdf80d2
Reran makesyscalls.sh.
1995-12-09 04:04:45 +00:00
mycroft
9df1f90849
We don't need a private version of fork() here any more.
1995-12-09 04:01:42 +00:00
thorpej
d7cef923ac
Centralize the HP-UX file flags translation stuff.
1995-12-08 07:54:43 +00:00
thorpej
b0ca4831ea
Check in two changes I apparently overlooked the last time. "oops"
1995-12-08 07:45:31 +00:00
jtc
0cd793449e
merge in changes from 1.1 release branch
1995-11-30 00:56:23 +00:00
thorpej
0d02785d6c
Re-ran makesyscalls.sh; syscalls.conf and syscalls.master chagned.
1995-11-28 08:43:58 +00:00
thorpej
0ec193c9b2
Get COMPAT_HPUX partially working on the hp300. Notable improvements:
...
* It compiles (and links).
* Make use of "/emul/hpux" where applicable.
* Untangle a bit, pulling some funtions from the monolithic
hpux_compat.c into hpux_file.c, hpux_exec.c, etc.
* Fix a couple of bugs.
Yet to do:
* Move hp300-specific functions into hp300/hp300/hpux_machdep.c.
* Make everything work properly (you laugh...)
These changes are sufficient to run some simple HP-UX 9.x executables,
including ls(1) (which will read password and group information from the
YP server correctly, albeit slowly), a simple "hello world", uname(1),
and a few other odds and ends. Dynamically linked executables work, and
demand-paging _seems_ to work properly. Major problems:
* socket and/or signal handling appears to need some work yet.
* 99% sure I didn't do exactly the right thing adjusting for the
fact that "kstack" is gone now.
* ktrace(1)'ing some executables (HP-UX telnet(1) is what I tried)
causes the HP-UX executable to dump core with a SIGSEGV for an
as of yet unknown reason.
This is mostly meant as a checkpoint/snapshot, to make it easier for others
to track progress on this code, and hack on it themselves. It's certainly
better off now than before.
1995-11-28 08:39:45 +00:00
thorpej
b2f1fb085b
Fix transposed copyin() args, from Niklas Hallqvist <niklas@appli.se>.
1995-11-16 18:42:05 +00:00
cgd
bd4a0a45ea
note that COMPAT_OSF1 requires ECOFF, in a comment.
1995-11-15 05:42:17 +00:00
gwr
883be4be3a
ufs ==> ffs
1995-11-07 22:27:21 +00:00
mycroft
d67fb08153
Make sure we free the pathname buffer in all error cases.
1995-10-22 08:20:44 +00:00
cgd
d71e8d0d69
set, don't add to, CFLAGS from COMPATCFLAGS
1995-10-20 00:34:15 +00:00
mycroft
686dddaff9
Reran makesyscalls.sh.
1995-10-15 06:13:56 +00:00
christos
81ae32e332
syscalls.master was changed.
1995-10-14 20:26:39 +00:00
christos
a4e2f7532a
- Added msgsys, shmsys and semsys... MITSHM needs shmsys, so X applications
...
that used that would fail.
- Propagated all the fixes from the fully prototyped kernel.
1995-10-14 20:24:14 +00:00
pk
b60d6eae12
Gets NFS-mounted /emul/sunos going again by faking readdir cookies if
...
not supported by VOP_READDIR().
1995-10-11 12:50:23 +00:00
mycroft
28484180c7
Fix minor oversight.
1995-10-10 18:27:25 +00:00
mycroft
5d9ff18d18
Switch to user code and data selectors in the GDT while handling signals.
1995-10-10 04:54:18 +00:00
mycroft
25f53a986f
Add USERMODE() and KERNELMODE() macros, and use them.
1995-10-10 04:45:03 +00:00
mycroft
d279b4198a
Convert VMIN and VTIME.
1995-10-10 02:35:16 +00:00
mycroft
e6d9bc8787
Fix typo.
1995-10-10 01:34:37 +00:00
mycroft
a91100d6af
Oops; remove something.
1995-10-10 01:20:55 +00:00
mycroft
e1ac4c6362
Output of makesyscalls.sh.
1995-10-10 01:20:11 +00:00
mycroft
63bb46e733
FreeBSD binary compatibility module, from Noriyuki Soda.
1995-10-10 01:19:24 +00:00
thorpej
d0c7d0fdd6
Add missing F_SETLKW case to svr4_sys_fcntl(), from Niklas Hallqvist
...
<niklas@appli.se>.
1995-10-09 23:56:17 +00:00
mycroft
0fff06cb86
Remove struct sunos_dirent from here.
1995-10-09 16:54:48 +00:00
mycroft
652c9eff74
Use cookies for directory offset, mostly from Greg Hudson.
1995-10-09 11:23:57 +00:00
fvdl
82079ba5b3
Work around calling the NetBSD fcntl(F_{G,S}ETOWN) for now; it is too
...
restrictive to implement the Linux equivalent (and perhaps too restrictive
overall).
1995-10-08 22:53:43 +00:00
fvdl
7292169d66
Avoid unnecessary copyin() of shmid_ds struct for shmctl(IPC_RMID)
1995-10-08 22:49:29 +00:00
fvdl
81d650570f
Implement the KDGKBMODE ioctl for Linux (possible with pcvt 3.32).
1995-10-08 22:45:20 +00:00
mycroft
319813467d
Prefix names of system call implementation functions with `sys_'.
1995-10-07 06:53:04 +00:00
mycroft
6263c69339
Reran makesyscalls.sh.
1995-10-07 06:51:37 +00:00
mycroft
55c46e9514
Reran makesyscalls.sh.
1995-10-07 06:41:34 +00:00
mycroft
245f292fed
Prefix names of system call implementation functions with `sys_'.
1995-10-07 06:25:19 +00:00
pk
23b15422dc
svr4_fcntl: make uap point to argument.
1995-10-02 08:20:47 +00:00
thorpej
4a15671a68
Fix the declaration of compat_43_wait() (int * -> register_t *), pointed
...
out by Chris Demetriou.
1995-09-29 05:18:41 +00:00
thorpej
236ee835ed
Add common file lists, similar to what the other emulation modules use.
1995-09-20 00:15:18 +00:00
thorpej
7d7396c414
Make system calls conform to a standard prototype and bring those
...
prototypes into scope.
1995-09-19 22:53:47 +00:00
thorpej
d4153ed512
makesyscalls.sh changed
1995-09-19 22:50:38 +00:00
thorpej
78f7651c91
Make system calls conform to a standard prototype and bring those
...
prototypes into scope.
1995-09-19 22:49:22 +00:00
thorpej
9c2a912abe
makesyscalls.sh changed
1995-09-19 22:46:47 +00:00
thorpej
e4747eef00
Obsolete; use the one in /sys/kern
1995-09-19 22:46:04 +00:00
thorpej
19ccdce168
Make system calls conform to a standard prototype and bring those
...
prototypes into scope.
1995-09-19 22:44:25 +00:00
thorpej
134a6981d1
makesyscalls.sh changed
1995-09-19 22:42:48 +00:00
thorpej
cd414f7dca
Make system calls conform to a standard prototype and bring those
...
prototypes into scope.
1995-09-19 22:42:02 +00:00
thorpej
6d91dd5b49
makesyscalls.sh changed.
1995-09-19 22:38:15 +00:00
thorpej
e1da0d5390
Make system calls conform to a standard prototype and bring those
...
prototypes into scope.
1995-09-19 22:37:27 +00:00
thorpej
4d68188f17
makesyscalls.sh changed.
1995-09-19 22:24:14 +00:00
thorpej
b5a39bba19
Make system calls conform to a standard prototype and bring those
...
prototypes into scope.
Fix a couple of bugs revealed during the prototyping process.
1995-09-19 22:19:01 +00:00
thorpej
d95577b1ce
makesyscalls.sh changed.
1995-09-19 22:13:07 +00:00
thorpej
eecd40e854
Make system calls conform to a standard prototype and bring those
...
prototypes into scope.
1995-09-19 22:10:11 +00:00
thorpej
c8aae0e18a
makesyscalls.sh changed.
1995-09-19 22:05:58 +00:00
thorpej
7160dfc805
Make system calls conform to a standard prototype and bring those
...
prototypes into scope.
1995-09-19 21:57:36 +00:00
fvdl
788a8655bc
Update offset elsewhere in linux_getdents(); still emulate a bug in
...
Linux, but avoid endless loops.
1995-09-13 21:51:14 +00:00
fvdl
43279db68d
Fix PR #1445 (incorrect ifdef/else/endif), from Bill Sommerfeld via
...
John Kohl.
1995-09-08 07:57:15 +00:00
fvdl
df2f99818a
Get notion of VT number right.
1995-09-07 21:55:43 +00:00
fvdl
698e606f39
syscalls.master changed
1995-09-07 21:49:52 +00:00
fvdl
a396a097b7
Fix some bugs & typing problems.
1995-09-07 21:48:59 +00:00
mycroft
29053c58b2
SA_ONSTACK --> SS_ONSTACK
1995-09-01 20:05:59 +00:00
fvdl
10101d52ba
Only define some vars (one of pcvt-specific type) when pcvt is configured.
...
Fixes PR #1424 (from Mike Long)
1995-08-31 09:33:10 +00:00
fvdl
0324e91dae
Remove VT-switch disabling hack now that pcvt handles this.
1995-08-30 00:32:51 +00:00
fvdl
9ca2821d22
A couple of definitions added for previous changes.
1995-08-27 20:57:18 +00:00
fvdl
040bcc367d
Add some yucky code to emulate Linux VTs well enough to make svgalib
...
stuff work reasonably well.
1995-08-27 20:56:38 +00:00
fvdl
a7459f5321
syscalls.master changed
1995-08-27 20:53:31 +00:00
fvdl
d308963c5d
Add a hook for MD ioctl calls, plus a couple of more changes to make
...
svgalib binaries work on the i386
1995-08-27 20:51:48 +00:00
fvdl
72e901b9ff
syscalls.master changed
1995-08-23 20:19:15 +00:00
fvdl
28d9d64235
Emulate some syscalls that appear in Linux 1.3: a select() with normal args,
...
getdents() and flock().
1995-08-23 20:17:28 +00:00
fvdl
7cd62a508c
Check for status NULL argument in wait4 and waitpid. From PR #1392
...
by Thomas EberHardt.
1995-08-21 23:15:51 +00:00
mycroft
7f01d32fb3
syscalls.master changed.
1995-08-21 03:42:35 +00:00
mycroft
9a0cd13442
Implement the old and older uname(2) calls.
1995-08-21 03:42:09 +00:00
cgd
ce48e523d6
kill some redundant (and harmful) static definitions of functions
1995-08-19 04:04:50 +00:00
mycroft
760379d766
Update for signal handling changes.
1995-08-17 03:07:47 +00:00
mycroft
2c03307168
If updating the timeval would make it negative, zero it instead.
1995-08-16 04:50:17 +00:00
mycroft
dc41c4257e
Allow bogus timevals, per Linux.
1995-08-16 04:29:49 +00:00
mycroft
54c148fda5
Convert 230400 baud.
1995-08-16 04:14:51 +00:00
fvdl
02b3c95be6
Implement the rest of the sysv ipc calls ({sem,msg}*())
1995-08-15 21:14:32 +00:00
gwr
3d4ed382f6
Catch up with renamed SA_DISABLE flag and update
...
sunos_sigvec to allow the new SA_RESETHAND flag.
1995-08-15 17:28:02 +00:00
mycroft
c331c7be82
Rename ss_flags bits.
1995-08-15 16:52:30 +00:00
mycroft
e9d68a777e
Export bsd_to_linux_sig[], and use it.
1995-08-14 02:58:29 +00:00
mycroft
d2c9e4f1c8
Export bsd_to_ibcs2_sig[], and use it.
1995-08-14 02:26:01 +00:00
mycroft
10c06fe363
Prototype some functions.
1995-08-14 02:22:20 +00:00
mycroft
9b899c17cd
Export bsd_to_linux_sig[], and use it.
1995-08-14 02:19:08 +00:00
mycroft
1e69f23205
Export bsd_to_svr4_sig[], and use it.
1995-08-14 02:07:57 +00:00
mycroft
baaaba9bc5
Rearrange #includes.
1995-08-14 01:38:24 +00:00
mycroft
283f211782
Sort.
1995-08-14 01:34:09 +00:00
mycroft
01fa87477a
syscalls.master changed.
1995-08-14 01:29:05 +00:00
mycroft
88b8e43a80
Rearrange #includes.
1995-08-14 01:27:43 +00:00
mycroft
9440382c88
svr4_stack_t --> svr4_sigaltstack
1995-08-14 01:13:29 +00:00
mycroft
05abc039c9
syscalls.master changed.
1995-08-14 01:13:11 +00:00
mycroft
eba2f2e81a
Move signal types into signal.h.
1995-08-14 01:11:52 +00:00
mycroft
3b76c0ddef
svr4_stack_t --> svr4_sigaltstack
1995-08-14 00:57:13 +00:00
mycroft
475edc261c
Move definition of sigset_t into types.h.
1995-08-14 00:50:27 +00:00
mycroft
a6bb142d21
Various clean up and bug fixes. Make this look like the SVR4 and Linux
...
versions.
1995-08-14 00:44:12 +00:00
mycroft
ca057762b9
Minor cleanup.
1995-08-14 00:41:02 +00:00
mycroft
1575859e07
Minor cleanup.
1995-08-13 23:37:56 +00:00
mycroft
a6b7c740c6
Convert SA_RESETHAND and SA_NODEFER.
...
Scrub this code a bit.
1995-08-13 22:57:10 +00:00
mycroft
fef558efaa
Convert SA_NOMASK and SA_ONESHOT.
...
Clean up this code a bit.
1995-08-13 22:55:28 +00:00
mycroft
ad35618e1e
Linux doesn't allow select(2) to be restarted.
1995-08-13 17:51:40 +00:00
mycroft
6f7dc7fd4e
Make this compile if one of SYSV{SEM,SHM,MSG} is not defined.
1995-08-10 04:08:57 +00:00
fvdl
64b54f62f4
syscalls.master changed
1995-07-24 06:39:38 +00:00
fvdl
83ed983d47
mkdir() has 2 arguments.. fixes PR 1248 (from Brad Spencer)
1995-07-24 06:35:28 +00:00
christos
3a1e063118
Make the macro botch fix more palatable.
1995-07-05 17:08:54 +00:00
pk
cde4f269ae
Start using sunos_sigvec().
1995-07-05 13:14:09 +00:00
pk
426fb108d1
Brutally work around a macro botch.
1995-07-05 13:07:12 +00:00
christos
87b62763ae
Add a few more sockio ioctls... Now sunxdoom is running!
1995-07-04 23:00:11 +00:00
christos
c07ddb7c1d
Added sockioctls... Only getifnum supported for now.
...
Added SVR4_EMT_TAGOVF, needed by new machdep translations.
1995-07-04 19:46:58 +00:00
fvdl
059661a991
Fix totally bogus implementation of a few fcntl() calls. I think I'll go
...
live on a deserted island now..
1995-07-03 21:33:59 +00:00
christos
ed63c665eb
- make svr4_break() identical to obreak(). We still keep the code here,
...
to do some more testing.
- add POSIX.4 sysconfig options [we don't support them, but we don't
return EINVAL too]
- More kludges in the interpeter load address. I hope I escape the kludge
police...
1995-07-02 06:16:06 +00:00
christos
294f607d50
Fix alignment of svr4_getdents, so that it works for solaris2.4/sparc
1995-07-01 23:42:54 +00:00
cgd
26340c4a2e
sync with my current sources. WAY out of date.
1995-06-28 04:41:30 +00:00
cgd
65c4cf2b9a
light cleanup, adjustments for the Alpha
1995-06-28 03:00:20 +00:00
christos
68328ddcdd
Fixes for Solaris-2.4/sparc dynamically linked binaries.
...
We can now run them, but:
1. setcontext() causes a panic so binaries that receive signals
crash the machine [something is wrong with the register setup].
sleep 10 ==
Watchdog reset
Data Access Exception
Type help for more information
ok
2. csh says "unknown software trap a7".
3. ls gives us a bus error.
4. ldd works :-)
But I solved the problem that had been bothering me for weeks :-)
1995-06-27 22:12:47 +00:00
christos
c35bc29cc9
Fix PR1160... (bug with the new compat_util prefix)
1995-06-26 19:27:17 +00:00
christos
2a17942096
Add the ability to override COMPATREL and COMPATDST similar to libkern
1995-06-26 03:27:13 +00:00
briggs
a734709115
Oops... NOARGS for compat_43_sigvec.
1995-06-25 14:58:17 +00:00
briggs
e1731cd1bf
syscalls.master changed.
1995-06-25 14:18:56 +00:00
briggs
de17480671
sigvec -> compat_43_sigvec.
1995-06-25 14:18:35 +00:00
briggs
09e0072b98
Add sunos_emul_path (/emul/sunos). I don't know if this is correct, but
...
this will at least aid the compilation step and is similar to the
others.
1995-06-25 14:15:08 +00:00
briggs
c9917aa539
* Don't include sys/exec.h explicitly--it's not protected against multiple
...
inclusions and compat_util.h now includes it.
* Declare struct emul *e=p->p_emul in a couple of places so we can use
STACKGAPBASE macro (should this macro be modified to take a struct
emul * or struct proc * parameter?).
* Declare extern struct emul emul_sunos for sunos_sigvec's comparison.
1995-06-25 13:11:44 +00:00
christos
fc741845e6
Stackgap_init() now takes an p->p_emul argument.
1995-06-24 20:36:28 +00:00
christos
d0169ce44a
Use compat_util.[ch]
1995-06-24 20:29:17 +00:00
christos
5ad8a15866
Syscalls.master was changed
1995-06-24 20:26:41 +00:00
christos
57b6b2745e
Use compat_util.[ch]
1995-06-24 20:22:33 +00:00
christos
6b95b513b0
Use compat_util.[ch].
1995-06-24 20:20:04 +00:00
christos
3a3aa6407e
Use compat_util.[ch]
1995-06-24 20:18:53 +00:00
christos
8207f8e49e
Use the new compat_util.h
1995-06-24 20:17:54 +00:00
christos
dcb2a50b2b
- Extracted all compat routines from the kern directory and moved here.
...
- Created compat_util.c and compat_util.h to be used by the compatibility
modules, so they don't duplicate the same code.
- Added prototypes to the stackgap allocation routines.
1995-06-24 20:15:55 +00:00
fvdl
cbcf8eee8a
Check for invalid filedescriptors in getmsg() and putmsg().
1995-06-24 18:47:08 +00:00
fvdl
1634acc3e4
Include file change.
1995-06-22 21:35:42 +00:00
fvdl
c4aaa6000c
* Changed to use generic ELF code from kern/exec_elf.c (which was taken
...
from the svr4 exec code plus the linux compat mods)
* Include file change
* Add multicast sockopts (from John Brezak)
1995-06-22 21:34:27 +00:00
fvdl
4a10f838e7
Changed to use generic ELF code from kern/exec_elf.c (which was taken
...
from the svr4 exec code plus the linux compat mods)
1995-06-22 21:32:57 +00:00
cgd
8f62c773e8
don't assume the f_fsnamelen is nul-truncated or longer than MFSNAMELEN
1995-06-18 14:45:14 +00:00
pk
1e070197f4
Go with the flow; use `/emul/sunos' pseudo-root (from Matthew Green).
...
Note: sunos_stat() and sunos_lstat() were added too.
1995-06-11 22:33:50 +00:00
fvdl
769310e81d
Linux select() returns the amount of time left before a timeout would have
...
occured in the timeval structure. Emulate this behavior. Reported by
Theo de Raadt.
1995-06-11 21:51:38 +00:00
fvdl
fb777788b1
Don't forget to acknowledge that all the ELF stuff was taken from
...
Christos' svr4 code.
1995-06-11 15:15:09 +00:00
fvdl
8bf395c808
Make this link when SYSVXXXX is not enabled too.
1995-06-11 15:07:55 +00:00
fvdl
a22d72bf4d
* Always kill all vm_cmds before giving up on loading an executable
...
* Don't try to use auxiliary arguments with statically linked executables.
* Remove 'cannot find interpreter' uprintf, as other exec modules may
succeed in running the binary after all, and then we don't want this message.
* Some linkers produce rw- for the data segment, not rwx.
* Remove a few debugging printfs
1995-06-11 15:06:11 +00:00
fvdl
bfc9b29ab2
Remade these after syscalls.master had changed.
1995-06-11 14:57:56 +00:00
fvdl
fc7cfb5f0b
* Make Linux ELF binaries work. Lots of code duplication, but it will have to do
...
for now.
* Add a sanity check in linux_uselib
1995-06-11 14:56:47 +00:00
mycroft
abd4cc9991
Remove /dev/zero special case. It's done in mmap().
1995-06-10 22:45:15 +00:00
mycroft
b1868d1bdf
Set st_rdev in SVR4 struct stat.
1995-06-10 22:44:18 +00:00
mycroft
1e1e52e395
Rename the dirent fields to match Linux. Make sure the requested buffer
...
is no larger than MAXBSIZE.
1995-06-10 22:19:06 +00:00
jtc
95ded74f58
Moved egid credential from cr_groups[0] to new field cr_gid. POSIX.1
...
requires that sgid executables and the setuid() syscall *not* change
the supplemental group list.
1995-06-01 22:43:30 +00:00
mellon
b23214bbd9
Clear up name conflict between Ultrix syscall 103 and 139.
1995-06-01 16:38:15 +00:00
mellon
ccd1ab13a1
syscall 139 is ULTRIX_SYS_sigcleanup (from Simon Burge)
1995-05-29 17:32:35 +00:00
mycroft
cc8da4254d
Need netinet/tcp.h.
1995-05-28 10:20:46 +00:00
mycroft
32659780f6
Convert TCP socket options.
1995-05-28 10:16:32 +00:00
mycroft
00569bf574
Fill in `name' argument to getsockopt() correctly.
1995-05-28 09:39:45 +00:00
mycroft
116c7de730
Fix typo.
1995-05-28 08:52:07 +00:00
mycroft
e89504670f
Convert IP socket options.
1995-05-28 08:50:17 +00:00
mycroft
fbc3ef234b
Get rid of damned `static's.
1995-05-28 08:09:51 +00:00
mycroft
bfd22ffde8
Generate the new ps_strings format.
1995-05-16 14:19:03 +00:00
christos
dbb1f513f8
syscalls.master was changed.
...
Note that COMPAT_OHPUX has been renamed to COMPAT_HPUX_6X and this is a
kernel option now, that should be specified together with COMPAT_HPUX.
1995-05-10 16:47:21 +00:00
christos
dd9ece9090
Made this compile on the i386 (gasp)... Someone will need to test it.
1995-05-10 16:45:25 +00:00
mycroft
dbaa7014ef
Turn off a debugging printf().
1995-05-07 03:27:37 +00:00
mycroft
4e9f66f9ca
Improve Linux signal emulation, and emulate the modify_ldt() call.
1995-05-07 02:59:30 +00:00
mycroft
e97a07b5a4
Add stub for linux_modify_ldt().
1995-05-06 18:17:15 +00:00
mycroft
2b0696ff3c
Add linux_modify_ldt(), if __i386__.
1995-05-06 18:16:35 +00:00
pk
4c8828e743
init `mode' field in sunaudiogetinfo().
1995-05-04 19:46:31 +00:00
mycroft
73fead01fc
Fix typos.
1995-05-01 19:45:42 +00:00
mycroft
1ff4bb49de
Adjust for new defn of md_regs.
1995-05-01 19:33:17 +00:00
mycroft
bc5a1863db
Declare sigcode and esigcode.
1995-05-01 19:01:45 +00:00
mycroft
8792c8e284
Save and restore %fs and %gs across signals.
1995-05-01 14:15:07 +00:00
mycroft
17dd9534bf
Update to match include files. Eliminate _ucodesel, _udatasel, and IdlePTD.
1995-05-01 08:06:22 +00:00
mycroft
7688f4456e
Remove usages of ibcs_sigflags.
1995-05-01 04:50:28 +00:00
christos
b9771ef7b1
Try to make the reboot system call compile under sun3 with RB_STRING
...
support [not tested]
Add files.sunos
Rename system call switch table file from sunos_init_sysent.c to sunos_sysent.c
like other emulations.
1995-04-27 12:05:37 +00:00
gwr
f4d7b9097d
Make sunos_reboot(RB_STRING,"...") work for sun3.
...
Could be made to work for sparc too.
1995-04-26 23:12:02 +00:00
mellon
43da4827ae
sigcode and esigcode aren't defined for ultrix emulation
1995-04-25 21:51:15 +00:00
briggs
c937b8a519
Fix compiler error in sunos_reboot().
1995-04-23 01:00:46 +00:00
christos
79e736e176
syscalls.master was changed
1995-04-22 23:48:37 +00:00
christos
ebdad87ea2
Added sunos_reboot().
1995-04-22 23:45:29 +00:00
christos
de42a28a1b
- added sunos_machdep.c for sun3, atari, amiga and mac68k.
...
- changed machdep.c and trap.c to use struct emul.
- remove ep_setup references.
- added struct emul to all emulations.
1995-04-22 20:24:40 +00:00
christos
44eef7c28b
- added struct emul to all emulations.
...
- removed all setup functions.
- added copyargs() functions where needed.
1995-04-22 19:48:19 +00:00
mycroft
8c65e4734d
Update setup functions for changes in exec.h.
1995-04-18 02:18:08 +00:00
cgd
27228062f9
config.new file lists
1995-04-17 16:12:14 +00:00
mycroft
72adfee7f7
EMUL_IBCS2_ELF -> EMUL_SVR4; EMUL_IBCS2_{COFF,XOUT} -> EMUL_IBCS2
1995-04-13 20:48:14 +00:00
fvdl
fb00b736fd
Arch dependant defs for Linux. Just signal stackframe definition for now.
1995-04-07 22:31:19 +00:00
fvdl
46de9a804f
Changes because of proper Linux signal stackframe building, and
...
seperate signal trampoline code. Ugly hack in trap.c no longer
needed.
1995-04-07 22:29:34 +00:00
fvdl
c37a9a26c6
syscalls.master was changed, so update these
1995-04-07 22:24:11 +00:00
fvdl
623f1e3986
Handle Linux signal tramp code differently. Some changes because of the
...
now seperate Linux signal trampoline code. Add linux_sigreturn to
syscalls.master.
1995-04-07 22:23:22 +00:00
mycroft
cd50457f15
Fix conversion of `type' and `whence' values in struct flock.
1995-04-04 04:21:30 +00:00
pk
1dd6d8a8dd
Fix TCGETA compat, from Matthew Green.
...
SunOS `setaudioinfo' does implicit `getaudioinfo'.
Recognise streams flush/setsig ioctls.
1995-04-02 10:43:29 +00:00
christos
c8afb5deaf
Syscalls.master was changed
1995-03-31 03:08:25 +00:00
christos
ee05f066e8
1. siginfo stuff torn out from wait.h to be used by the MI portion of the code.
...
2. many termio, ioctl, sigaction fixes
3. better socket type emulation; still ticotsord [the loopback interface I
guess] does not work properly on svr4 4.1.
4. new gettimeofday, fixed utssys..
5. rmdir and mkdir were swapped in syscalls.master
1995-03-31 03:06:17 +00:00
cgd
fa2133533d
invoke ktrsyscall with (vp, code, argsize, args) as args.
1995-03-26 08:03:29 +00:00
mycroft
6865b2589a
Emulate the return value of times() better.
1995-03-22 05:24:47 +00:00
scottb
87005937ec
add code to zero fill directory name buffer
1995-03-22 01:28:53 +00:00
mycroft
f75ba16b09
Update to use timer{add,sub}().
1995-03-21 13:33:34 +00:00
mycroft
8f96feada8
Correct call to coff_load_shlib(), and prototype it.
1995-03-15 08:14:28 +00:00
scottb
6e5f98b553
updated existing files to use new system call interface.
...
added new code to support socket interface.
borrowed code from linux/svr4 to use /emul pathnames.
split ibcs2_misc.c into more managable files.
1995-03-14 15:12:17 +00:00
fvdl
e0518ae749
Update automatically generated syscall files.
1995-03-10 23:10:35 +00:00
fvdl
faf1442285
Add the Linux pause() system call. Fix the arguments to sigsuspend().
1995-03-10 22:55:04 +00:00
mycroft
2f805fa51b
copy*str() should use size_t.
1995-03-09 12:05:21 +00:00
fvdl
9e7e8cd294
Add missing structure conversion for IPC_RMID.
1995-03-08 17:27:42 +00:00
fvdl
ad4540a424
Fix typo in comment.
1995-03-08 15:17:49 +00:00
cgd
25b31ec7bc
mount list is a circleq.
1995-03-08 01:28:55 +00:00
fvdl
182c23c8bc
Added a few more system calls.
...
More consistent alternate root file semantics throughout.
1995-03-05 23:23:37 +00:00
pk
a1cfb5b325
Move SunOS audio_info compat stuff here (from sparc/dev/bsd_audio.c).
1995-03-04 09:50:00 +00:00
mycroft
4c34be6b52
Clean up deleted files.
1995-03-01 00:00:00 +00:00
fvdl
3bf459f350
Added Linux compat code.
1995-02-28 23:24:35 +00:00
cgd
41f1c5fa0d
generated files.
1995-02-13 21:40:43 +00:00
cgd
e5a8a9b897
Initial support for DEC OSF/1 AXP binaries. May be applicable to other OSF/1
...
systems running a BSD-ish server. No dynamically linked executable support
(it requires weird execve() hacks...), nor any Mach trap support. But it
ran lots of statically linked binaries well enough for me to get bootstrapped.
1995-02-13 21:39:00 +00:00
mellon
e7859a639f
Fix up some incompatibilities and some indentation botches
1995-02-01 05:09:14 +00:00
christos
316fa4de0e
Syscalls.master was changed.
1995-02-01 01:41:37 +00:00
christos
dbcb84b7e1
Added sigaltstack, ioctl(I_NREAD)
...
Replaced syssun with svr4_sysarch()
1995-02-01 01:37:33 +00:00
christos
a8c747992c
syscalls.master was changed
1995-01-25 04:17:45 +00:00
christos
5a54340166
Make siginfo structure a union for clarity. Fix incorrect settings of
...
the siginfo_t in the waitid() system call.
1995-01-25 04:17:06 +00:00
christos
279d6f3237
wait(2): Put the status in retval[1] as solaris expects it there
...
avoid infinite loop when looking for / [since it used to return /emul/svr4],
by returning the real root.
1995-01-22 23:44:48 +00:00
mellon
4ecd541c1f
Fix up non-ANSI code (which was a no-op anyway)
1995-01-18 06:56:34 +00:00
christos
22572ffee9
More debugging for waitsys()
...
Fixed uname which was broken since 1.0.
Added timod/getinfo stream ioctl.
Fixed TIOC{G,S}PGRP
Fixed typo in the flags translation
1995-01-10 00:04:03 +00:00
christos
9033addb0c
Job control fixes... Still not working, but better
1995-01-09 01:04:18 +00:00
christos
e15e38be03
syscalls.master was changed
1995-01-08 21:32:40 +00:00
christos
ff6fb90722
Fixed waitsys().
...
Fixed time functions.
Added alarm(), contextsys(), sigaction(), kill(), statvfs(), fstatvfs()
1995-01-08 21:31:34 +00:00
mycroft
f2dba9ed8a
timevaladd -> __timeradd (AGAIN)
1994-12-17 19:22:16 +00:00
deraadt
8aa219da0c
correct ansi glitch
1994-12-16 19:01:43 +00:00
pk
27fd6ed84f
mode/flags confusion in sunos_open().
1994-12-15 09:41:36 +00:00
mycroft
c06da32c6e
Make sure to ream out the file descriptor table slot when aborting.
1994-12-14 20:20:26 +00:00
mycroft
797dcd3e8f
Use the same method as portal fs for creating a file descriptor.
1994-12-14 20:08:30 +00:00
mycroft
6332be8c7f
Use __timeradd(), not timervaladd().
1994-12-11 17:56:21 +00:00
deraadt
5f9f1008db
update
1994-12-06 00:17:44 +00:00
deraadt
9259e6b44d
repair SYSV_* system calls
1994-12-06 00:17:06 +00:00
dean
6d4bd6bb91
fixed typo
1994-12-02 18:13:00 +00:00
dean
7d467781b8
new sysent version.
1994-12-02 18:12:34 +00:00
dean
5e8c18eb44
added sigreturn
1994-12-01 16:41:43 +00:00
dean
d0a26487e7
New syscall stuff
1994-12-01 16:23:20 +00:00
pk
02e97ec079
Convert SunOS IP multicast socket options.
1994-11-30 09:40:23 +00:00
deraadt
69943c6c35
update
1994-11-26 00:00:11 +00:00
deraadt
e24c51929f
a few other things which work
1994-11-25 23:59:31 +00:00
dean
aa7c33ed7d
{get,set}rlimit functions (From Jonathan Stone)
1994-11-23 22:34:58 +00:00
dean
d401f2494f
changes for new sysent structure (from J. Stone)
1994-11-23 17:49:06 +00:00
deraadt
66aea4d8d2
m68k does not have PT_{SET,GET}FPREGS
1994-11-23 07:05:20 +00:00
deraadt
52bf7567d8
new syscalls
1994-11-20 21:31:32 +00:00
deraadt
5677e59c0a
ptrace from chs+@CS.cmu.edu, poll from christos
1994-11-20 21:31:10 +00:00
deraadt
7eb1e52253
sunos ptrace & poll emulation
1994-11-20 21:30:03 +00:00
deraadt
2e57b94fb7
improve VMIN/VTIME emulation (from chs+@CS.cmu.edu)
1994-11-20 21:29:33 +00:00
christos
153d76736d
syscalls.master was changed; added a couple of new header files.
1994-11-18 02:56:09 +00:00
christos
2859b1c634
Rework streams emulation so that it does not rely on non portable hacks.
...
We keep streams state in so->so_ptcb; this field is unused in all the kernel.
Fix poll(2) timeout computation; add hrtsys and waitsys syscalls.
1994-11-18 02:53:37 +00:00
deraadt
b56463b6db
syscalls.master changed
1994-11-14 07:34:26 +00:00
deraadt
de1d09dd2a
fix sunos_mmap
1994-11-14 07:33:48 +00:00
christos
0d5c2ddb90
new files
1994-11-14 06:13:11 +00:00
christos
25ef6e1436
More functionality and bug fixes
1994-11-14 06:10:37 +00:00
deraadt
930c2dade2
fix CS[5678] code
1994-10-31 05:18:10 +00:00
cgd
6ac2bbfc35
be more careful with types, also pull in headers where necessary.
1994-10-30 21:43:03 +00:00
christos
f46f498d53
Changed code to KNF, removed global variable per cgd's request.
1994-10-29 00:43:14 +00:00
mycroft
ed0f09279e
Reran makesyscalls.sh, to update SYS_* constants and fix truncated line.
1994-10-28 20:46:17 +00:00
mycroft
4e9c2720e2
Clean up deleted files.
1994-10-26 11:58:32 +00:00
christos
afffe1aaf8
Fixed Charles suggestions:
...
1. always do the stackgap_init()/CHECKALT first in syscalls that need it.
2. svr4_emul_find() uses malloc for the buf, does not use copyoutstr, but
copyout().
Removed makesyscalls.sh; it was really old and we don't need a separate copy.
1994-10-26 11:58:24 +00:00
cgd
69d2deb545
new RCS ID format.
1994-10-26 05:27:43 +00:00
cgd
0974859697
new RCS ID format.
1994-10-26 02:57:08 +00:00
cgd
6b7c260753
new RCS ID format.
1994-10-26 02:45:11 +00:00
deraadt
734a6bf4d5
update
1994-10-26 01:04:28 +00:00
deraadt
63d1852163
whoops
1994-10-26 01:03:43 +00:00
deraadt
c4fba0ee57
and we update these
1994-10-25 23:05:28 +00:00
deraadt
1784f27584
and these
1994-10-25 23:04:53 +00:00
mycroft
e5877200d7
Clean up deleted files.
1994-10-25 23:03:35 +00:00
deraadt
019f48332c
rename, new syscall interface, etc.
1994-10-25 23:03:22 +00:00
deraadt
dca2741d28
make SYS_* macros unique
1994-10-24 23:26:02 +00:00
mycroft
f3c9ca2e05
Make the termios convul^H^Hersion a little less ugly, and convert CSIZE correctly.
1994-10-24 22:01:35 +00:00
deraadt
b415eb1d1d
new from christos
1994-10-24 17:37:34 +00:00
cgd
74d7436a91
pay a small amount of lip service to the new syscall args mechanism.
...
In reality, none of these will compile.
1994-10-20 04:47:31 +00:00
deraadt
042d2d08a1
use STACKGAPBASE
1994-09-28 00:41:17 +00:00
mycroft
3e334ba9a6
New iBCS2 code from Scott.
1994-09-05 01:28:57 +00:00
mycroft
c639e40d5b
iBCS2 emulation code, written by Scott Bartram.
1994-08-24 19:13:39 +00:00
mycroft
9db57a0aa0
Fix typo.
1994-08-17 11:03:07 +00:00
mycroft
da534b691a
Reran makesyscalls.sh.
1994-08-15 23:49:28 +00:00
mycroft
e8b01ef8dc
Add missing line.
1994-08-15 23:48:41 +00:00
mycroft
2b2c64b4e2
Need prototype of exec_svr4_elf_makecmds().
1994-08-15 22:54:51 +00:00
mycroft
a82f727857
Clean up deleted files.
1994-08-15 22:47:27 +00:00
mycroft
ea999cdda2
Rename this for consistency.
1994-08-15 22:47:24 +00:00
mycroft
e2122143e9
Don't reread the blasted header.
1994-08-15 22:47:00 +00:00
mycroft
b0d890f90a
EMUL_IBCS2 --> EMUL_IBCS2_ELF
1994-08-15 22:03:12 +00:00
glass
7ea51310a8
add ultrix_{get,set}sysinfo() from Arne H Juul <arnej@dsl.unit.no>
1994-08-01 14:16:24 +00:00
glass
32d2a27836
ultrix_{get,set}info from Arne H Juul <arnej@dsl.unit.no>
1994-08-01 14:15:06 +00:00
gwr
ba188a61a0
Avoid some macro redefinitions that have appeared since exec.h
...
now includes exec_aout.h
1994-07-12 00:34:31 +00:00
cgd
a2e313bd42
gen syscall fiels from new syscalls.master
1994-06-30 17:01:45 +00:00
cgd
19f726e77f
fix a botch, and gen syscall files
1994-06-30 17:00:13 +00:00
cgd
bc9970144d
fix up for new ID format, and consistency
1994-06-30 16:42:47 +00:00
cgd
cf92afd66e
New RCS ID's, take two. they're more aesthecially pleasant, and use 'NetBSD'
1994-06-29 06:29:24 +00:00
glass
e0069330b3
oops
1994-06-25 07:06:49 +00:00
deraadt
932345acae
post 4.4-lite update
1994-06-24 07:30:17 +00:00
pk
c3357eea57
sun_mount: fill in one more field.
1994-06-22 08:24:53 +00:00
glass
188170d2e3
update to reflect compat_ultrix syscalls.master
1994-06-22 03:38:25 +00:00
glass
8c50058535
update for getdtablesize change, and track compat_sunos
1994-06-22 03:37:15 +00:00
mycroft
c22aab7bbe
getdirentries() and getdtablesize() compat.
1994-06-22 03:04:01 +00:00
deraadt
a53fa907c7
async_daemon only if NFSCLIENT
1994-06-15 19:38:05 +00:00
glass
57642fb485
much works but untested w/new fs. expect more tomorrow
1994-06-15 05:18:01 +00:00
chopps
f63e2d134a
update to match recent getdtablesize() change
1994-06-14 10:51:09 +00:00
pk
0f1018ce49
Adapt to 4.4-lite.
1994-06-10 09:26:18 +00:00
mycroft
b43f4fdfcd
Minor change.
1994-06-08 11:19:04 +00:00
deraadt
4a46b42560
tricky
1994-06-06 06:57:59 +00:00
glass
2c9de9962f
first swipe at ultrix compat. expect many bug fixes. very related to compat/sunos
1994-06-02 06:25:37 +00:00
mycroft
64561e1985
Something else needs COMPAT_OHPUX.
1994-05-25 11:55:06 +00:00
deraadt
95c2509dcd
maxfdescs -> maxfiles
1994-05-24 03:27:13 +00:00
deraadt
8dbae58853
maxfdescs -> maxfiles
1994-05-24 02:15:18 +00:00
mycroft
48dd63215d
Merge with 4.4-Lite.
1994-05-23 08:03:32 +00:00
mycroft
56c75f2846
Update to match other code.
1994-05-23 06:19:05 +00:00
cgd
8ecf3dc2cc
this file came from sun_misc.c
1994-05-22 10:46:33 +00:00
deraadt
a0ca154be4
prelim svr4 stuff from <christos@deshaw.com>
1994-05-22 10:04:26 +00:00
deraadt
f1cc805ce8
iszerodev
1994-05-21 08:44:26 +00:00
deraadt
82eb0b8134
bail on SIOCGARP
1994-05-21 08:22:08 +00:00
deraadt
b840288c76
fix uname after sysctl
1994-05-19 22:11:54 +00:00
cgd
da707cc4eb
syscall and time stuff
1994-05-17 10:37:09 +00:00
cgd
08124ce51b
fix syscall for new names
1994-05-17 10:36:03 +00:00
deraadt
ec36c387dd
follow
1994-05-07 05:07:23 +00:00
deraadt
fcc30154a9
backwards compat for a few things.
1994-05-07 05:06:35 +00:00
mycroft
89a5de9e12
Most of the changes needed to make this continue to run.
1994-05-05 10:10:21 +00:00
deraadt
d5b1d9c49e
p->p_sig -> p->p_siglist
1994-05-05 09:36:23 +00:00
cgd
013681d5ce
fix my forgetfulness; from gwr
1994-05-05 02:46:58 +00:00
mycroft
e5a2605525
Remove silly redundant #ifdefs.
1994-05-04 04:09:34 +00:00
mycroft
e3e3d72f66
Update to match proc.h.
1994-05-04 03:47:10 +00:00
cgd
f8dd4f370d
expand the rlimit struct, kill last vestiges of off_t bogosity.
1994-05-04 01:38:25 +00:00
cgd
70ba2b2c43
sun syscalls.master update
1994-05-01 06:15:58 +00:00
cgd
40d241b53a
three changes i forgot, from Gordon Ross (gwr@lamp)
1994-05-01 06:14:50 +00:00
cgd
9fb6210877
keep appropriate id's in 'created from' lines
1994-05-01 06:14:04 +00:00
cgd
f50f031448
kill syscall name aliases. no user-visible changes
1994-04-29 04:41:02 +00:00
mycroft
bec176e7da
Update for new time struct.
1994-04-26 22:33:28 +00:00
pk
21099f340f
Fix typo.
...
Give TIOCTCNTL a try.
1994-04-26 19:52:29 +00:00
pk
13809c7029
SunOS's RLIMIT_NOFILE is different: add sun_[gs]rlimit().
1994-04-26 19:50:37 +00:00
deraadt
714db1ef12
make sunos mount(2) work again
1994-04-24 11:37:49 +00:00
deraadt
92dd747175
nice unique SUN_SYS_ names..
1994-04-04 10:06:53 +00:00
deraadt
9b3514464e
SYS_* -> SUN_SYS_* to avoid name space clash
1994-04-04 10:04:00 +00:00
cgd
5a0aea55f0
sickness to get SunOS mmap right
1994-04-02 08:32:56 +00:00
cgd
304e374292
expand uid_t/gid_t/off_t
1994-03-27 09:08:02 +00:00
cgd
d2ee60cc73
fix botch
1994-03-27 08:51:52 +00:00
cgd
4a28c23c2f
do the syscall shuffle
1994-03-27 08:34:59 +00:00
deraadt
fd0320c5dc
update to syscall.master (for sysconf)
1994-03-03 14:15:53 +00:00
deraadt
d6976aca70
DoH!
1994-03-03 14:15:25 +00:00
deraadt
ae535bfeb6
first cut at a SUNOS_COMPAT sysconf() system call.
1994-03-03 14:08:25 +00:00
chopps
bd48fb1aa9
place conditional around sun_nfssvc.
1994-02-20 23:24:03 +00:00
jtc
5235180083
Fix spelling error in Copyright notice
1994-01-28 23:43:26 +00:00
deraadt
ac51029167
for new exec, from mw
1994-01-28 03:41:44 +00:00
deraadt
b2834eb029
sync with magnum
1994-01-15 01:18:14 +00:00
cgd
2079970043
SHM_LOCK and SHM_UNLOCK aren't just HPUXCOMPAT
1994-01-08 15:09:01 +00:00
mycroft
0bbaf2a5e8
Partial cleanup. Needs more work.
1994-01-07 00:43:39 +00:00
deraadt
858521c1a8
update to latest syscalls.master
1993-12-12 20:46:24 +00:00
deraadt
9d48733fb1
m68k/sparc sunos binary compatibility code, pulled down from magnum branch
...
for consumption by the m68k masses
1993-12-12 20:43:18 +00:00
mycroft
b26d4770d0
Clean up deleted files.
1993-11-28 18:07:58 +00:00
deraadt
6ce3f214d1
compat exec() stuff is done more sensibly now
...
(hpux and ultrix compat stuff will be done the same way)
1993-11-28 18:03:18 +00:00
deraadt
61789d11e5
moved from arch/sparc/sunos to compat/sunos
1993-11-22 22:54:48 +00:00
deraadt
95b75b0b4e
update to new syscalls.master
1993-11-20 03:09:03 +00:00
deraadt
57a09f4e1c
new compat functions: sun_open, sun_auditsys, sun_setpgid, sun_uname
...
some from Markus.
1993-11-20 03:08:16 +00:00
deraadt
370e6c6aed
cannonicalize #include's
1993-11-20 03:05:41 +00:00
deraadt
e2a5941739
new compat functions: sun_open, sun_auditsys, sun_setpgid, sun_uname
...
some from Markus.
1993-11-20 03:01:58 +00:00
deraadt
ac4a976328
fake support for TIOCSSOFTCAR and TIOCGSOFTCAR
...
(one of which used to point to NetBSD's TIOCSTAT :-)
1993-11-20 02:57:43 +00:00
deraadt
61f6f87a4c
update to latest syscalls.master
1993-11-14 14:56:35 +00:00
deraadt
ee8ffb2911
update to kern/syscalls.master, for SYSVSEM & SYSVMSG
1993-11-14 14:56:05 +00:00
deraadt
db97aa737f
disassembly shows the %f2 register being accessed, and of course the
...
kernel panics.
why wasit using %f2? some expressions were too complicated and gcc2 (with
the optimizer off, mind you) ran out of integer registers and thus used
started using a float register for a temporary.
1993-11-14 14:46:54 +00:00
deraadt
25800bfb5b
specdev.h moves
1993-11-12 03:23:51 +00:00
deraadt
ea61d92021
replacement set of sun ioctl functions. markus wild added a
...
whole slew of new ioctl's that are much more close to reality.
the comat-sunos tree is now almost good enough to be used in
both m68k and sparc kernels.
1993-11-10 15:03:33 +00:00
deraadt
a256e8b38a
silly typo
1993-11-10 11:46:38 +00:00
deraadt
3593ac2407
sunos compat execve() helper routines.
...
these routines are not useful/used on the sparc, but are needed
by the sun3.
1993-11-10 10:31:35 +00:00
deraadt
294c3d8704
support both sun3 & sparc concepts of minor/major #'s for /dev/zero
1993-11-10 10:14:19 +00:00
deraadt
b9f8cbdca7
update from new syscalls.master
1993-11-10 01:01:59 +00:00
deraadt
ffb469a020
chmod 444 on the output files is a bad idea
1993-11-10 01:01:25 +00:00
deraadt
2e0bfb759c
update to 4.4 way of doing syscall#0
1993-11-10 00:59:10 +00:00
deraadt
6ecda95b8a
rebuilt from syscall.master: {get,set}domainname change
1993-10-15 11:29:13 +00:00
deraadt
ef0d3bd5cb
fix sun_getdents()
...
fix sun_mmap()
Note: delete the "struct dirent" in here when sys/dirent.h is created.
1993-10-15 11:28:29 +00:00
deraadt
fc55b2487e
use the standard {get,set}domainname stuff
1993-10-15 10:58:42 +00:00
deraadt
4a2a17c2f1
rebuild files from syscalls.master
1993-10-13 02:32:36 +00:00
deraadt
bb5626a7c8
Add a stub auditsys() system call that does nothing.
...
SunOS /sbin/fsck calls it..
1993-10-13 02:31:47 +00:00
deraadt
b3147a8677
various changes, suffice to say that 4.4 syscalls do not look like ours
1993-10-11 02:44:06 +00:00
deraadt
4588caefaa
Chris Torek's sparc port. Missing lots of things.
1993-10-02 10:22:00 +00:00
mycroft
0b3f240c49
Ditto.
1993-09-02 19:05:40 +00:00
mycroft
4862b84c92
Add RCS identifiers (this time on the correct side of the branch), and
...
incorporate recent changes in netbsd-0-9 branch.
1993-08-01 19:22:24 +00:00
cgd
30177b538f
add rcsids to everything and clean up headers
1993-05-22 07:56:12 +00:00
cgd
6dedb5151c
add hp300 kernel files. generic kernel files might need some help...
1993-05-13 13:56:20 +00:00