njoly
2c98237db9
Fix linux32 siginfo si_signo value. Do not convert ksi_signo twice.
2008-10-09 23:03:45 +00:00
njoly
249f1f85c5
Regen.
2008-10-06 14:53:58 +00:00
njoly
33b4e768ba
Cleanup. Reduce diffs against netbsd32 syscalls.master.
...
- Remove const keyword for pointer types.
- Update some argument types.
2008-10-06 14:53:01 +00:00
njoly
1b1270d3b5
Compat linux/linux32 nice(2) fix. The syscall argument is an increment
...
to be added to the current nice value, not an absolute value to be
set.
2008-10-03 22:39:36 +00:00
njoly
b6ef5a15fb
Regen after cleanup.
2008-09-22 13:08:50 +00:00
njoly
2fedf4a0fb
Kill a few linux32 syscalls identical to netbsd32 ones.
...
No functional changes expected.
2008-09-22 13:07:46 +00:00
christos
95ffbb8bc9
Define a PSL_CLEARSIG macro for the psl flags to be cleared on signal delivery
...
and use it everywhere.
2008-09-18 15:57:04 +00:00
scw
5a856ae120
In linux32_shmat() don't try to copyout a 64-bit pointer where userspace
...
is expecting a 32-bit result.
Fixes nspluginwrapper on amd64.
2008-09-17 20:11:51 +00:00
christos
96bd7a0192
make this compile again.
2008-09-08 15:31:19 +00:00
christos
ae6357afe4
fix broken linux32_sys_times, copied from linux_sys_times.
2008-09-08 11:29:42 +00:00
tron
0f256b9d59
Compile NetBSD/amd64 kernels with "-Wextra". Patches contributed by
...
Juan RP in PR port-amd64/39266.
2008-09-05 13:37:24 +00:00
njoly
46da4ade28
Make linux32 getdents(2) do its own job instead of calling the
...
corresponding compat linux function, where struct dirent members types
differs.
2008-09-04 17:45:00 +00:00
bjs
91b72f6613
'if (error = 0)' -> 'if (error == 0)'
2008-08-08 16:21:44 +00:00
plunky
772d60cfb9
convert some [left behind] compat code to use new sockopt API
2008-08-07 20:15:32 +00:00
plunky
fd7356a917
Convert socket options code to use a sockopt structure
...
instead of laying everything into an mbuf.
approved by core
2008-08-06 15:01:23 +00:00
jmcneill
551b501a8f
linux_sys_rt_sigreturn: properly restore stack flags, pointed out by
...
Juan RP and modified by myself. ok christos@
2008-08-01 18:49:28 +00:00
njoly
a3adeaa5f9
Fix linux_sigismember/linux_sigaddset to work on amd64 (and other
...
64bits archs), by ensuring that bit shifts are done on correct type.
2008-07-30 16:05:26 +00:00
njoly
c1c4ce8861
Regen for rt_sigpending.
2008-07-24 12:11:14 +00:00
njoly
efde75ae99
Add rt_sigpending syscall.
2008-07-24 12:09:56 +00:00
njoly
066b9aabb5
Add linux32_getifconf, following recent linux_getifconf addition.
2008-07-23 12:32:09 +00:00
jmcneill
a9b5dcaa70
ioctl compatibility for v4l2 and drm
2008-07-19 23:01:52 +00:00
cegger
1ca90441b2
use device_xname
2008-07-17 13:39:50 +00:00
cegger
f2b690d08e
remove redundant declaration of tvtohz(). It's declared in <sys/timevar.h>.
...
Makes i386 ALL kernel build again.
2008-07-17 13:35:07 +00:00
christos
aa389c698d
Use more timespecs internally. From Alexander Shishkin and me.
...
Welcome to 4.99.70, 30 more to go for 100.
2008-07-15 16:18:08 +00:00
matthias
1797e3b14b
make LINUX_TCSBRK work. The code is mostly copied from
...
sys/compat/ibcs2/ibcs2_ioctl.c.
2008-07-04 11:06:31 +00:00
matthias
1b4ed9ea4e
make LINUX_TCSBRK work. The code is mostly copied from
...
sys/compat/ibcs2/ibcs2_ioctl.c.
2008-07-04 10:13:52 +00:00
njoly
153124ee21
Fix SIOCGIFCONF ioctl for 64bit platforms. Add a new linux_ifreq
...
structure and linux_getifconf function (cleaned up version from
compat_ifconf).
While here, update linux_getifhwaddr to use the new structure.
Ok by christos.
2008-07-03 14:07:09 +00:00
rmind
160268aca6
Remove proc_representative_lwp(), use a simple LIST_FIRST() instead.
...
OK by <ad>.
2008-07-02 19:49:58 +00:00
matt
7408df1239
Change {ff,fd}_exclose and ff_allocated to bool. Change exclose arg to
...
fd_dup to bool. Switch assignments from 1/0 to true/false.
This make alpha kernels compile. Bump kern to 4.99.69 since structure
changed.
2008-07-02 16:45:19 +00:00
njoly
06e75299f3
Move amd64 MD termois types definitions from linux_termios.h to linux_types.h
...
following other archs.
2008-06-29 08:50:09 +00:00
chris
d890fb22e6
Fix warnings about type conversions by using linux_speed_t type on
...
linux_speeds[] rather than speed_t.
On Arm (and others) linux uses unsigned long, however, NetBSD uses
unsigned int.
2008-06-28 21:34:32 +00:00
njoly
9084eed1a8
Add SIOCGIFHWADDR support.
...
Tested by Cem Kayali.
2008-06-27 12:38:25 +00:00
ad
a00bd89dab
Replace references to getsock/getvnode.
2008-06-24 11:18:14 +00:00
gmcgarry
035e707304
ioctl commands are defined unsigned long, so cast cmd to unsigned long before comparison.
2008-06-24 10:03:17 +00:00
njoly
0fe964b56f
Fix SIOCGIFCONF ioctl under compat linux32.
2008-06-24 09:00:04 +00:00
njoly
0237fe6def
Update compat netbsd32 SIOCGIFCONF ioctls definitions to follow native
...
ones.
2008-06-23 23:14:42 +00:00
njoly
8cb9e382ae
netbsd32_ifreq_tp_t should be of type netbsd32_pointer_t, not int32_t.
2008-06-22 22:40:15 +00:00
he
acba26b8f9
Commit regenerated files after adding include of <sys/sched.h>.
2008-06-21 19:59:09 +00:00
he
3824f75f83
<sys/sycallargs.h> needs <sys/sched.h> now.
2008-06-21 19:58:27 +00:00
tsutsui
cda67469e5
Regen from syscalls.master rev 1.69:
...
> Include <sys/sched.h> before <sys/syscallargs.h> for cpuset_t.
2008-06-21 13:22:04 +00:00
tsutsui
f1d9471407
Include <sys/sched.h> before <sys/syscallargs.h> for cpuset_t.
2008-06-21 13:20:46 +00:00
njoly
72a97d4bed
Do not return 0 for unsupported/unknown futex operations, but ENOSYS
...
instead. From Roman Divacky in private email.
2008-06-20 11:38:26 +00:00
njoly
d1a60f16f0
Fix futex locking. Move all locking to linux_sys_futex function, and
...
KASSERT that futex_{get,put,sleep,wake} are now called with lock held.
2008-06-20 11:31:40 +00:00
christos
d83ff0cd7b
an attempt at linux32_ioctl_socket().
2008-06-19 16:09:25 +00:00
hans
58cba3df2d
regen from syscalls.master r1.46
2008-06-19 12:29:34 +00:00
hans
c1b31bd183
include <sys/sched.h> for cpuset_t
2008-06-19 12:28:12 +00:00
hans
372b2ea344
regen from syscalls.master r1.35
2008-06-19 12:27:04 +00:00
hans
3a83008141
include <sys/sched.h> for cpuset_t
2008-06-19 12:24:22 +00:00
njoly
9cbea9441c
linux32_sys_ptrace() fixes.
...
- Add opt_ptrace.h include to activate syscall.
- Convert to use sys_ptrace() instead of netbsd32_ptrace().
- Do not use arch specific call for now.
2008-06-18 22:58:21 +00:00
tsutsui
4482e41e15
Include <sys/sched.h> before <sys/syscallargs.h> for cpuset_t.
2008-06-18 12:24:17 +00:00