Commit Graph

154610 Commits

Author SHA1 Message Date
christos
6f4d1070fd pass lint; from Anon Ymous 2006-12-15 22:45:34 +00:00
christos
3a1928de28 add EL_GETFP, and EL_SETFP. 2006-12-15 22:13:33 +00:00
joerg
eb04733c4e Introduce new helper functions to abstract the route caching.
rtcache_init and rtcache_init_noclone lookup ro_dst and store
the result in ro_rt, taking care of the reference counting and
calling the domain specific route cache.
rtcache_free checks if a route was cashed and frees the reference.
rtcache_copy copies ro_dst of the given struct route, checking that
enough space is available and incrementing the reference count of the
cached rtentry if necessary.
rtcache_check validates that the cached route is still up. If it isn't,
it tries to look it up again. Afterwards ro_rt is either a valid again
or NULL.
rtcache_copy is used internally.

Adjust to callers of rtalloc/rtflush in the tree to check the sanity of
ro_dst first (if necessary). If it doesn't fit the expectations, free
the cache, otherwise check if the cached route is still valid. After
that combination, a single check for ro_rt == NULL is enough to decide
whether a new lookup needs to be done with a different ro_dst.
Make the route checking in gre stricter by repeating the loop check
after revalidation.
Remove some unused RADIX_MPATH code in in6_src.c. The logic is slightly
changed here to first validate the route and check RTF_GATEWAY
afterwards. This is sementically equivalent though.
etherip doesn't need sc_route_expire similiar to the gif changes from
dyoung@ earlier.

Based on the earlier patch from dyoung@, reviewed and discussed with
him.
2006-12-15 21:18:52 +00:00
christos
581e519fb5 From Anon Ymous:
1) When detaching, don't try to close things we shouldn't (after
   doing the header).  Specifically, mip->mi_head_end was not
   getting set correctly in mime_sendmessage().

2) Change paging to be closer to its old behavior: next, dt, and dp
   should only page if the crt variable is set; and don't automatically
   page most other commands - the user can always pipe them into more.
2006-12-15 20:26:03 +00:00
ad
9a12b97e85 Nx 5.0 -> Nx 4.0 2006-12-15 20:25:55 +00:00
christos
f6dadfcd98 fix an unused variable warning. From Anon Ymous 2006-12-15 20:22:33 +00:00
christos
32232db57f remove two (void)&foo; which are ot needed. From Anon Ymous 2006-12-15 20:22:06 +00:00
he
797b5d97ff Note also that the distrib/ install images need cleaning to excise
references to the now-removed stat-flags.h file.
2006-12-15 14:18:38 +00:00
yamt
fc88d88996 put ->K loaned pages on the page queue, so that page loaning doesn't
disturb pagedaemon/pdpolicy.
2006-12-15 13:51:30 +00:00
martin
955342ff31 Remove an accidentally duplicated word (this had the side effect of making
the regress/lib/libc/db regression test fail)
2006-12-15 12:37:55 +00:00
he
23b8d9d582 Correct minor problems I introduced in previous revision: two missing
entries and one wrong file suffix.  Thanks to Jukka Salmi for the patch.
2006-12-15 00:28:53 +00:00
he
23b153ca8d The rescue/ directory also needs cleaninng. 2006-12-14 23:49:03 +00:00
christos
d9cd708017 PR/35257: Andreas Gustafsson: tar(1) opens excluded files
Apply the file modification function in the input files so that we can
de-select matched patterns.
2006-12-14 23:18:11 +00:00
christos
f05c39985f explicitly set clk to 1 or 0. 2006-12-14 22:35:20 +00:00
kleink
94dd6117cd Un-break clock selection after -Wsign-compare cleanup in rev. 1.43;
from Stephen Ma in PR kern/35220.
2006-12-14 22:27:12 +00:00
he
494446754f Adapt chflags to the move of string_to_flags() and flags_to_string()
to libutil.
2006-12-14 20:57:00 +00:00
he
cb49bdddc9 Adapt find to the move of string_to_flags() and flags_to_string() to
libutil.
2006-12-14 20:55:56 +00:00
ad
11b0ba9c5d pthread__debuglog_printf(): check for linebuf == NULL. 2006-12-14 20:40:57 +00:00
ad
24ae41f8f3 Set _IOLBF on stdout. 2006-12-14 20:39:04 +00:00
he
f6b748e0c7 Fix mtree to release the returned strings from flags_to_string()
following the move of it from bin/ls to libutil and the change of
it to return malloc()ed memory.
2006-12-14 20:21:47 +00:00
he
35eae86b49 Add a note documenting which directories needs to be cleaned out
before doing an UPDATE build after the move of string_to_flags()
and flags_to_string() to libutil.
2006-12-14 20:15:32 +00:00
he
0a97c3f688 Complete the move of string_to_flags() and flags_to_string() from the
bin/ls sources to libutil:
 o Bump libutil minor version number
 o Fix uses to include <util.h> to pick up the function definitions
 o Fix most uses of flags_to_string() to release the now-malloc()ed result
2006-12-14 20:09:35 +00:00
christos
33d6b113f2 moved string_to_flags and flags_to_string from ls to libutil. 2006-12-14 19:18:01 +00:00
elad
a4e596d708 oops, forgot KAUTH_PROCESS_STOPFLAG.
noted by Jukka Salmi, thanks.
2006-12-14 18:27:59 +00:00
alc
1a0e3f4a48 CID4360: don't leak `buf' upon return
ok pooka@
2006-12-14 18:15:59 +00:00
chuck
92a710ed6c take into account the 150 frame start offset time when computing the
duration of a track.  call lba2msf like this:
	lba2msf(len - 150, &m, &s, &f);
                    ^^^^^
from rev 1.41 of FreeBSD usr.sbin/cdcontrol/cdcontrol.c, Dmitry Afanasiev.

XXX: note that this is a mis-use of lba2msf() because 'len' is the length
     of the track in frames, not a logical block address (lba).
2006-12-14 18:15:16 +00:00
he
29ff6ed16a The "#ifdef UNUSED_BLOCK" in stat_flags.c wasn't so unused after
all -- it was used by the mtree source.  So, instead do an "#ifdef
MTREE", and define that one when building mtree.
2006-12-14 17:54:19 +00:00
christos
ffe3445041 pass lint; from Anon Ymous 2006-12-14 17:09:43 +00:00
christos
239d1ed129 kill the (void)&foo; from Anon Ymous 2006-12-14 14:18:03 +00:00
christos
78509e7f31 Pass lint. From Anon Ymous 2006-12-14 14:15:26 +00:00
elad
238ad51d2d - moves 'nice' access semantics to secmodel code,
- makes sysctl_proc_find() just lookup the process,
- use KAUTH_PROCESS_CANSEE requests to determine if the caller is
  allowed to view the target process' corename, stop flags, and
  rlimits,
- use explicit kauth(9) calls with KAUTH_PROCESS_CORENAME,
  KAUTH_REQ_PROCESS_RESOURCE_NICE, KAUTH_REQ_PROCESS_RESOURCE_RLIMIT,
  and KAUTH_PROCESS_STOPFLAG when modifying the aforementioned.
- sync man-page and example skeleton secmodel with reality.

okay yamt@

this is a pullup candidate.
2006-12-14 11:45:08 +00:00
elad
aa4d8a2d6c PR/35252: YAMAMOTO Takashi: veriexec doesn't handle unmount
Call veriexec_table_delete() in the cases where we won't be failing the
unmount request.
2006-12-14 11:15:27 +00:00
yamt
4cfe5a1b41 - just associate fileassoc "table" to struct mount.
because the latter is always available during the lifetime of the former,
  there is little point to use another global list to keep track of them.
  it also allows to remove an #ifdef FILEASSOC.

- avoid some operations (memory allocation and VOP) in fileassoc_file_lookup,
  when fileassoc table is not used.

ok'ed by elad.
2006-12-14 09:24:54 +00:00
elad
52944a66d2 entry-type is uint8 2006-12-14 05:15:33 +00:00
reed
09fde137ce Mention pfil(9). Reword slightly for "ipf" option as filters IPv6
also (and ICMP is implied) and that other types are blocked.

Point to pf(4) and pfil man pages.

Based on discussion in January 2006 on tech-kern.  (This has been
in my tree for around 11 months.)

This part of my work to change this (and related to use) pfil (instead
of ipf). That is done back then but needs some testing.
2006-12-14 02:50:12 +00:00
reed
ce2634c53e This only has one option so get rid of plural "s". 2006-12-14 02:34:32 +00:00
reed
623f8d5ade Add a useful example. 2006-12-14 02:33:18 +00:00
reed
9fdd8e989b Add example of using -w. 2006-12-14 02:29:59 +00:00
reed
daf4c6e3eb Remove comment about "hand-crafted".
Mention this file may be overwritten on upgrades, where to put
custom specs instead, and point to manual page.
2006-12-14 02:28:30 +00:00
reed
0dfdbcd57a Add comment about not modifying this file, where to put custom specs,
and point to man page.
2006-12-14 02:24:21 +00:00
reed
93b5694767 Remove () from end of the BIND 9 ARM as it is not a man page.
(I am not committing the fix to dist/bind/bin/named/named.conf.docbook
as we don't use that docbook file.)
2006-12-14 02:17:14 +00:00
reed
c499c1eb97 Fix some typos. I had this in my tree for a long time.
Hopefully, okay to change these old history ...
2006-12-14 02:11:52 +00:00
dbj
62b8ec502a mark lfs_cleanerd.debug as obsolete 2006-12-13 23:22:29 +00:00
christos
748af04e26 gcc4 does not care about &foo; use volatile instead. From Anon Ymous 2006-12-13 18:04:08 +00:00
christos
3e978579d3 add missing initializer. 2006-12-13 16:51:27 +00:00
tnozaki
c61eef3da4 make del(\x7f) pass through. 2006-12-13 16:16:56 +00:00
christos
df99a4dd43 Sprinkle volatile, instead of using the (void)&foo; which does not work on
gcc 4.
2006-12-13 16:08:26 +00:00
tnozaki
902f215bd9 add iconv encoding alias: cp813, cp91[2-6], cp920, cp923, cp1089. 2006-12-13 15:46:34 +00:00
tnozaki
e012779dec correct reference url. 2006-12-13 15:40:42 +00:00
yamt
24d0248e5f lookup: add more missing vput(). 2006-12-13 13:36:19 +00:00