trhodes
58cca8458a
Merge posix4/* into normal kernel hierarchy.
...
Reviewed by: glanced at by jhb
Approved by: silence on -arch@ and -standards@
2006-11-11 16:26:58 +00:00
rwatson
10d0d9cf47
Sweep kernel replacing suser(9) calls with priv(9) calls, assigning
...
specific privilege names to a broad range of privileges. These may
require some future tweaking.
Sponsored by: nCircle Network Security, Inc.
Obtained from: TrustedBSD Project
Discussed on: arch@
Reviewed (at least in part) by: mlaier, jmg, pjd, bde, ceri,
Alex Lyashkov <umka at sevcity dot net>,
Skip Ford <skip dot ford at verizon dot net>,
Antoine Brodin <antoine dot brodin at laposte dot net>
2006-11-06 13:42:10 +00:00
tegge
83154f853d
Use mount interlock to protect all changes to mnt_flag and mnt_kern_flag.
...
This eliminates a race where MNT_UPDATE flag could be lost when nmount()
raced against sync(), sync_fsync() or quotactl().
2006-09-26 04:12:49 +00:00
jhb
d535a5cb81
Change msleep() and tsleep() to not alter the calling thread's priority
...
if the specified priority is zero. This avoids a race where the calling
thread could read a snapshot of it's current priority, then a different
thread could change the first thread's priority, then the original thread
would call sched_prio() inside msleep() undoing the change made by the
second thread. I used a priority of zero as no thread that calls msleep()
or tsleep() should be specifying a priority of zero anyway.
The various places that passed 'curthread->td_priority' or some variant
as the priority now pass 0.
2006-04-17 18:20:38 +00:00
davidxu
7c0be85c50
Let kernel POSIX timer code and mqueue code to use integer as a resource
...
handle, the timer_t and mqd_t types will be a pointer which userland
will define it.
2006-03-01 06:29:34 +00:00
davidxu
e7d0466850
Abstract function mqfs_create_node() to create a mqueue node.
2006-02-22 02:38:25 +00:00
davidxu
2673c91f24
Replace selwakeuppri with selwakeup, let scheduler figure out
...
appropriate thread priority.
2005-12-16 15:01:16 +00:00
davidxu
a7ea81a09f
Stop fiddling thread priority with msleep, eliminating unnecessary
...
context switching. This improves performance about 30% on UP machine.
2005-12-12 05:04:56 +00:00
davidxu
459600a8d3
Comment out mqfs_create_link. Inline some small functions.
2005-12-09 02:38:29 +00:00
davidxu
34bbe012ae
o Turn on MPSAFE flag for mqueuefs.
...
o Reuse si_mqd field in siginfo_t, this also gives userland
information about which descriptor is notified.
2005-12-06 06:22:12 +00:00
davidxu
1e351478d4
After reading some documents, I realized SIGEV_NONE != NULL, also
...
fix code in mqueue_send_notification to handle SIGEV_NONE.
2005-12-05 04:41:32 +00:00
davidxu
d4b584de18
Handle SIGEV_NONE, if notification is SIGEV_NONE, error status and
...
return status will be set, but no notification will be registered.
Increase hard limit of maxmsg to 100, so posixtestsuite ports can run.
2005-12-05 03:23:27 +00:00
davidxu
e184004d54
1. Cleanup including.
...
2. Set configuration value for CTL_P1003_1B_MESSAGE_PASSING.
2005-12-02 14:09:32 +00:00
davidxu
a8411b92b7
1. Check if message priority is less than MQ_PRIO_MAX.
...
2. Use getnanotime instead of getnanouptime.
3. Don't free message in _mqueue_send, mqueue_send will free it.
2005-12-02 08:23:49 +00:00
davidxu
5d50adf57d
Last step to make mq_notify conform to POSIX standard, If the process
...
has successfully attached a notification request to the message queue
via a queue descriptor, file closing should remove the attachment.
2005-11-30 05:12:03 +00:00
davidxu
0b4ce8e3e1
Fix a stupid compiler warining, remove a redundant line.
2005-11-27 22:59:47 +00:00
davidxu
d7421ba6b3
Change filesystem name from mqueue to mqueuefs for style consistent.
...
Suggested by: rwatson
2005-11-27 08:30:12 +00:00
davidxu
dac7c81b62
Bring in experimental kernel support for POSIX message queue.
2005-11-26 12:42:35 +00:00