Commit Graph

13584 Commits

Author SHA1 Message Date
mrg 2c65d957b0 deref the right address to get the pool_allocator. 2017-12-04 03:05:57 +00:00
mrg cd83415f42 remove now wrong comment. minor KNF. 2017-12-03 21:10:01 +00:00
mrg 67dafd4718 fix the kvm version of counting pool pages for vmstat -s. 2017-12-03 21:09:01 +00:00
dholland d3bb758424 Mention the Sand Creek massacre. 2017-12-02 18:07:34 +00:00
mrg 277fd3d5f5 add two new members to uvmexp_sysctl{}: bootpages and poolpages.
bootpages is set to the pages allocated via uvm_pageboot_alloc().
poolpages is calculated from the list of pools nr_pages members.

this brings us closer to having a valid total of pages known by
the system, vs actual pages originally managed.

XXX: poolpages needs some handling for PR_RECURSIVE pools still.
2017-12-02 08:15:42 +00:00
christos 3ee01a2ea9 - make the level computation consistent
- keep going only if things changed.
2017-11-28 15:31:33 +00:00
christos dd0971df99 use a reference count to avoid deleting psrefs still in use. 2017-11-27 00:25:46 +00:00
jdolecek c8469e9019 need getle16() for ext.sub_tag too
PR bin/52762 by Yosuke Sugahara
2017-11-25 17:18:15 +00:00
christos a8dccd7b32 Make outfile always allocated, free it to set it to NULL, and don't move it
around.
2017-11-25 15:39:17 +00:00
christos e4a9783186 - Instead of checking the recursion level before we recurse, check in on
function entry.
- Always decrement the level and reset levelparent on exit.
2017-11-24 23:42:36 +00:00
christos 0daba4343e Tidy up error messages, line wraps, initialization. NFC. 2017-11-24 18:45:59 +00:00
snj 4678f4dd6f add -b to usage. 2017-11-22 02:52:42 +00:00
kre 23014bc41f Issue PWD commands to the server only when we actually
need the results, not speculatively, just in case we might.

Allows operation with some broken servers that get confused
by PWD commands in some situations, and saves server round
trips in the (modern) common case of
	ftp ftp://path/name
where we never need to know the results from PWD.
2017-11-20 21:11:36 +00:00
christos 536abc0958 Don't print instances we've already printed. 2017-11-19 01:46:29 +00:00
kre b83cb69bb5 Remove a stray left over debug printf that crashes the builds (ab==NULL). 2017-11-19 00:41:10 +00:00
sjg b958c10a1a Do not append to variable set on command line
POSIX requires that variables set on the command line
be immutable.
Var_Append needs to pass FIND_CMD and skip append
if found variable has VAR_FROM_CMD flag set.
2017-11-18 22:34:04 +00:00
christos 3011cfe714 Allow multiple attachments methods to the same child+parent combination:
foo* at bar? with baz
    foo* at bar? with barf

Do this by scanning the list of iba's and allocating a new cfparent for
each. Keep track of the shared parent+child combinations by using the
same id for them.
2017-11-18 18:44:20 +00:00
christos 3434d2c82b - Factor out the remove_pspec code into a function.
- Avoid NULL pointer when printing an error.
2017-11-18 18:41:44 +00:00
christos 021dbaa0a1 add more debugging, no functional change. 2017-11-18 18:39:16 +00:00
christos de334c4e67 avoid creating infinite loops. 2017-11-18 01:11:05 +00:00
mrg 079cbf3933 add missing 'b' to the optstring. alpha-sort the option handling. 2017-11-17 20:43:08 +00:00
christos f4a905f0b8 When deleting orphans detect parent<->child loops and break them.
"active" is not a boolean, use the right comparison.
2017-11-16 17:08:07 +00:00
christos 4fe1ef32f3 Only open regular files. 2017-11-09 20:27:50 +00:00
christos a802845e62 - fix "obsolete" skipping to handle obsolete entries that contain other
variables
- skip files particular to other xserver versions than ours.

XXX: How does this build in the build farm?
2017-11-05 22:52:12 +00:00
christos d4d3ff8a98 deal with the stdbool.h mess defining bool in <net/if.h> and <net/route.h>
and then xf86Opt.h wanting to define a struct field called bool.
2017-11-05 17:44:28 +00:00
jmcneill 53aff4d5c0 add missing break after -m case 2017-11-05 11:07:32 +00:00
pgoyette 64ae8753d8 Remove the ABI version-and-length check that was recently introduced;
sysctl(9) ABIs should be stable across versions.

XXX Pull-up to -8
2017-11-03 22:45:14 +00:00
ginsbach 094918e495 The sign is optional in an exponent
Treat numbers after [Ee] as a positive number rather than an invalid
numeric sequence.  (Taken from FreeBSD but done differently.)
2017-10-29 01:28:46 +00:00
ginsbach 81821b805f Fix typos (from FreeBSD) 2017-10-29 00:02:23 +00:00
sjg adfbaec4c0 Ignore empty MAKEOBJDIR
Otherwise we end up with .OBJDIR = ${.CURDIR}/
which is quivalent, but fails the typial
.if ${.OBJDIR} == ${.CURDIR}
2017-10-28 21:54:54 +00:00
pgoyette cb32a134a5 Update the kernhist(9) kernel history code to address issues identified
in PR kern/52639, as well as some general cleaning-up...

(As proposed on tech-kern@ with additional changes and enhancements.)

Details of changes:

* All history arguments are now stored as uintmax_t values[1], both in
  the kernel and in the structures used for exporting the history data
  to userland via sysctl(9).  This avoids problems on some architectures
  where passing a 64-bit (or larger) value to printf(3) can cause it to
  process the value as multiple arguments.  (This can be particularly
  problematic when printf()'s format string is not a literal, since in
  that case the compiler cannot know how large each argument should be.)

* Update the data structures used for exporting kernel history data to
  include a version number as well as the length of history arguments.

* All [2] existing users of kernhist(9) have had their format strings
  updated.  Each format specifier now includes an explicit length
  modifier 'j' to refer to numeric values of the size of uintmax_t.

* All [2] existing users of kernhist(9) have had their format strings
  updated to replace uses of "%p" with "%#jx", and the pointer
  arguments are now cast to (uintptr_t) before being subsequently cast
  to (uintmax_t).  This is needed to avoid compiler warnings about
  casting "pointer to integer of a different size."

* All [2] existing users of kernhist(9) have had instances of "%s" or
  "%c" format strings replaced with numeric formats; several instances
  of mis-match between format string and argument list have been fixed.

* vmstat(1) has been modified to handle the new size of arguments in the
  history data as exported by sysctl(9).

* vmstat(1) now provides a warning message if the history requested with
  the -u option does not exist (previously, this condition was silently
  ignored, with only a single blank line being printed).

* vmstat(1) now checks the version and argument length included in the
  data exported via sysctl(9) and exits if they do not match the values
  with which vmstat was built.

* The kernhist(9) man-page has been updated to note the additional
  requirements imposed on the format strings, along with several other
  minor changes and enhancements.

[1] It would have been possible to use an explicit length (for example,
    uint64_t) for the history arguments.  But that would require another
    "rototill" of all the users in the future when we add support for an
    architecture that supports a larger size.  Also, the printf(3) format
    specifiers for explicitly-sized values, such as "%"PRIu64, are much
    more verbose (and less aesthetically appealing, IMHO) than simply
    using "%ju".

[2] I've tried very hard to find "all [the] existing users of kernhist(9)"
    but it is possible that I've missed some of them.  I would be glad to
    update any stragglers that anyone identifies.
2017-10-28 00:37:11 +00:00
christos 5716b2d864 remove the braces I accidentally added. 2017-10-23 02:38:46 +00:00
wiz 6f80828675 Remove superfluous Tn. 2017-10-23 01:06:05 +00:00
christos ffb871e671 PR/52638: matthew green: missing argument check causes m4 to core in ifelse() 2017-10-22 23:01:34 +00:00
abhinav 3fca90b4d2 Add newsyslog.conf to the NAME section
Also fix couple of lint warnings from mandoc
2017-10-22 17:53:49 +00:00
abhinav 2f7d801ad1 Add pgrep and prenice to the NAME section 2017-10-22 17:45:46 +00:00
abhinav a6d0162a04 Add getcap to the NAME section as well 2017-10-22 17:40:53 +00:00
abhinav b3e27e93ee Add gunzip and zcat to the NAME section as well 2017-10-22 17:36:49 +00:00
pgoyette d21b747c46 Nit-picking: avoid split infinitive 2017-10-15 03:57:47 +00:00
christos d40754b094 Wse wide functions to avoid file corruption. Q+D because it does not
use wcwidth().
2017-10-13 00:11:56 +00:00
ryo 101f6c9891 fix compile error without USE_PAM (-Werror,-Wmissing-noreturn) 2017-10-12 05:00:23 +00:00
christos e68fbebd32 use librumpres 2017-10-10 19:30:41 +00:00
wiz ec85326579 New sentence, new line. Remove superfluous Pps. 2017-10-09 10:31:50 +00:00
sjg 55844d12fe Ensure consistent results on different platforms.
With cycle.1.99 being written to stdout and
make: Graph cycles through `cycle.2.*`
to stderr, the order in which they are captured
varies on some platforms.
By redirecting stderr through the same pipe
as stdout we get more consistent result.
2017-10-08 20:44:19 +00:00
christos ed570cec90 Handle static PIE 2017-10-08 15:06:17 +00:00
kamil 15e2febe9d pmap: Refresh debugging facilities
Print vm_aslr_delta_mmap from 'struct vmspace'.
Print the WANTVA bit of 'flags' from 'struct vm_map'.
Replace %x with %#x, this improves readability of hex vs dec numbers.

Sponsored by <The NetBSD Foundation>
2017-10-04 11:33:01 +00:00
joerg 2b691b877c unistd.h for close. 2017-10-02 21:53:55 +00:00
wiz 696f76c399 Sort options.
-qv are not specific to -r, so separate them.
Add -q and -v descriptions to the general option table.
2017-10-02 08:23:23 +00:00
kre 329c11fb8f Remove some unnecessary words. 2017-10-01 22:35:23 +00:00
maya 9b177b90f0 Add arguments to tail:
-q: suppress filename headers when multiple files are used
  -v: print filename headers even when only one file is used

head already supports the same arguments, which originated in GNU head.
GNU tail also has the same flags.


Add tac, a hard link to 'tail -rq'.
Prints a file in reverse line order.

Similar to GNU tac, but lacking any options.

Add accompanying documentation.
2017-10-01 20:49:24 +00:00