Commit Graph

152033 Commits

Author SHA1 Message Date
christos 5dd246492d Coverity CID 3014: Don't check for NULL after deref (from Arnaud Lacombe) 2006-10-03 18:20:57 +00:00
christos 1bb7c537ad Coverity CID 3013: Don't check for NULL after deref! (from Arnaud Lacombe) 2006-10-03 18:18:18 +00:00
christos 899418fb0f Coverity CID 2961: Add KDASSERT (from Arnaud Lacombe) 2006-10-03 18:16:31 +00:00
elad 5cb38e5a6c Back out previous (p_flag2).
In 30 minutes from now Jason Thorpe will come up with an implementation
of a proplib dictionary in struct proc, so adding an int doesn't really
make any sense.
2006-10-03 16:07:12 +00:00
reinoud 21d692155a Fix memory leaks on mounting and dismounting UDF volumes. 2006-10-03 15:54:03 +00:00
thorpej eb2acb850f - Add a reader-writer lock to array and dictionary objects that ensures that
the data structure is internally consistent in the face of multiple threads
  accessing it concurrently.  This is not designed to provide application-
  level semantic consistency; applications are responsible for that locking
  protocol should it be necessary.
- Rename _PROP_MUTEX_DECL() to _PROP_MUTEX_DECL_STATIC().
2006-10-03 15:45:04 +00:00
tsutsui c207dcd880 - change find_prom_map() to take paddr_t and return vaddr_t rather than
bus_space_handle_t since bus space handle without bus space tag looks weird
- replace old sun3 obio_find_mapping() with new common find_prom_map()
- add bus_space_vaddr(), from hp300
2006-10-03 13:02:32 +00:00
he adb2b00a4a Restore inadvertently deleted close-brace by previous change. 2006-10-03 12:50:12 +00:00
elad f346fbdce9 Until we figure out the Perfect Way of adding flags to processes, add
a p_flag2. No objections on tech-kern@.

Input from simonb@, thanks!
2006-10-03 11:23:32 +00:00
elad b4da713cf5 Back out socket credentials for now, until we figure a better way of
handling the reference counting from interrupt context.
2006-10-03 11:15:03 +00:00
yamt 973c582193 sa_switchcall: when giving up an upcall, backout operations correctly. 2006-10-03 09:38:29 +00:00
yamt 41cc94b9f0 remove unused IDLESPINS. 2006-10-03 09:37:07 +00:00
mlelstv 05f80f69b3 avoid signed/unsigned error when computing mask lengths for empty
masks with sa_len == 0 (happens for inet6 default route).
2006-10-03 08:30:12 +00:00
simonb bca6df8e18 Add standard TNF copyright boilerplate. 2006-10-03 08:20:03 +00:00
vanhu 2b72a4f236 remoteid/ph1id support 2006-10-03 08:04:31 +00:00
vanhu b45c893ef4 Added remoteid/ph1id syntax 2006-10-03 08:03:59 +00:00
vanhu 7d2c6acefd Parses remoteid/ph1id values 2006-10-03 08:03:33 +00:00
vanhu dd3c365568 Uses remoteid/ph1id values 2006-10-03 08:02:51 +00:00
vanhu 80d5a8a518 Added remoteid/ph1id values 2006-10-03 08:01:56 +00:00
wiz 103401b052 Avoid .No if easily possible. 2006-10-03 02:15:16 +00:00
wiz 8c25a2887d No dot in SEE ALSO. 2006-10-03 02:11:19 +00:00
wiz 4e9ee9f1aa Minor English improvements. 2006-10-03 02:09:36 +00:00
wiz de593fa02d New sentence, new line. 2006-10-03 02:08:16 +00:00
macallan 9be39536c1 don't run clock interrupt stuff as long as we're cold 2006-10-03 02:07:37 +00:00
wiz 5eebb711b9 Use present tense for device scope, like for the others. 2006-10-03 02:06:28 +00:00
wiz 96227bfb22 Bump date for previous. 2006-10-03 02:04:42 +00:00
wiz caf900a58e Sync usage with man page (correct program name, sort options). 2006-10-03 02:03:33 +00:00
wiz c0cd11cf40 Some minor fixes. 2006-10-03 02:02:02 +00:00
mrg fa535729f9 remove some sparc v8 only definitions. 2006-10-02 23:22:52 +00:00
bjh21 8ca76bdc37 Don't use the uPD71071's autoinitialize mode. This may slow things down
slightly, but autoinitialize mode is impossible to use reliably, since it
means that if disc interrupts are blocked for long enough (or sec_copyout
is too slow), the uPD71071 can run off the end of a block before the
base registers have been updated and end up processing the same block
twice.  With this change, the SEC in my A540 seems finally to be solid.
2006-10-02 22:10:55 +00:00
manu 9547d0f260 avoid reusing free'd pointer (Coverity 2613) 2006-10-02 21:51:33 +00:00
manu 1966cc3311 Check for NULL pointer (COverity 4175) 2006-10-02 21:47:32 +00:00
manu e1ade705e1 Remove dead code (Coverity 3451) 2006-10-02 21:41:59 +00:00
manu 520ec462f7 Fix array overrun (Coverity 4172) 2006-10-02 21:33:14 +00:00
manu e5d24ec446 Fix memory leak (Coverity 2002) 2006-10-02 21:27:08 +00:00
jmcneill f40fbf1bb9 Print error on powerhook_establish failure, not success. PR# 34698. 2006-10-02 21:23:44 +00:00
manu cdb1e64a8c Fix memory leak (Coverity 2001), refactor the code to use port get/set
functions
2006-10-02 21:19:43 +00:00
apb 9ff8e2d57f Add some markup missed in previous. 2006-10-02 20:54:27 +00:00
manu cd350eaf6d Avoid reusing free'd pointer (Coverity 4200) 2006-10-02 20:52:17 +00:00
xtraeme 57407188dd Use aprint_debug in debug messages not aprint_normal. 2006-10-02 20:01:11 +00:00
xtraeme 89463b9dfa p[34]_get_bus_clock: change aprint_normal to aprint_debug, we don't
want these messages by default.
2006-10-02 19:59:24 +00:00
bouyer ecea89c394 Bump MSGBUFSIZE to 24k; with MPBIOS, ioapic and acpi boot message can be
quite verbose.
2006-10-02 19:36:41 +00:00
bouyer a4bcbb000a Claim ipmi. 2006-10-02 19:30:31 +00:00
apb d9afa12b42 A field with a null custom heading retains a minimum width derived
from the default heading.  Add a test for this.  src/bin/ps/keywords.c
revision 1.47 failed this test, but revision 1.48 passes.
2006-10-02 19:18:30 +00:00
manu d564be9350 Don't use NULL pointer (Coverity 3443), reformat to 80 char/line 2006-10-02 18:54:46 +00:00
apb 7c5fcf623a Set the width in the correct data structure. (Fix error in previous.) 2006-10-02 18:43:13 +00:00
apb 524fe13df1 Add ps to SUBDIRS in regress/bin. 2006-10-02 17:59:45 +00:00
apb 6c7dcc02eb Add regression tests for bin/ps. At present, the only feature
tested is the selection of columns and headings, especially
via the -o option.
2006-10-02 17:59:00 +00:00
apb b9f435a549 Document changes to -o and -O options, and improve markup. 2006-10-02 17:57:01 +00:00
apb d9463bc15b * When all columns are given null customised headers, the blank header
line is not printed at all.  This is specified in P1003.1-2004
  (SUSv3), and is useful.

* Customised headers may contain embedded space, commas and equals
  signs.  To specify multiple customised headers, use multiple -o or -O
  options.  This is specified (for "-o", not for "-O") in P1003.1-2004
  (SUSv3), and is useful.

* When a column is given a null (blank) customised header, it keeps its
  default minimum width.  This is specified in P1003.1-2004 (SUSv3), and
  seems harmless.

* Fix a bug that made it impossible to print the same keyword multiple
  times, with different customised headers each time.  (Previously, the
  last customised header was used for all instances of the keyword.)

* Make the behaviour of "-O" more useful.  The first -O option adds
  the default keywords only if there have not yet been any formatting
  options, and multiple -O options now insert their keywords in adjacent
  positions.  Now {ps -j -O %cpu} is like {ps -j} with one extra column;
  Previously, it would have had all the columns implied by "-j", plus
  all the default columns, plus the extra column specified by "-O".

* Convert from home-grown linked lists to SIMPLEQ lists.

Discussed in tech-userlevel.
2006-10-02 17:54:35 +00:00