Commit Graph

13888 Commits

Author SHA1 Message Date
joerg fb6d0a4e0d Explicitly link against libpthread and liblzma to make static linking
happy. Newer libarchive supports LZMA compression in zip files.
2019-07-28 12:44:36 +00:00
christos 1a0087198a PR/54410: fmoon: typos in mail(1) 2019-07-26 13:05:30 +00:00
sevan f6d2123b3a Add bicycle day 2019-07-23 18:28:59 +00:00
nonaka 889dcccd73 kdump(1): Symbolic printing for MALLOC_OPTIONS="U". 2019-07-23 01:54:51 +00:00
kre 8ad10c91e9 Amend the previous change: we can have (almost) the best of both
worlds, as when the first arg (which should be the format) contains
no % conversions, and there are more args, the results are unspecified
(according to POSIX).

We can use this so the previous usage
	printf -- format arg...
(which is stupid, and pointless, but used to work) continues to
simply ignore the -- (unspecified results mean we can do whatever
feels good...)

This brings back the #if 0'd block from the previous modification
(so there is no longer anything that needs cleaning up later) but runs
the getopt() loop it contained only when there are at least 2 args
(so any 1 arg printf always uses that arg as the format string,
whatever it contains, including just "--") and also only when the
first (format) arg contains no '%' characters (which guarantees no %
conversions without needing to actually parse the arg).  This is the
(or a) "unspecified results" case from POSIX, so we are free to do
anything we like - including assuming that we might have options
(we don't) and pretending to process them.
2019-07-22 17:34:31 +00:00
kre b6a771f35e Stop assuming that printf handles options in any way at all
(it doesn't - that is, shouldn't) which includes processing -- as an
"end of options".  The first arg is (always) the format string.

Remove call to getopt() (but still do associated changes to argc/argv)

Note: for now this is #if 0's out instead of being deleted, the old
code should be fully removed sometime soon.

Problem pointed out on tech-userlevel by Thierry Laronde.
2019-07-21 15:25:39 +00:00
sevan b60ae75e99 Add Fernando Jose Corbato
https://multicians.org/corby.html
https://www.nytimes.com/2019/07/12/science/fernando-corbato-dead.html
2019-07-14 10:43:01 +00:00
christos a713a1068c allow c9x struct casts (in new libXt) 2019-07-12 23:32:45 +00:00
msaitoh 03e9d50adf Fix typo (s/supress/suppress/). 2019-07-11 03:49:51 +00:00
he feecb28e70 Make the scaling of the "bytes written" sticky, so that if we go
to K, we don't return to unscaled, and similar for higher scales
(though it takes some effort, due to the wide field...)
Fixes PR#54334.
2019-06-30 19:57:23 +00:00
sevan a8ded70395 Add John von Neumann's date of death 2019-06-30 11:21:40 +00:00
joerg 85722e51b9 Do the fmtcheck for both message lookups to satisfy format string
literal checks.
2019-06-25 21:09:33 +00:00
martin 787f237e5b Limit maximum owner name to appease gcc 2019-06-25 14:52:55 +00:00
christos c9e3ec3ad5 Use OPT_NOMENU instead of -1 2019-06-23 22:48:15 +00:00
christos 7743b1bf0c use calloc properly. 2019-06-23 22:47:22 +00:00
christos 48d8b2ae49 don't cast malloc. 2019-06-23 22:46:53 +00:00
christos e2deb0a92c define as hex and make MC_VALID smaller so it fits in a short. 2019-06-23 22:46:41 +00:00
martin d8297eb873 Menu 0 does not exist anymore (it is now OPT_NOMENU), so emit an empty
menu defintion for it.
2019-06-23 11:31:10 +00:00
martin 5908298eb7 Use OPT_NOMENU as error return for new_menu (instead of old hard coded -1).
Update man page for the OPT_NOMENU change.
2019-06-23 11:22:48 +00:00
christos 4a69030bcd trim down error checking if we are small. 2019-06-22 23:40:53 +00:00
christos 9bedb72e28 make this compile again with -DNO_PROGRESS 2019-06-22 23:40:33 +00:00
christos 4cd30f5b0c Conserve space: make ints to shorts and make OPT_NOMENU 0 instead of -1
so we don't require initializing it.
2019-06-22 20:44:54 +00:00
martin ec547ea245 Re-add msg_clear() accidently dropped in previous. 2019-06-20 11:31:12 +00:00
christos 0e1db64433 Introduce _fmt_ flavors of the menu functions that take a formatting string
so we can use fmtcheck(3) to check the formats of the messages strings.
2019-06-20 00:45:18 +00:00
sevan a46fcec08e Happy 32nd birthday SDF.org!
https://twitter.com/sdf_pubnix/status/1140280083598327810
https://sdf.org/?faq?BASICS?02
2019-06-18 12:05:51 +00:00
kre 9c62ddd5c1 Deal with fallout from the addition of
KERN_PROC_CWD in sysctl(3)
That is kern.proc.$$.KERN_PROC_CWD (I think - not that it matters here)

The effect is that -lrump now requires -lrumpvfs

This set of changes fixes (I believe) regular dynamic builds,
more might be required for static builds (will be verified soon).
2019-06-01 06:59:17 +00:00
gutteridge b6bb9bdde9 tr.1: add a "see also" xref to ctype(3) (to align with an inline
reference), improve punctuation, etc.

XXX lines 177-191 have been commented out since they were imported in
r. 1.2 back in 1993, they should probably be re-examined, and revised
or removed.
2019-05-29 11:27:34 +00:00
wiz 4c02e23096 Sort options in usage. 2019-05-19 09:14:13 +00:00
christos 59e8d36e8f - add flag to produce OMAGIC
- factor out complicated inline code into simpler functions
- add options parsing
2019-05-18 21:16:12 +00:00
ozaki-r e28ae3abe7 Show the number of packets dropped by pfil 2019-05-13 07:48:42 +00:00
wiz f96f071847 Sort options (no-argument options before ones demanding arguments).
Bump date.
2019-05-09 09:37:11 +00:00
wiz adb7f5e61d Improve wording, bump date. 2019-05-09 09:34:58 +00:00
mrg e288c0bcc9 when dumping a kernhist history replace "%s" with "%p" so that the
kernhist in kernel can be a little more usable without making the
userland dumping code crash.
2019-05-09 08:01:07 +00:00
isaki 017c116c97 Remove -p option. AUDIO_SETCHAN is insecure and is obsoleted. 2019-05-08 14:44:42 +00:00
isaki 0b88ff9914 Update respond to isaki-audio2 branch.
- Extend list command to display supported hardware formats.
- Add set command to set hardware format.
- Use correct /dev/audioctl instead of /dev/audio.
2019-05-08 14:36:12 +00:00
christos 41bb817512 You don't have to be _LP64 to run 32 bit binaries. You can be mips (64 bit
kernel/32 bit userland).
2019-05-06 19:20:13 +00:00
kamil 453514a280 Add support for SIGRTMIN+1..SIGRTMAX-1 signals in ktruss(1)
Generate misc.c and misc.h with entries for signals between SIGRTMIN+1
and SIGRTMAX-1.
2019-05-06 11:58:37 +00:00
wiz c1260514c9 Sort SEE ALSO. 2019-05-06 06:56:07 +00:00
pgoyette b4153cd6d8 Also fix the error message when -T is used with something other than A or D 2019-05-05 23:08:37 +00:00
pgoyette dfa417c95a Fix the BUGS section. There is no ``-t A'' or ``-t D'' option ``-t''
requires an interval specification.  The correct bug info is for the
``-T A'' and ``-T D'' options.
2019-05-05 23:05:03 +00:00
isaki fd2a21e429 Use err(3)/errx(3) properly to avoid "write failed: Undefined error: 0". 2019-05-04 08:27:30 +00:00
simonb e348c98d9c Use PRWORD for printing -m/-mW totals so fields don't run in to each other.
While here, update field widths for 'vmstat -mW' for modern machines.
2019-04-30 23:29:18 +00:00
skrll 4402b4d24a Fix build on ppc64 2019-04-27 15:43:09 +00:00
skrll 6e604a1916 A couple of fixes so that NetBSD/cats builds (on linux), works, and
produces a symbol table that is readable (by 4.4BSD nm(1) at least)

- Change from OMAGIC to ZMAGIC
- Resize the a.out string table if we run out of space.
- output symbol table size as int32_t (the code already assumes no 64bit
  a.out.
2019-04-26 07:35:21 +00:00
christos 364bef3971 remove unused label 2019-04-23 17:35:10 +00:00
uwe f14670a1d6 Don't pass '-' to getopt(3). My guess is that *very* old getopt
didn't handle "--" terminator, so this code was working around it and
not quite correctly at that.

Fixes weird output from

  $ uniq --long-option
  uniq: uniq: No such file or directory

(for more fun, run that command from /usr/bin as root).

Pointed out by Andreas Krey.
2019-04-23 14:40:12 +00:00
christos af2b31c5c0 Undefine SSE stuff; we don't want portable code to depend on it and we
don't provide the necessary headers.
2019-04-13 15:08:49 +00:00
martin e8ac518b01 Backout previous - our pool is zeroed, no need to reinitializ here. 2019-04-12 15:59:34 +00:00
martin 44df961cb4 new_menu: add missing initializations - we might be using a previously
freed menu entry which has not been zeroed.
2019-04-12 15:47:41 +00:00
sjg bda55a25a3 ParseDoDependency: free paths rather than assert
PR: 52737
Reviewed by: christos
2019-04-09 18:28:10 +00:00