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
tsutsui
5ff92ba4da
Regen from syscalls.master rev 1.62:
...
> Include <sys/sched.h> before <sys/syscallargs.h> for cpuset_t.
2008-06-18 12:23:06 +00:00
tsutsui
181592d5b7
Include <sys/sched.h> before <sys/syscallargs.h> for cpuset_t.
2008-06-18 12:21:20 +00:00
dogcow
8b20d17adf
Regen.
2008-06-18 02:09:19 +00:00
dogcow
f76aab4a72
include sys/sched.h for cpuset-related build lossage
2008-06-18 02:08:36 +00:00
tsutsui
d7d2a525b1
Include <sys/sched.h> before <sys/syscallargs.h> for cpuset_t.
2008-06-17 16:17:21 +00:00
he
f776c48636
<sys/syscallargs.h> now needs <sys/sched.h> included for the cpuset_t type
...
declaragion, so comply with that so that this builds again.
2008-06-17 16:13:08 +00:00
christos
7a9a590e57
regen
2008-06-16 20:00:53 +00:00
christos
5f09cf30c9
an attempt at ptrace32
2008-06-16 19:57:43 +00:00
ad
f9e99b470b
PPWAIT is now in proc::p_lflag.
2008-06-16 12:25:54 +00:00
njoly
d0c76a36cb
In linux_sys_sendto, do not unconditionnally set MSG_NAMEMBUF to
...
msg_flags; add it only if a target adress was provided and needs to be
converted.
2008-06-11 13:02:00 +00:00
njoly
f7cecd2466
Do set mbuf in all cases, even for salen value of 0; otherwise this
...
will make a panic later when trying to free memory from a random
adress.
XXX Need to revisit it later to avoid mbuf allocation in this case.
2008-06-09 21:17:58 +00:00
njoly
80639b2f02
Add missing cv_destroy in futex_sleep.
2008-06-05 10:58:16 +00:00
njoly
e8822e5c92
When converting msqid_ds structure from/to netbsd32 for msgctl(2)
...
IPC_STAT/IPC_SET, do not try to fill private struct members
_msg_first/_msg_last which do not exists.
2008-06-02 14:12:08 +00:00
mrg
c2b95373bf
remove clause #3 from my license where there are no other
...
copyright holders involved.
2008-05-29 14:51:25 +00:00
njoly
7cdbbcf80d
Add LINUX_TMPFS_SUPER_MAGIC, and map it to our tmpfs.
...
This makes sem_open/sem_unlink (POSIX named semaphores) work under
NPTL emulation.
2008-05-28 12:01:10 +00:00
njoly
c188bc4dd4
Fix netbsd32_ipc_perm and netbsd32_shmid_ds structures to use correct
...
types.
2008-05-24 16:02:44 +00:00
njoly
e82000b55e
Add IPC_64 support to msgctl, needed for amd64.
2008-05-21 11:15:57 +00:00
njoly
da21dc40ec
Regen for ipc(2) syscall support.
2008-05-20 17:33:13 +00:00
njoly
84db622836
Add compat linux32 ipc(2) syscall support, for shared memory and
...
semaphores.
2008-05-20 17:31:56 +00:00
njoly
763d4d3608
Fix linux_sys_getres{uid,gid}16 arguments type in comment.
2008-05-20 15:48:24 +00:00
njoly
4c3e8d3656
Fix free() argument in linux_read_ldt.
2008-05-19 09:36:55 +00:00
martin
79eec0c146
Follow FreeBSD's rev 1.18 (by imp):
...
Replace (name) with Henric Vestergaard Draboel since it was clear that
this was just cut N paste and '(name)' doesn't make any sense.
2008-05-12 17:46:08 +00:00
jmcneill
9e5e643a12
Pull in machine/cpufunc.h for wrmsr definition.
2008-05-11 17:13:43 +00:00
wrstuden
97003b024b
Oops. These are supposed to come alive on the branch, not the head.
2008-05-11 00:18:09 +00:00