Commit Graph

10151 Commits

Author SHA1 Message Date
Eitan Adler
14517324d0 - add a missing "be" and "in"
- fix other errors introduced when committing r226436
- add 'function' to a sentence where it makes sense

Submitted by:	delphij
Submitted by:	dougb
Submitted by:	jhb
Approved by:	dougb
Approved by:	jhb
2011-11-11 22:27:09 +00:00
Greg Lehey
415f031163 Tidy up command line processing:
- Add ? option to optstring.
  - Sort options alphabetically.
  - Vertical space.

Tidy up usage() function.

Bring man page in sync with source.

Ensure that debug code is only executed with the -d option.

Submitted by: Christiane Yeardley
2011-11-09 01:40:46 +00:00
Mikolaj Golub
729bfad6a4 Bumb date after r227317.
Reminded by:	pluknet
2011-11-08 19:14:15 +00:00
Ed Schouten
66c5875a45 Simplify getopt switch parsing.
Only one of these flags can be set. Just add them together and check the
value. Also, get rid of the listall variable. The code is already filled
with direct *flag-comparisons.

Obtained from:	Alexander Best (though modified)
2011-11-08 11:36:46 +00:00
Mikolaj Golub
82841ae6f8 When displaying process virtual memory mappings print superpage
mapping flag.

Submitted by:	Mel Flynn <mel.flynn+fbsd.hackers@mailing.thruhere.net>
Reviewed by:	alc, rwatson
2011-11-07 21:16:19 +00:00
Ed Schouten
0c66031ab1 Remove unneeded CFLAGS.
Such optimisations should not be performed in this Makefile. Also, uqs@
suggested they have no effect, because the checksum of the resulting
binary is unchanged.

Discussed with:	gabor, uqs
2011-11-07 09:42:22 +00:00
Ed Schouten
a35353de88 Partially revert r227233.
The privs.h header is not only used by at(1), it's also used by
atrun(8). Just let the code the way it used to be (for now).

Reported by:	kwm, tinderbox
Hat to:		me
2011-11-06 20:30:21 +00:00
Ed Schouten
641835f465 Mark global functions and/or variables in xstr(1) static where possible.
This allows compilers and static analyzers to more thorough analysis.
2011-11-06 18:50:39 +00:00
Ed Schouten
e5ec905575 Mark global functions and/or variables in whois(1) static where possible.
This allows compilers and static analyzers to more thorough analysis.
2011-11-06 18:50:33 +00:00
Ed Schouten
94cd938578 Mark global functions and/or variables in which(1) static where possible.
This allows compilers and static analyzers to more thorough analysis.
2011-11-06 18:50:26 +00:00
Ed Schouten
558b00f5a1 Mark global functions and/or variables in whereis(1) static where possible.
This allows compilers and static analyzers to more thorough analysis.
2011-11-06 18:50:19 +00:00
Ed Schouten
48ef17602b Mark global functions and/or variables in unifdef(1) static where possible.
This allows compilers and static analyzers to more thorough analysis.
2011-11-06 18:50:00 +00:00
Ed Schouten
e7b3338485 Mark global functions and/or variables in paste(1) static where possible.
This allows compilers and static analyzers to more thorough analysis.
2011-11-06 18:49:53 +00:00
Ed Schouten
df6dd6933d Mark global functions and/or variables in m4(1) static where possible.
This allows compilers and static analyzers to more thorough analysis.
2011-11-06 18:49:48 +00:00
Ed Schouten
86350df6fe Mark global functions and/or variables in lam(1) static where possible.
This allows compilers and static analyzers to more thorough analysis.
2011-11-06 18:49:41 +00:00
Ed Schouten
357050fc0e Mark global functions and/or variables in fstat(1) static where possible.
This allows compilers and static analyzers to more thorough analysis.
2011-11-06 18:49:36 +00:00
Ed Schouten
cb230716e3 Mark global functions and/or variables in expand(1) static where possible.
This allows compilers and static analyzers to more thorough analysis.
2011-11-06 18:49:30 +00:00
Ed Schouten
43ad4b4511 Mark global functions and/or variables in enigma(1) static where possible.
This allows compilers and static analyzers to more thorough analysis.
2011-11-06 18:49:23 +00:00
Ed Schouten
305700d983 Mark global functions and/or variables in compress(1) static where possible.
This allows compilers and static analyzers to more thorough analysis.
2011-11-06 18:49:16 +00:00
Ed Schouten
8d34a0b7bc Mark global functions and/or variables in comm(1) static where possible.
This allows compilers and static analyzers to more thorough analysis.
2011-11-06 18:49:10 +00:00
Ed Schouten
c24aea83fa Mark global functions and/or variables in checknr(1) static where possible.
This allows compilers and static analyzers to more thorough analysis.
2011-11-06 18:49:03 +00:00
Ed Schouten
f64efe8b60 Add missing static keywords to at(1).
While there, tidy up the privs.h part, where at.c has to #define to
declare some globals. Also group static and non-static global variables
in at.c.
2011-11-06 17:32:29 +00:00
Ed Schouten
ac75fa8849 Mark the structure fields as const.
This allows us to simply place these strings as constants in the table
itself, letting the compiler decide to simply merge duplicate strings.
2011-11-06 17:20:44 +00:00
Ed Schouten
6291cd02cb Correct the change made in r227166.
This function is only compiled in when building WITH_AUDIT.
2011-11-06 09:09:45 +00:00
Ed Schouten
15f9b56845 Add missing static keywords to xinstall(1) 2011-11-06 08:19:07 +00:00
Ed Schouten
8df975a218 Add missing static keywords to wc(1) 2011-11-06 08:19:00 +00:00
Ed Schouten
d7698e0766 Add missing static keywords to wall(1) 2011-11-06 08:18:55 +00:00
Ed Schouten
d11cba9c89 Add missing static keywords to w(1) 2011-11-06 08:18:47 +00:00
Ed Schouten
bb39d408b1 Add missing static keywords to vis(1) 2011-11-06 08:18:42 +00:00
Ed Schouten
4ae55b63c3 Add missing static keywords to uuencode(1) 2011-11-06 08:18:35 +00:00
Ed Schouten
69c5bce6ee Add missing static keywords to usbhidctl(1) 2011-11-06 08:18:30 +00:00
Ed Schouten
793cdace4d Add missing static keywords to usbhidaction(1) 2011-11-06 08:18:23 +00:00
Ed Schouten
90a29505f5 Add missing static keywords to units(1) 2011-11-06 08:18:17 +00:00
Ed Schouten
7f3cfdffbc Add missing static keywords to uniq(1) 2011-11-06 08:18:11 +00:00
Ed Schouten
73827c1062 Add missing static keywords to unexpand(1) 2011-11-06 08:18:05 +00:00
Ed Schouten
4b7373b886 Add missing static keywords to uname(1) 2011-11-06 08:17:59 +00:00
Ed Schouten
d9079e3b3e Add missing static keywords to ul(1) 2011-11-06 08:17:53 +00:00
Ed Schouten
4fbf47feda Add missing static keywords to tsort(1) 2011-11-06 08:17:47 +00:00
Ed Schouten
1dca6e4e8a Add missing static keywords to tr(1) 2011-11-06 08:17:42 +00:00
Ed Schouten
85528ab71d Add missing static keywords to tee(1) 2011-11-06 08:17:35 +00:00
Ed Schouten
257edbd36a Add missing static keywords to tcopy(1) 2011-11-06 08:17:29 +00:00
Ed Schouten
b8d48d6233 Add missing static keywords to talk(1) 2011-11-06 08:17:23 +00:00
Ed Schouten
c7c497f1c5 Add missing static keywords to tail(1) 2011-11-06 08:17:17 +00:00
Ed Schouten
973aa6bc58 Add missing static keywords to split(1) 2011-11-06 08:17:11 +00:00
Ed Schouten
cfbd8d469b Add missing static keywords to seq(1) 2011-11-06 08:17:05 +00:00
Ed Schouten
af397f37ab Add missing static keywords to rwho(1) 2011-11-06 08:16:59 +00:00
Ed Schouten
31dd0180e9 Add missing static keywords to rwall(1) 2011-11-06 08:16:53 +00:00
Ed Schouten
6ebcee2952 Add missing static keywords to rusers(1) 2011-11-06 08:16:47 +00:00
Ed Schouten
5988030025 Add missing static keywords to ruptime(1) 2011-11-06 08:16:41 +00:00
Ed Schouten
43420d1cad Add missing static keywords to rs(1) 2011-11-06 08:16:35 +00:00