drochner
698fb4fb6c
make the public declaration of "hardclock_ticks" signed again; other
...
code (kernel timeout/callout) does comparisions with it
2006-06-08 17:23:11 +00:00
kardel
de4337ab21
merge FreeBSD timecounters from branch simonb-timecounters
...
- struct timeval time is gone
time.tv_sec -> time_second
- struct timeval mono_time is gone
mono_time.tv_sec -> time_uptime
- access to time via
{get,}{micro,nano,bin}time()
get* versions are fast but less precise
- support NTP nanokernel implementation (NTP API 4)
- further reading:
Timecounter Paper: http://phk.freebsd.dk/pubs/timecounter.pdf
NTP Nanokernel: http://www.eecis.udel.edu/~mills/ntp/html/kern.html
2006-06-07 22:33:33 +00:00
christos
65a5eb3712
Grr, change the code so that it compiles with gcc-3. It was ok with gcc-4.
2006-06-04 16:44:08 +00:00
christos
95e13e63bd
Introduce SA_NOKERNINFO, a flag for SIGINFO not to print kernel messages.
2006-06-03 18:18:26 +00:00
drochner
ad909cf73e
export ntp_gettime() and ntp_timestatus(), for use by compat code
2006-05-29 16:43:05 +00:00
drochner
4f2e2f7d77
regen
2006-05-29 09:58:51 +00:00
drochner
42a3bd3098
Extend "struct ntptimeval" for the needs of "timecounters".
...
Allocate a new syscall for ntp_gettime() and set up COMPAT_30 for
the old one.
2006-05-29 09:57:54 +00:00
yamt
07ddfaead3
systrace_seteuid, systrace_setegid:
...
fix bugs in kauth change. don't forget to update p_cred.
2006-05-28 07:08:41 +00:00
yamt
04c3beb7b1
make some internal variables static.
2006-05-28 06:52:17 +00:00
yamt
b7da9130d1
remove kauth_cred_destroy, which isn't used anymore. ok'ed by Elad Efrat.
2006-05-28 06:49:27 +00:00
simonb
e78022e1d6
Limit the size of any kernel buffers allocated by the VOP_READDIR
...
routines to MAXBSIZE.
2006-05-27 23:46:49 +00:00
yamt
4e9ca7aa01
callback_head_init: don't forget to initialize ch_running and ch_flags.
...
fix a problem reported by Jeff Rizzo on tech-kern@.
2006-05-27 07:42:42 +00:00
yamt
c24f70bcad
move wait points for kva from upper layers to vm_map. PR/33185 #1 .
...
XXX there is a concern about interaction with kva fragmentation.
see: http://mail-index.NetBSD.org/tech-kern/2006/05/11/0000.html
2006-05-25 14:27:28 +00:00
yamt
67c564ace6
sa_upcall_userret: yield cpu on stack starvation so that it's
...
killable at least. PR/28612 from ITOH Yasufumi.
2006-05-25 14:13:29 +00:00
blymn
3018e35533
Add kauth header for function prototypes
...
Whitespace clean up.
2006-05-25 11:23:11 +00:00
yamt
a53726f2a7
kauth_cred_uucmp: fix inversed return code. PR/33546 from Juan RP.
2006-05-24 23:00:49 +00:00
yamt
be46b8e46c
KNF. wrap a long line.
2006-05-23 00:43:30 +00:00
yamt
1075c99d89
introduce macros, UAREA_TO_USER and USER_TO_UAREA,
...
to convert uarea VA into a pointer to struct user and vice versa,
so that MD code can change the layout in uarea.
2006-05-22 13:43:54 +00:00
yamt
b43dc97b09
use consistent order of function specifiers and type specifiers.
...
(int inline -> inline int)
2006-05-22 12:42:01 +00:00
elad
b3e7e1b010
Better implementation of PaX MPROTECT, after looking some more into the
...
code and not trying to use temporary solutions.
Lots of comments and help from YAMAMOTO Takashi, also thanks to the PaX
author for being quick to recognize that something fishy's going on. :)
Hook up in mmap/vmcmd rather than (ugh!) uvm_map_protect().
Next time I suggest to commit a temporary solution just revoke my
commit bit.
2006-05-20 15:45:37 +00:00
yamt
0f0124d1a9
remove NOLOCKF and use normal NULL instead.
2006-05-20 12:20:55 +00:00
yamt
b22546608e
remove an debug printf slipped into the previous.
2006-05-20 12:19:30 +00:00
yamt
a6518311cc
fix F_SETLKW deadlock detection, which has been broken since lwpify.
...
although this doesn't work for processes with multiple lwps, it's better
than not working at all.
2006-05-20 12:06:20 +00:00
yamt
cecc761849
make lockfpool static.
2006-05-20 12:04:21 +00:00
yamt
408b7c1e5c
move lockf implementation details from sys/lockf.h to kern/vfs_lockf.c.
2006-05-20 12:02:47 +00:00
elad
56a6a2b09b
don't break lkms; pointed out by hannken@ and he@, thanks!
2006-05-18 17:35:49 +00:00
elad
b6894eda07
CTLFLAG_IMMEDIATE doesn't do what I thought it did. from yamt@, thanks!
2006-05-18 17:33:18 +00:00
yamt
b5420599d2
timers_alloc: use PR_WAITOK.
2006-05-18 10:09:12 +00:00
christos
ccd6888699
Don't set mature an fd that has been ffree'd
2006-05-16 21:00:02 +00:00
elad
04d63f90b5
Introduce PaX MPROTECT -- mprotect(2) restrictions used to strengthen
...
W^X mappings.
Disabled by default.
First proposed in:
http://mail-index.netbsd.org/tech-security/2005/12/18/0000.html
More information in:
http://pax.grsecurity.net/docs/mprotect.txt
Read relevant parts of options(4) and sysctl(3) before using!
Lots of thanks to the PaX author and Matt Thomas.
2006-05-16 00:08:24 +00:00
elad
215bd95ba4
integrate kauth.
2006-05-14 21:15:11 +00:00
elad
33b0a10da4
add kauth backend.
2006-05-14 21:12:38 +00:00
christos
103d2f520c
XXX: GCC uninitialized.
2006-05-14 05:30:31 +00:00
christos
99b7478875
Initialize an uninitialized variable gcc 4 found
2006-05-14 05:26:59 +00:00
christos
5eed059930
Add MSG_NOSIGNAL (from FreeBSD)
2006-05-11 15:49:44 +00:00
mrg
084c052803
quell GCC 4.1 uninitialised variable warnings.
...
XXX: we should audit the tree for which old ones are no longer needed
after getting the older compilers out of the tree..
2006-05-10 21:53:14 +00:00
yamt
7729c57a0f
don't allocate struct statvfs on stack as it's too large.
2006-05-10 11:02:29 +00:00
thorpej
2977973ac1
Initialize dv_properties in config_attach_pseudo(). PR kern/33438
2006-05-08 01:04:09 +00:00
thorpej
621d724145
Remove the obsolete (and now unused) propdb API.
2006-05-05 18:26:19 +00:00
thorpej
fb44a8574b
Remove the devprop API and switch everthing over to the new proplib. Add
...
a new device_properties() accessor for device_t that returns the device's
property dictionary.
2006-05-05 18:04:41 +00:00
christos
89a5572015
Regen
2006-05-04 17:50:28 +00:00
christos
9ec9aed92e
fhstat needs to be versioned too (for ino_t). Pointed out by Izumi Tsutsui
2006-05-04 17:48:56 +00:00
perseant
86f30eea43
Regen after making VOP_FCNTL take an unlocked vnode.
2006-05-04 16:49:54 +00:00
perseant
935530188d
Change VOP_FCNTL to take an unlocked vnode. Approved by wrstuden@.
2006-05-04 16:48:16 +00:00
rpaulo
69ade2726c
Use for in a forever loop as per KNF.
2006-05-02 13:26:07 +00:00
yamt
a0e5478237
lwp_suspend: don't forget to decrement p_nrlwps when suspending ourselves.
...
fix PR/33287 from Gregory McGarry.
2006-04-26 11:44:39 +00:00
yamt
261fb8266c
sprinkle some const and static.
2006-04-21 14:00:18 +00:00
yamt
80dfcaed5b
iostat_alloc: don't forget to initialize io_busy etc.
...
fix weird "time" in iostat.
2006-04-21 13:58:10 +00:00
yamt
b9eb99f927
iostat_find/disk_find: constify and simplify.
2006-04-21 13:53:30 +00:00
yamt
c1078a4a2a
sysctl_io_stats_setup: HW_IOSTATS is iostats, not drivestats.
2006-04-21 13:52:23 +00:00