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