mrg
74f573d85d
remove advertising clause from all my licenses.
1997-10-10 05:39:47 +00:00
enami
fdd96411d4
Regen from syscalls.master 1.9.
1997-10-10 02:01:03 +00:00
enami
9b1963acd5
Regen from syscalls.master 1.9.
1997-10-10 02:00:57 +00:00
enami
6e4ffc538f
Regen from syscalls.master 1.9.
1997-10-10 02:00:54 +00:00
enami
3c1a195715
lchown at #254 .
1997-10-10 01:55:33 +00:00
enami
23b3ed1d5c
New function freebsd_sys_lchown() to emulate FreeBSD lchown(2).
1997-10-10 01:50:55 +00:00
fvdl
86ecc45306
Signal error when getting a 64 bit offset cookie that can't be stored
...
in 32 bits. Provide an error message to the user, and return EINVAL.
Also, pay attention to the EOF flag from VOP_READDIR. Correct a
misspell in a panic message.
1997-10-10 01:47:41 +00:00
fvdl
811fbe17b5
Add getdirentries backward compat syscall. Provide common function to
...
signal cookie overflow during emulated getdents and friends.
1997-10-10 01:46:59 +00:00
fvdl
49d58c7d89
Regen.
1997-10-10 01:45:48 +00:00
fvdl
b35ec5940b
Channel FreeBSD getdirentries to our now obsolete getdirentries call.
1997-10-10 01:44:59 +00:00
fvdl
d6e5e295fa
Signal error when getting a 64 bit offset cookie that can't be stored
...
in 32 bits. Provide an error message to the user, and return EINVAL.
Also, pay attention to the EOF flag from VOP_READDIR. Correct a
misspell in a panic message.
1997-10-10 01:42:21 +00:00
jtc
55baa7c0f7
Fix tipo inherited from old version of TNF copyright template.
1997-10-09 08:30:09 +00:00
augustss
7002bab845
Emulate setting the hiwater mark with SETFRAGMENT the right way.
...
Get rid of some 'register'.
1997-10-07 22:46:00 +00:00
thorpej
616e0b7e33
Copyright assigned to The NetBSD Foundation.
1997-10-05 18:26:38 +00:00
mhitch
3bda138b2b
Fix a missed *setregs() change.
1997-09-24 02:13:11 +00:00
jtk
4e51e62639
implement IBCS2_FIONBIO
...
(code by Christos Zoulas; tested by me)
1997-09-19 21:57:10 +00:00
mycroft
99a6404735
Add an ibcs2_setregs().
1997-09-11 23:05:30 +00:00
mycroft
3f70f046fc
Fix wait(2) and waitpid(2) emulation; it's the responsibility of the syscall
...
stub to copy %edx to *status, and trying to do it here loses with some libc
versions.
1997-09-11 23:05:02 +00:00
mycroft
16a8787248
Fix execve(2) and *setregs() interfaces so emulations can set registers in a
...
more correct way. (See tech-kern.)
1997-09-11 23:01:44 +00:00
mycroft
a6aa4731bc
Fix errors left over from system call conversion.
1997-09-09 21:14:00 +00:00
kleink
c80051ee4e
Add missing preparation of F_GETLK parameters in linux_sys_fcntl(); fixes PR
...
port-i386/4083 from Matthias Scheler <tron@lyssa.owl.de>, but vastly cleaned
up as previously suggested by myself.
1997-09-05 01:49:12 +00:00
jonathan
d8418c511e
machine/psl.h is deprecated; move #include <machine/psl.h> inside #ifdef m68k.
1997-09-03 21:06:50 +00:00
augustss
9390f073ca
Increase the number of mixer devices the emulation looks at.
1997-08-24 23:31:23 +00:00
augustss
006a85ea00
Oops, forgot two lines in last commit.
1997-08-11 01:54:52 +00:00
augustss
67acd09fdc
Implement OSS_SNDCTL_DSP_NONBLOCK.
1997-08-11 01:52:47 +00:00
augustss
2d2e53095a
Some more debugging output.
1997-08-11 01:00:38 +00:00
augustss
46e0757329
Make sure OSS_SNDCTL_DSP_GETFMTS returns the formats the audio driver
...
can handle and not just some random guess.
Also add some debugging stuff.
1997-08-07 23:59:23 +00:00
augustss
7dfa17a43b
Improve ioctl decoding.
...
Change mixer name mappings.
1997-08-06 23:06:04 +00:00
bouyer
1cd83a5971
Fix "missing entries" bug when reading large directories: When reading a
...
directory and running out of space in the dest buffer, off should point to the
current entry (which was not saved) and not to the next.
I discovered this bug using linux and SunOS emulation over NFS, but seems to
affect other emulations as well.
1997-08-04 09:48:07 +00:00
augustss
d3de043fad
Make sure the blocksize is always a power of 2 when inspected.
...
OSS only uses powers of 2 so some programs expect this.
Now Quake works!
1997-07-28 03:51:11 +00:00
augustss
9745684ebe
Changes to the sudio system:
...
- It is now possible to handle devices that want "looping" DMA,
e.g. the SoundBlaster correctly. The WSS and SB drivers use this.
To do this several new methods were introduced in audio_hw_if.
- Different silence handling (forced by previous change).
- The audio driver can now be mmap()-ed, but due to problems in
the VM system only for writing for now.
- The OSS (Linux) audio emulation takes advantage of some of the
new features.
1997-07-27 01:16:32 +00:00
christos
3c27e58f31
Regen.
1997-07-21 23:03:30 +00:00
christos
ee8b56d3e6
Add:
...
64 bit filesystem system calls
socket system calls
ntp system calls
1997-07-21 23:02:34 +00:00
pk
e3680b0e26
config.new => config
1997-07-20 20:33:08 +00:00
augustss
8727da130b
In the name of backwards compatibility AUDIO_ENCODING_LINEAR has been
...
renamed AUDIO_ENCODING_SLINEAR and AUDIO_ENCODING_LINEAR reverts to the
NetBSD 1.2 sematics. A kernel with COMPAT_12 defined will accept
AUDIO_ENCODING_LINEAR and treat it as before, without COMPAT_12 it
will be rejected.
1997-07-15 07:46:04 +00:00
kleink
ff831a8fcd
regen.
1997-06-27 05:36:07 +00:00
kleink
96588fead9
Use sys_posix_rename() instead of sys_rename() as it's the behaviour of the
...
native implementation.
1997-06-27 05:29:34 +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
thorpej
896ec49c49
Regen: Use compat_12_sys_swapon().
1997-06-13 19:12:58 +00:00
thorpej
6f6452cc13
Use compat_12_sys_swapon().
1997-06-13 19:11:42 +00:00
thorpej
30597f2eed
Regen: Use compat_12_sys_swapon().
1997-06-13 19:10:11 +00:00
thorpej
068d1ad637
Use compat_12_sys_swapon().
1997-06-13 19:09:12 +00:00
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