dsl
7cc9af7d64
ANSIfy functions with function-pointer arguments
2009-03-16 23:11:09 +00:00
njoly
fd24f7c917
Regen for netbsd32_dev_t.
2009-03-16 20:49:16 +00:00
njoly
0f21bb4a22
Fix dev_t alignment, by not using the new 64bit value directly but
...
rather a 32bit aligned version (netbsd32_dev_t = netbsd32_uint64).
ok by cube@.
2009-03-16 20:48:13 +00:00
cegger
9fca5da616
ansify function definitions
2009-03-15 15:55:51 +00:00
cegger
7038d1e471
ansify function definition
2009-03-15 15:54:43 +00:00
dsl
82357f6d42
ANSIfy another 1261 function definitions.
...
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.
2009-03-14 21:04:01 +00:00
christos
7fd1fc871c
fix robust_list pointer mess!
2009-03-14 20:18:27 +00:00
dsl
454af1c0e8
Change about 4500 of the K&R function definitions to ANSI ones.
...
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
2009-03-14 15:35:58 +00:00
christos
7ef7e1b997
disable PTHREAD_CONCURRENCY until the bugs are fixed.
2009-03-06 14:00:40 +00:00
msaitoh
16ed711ed3
fix typo (s/stucture/structure/)
2009-03-05 01:21:57 +00:00
skrll
5ccc095a3e
Fix the posix_fadvise return value... finally.
...
Tested martin on sparc64/m68k and me on hppa.
2009-03-04 18:11:24 +00:00
ad
dd1969c253
PR kern/40730 any user can crash the system with KERN_SA
...
Disable SA. It can be re-enabled with sysctl -w kern.no_sa_support=0.
2009-03-02 22:11:28 +00:00
christos
4538aa34ee
Regen
2009-02-26 21:09:00 +00:00
christos
6d029d549a
fix kernel build with no options NTP
2009-02-26 21:08:48 +00:00
rmind
f54234d142
Switch Linux futex emulation to native ucas_int(), remove unecessary
...
futex-specific assembler routines.
Fixes PR/40490. Reviewed by <ad>.
2009-02-23 20:28:58 +00:00
nakayama
c99ea852e4
- fix copyout size in CLOCKCTL_O?ADJTIME.
...
- add missing break in CLOCKCTL_NTP_ADJTIME.
2009-02-22 13:06:58 +00:00
njoly
dc871322e1
Do not protect native_to_linux_si_code() under LINUX_NPTL anymore, now
...
that linux si_code definitions are MI.
2009-02-18 14:43:22 +00:00
njoly
65488d267e
Add IPC_64 support for all shmctl(2) commands, and reduce diffs with
...
compat linux version.
2009-02-18 14:40:14 +00:00
njoly
a1cf1f2eab
Add IPC_64 support for all shmctl(2) commands, not only for STAT/SET.
...
This make it work on i386 under 2.6 emulation.
2009-02-18 14:30:43 +00:00
apb
0cc72e51ac
Use "defopt MODULAR" in sys/conf/files, and #include "opt_modular.h"
...
in all kernel sources that use the MODULAR option.
Proposed in tech-kern on 18 Jan 2009.
2009-02-13 22:41:00 +00:00
njoly
bc0bccb487
Regen for mincore(2).
2009-01-30 13:57:39 +00:00
njoly
8bbb521068
Add mincore syscall.
2009-01-30 13:55:51 +00:00
njoly
b5ae97a41a
Cleanup. Kill a few netbsd32_caddr_t in syscalls argument types.
2009-01-30 13:01:36 +00:00
njoly
73abc6838e
Revert the previous packed attribute fix. Instead make netbsd32_time_t
...
of type netbsd32_int64 which provides a 64-bit value with a 32-bit
alignment.
Suggested by dsl.
2009-01-28 00:43:04 +00:00
njoly
f01722c17f
Make netbsd32_timespec/netbsd32_timeval structures packed. This fix an
...
alignment problem between 64-bit kernel and 32-bit userland versions,
which ended in different structure sizes.
2009-01-28 00:02:39 +00:00
njoly
3e5b27ff8e
Make all fstat(2) compat syscalls consistently use do_sys_fstat(),
...
instead of fd_getfile()/fd_putfile() dance.
ok by christos.
2009-01-26 13:00:04 +00:00
christos
f7636e0eb3
fix casts.
2009-01-25 01:22:42 +00:00
cegger
e6ae80b89d
buildfix: re-adapt to minor() returning a 32bit value again.
2009-01-22 16:10:19 +00:00
christos
d3baa5ffd2
compile into nothing if not compat 50.
2009-01-21 16:12:20 +00:00
tron
1c6c1db2da
Revert accidental of some rogue changes which broke the build.
2009-01-21 10:01:42 +00:00
tron
31faff7381
Include "bsd.own.mk" to get the definition of "NETBSDSRCDIR" via
...
"/etc/mk.conf". This fixes manual use of "make cleandir".
2009-01-20 22:49:29 +00:00
christos
5bd9ba9f86
add some debugging.
2009-01-20 20:47:33 +00:00
njoly
8ed9e9eb51
Regen for personality(2) addition.
2009-01-20 12:02:09 +00:00
njoly
b22c955a54
Add basic support for linux32 personality(2) syscall.
2009-01-20 12:00:58 +00:00
njoly
31357439c7
Fix typo in compat ioctl name.
2009-01-19 23:01:42 +00:00
christos
143e6033a9
Provide compatibility for pre-christos-time_t sysv sysctls.
2009-01-19 19:39:41 +00:00
christos
d610baec20
provide compat_50
2009-01-19 17:39:02 +00:00
njoly
0ebed1143f
Small personality(2) update.
...
- Allow querying current personality.
- Use symbolic names instead of magic values.
2009-01-19 13:31:40 +00:00
christos
14ba6c67a5
Provide compatibility to the old timeval SCM_TIMESTAMP messages.
2009-01-19 02:27:57 +00:00
njoly
77237e1c08
Regen for wait4 update.
2009-01-17 22:34:02 +00:00
njoly
25a76c08aa
Convert linux/linux32 wait(4) to use a compat50 rusage structure.
2009-01-17 22:28:52 +00:00
he
994737a3f6
Regenerate files after updating syscalls.master for compat_ultrix:
...
Adapt to the state after the recent time_t change.
Type changes:
timeval -> timeval50
itimerval -> itimerval50
rusage -> rusage50
and use of the compat_50 calls where appropriate.
Untested, but at least it builds.
Discussed with christos@
2009-01-17 15:50:12 +00:00
he
92c667768c
Adapt to the state after the recent time_t change.
...
Type changes:
timeval -> timeval50
itimerval -> itimerval50
rusage -> rusage50
and use of the compat_50 calls where appropriate.
Untested, but at least it builds.
Discussed with christos@
2009-01-17 15:48:06 +00:00
njoly
8ff5603c09
Regen for compat 50 update.
2009-01-16 13:12:35 +00:00
njoly
9554a2932f
Update some syscalls that now needs compat50 timeval structure.
2009-01-16 13:10:47 +00:00
njoly
b615dfc4d8
Rengen for compat50 update.
2009-01-15 23:50:35 +00:00
njoly
7345858afe
Update some syscalls/arguments to use the new compat50 equivalents.
2009-01-15 23:48:50 +00:00
christos
5a4537eb47
Emulate a couple more ioctls. Thanks to Matthias Drochner for pointing them out.
2009-01-15 20:32:59 +00:00
christos
ff90a0090a
compat glue.
2009-01-15 18:19:23 +00:00
njoly
39f5db2b54
In rusage_to_rusage50() function, fix memcpy size to include last
...
struct member (ru_nivcsw) which was missing.
ok by christos.
2009-01-14 22:50:12 +00:00
pooka
09ba2d6689
Regen to prove I didn't screw up the conversion: purely RCSID changes.
2009-01-13 22:33:11 +00:00
pooka
5d19acad62
Regen to prove I didn't screw up the conversion: purely RCSID changes.
2009-01-13 22:33:08 +00:00
pooka
a9a2ce837b
Convert the syscalls.master to a format from which it is easier
...
to parse and generate the compat name and basename (e.g. __stat50
and stat). Use this to autogenerate __RENAME()'s to the rump_syscalls
header so that they can be called e.g. rump_sys_socket() instead
of rump_sys___socket30().
2009-01-13 22:27:43 +00:00
pooka
21eb48bd8e
regen
2009-01-13 22:16:11 +00:00
pooka
b9e6895bec
UNIMPL police (two mount syscalls with the same signature?!?)
2009-01-13 22:15:42 +00:00
pooka
5514331a78
regen after unimpl police to get comments right
2009-01-13 22:11:32 +00:00
pooka
7e02aa9486
UNIMPL
2009-01-13 22:10:58 +00:00
pooka
ef4e11410c
regen
2009-01-13 22:08:59 +00:00
pooka
4180a41378
UNIMPL police
2009-01-13 22:08:30 +00:00
pooka
c2f114970c
regen
2009-01-13 22:03:39 +00:00
pooka
70917e36da
UNIMPL police
2009-01-13 22:03:12 +00:00
pooka
c3c68d936d
regen: unimpl police
2009-01-13 22:00:48 +00:00
pooka
41d2f63e9a
UNIMPL police
2009-01-13 21:57:55 +00:00
pooka
0b40ab56ee
regen: UNIMPL police
2009-01-13 21:49:16 +00:00
pooka
c3a8bfb54e
UNIMPL police: remove pseudo-prototypes
2009-01-13 21:48:35 +00:00
pooka
e0330adb61
regen
2009-01-13 21:20:29 +00:00
pooka
33883e2a6d
Somehow i doubt linux_sys_recvmsg() returns size_t. Make it ssize_t.
...
(XXX: the actual implementation returns int)
2009-01-13 21:19:51 +00:00
pooka
0033abb5fc
regen
2009-01-13 21:07:33 +00:00
pooka
a0ece03c2d
Make one UNIMPL consistent with the rest: remove signature.
2009-01-13 21:06:47 +00:00
martin
90daabb504
Add a few missing includes, so the ifdefs work as expected.
2009-01-13 20:47:47 +00:00
pooka
bb5f9edebf
regen for #include "opt_compat_netbsd.h"
2009-01-13 19:45:38 +00:00
rtr
f0916c9e83
use do_sys_mknod() instead of sys_mknod() to make this compile again.
...
ok'd by martin@
2009-01-13 11:35:24 +00:00
rtr
21e966491f
actually commit syscalls.master this time
...
add back blank line between #include <sys/.. and #include <sys/compat/..
regen
2009-01-13 04:31:12 +00:00
rtr
b198a0fd79
regen for christos_time_t merge
2009-01-12 11:53:23 +00:00
mhitch
6ebe2c3a6d
Compat a.out stat structures also need to use u_int32_t dev_t.
2009-01-11 22:54:16 +00:00
christos
91306aae6f
fix lutimes.
2009-01-11 21:23:22 +00:00
tsutsui
9d90ca88ae
Compat a.out stat structures should use compat struct timespec50.
...
Noticed by mhitch@.
2009-01-11 21:12:04 +00:00
christos
52ef6203ff
*utimes should allow NULL tvp.
2009-01-11 20:46:53 +00:00
rumble
40019d9470
regen.
2009-01-11 20:00:14 +00:00
rumble
5e7d8a6495
Fix time_t change fallout.
2009-01-11 20:00:06 +00:00
nakayama
b964c01bff
Regen for following christos-time_t merge.
2009-01-11 13:16:34 +00:00
nakayama
60d7add52e
Follow christos-time_t merge.
2009-01-11 13:14:14 +00:00
tsutsui
8a2b8ba767
Regen from syscalls.master rev 1.64:
...
> Update for compat_50 stuff. (compile test only)
2009-01-11 13:00:25 +00:00
tsutsui
4f0ae35127
Update for compat_50 stuff. (compile test only)
2009-01-11 12:59:34 +00:00
tsutsui
a37c14b49c
Regen from syscalls.master rev 1.72:
...
> Update for compat_50 stuff. (compile test only)
2009-01-11 12:45:46 +00:00
tsutsui
f318c9b526
Update for compat_50 stuff. (compile test only)
2009-01-11 12:44:47 +00:00
tsutsui
41e9d73c06
Regen from syscalls.master rev 1.31:
...
> Update for compat_50 stuff. (compile test only)
2009-01-11 12:27:23 +00:00
tsutsui
2f67cbfacc
Update for compat_50 stuff. (compile test only)
2009-01-11 12:25:03 +00:00
tsutsui
348730301a
<sys/syscallargs.h> requires <sys/sched.h> for cpuset_t.
2009-01-11 12:19:14 +00:00
cegger
378bd0b618
make this compile
2009-01-11 10:47:37 +00:00
christos
50728e7823
merge christos-time_t
2009-01-11 02:57:17 +00:00
christos
461a86f9bd
merge christos-time_t
2009-01-11 02:45:45 +00:00
njoly
16cef148ad
Restore expected FUTEX_WAIT behaviour with NULL timeout argument,
...
which was broken in my recent timespec cleanup/fix.
2009-01-08 12:46:23 +00:00
njoly
5affb2e50a
Make sysctl(2) fails with ENOTDIR (instead of EINVAL) for invalid mib
...
vector length.
2009-01-05 09:33:19 +00:00
njoly
4f6a64a639
Restore struct sysctl padding member name, which was damaged during
...
__unused removal on arguments.
2009-01-05 09:18:27 +00:00
njoly
e85166daa8
Fix stime(2) inverted copyin arguments.
2008-12-29 22:21:49 +00:00
njoly
f22af7d53f
s/syscallcarg/syscallarg/ in comments.
2008-12-29 14:33:40 +00:00
cegger
9b87d582bd
kill MALLOC and FREE macros.
2008-12-17 20:51:31 +00:00
njoly
6b9fe0233d
Regen for clock_nanosleep.
2008-12-12 23:38:13 +00:00
njoly
99688b74d2
Add clock_nanosleep syscall.
2008-12-12 23:36:18 +00:00
njoly
26a5edd122
Add some padding members to linux_msqid64_ds for 32-bit archs. This
...
fix msgctl(2) IPC_STAT|IPC_64 calls, at least, on i386.
2008-12-09 11:09:11 +00:00
njoly
bd398db254
Remove unused timeval_to_clock_t function, superseeded by CONVTCK
...
macro.
2008-12-08 11:52:35 +00:00
njoly
adf5b0a542
Regen for netbsd32_caddr_t removal.
2008-12-06 23:15:09 +00:00
njoly
e7377ec502
Cleanup; kill netbsd32_caddr_t use.
2008-12-06 23:14:03 +00:00
njoly
9321a67e19
Small setres{uid,gid} cleanup; there is no need to use a specific
...
handling for -1 uid values.
2008-12-06 23:01:32 +00:00
njoly
14e966b9e0
Regen for getres{uid,gid} syscalls.
2008-12-05 23:31:54 +00:00
njoly
533a52241a
Add getres{uid,gid} syscalls.
2008-12-05 23:30:19 +00:00
ad
dc5f414733
PR port-amd64/40091 compat_linux32 module loading = panic due to missing syms
2008-12-03 12:51:11 +00:00
njoly
96d7b57e0f
Regen for getdirentries fix.
2008-12-02 13:45:40 +00:00
njoly
488fb8373c
Fix getdirentries(2) by not calling compat_43_sys_getdirentries, but
...
letting do its own job instead (native and osf1 dirent structure have
different member number and types).
2008-12-02 13:45:02 +00:00
njoly
d42a74a9ba
Regen for sched_get_priority_{min,max}.
2008-12-01 14:19:45 +00:00
njoly
aba771042c
Add sched_get_priority_{min,max} syscalls.
2008-12-01 14:18:44 +00:00
ad
1a85128fea
COMPAT_ULTRIX does not work on vax because there are no hooks, but make
...
it compile anyway.
2008-11-24 11:19:53 +00:00
njoly
6d6fb02ffd
Regen for getpgid.
2008-11-24 00:26:34 +00:00
njoly
010c8bc9c7
Add getpgid, needed for Tru64 4.0g ksh.
2008-11-24 00:25:30 +00:00
njoly
6709281d18
Move si_code definitions from MD to MI linux_siginfo.h, all archs
...
(except mips for 3 values) are identical.
While here, remove unused/unneeded LINUX__SI_CODE macro. Only the
lower 16-bits are used for userland si_code.
2008-11-23 23:48:48 +00:00
mrg
56585a9fd3
initialise a variable to avoid a GCC warning.
2008-11-23 00:15:13 +00:00
mrg
3b1d48844e
regenerate
2008-11-22 23:14:01 +00:00
mrg
672c98ee5a
implement netbsd32__sched_setparam(), netbsd32__sched_getparam(),
...
netbsd32__sched_setaffinity() and netbsd32__sched_getaffinity().
2008-11-22 23:13:38 +00:00
cegger
53d5928d58
make this compile
2008-11-21 20:53:28 +00:00
he
2df25715bb
Need to include <sys/module.h> when using the MODULE() macro.
2008-11-21 19:55:38 +00:00
he
b9e9d5c919
Commit regenerated files after this change to syscalls.master:
...
sys_nfssvc() is actually only defined when NFSSERVER is defined,
not when only NFS is defined, according to sys/nfs/files.nfs.
Adapt accordingly. Fixes build of amiga INSTALL kernel.
2008-11-21 15:15:31 +00:00
he
5ed8abf7d9
sys_nfssvc() is actually only defined when NFSSERVER is defined,
...
not when only NFS is defined, according to sys/nfs/files.nfs.
Adapt accordingly. Fixes build of amiga INSTALL kernel.
2008-11-21 15:14:56 +00:00
tron
709a35c482
Make it possible to compile a kernel with COMPAT_NETBSD32 but without
...
COMPAT_40. This fixes PR port-amd64/39967.
2008-11-20 11:56:40 +00:00
ad
1ab7ca8fdc
PR port-amd64/39964 modules/compat_linux: missing symbols on amd64
2008-11-20 09:26:06 +00:00
ad
11c98a4abf
PR port-amd64 modules/compat missing symbols on amd64
...
Also, test for compat_??_machdep.c so we don't have to grow more ifdefs
in the makefile.
2008-11-20 09:22:57 +00:00
cegger
f20e076be5
take ecoff header for ecoff code.
2008-11-20 00:28:07 +00:00
cegger
89ba8d828a
make this compile (for next68k)
2008-11-19 23:31:13 +00:00
cegger
20a167ec1c
make this compile
2008-11-19 22:27:19 +00:00
cegger
3076d30653
make this compile for alpha
2008-11-19 22:02:21 +00:00
ad
c4d65a7c5e
Additionally, set emul_netbsd_object=NULL after detaching it.
2008-11-19 21:29:25 +00:00
ad
5473327d60
compat_modcmd: emul_netbsd_object will be NULL if no exec has taken place
...
between load and unload of the compat module.
2008-11-19 21:27:54 +00:00
ad
e157b99c7c
Regen.
2008-11-19 18:39:43 +00:00
ad
92ce8c6a3d
Make the emulations, exec formats, coredump, NFS, and the NFS server
...
into modules. By and large this commit:
- shuffles header files and ifdefs
- splits code out where necessary to be modular
- adds module glue for each of the components
- adds/replaces hooks for things that can be installed at runtime
2008-11-19 18:35:57 +00:00
njoly
2b470c165e
Regen for futex timeout argument cleanup/fix.
2008-11-19 13:11:15 +00:00
njoly
377975c175
futex(2) timeout argument cleanup/fix.
...
- Use `struct linux_timespec', converted to native structure.
- Ensure that provided values are correct.
- Replace timeval+tvtohz by tstohz.
2008-11-19 13:09:19 +00:00
njoly
d64736c6b8
noisy printf.
2008-11-18 15:25:13 +00:00
ad
7369e64e54
LINUX_GCC_SIGNATURE also matches NetBSD/i386 ELF binaries, so disable it.
2008-11-17 13:03:42 +00:00
martin
42cab0447c
Make it compile
2008-11-16 15:17:05 +00:00
njoly
ef05808702
Do not call namei anymore, but use the result from the previous
...
emul_find_interp call instead. This make dynamic executables work
again under compat OSF1 (fix PR/39255).
ok by christos.
2008-11-15 00:49:53 +00:00
ad
57de28fac5
- Move some more compat code into sys/compat.
...
- Split 4.3BSD ifioctl stuff into its own file.
- Remove some ifdefs that include small fragments of vfs compat code
which are difficult to relocate elsewhere.
2008-11-14 23:10:57 +00:00
ad
7dbfda5cca
Unneeded ifdef
2008-11-14 15:56:17 +00:00
ad
7bd1ee08d6
Regen.
2008-11-14 15:50:01 +00:00
ad
18e73e1ebe
Replace semid_t with intptr_t. No function change. This is a libc/kernel
...
private interface and so the name change should not affect any third
party code.
2008-11-14 15:49:20 +00:00
ad
c5122072aa
_KERNEL_OPT
2008-11-14 13:10:33 +00:00
ad
a682ddf568
Make it build again.
2008-11-13 12:09:52 +00:00
ad
b11cbdbb9d
compat_ossaudio module, so others can depend on it.
2008-11-13 10:05:52 +00:00
njoly
7712a0fc6c
Regen for nanosleep(2) fix.
2008-11-12 18:09:22 +00:00
njoly
cf19223289
Fix nanosleep(2) on 64-bit archs. Do not call native nanosleep
...
syscall, but rather a modified version the will take care of `struct
timespec' conversions.
2008-11-12 18:07:40 +00:00
njoly
1eff3fc2c0
Add missing sys/syscall.h include for SYS_ptrace definition.
2008-11-12 15:22:18 +00:00