Commit Graph

154676 Commits

Author SHA1 Message Date
peter ac86e5557a Update from the latest Zaurus source from NONAKA Kimihiro.
Includes drivers for I2C, I2S, PCMCIA controller, USB device controller,
OHCI USB controller (from OpenBSD) and some improvements to the LCD
controller driver.
2006-12-17 16:03:33 +00:00
tsutsui 5465074abd yamt-splraiseipl: sgimips works on R5k IP32. 2006-12-17 15:38:35 +00:00
nonaka 4ed55699c1 Bump up SYMTAB_SPACE. 2006-12-17 10:27:33 +00:00
bouyer 3697550e70 Don't depend on lubutil if we're building host tools. Fix tools build on
non-NetBSD hosts.
2006-12-16 12:59:16 +00:00
pavel 2ed51cbda7 Remove the note about hardware VLAN tagging being unsupported,
Izumi Tsutsui fixed and reenabled it. Bump date.
2006-12-16 09:56:44 +00:00
dsl c822b38662 Use open/read/close instead of stdio for makefiles.
Commons up the code for reading files and buffers, and allows a further
change where we don't copy the data out of the buffer when generating 'lines.
This will speed up makefile parsing (esp .if clauses).
2006-12-16 08:59:29 +00:00
dsl edc84458bf Fix a comment that has been wrong since rev 1.1, minor layout fix. 2006-12-16 08:51:12 +00:00
ober 9dd043ccd4 Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
2006-12-16 05:57:48 +00:00
ober c657d4868d Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
2006-12-16 05:42:42 +00:00
ober 953d3b5b66 Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
2006-12-16 05:17:58 +00:00
ober d429c3dc76 Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
2006-12-16 05:07:52 +00:00
macallan b6131134e7 make this compile without wsdisplay 2006-12-16 05:05:50 +00:00
ober dbc112ba13 Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
2006-12-16 03:35:51 +00:00
macallan af3a3c2797 (hopefully) fix a panic when ofb attaches without being console 2006-12-16 03:31:46 +00:00
ober 02f3407a26 Updated to include the new Zaurus port for ARM.
OK'd by gimpy
2006-12-16 02:59:33 +00:00
tsutsui b2261339c5 Fix and reenable HW VLAN tagging on re(4):
- clear re_vlanctl in DMA descriptors before starting TX and RX
  to avoid stale tags
- use bswap16() rather than be16toh() or htons() on VLAN tag access
  since we already use htole32()

Closes PR kern/32643 and also fixes HW VLAN tagging on big endian machines.
2006-12-16 02:52:17 +00:00
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