Commit Graph

4253 Commits

Author SHA1 Message Date
ad 8d0205c623 Grab kernel_lock for cpu_reboot(). 2008-04-23 13:40:17 +00:00
ad e0b56ca8f5 Fix locking. 2008-04-23 13:34:44 +00:00
ad 6bf00a454d Catch up with linux. 2008-04-23 13:30:41 +00:00
ad ce69e3e9c8 Fix locking. 2008-04-23 13:13:25 +00:00
ad d0466d413e Tweak locking. 2008-04-23 13:11:42 +00:00
ad bb0c94d223 Tweak previous. 2008-04-23 13:09:40 +00:00
ad 14f88acc9b Fix locking. 2008-04-23 13:02:32 +00:00
ad 1e216688e1 - Use cdev_tty().
- Tweak locking.
2008-04-23 12:55:16 +00:00
ad a87ccd221c Sprinkle locking. 2008-04-23 12:50:53 +00:00
ad 624dcd9102 Sprinkle locking. 2008-04-22 21:33:13 +00:00
ad dce30353aa Add a comment. 2008-04-22 21:29:21 +00:00
ad be60f17289 Repair copyright. 2008-04-22 21:26:48 +00:00
ad 9e0517c26f Grab proclist_lock for p->p_pgrp. 2008-04-22 21:23:17 +00:00
njoly d8f896655c Add LINUX_IPC_64 support for LINUX_IPC_SET in shmctl. Required, at
least, for amd64 which use LINUX_IPC_FORCE64.
2008-04-21 22:57:06 +00:00
njoly f1bd64daf3 Rename LINUX_SHMCTL_FORCEIPC64 define to LINUX_IPC_FORCE64. 2008-04-21 22:38:18 +00:00
ad 08b44dd8b9 timer fixes for PR 37093:
- Fix serious concurrency problems, making the code MT and MP safe in
  the process.
- Don't allocate memory or inspect process state from hardclock().
2008-04-21 00:13:46 +00:00
njoly 3dadb2a2df Regen for sys_clock_{getres,gettime,settime} syscalls. 2008-04-17 17:48:40 +00:00
njoly c007e33a3a Add compat linux32 sys_clock_{getres,gettime,settime} syscalls. 2008-04-17 17:47:23 +00:00
njoly 69614dfece Remove an obsolete comment about SHM_LOCK/SHM_UNLOCK being no-op. 2008-04-16 14:47:31 +00:00
njoly 14183438ed Kill a few other unused linux syscall arguments/prototypes
definitions.
2008-04-16 10:03:31 +00:00
njoly a73122f64e Make linux32_sys_nice call sys_setpriority directly instead of
netbsd32_setpriority.
2008-04-15 21:13:34 +00:00
njoly 8529e0b201 Remove syscall prototypes forgotten in previous commit. 2008-04-15 21:10:06 +00:00
njoly 80b21f4457 Remove unused linux_sys_setresgid16_args/linux_sys_setresuid16_args
definitions.
2008-04-15 19:10:19 +00:00
njoly 3ce80f6407 Remove unneeded amd64 ifdef/endif. 2008-04-15 11:08:05 +00:00
njoly 26457ccc1d Under NPTL emulation, do not reparent all members of a thread group,
but only the processes that emulate threads (with LINUX_CLONE_THREAD
set).

This fix a problem for child processes that share address space with
the parent. At exit, the child will die silently, leaving the parent
waiting indefinitely for its end ...
2008-04-11 16:47:50 +00:00
njoly 112605d50a Cleanup unneeded LINUX_NPTL ifdef/endif. 2008-04-08 20:25:00 +00:00
yamt 3426b80b5e - l_wmesg is not always valid. check l_wchan when using l_wmesg.
should fix a crash reported by Juan RP on current-users@.
- ttyinfo: lock lwp when accessing l_wmesg.
- fill_lwp: add an assertion.
2008-04-05 14:03:16 +00:00
njoly 8c5bd726ed Regen for msync(2) support. 2008-04-04 12:59:15 +00:00
njoly dc80a00302 Add msync(2) syscall. 2008-04-04 12:57:55 +00:00
njoly 2b6f0cc5e4 Regen for linux_sys_msync removal. 2008-04-04 12:43:00 +00:00
njoly dcde97da0e Cleanup. Kill linux_sys_msync and use sys___msync13 instead.
No functional changes expected.
2008-04-04 12:38:52 +00:00
christos c2126f5e21 print size_t with %zu. 2008-03-30 20:58:08 +00:00
ad be04ac4896 Make rusage collection per-LWP and collate in the appropriate places.
cloned threads need a little bit more work but the locking needs to
be fixed first.
2008-03-27 19:06:51 +00:00
njoly 2467d28cba Be sure to not include linux_mmap.h before linux_syscallargs.h.
Otherwise wrong syscallarg macro may used for linux_sys_mmap_args
definition.
This makes mmap2 works again (at least to launch oo2 binary).
2008-03-27 14:14:06 +00:00
ad 02141d72c7 - Remove uneeded splsoftnet().
- Use fd_getsock().
2008-03-26 20:08:22 +00:00
cube d94699ecbb Split device_t and softc for wskbd(4), wsmouse(4) and that creepy wsmux(4). 2008-03-25 00:49:19 +00:00
ad f12243c34d linux_get_sa: fix botched fd handling. 2008-03-23 19:35:54 +00:00
ad c9a93c8c58 Make this build again. From isaki@. 2008-03-23 13:58:47 +00:00
bjs 3b2cc68264 fdputfile -> fd_putfile 2008-03-22 01:24:23 +00:00
ad a9ca7a3734 Catch up with descriptor handling changes. See kern_descrip.c revision
1.173 for details.
2008-03-21 21:54:58 +00:00
tnn f85d89c5de v_interlock is a kmutex_t now, simple_lock() -> mutex_enter(). 2008-03-07 00:03:39 +00:00
elad 2a9368a7e7 In linux_sys_sched_getparam(), get the native policy too, so that we have
a better chance at properly converting the priority.

Noted by & okay yamt@.
2008-02-29 14:29:06 +00:00
dogcow 15debf8a40 Add some of those pesky semicolons, and correct number of args. 2008-02-29 08:41:51 +00:00
elad 67470a76a1 Factor out the guts of get/setparam so it can be used from the compat code.
Make the FreeBSD and Linux compat code convert the parameters to their
native representation and call the native routines.

Remove KAUTH_PROCESS_SCHEDULER_GET/SET.

Update documentation and examples.

XXX: For now, only the Linux compat code does the priority conversion
XXX: right.

Linux priority conversion code from yamt@, thanks!

Okay yamt@.
2008-02-28 16:09:18 +00:00
martin 777a451a3d Remove old posix_fadvise compat code 2008-02-24 15:02:15 +00:00
martin c84d2ae11b Remove compat code for posix_fadvise 2008-02-24 12:54:15 +00:00
martin 93cbe0f210 Regen (old posix_fadvise ignored) 2008-02-24 12:53:47 +00:00
martin a8ed8bb731 Desupport compatibility for the old posix_fadvise syscall per yamt's
request and just ignore it.
2008-02-24 12:52:54 +00:00
njoly ac6668f329 Regen for mlock/munlock syscalls 2008-02-20 21:51:39 +00:00
njoly e578f6862b Add mlock/munlock syscalls 2008-02-20 21:49:56 +00:00