christos
423b2ff7b4
Make mman(2) functions args consistent (caddr_t -> void *)
1997-10-19 18:45:04 +00:00
mycroft
429b08a2b4
Use S_IS*(), not S_IF*.
1997-10-19 18:40:11 +00:00
mycroft
762d77e123
Fix bogosity in mknod(2) translation.
1997-10-19 18:35:09 +00:00
carrel
ea9e34c2f7
cast to void * not caddr_t
1997-10-19 12:52:19 +00:00
augustss
e7029fc0da
Make the audio API (almost) SunOS compatible.
...
The changes is to allow some limited mixer manipulation through
the audio device (instead of the mixer device).
This rendered 4 methods in audio_hw_if unused so garbage collect these.
1997-10-19 07:41:33 +00:00
mycroft
62f4958011
Copy the whole timespec, not just half of it. Other minor changes.
1997-10-19 01:52:51 +00:00
fvdl
33074aa25a
Eliminate compile warning because of mmap caddr_t -> void * change.
1997-10-19 00:16:08 +00:00
jonathan
2e47a5547e
Use void* not caddr_t for 'addr' argument to native mmap().
1997-10-19 00:15:31 +00:00
carrel
052d2ca080
variable is sb not st
1997-10-18 16:39:46 +00:00
christos
e196a361ce
Regen.
1997-10-18 16:31:59 +00:00
christos
885404d216
Use stat12; from Enami Tsugutomo
1997-10-18 16:30:25 +00:00
scottr
961e600c5c
Don't compile hpux_sys_ptrace(), as it uses a deprecated interface
...
(and didn't really work, anyway). Suggested by Dave Carrel.
1997-10-17 18:43:48 +00:00
scottr
0ea4e1111a
Regen.
1997-10-17 18:40:53 +00:00
scottr
519862a03a
ptrace() emulation is no longer supported, and probably hasn't worked
...
for some time anyway.
1997-10-17 18:39:14 +00:00
christos
dac5408a54
Regen.
1997-10-17 02:04:28 +00:00
christos
f8dee5bcb9
PR/4278: Chris Jones: Fix rlimit function prototypes
1997-10-17 02:03:17 +00:00
christos
251114507c
Regen
1997-10-17 00:02:49 +00:00
christos
dc60c14ef6
Regen.
1997-10-16 23:56:40 +00:00
christos
5f2f2ac9b2
ostat -> stat43
1997-10-16 23:55:50 +00:00
christos
ec57088486
Regen.
1997-10-16 23:55:23 +00:00
christos
79acd83ca5
check for st_nlink overflow
1997-10-16 23:54:40 +00:00
christos
7e8c979fa9
ostat -> stat43
1997-10-16 23:53:07 +00:00
christos
9b775fa66f
change it to use the real stat instead of ostat and check for st_link overflow
1997-10-16 23:52:20 +00:00
christos
766ded363c
check for st_link overflow.
1997-10-16 23:52:03 +00:00
christos
537eb26ac2
add stat12 compatibility calls and rename ostat to stat43
1997-10-16 23:50:36 +00:00
christos
0585de8731
Regen.
1997-10-16 23:50:20 +00:00
christos
bb19445ec6
PR/4269: msync is missing MS_*
1997-10-16 23:49:38 +00:00
christos
1d60a72b89
ostat -> stat43
1997-10-16 23:48:18 +00:00
christos
0fdb3e720f
Rename to vm_12.c
1997-10-16 23:46:52 +00:00
carrel
2d7d2e019a
include vm/vm.h
1997-10-16 18:27:40 +00:00
augustss
841c4f7db2
Insert missing NetBSD copyright notices.
1997-10-16 16:49:32 +00:00
mycroft
2e52ce5fd7
Pull in vmparam.h as necessary.
1997-10-16 04:23:36 +00:00
mycroft
91302e62ef
Regen.
1997-10-16 03:36:14 +00:00
mycroft
68fb837229
Fix a typo inherited from kern/syscalls.master.
1997-10-15 17:18:17 +00:00
mycroft
2587de6af9
Adjust u_int arguments of some system calls to int, to match user-level
...
prototypes.
1997-10-15 17:03:52 +00:00
lukem
28558b28eb
rcsid fascism
1997-10-13 14:22:22 +00:00
fvdl
d85f38cbec
Fix braino in my interpretation of the eof flag to VOP_READDIR.
1997-10-10 22:16:04 +00:00
fvdl
93b08eefc2
u_long -> off_t, I missed the big endian case. From Juergen Hannken-Illjes
1997-10-10 13:03:32 +00:00
fvdl
cd215502cb
Regen.
1997-10-10 12:54:39 +00:00
fvdl
914e939800
sys_getdirentries -> compat_12_sys_getdirentries from Juergen Hannken-Illjes.
1997-10-10 12:45:01 +00:00
jonathan
8494c2cf67
Correct name of author in license clause 3, as per email with mrg.
1997-10-10 08:31:10 +00:00
mycroft
16652e8449
Regen.
1997-10-10 06:49:08 +00:00
mycroft
523d84775a
Emulate mremap(2) by returning ENOMEM for now. This should be sufficient for
...
realloc(3) and other uses. From Matthias Scheler in PR 3920.
1997-10-10 06:25:34 +00:00
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