Commit Graph

12076 Commits

Author SHA1 Message Date
christos
3d8af4cc0a Fix wrong loop index leading to infinite loop
ifdef(`FOO',
# FOO
)
XXX: Pullup to 6.
2012-04-25 18:23:58 +00:00
sjg
f3251c8ae2 Fix handling of -dF+/tmp/file 2012-04-24 20:35:04 +00:00
sjg
26aa697a51 Var* are generally very liberal with memory, with the expectation
that none of it persists for long.
This isn't always true - for example a long running .for loop.

Buf_DestroyCompact() is used by Var_Subst(), rather than Buf_Destroy().
If it looks like we can save BUF_COMPACT_LIMIT (128) or more bytes,
call realloc.  This can reduce memory consumption by about 20%
Setting BUF_COMPACT_LIMIT to 0 dissables this.
2012-04-24 20:26:58 +00:00
sjg
845789be8d Restore previous behavior - supressing duplicate entries in
.MAKE.MAKEFILES - it is more efficient.
2012-04-24 20:12:16 +00:00
christos
0827265996 no more KRB5_DEPRECATED 2012-04-24 16:52:26 +00:00
christos
39d6d02b14 last commit before I nuke the old code. 2012-04-24 16:51:19 +00:00
christos
769f2e22f8 move more of the compat code in the compat block. 2012-04-24 16:12:44 +00:00
christos
d3fb120e97 don't abuse the instance variable 2012-04-23 21:09:27 +00:00
christos
08935f4cd9 make kerberos work again:
1. make notickets external
2. don't use the tty as part of the credential cache, since pts/1 will not work.
3. Attempt to use the newer functions, but punt for now since it does not work yet.
2012-04-23 20:57:04 +00:00
christos
0c647c7841 remove obsolete comment. 2012-04-23 20:54:40 +00:00
christos
925babedcc fix the USE_KERBEROS=no USE_PAM=no build. 2012-04-23 18:27:15 +00:00
christos
dbd9f683e7 centralize error function processing. 2012-04-23 15:07:02 +00:00
martin
6192dc18bf trimusername (which does not exist) probably was meant to be called
trimloginname (which does exist, at least)
2012-04-23 09:27:36 +00:00
christos
0dfe19f4d3 - fix non pam build
- merge duplicated error code
- fix opt struct leak
2012-04-22 23:43:51 +00:00
christos
e694c7c9d0 make krb5 compile again. XXX: one function left that is deprecated, what's
the new equivalent?
2012-04-22 23:26:19 +00:00
wiz
6ffe8aa8a8 Remove duplicate Pp. Remove trailing whitespace. Sort sections. 2012-04-22 10:23:39 +00:00
wiz
cc7b4e18c8 Sort sections. Remove superfluous Ns macro. 2012-04-22 10:22:08 +00:00
roy
258cf0abec Add capfile(5) to describe the termcap format.
Adjust various man pages and other documentation to point to capfile(5)
instead of termcap(5).
Remove getcap(3) as curses hasn't been building it for a long time.
Punt wrterm.c as tset no longer uses it.
2012-04-21 12:27:24 +00:00
christos
e0f6e43eb5 add __PRETTY_FUNCTION__ 2012-04-20 18:35:28 +00:00
sjg
7a49f6a73f Fix some typos in/around ParseGmakeExport.
Remove the suppresssion of duplicate entries in .MAKE.MAKEFILES
2012-04-20 05:33:41 +00:00
christos
a675bef13d make this compile again. 2012-04-12 15:35:07 +00:00
wiz
1ac719d147 Remove unnecessary Bk/Ek pairs from SYNOPSIS.
No effective change except where I used the opportunity to sort options
and/or option descriptions.
2012-04-08 22:00:37 +00:00
christos
687e469719 Remove recheck hackery that caused extra stats, and explicitly ask for
recheck when needed. Before it used to be the case that we could only
use the cached entry once. Once the cached entry was used, we removed
it from the cache. Now it is kept forever.
2012-04-07 18:29:08 +00:00
wiz
9c98053fcd Sync usage with man page, from Bug Hunting. 2012-04-06 11:34:58 +00:00
matthias
3b1e581385 Stop playing games with stdin and stdout file descriptors.
calendar did not work with nss_ldap installed. Typical symptoms were
      cc1: error: stdout: Bad file descriptor
in daily.out.
2012-04-03 12:03:04 +00:00
christos
f8c8cd087a document gmake export command 2012-03-31 14:46:16 +00:00
christos
3ba1aa3bc8 Add a gmake inspired export command 2012-03-31 00:12:24 +00:00
wiz
18c15574cc Punctuation.
From patch by Bug Hunting.
2012-03-29 18:33:19 +00:00
macallan
1b769feadc XXX
Don't assume LP64 unless lint itself is built as LP64
On mips64 we default to n32 which produces errors when things like
TARG_LONG_MAX don't fit into a long
A proper fix would be to teach lint about different target ABIs so it can
pick the right parameters, this is just a bandaid to make it slightly less
wrong and allow a mips64 build to complete.
2012-03-29 08:52:31 +00:00
christos
52ec92ba25 more cross lint friendlyness
XXX: needs more constants converted double/float
2012-03-27 19:24:01 +00:00
dholland
75549012e9 fix non-PAM build 2012-03-25 05:55:07 +00:00
christos
0b08384416 byte swap the inet6 ports. 2012-03-24 21:51:23 +00:00
sjg
006e190034 Avoid the need to escape the # in :[#] when parsing conditionals. 2012-03-24 20:28:41 +00:00
drochner
364a06bb29 remove KAME IPSEC, replaced by FAST_IPSEC 2012-03-22 20:34:37 +00:00
wiz
3957bea1ef Fix whitespace nits. Suggested by Bug Hunting. 2012-03-22 07:58:16 +00:00
christos
ca07e01a36 -0 is not unary overflow. 2012-03-21 14:17:22 +00:00
matt
d8695ce615 Default to WARNS=5 2012-03-21 05:47:53 +00:00
matt
c57734f330 Use WARNS=4 2012-03-21 05:44:39 +00:00
matt
d34c2845b8 Use C89 function definitions 2012-03-20 20:34:57 +00:00
dholland
83889b37fd Avoid testing a possibly uninitialized errno value when using -exit.
Closes PR 44973 (change is a somewhat more principled equivalent of
the patch suggested there) although I cannot replicate the reported
behavior unless I explicitly prepare errno with a nonzero value before
the fts_read loop.
2012-03-18 17:09:46 +00:00
wiz
4a4f03fea7 Quote word that has the same letter as a macro.
Fixes PR 46215 by Nicolas Joly.
2012-03-17 22:10:51 +00:00
njoly
d0e00679ff Use Lk macro when dealing with URLs. While here update or remove some
dead URL links. Another part of PR/29238.
2012-03-15 22:35:02 +00:00
dholland
d4bd1c2d11 Tidy up: we no longer need FIRSTVALID for its original purpose, so change
the name of the symbol to something that applies to the remaining use.
2012-03-15 03:04:05 +00:00
dholland
6eb9e0a428 When the wtmp file is empty, for the "wtmp[x] begins..." output, use
the last mod time of the wtmp file (in practice, the time it was last
rotated, which is when it begins) instead of the current time, which
wasn't ever particularly useful. PR 39444.
2012-03-15 03:01:03 +00:00
dholland
ce683a0035 Keep track of the timestamp of the last (thus oldest) record seen and use
it to print "wtmp[x] begins" at the end, instead of knowing where to look
in the final utmp buffer to get a final timestamp out. This is both tidier
and fixes a problem with wtmpx files, which is that if the header record
is missing (which it seems to be on my machines) it would fetch the wrong
time out, and if you happened to have a one-record wtmp file it would use
the current time instead. This change restores the traditional behavior
of printing the time of the oldest record in the file, and if no records
are present to use the current time.

It might be a bug that wtmpx files don't seem to have the header
record they supposedly ought to.
2012-03-15 02:55:02 +00:00
joerg
66dd2755f5 Add __printflike attribution to use vprintf and friends with an argument
as format string.
2012-03-15 02:02:20 +00:00
dyoung
f0a4fe1c3c Use 'sort -n -k 3' instead of 'sort -n +2' since the former is more
portable.  The latter is not supported by Mac OS X Lion.
2012-03-12 22:02:07 +00:00
christos
daf2e27602 PR/41880: Ralph G. Previous fix for PR/5797 broke since space separator. 2012-03-12 18:06:24 +00:00
dholland
471d829aae Remove the NV_OBSOLETE flag, which is no longer needed. While here,
update an outdated comment about condition expressions.
2012-03-12 03:04:56 +00:00
dholland
cb79ede2d1 Give option definitions their own data structure instead of using nvlists.
(and using messy hacks to make up for nvlists not holding quite the right
things)
2012-03-12 02:58:55 +00:00
dholland
a883398ef5 Introduce type-safe wrappers around the hash tables. Use them for a
selected set of tables affected by the next nvlist cleanup in the
works.
2012-03-12 00:20:30 +00:00
dholland
f5d4142b2d Move locator lists to their own data structure. This can use more tidying;
it is not clear to me at the moment what the "string" and "num" values
pushed around in locator lists are supposed to actually mean.
2012-03-11 21:16:07 +00:00
dholland
25c56bd707 Add some organizational comments 2012-03-11 20:02:55 +00:00
dholland
237116305d More naming improvements. 2012-03-11 19:27:26 +00:00
shattered
575f4d696a PR/22405 -- extend du(1) to report inode usage. Patch provided by
Jonathan Perkin.

OK by wiz@
2012-03-11 11:23:20 +00:00
dholland
a551c5e8b7 Create a struct condexpr type to hold condition expressions, instead
of abusing struct nvlist to make trees.

(These are the a|b and a&b constructs.)
2012-03-11 08:21:53 +00:00
dholland
4fbb702df0 Rename a few more things; try to use the same terminology as config(5). 2012-03-11 07:46:47 +00:00
dholland
bbe96a5ad8 Create a new type struct attrlist to manage lists of attributes,
instead of using struct nvlist.

(struct nvlist holds lists (or trees!) of semi-arbitrary stuff with no
structure and almost no type safety; it should go away.)
2012-03-11 07:32:41 +00:00
dholland
720c7fbc2a Strengthen the logic that wraps allocations going on the parser stack.
(This allows cleaning up when a syntax error occurs, because yacc just
dumps the parser stack on the floor.)

The new logic can handle arbitrary data types instead of being limited
to struct nvlist.
2012-03-11 07:27:02 +00:00
dholland
285c15fc92 Remove cf_swap, which hasn't been used in a long time. 2012-03-11 05:31:37 +00:00
dholland
cfffb8a2c1 Write out the expression grammar for dependency constraints instead of
using precedence rules. Precedence rules (besides being a hack) often
lead to unexpected/unwanted behavior in corner cases.
2012-03-11 02:56:25 +00:00
dholland
6df4c5ae47 Sort productions in grammar. No functional change. 2012-03-11 02:43:33 +00:00
dholland
70f2148fe7 Simplify some things. Rename some productions for clarity. 2012-03-11 02:21:04 +00:00
dholland
60c605bb74 A bit more of previous. 2012-03-11 01:09:42 +00:00
dholland
540fdf9f5e Reformat according to (my) basic standards for yacc grammars.
No functional change.
2012-03-11 00:57:44 +00:00
dholland
f3063ae30c Comments. 2012-03-11 00:14:20 +00:00
dholland
671dbef5d6 Use __printflike. Build products unchanged. 2012-03-10 21:53:38 +00:00
ginsbach
4b1228ffbe Improve the handling of quoted messages.
- warn about messages with an unexpected quote character
- warn about extra characters after a quote character
- warn about an unterminated quoted message
2012-03-09 18:54:28 +00:00
mbalmer
5cd43bc624 Remove the advertising clause and appease the eye a bit (still not good, but
better).  Almost no functional change.
2012-03-06 16:55:18 +00:00
mbalmer
40c86e8b4e Remove the advertising clause with the explicit ok from Perry E. Metzger. 2012-03-06 16:26:01 +00:00
njoly
4d5ade5119 Remove dead xrefs to obsolete kvm_mkdb(8). 2012-03-05 10:57:18 +00:00
wiz
c368f5db0b New sentence, new line. Wording. 2012-03-04 11:54:06 +00:00
dholland
62244ded10 Note in comment that Str_Match() does not detect or report invalid
patterns. This is not critical, since for the moment both possible
cases (unclosed [], and \ at the end of the string) are handled more
or less sanely.
2012-03-03 23:16:47 +00:00
matt
edf7bb773c remove extra " 2012-03-02 18:57:27 +00:00
matt
aea125ab81 fix typos from previous commit. 2012-03-02 18:55:16 +00:00
christos
2b01a8ad07 PR/46111: Wolfgang Stukenbrock: Add yp_setbindtries(3) so that yp operations
don't hang forever if requested.
2012-03-02 17:27:48 +00:00
matt
83aeaf7ea6 Need to cast to intrptr_t before casting a register_t to void * (since
register_t might be wider than a void *).
2012-03-02 16:17:22 +00:00
wiz
d47aeb29ac Use mdoc macros only. 2012-03-02 14:36:04 +00:00
mbalmer
d13b2dd8ad Add msg_printf(fmt, ...), a function to display raw messages without
going through the message catalog.
2012-03-02 14:27:48 +00:00
mbalmer
a4373e9a91 Removing trailing whitespace. 2012-03-02 13:11:57 +00:00
joerg
560b3ec5de Don't use non-literal format strings. Split it up depending on the
number of arguments used.
2012-02-29 23:37:07 +00:00
joerg
05959bffa3 Cast register_t to void * when printing with %p. 2012-02-29 23:35:49 +00:00
joerg
eb085c765d Pointer differences are generally not integers, so use %td here. 2012-02-29 23:35:10 +00:00
wiz
8668cbeef5 Sync usage with man page. From Bug Hunting in PR 46102. 2012-02-29 08:55:25 +00:00
wiz
040902799c Remove trailing whitespace. From Bug Hunting in PR 46102. 2012-02-29 08:54:55 +00:00
joerg
cdaeb35ee5 Mark sasprintf as using a printf-like format. Fix format string to use
all arguments by telling the user what file would be overwritten.
2012-02-28 22:30:44 +00:00
wiz
6e31cc7bbd Sort options in man page. Add EXIT STATUS section. Bump date.
Sync usage with man page.

Mostly from Bug Hunting in PR 46102.
2012-02-26 21:04:10 +00:00
apb
daa17451fe subtracting two pointers yields ptrdiff_t, so cast it to int. 2012-02-24 19:53:31 +00:00
apb
bb16246581 When given an URL that contains "://" but is not recognised,
print an error message.  Now "ftp https://foo/bar" prints

    ftp: Unsupported URL scheme `https'

instead of

    ftp: Can't lookup `https:ftp': No address associated with hostname
    ftp: Can't connect or login to host `https:?'
2012-02-24 19:40:49 +00:00
joerg
7a5b80bed9 Add explicit continue to empty loop body. 2012-02-24 16:03:39 +00:00
joerg
a625573ba2 while (...);
;
is really pointless, so remove the first semicolon.
2012-02-23 23:39:19 +00:00
joerg
70dcb9704f Don't use while-loop with empty body. 2012-02-23 22:57:53 +00:00
njoly
ac6da2a96c Now that window(1) is gone, use tmux(1) for xref. 2012-02-21 15:01:51 +00:00
rmind
9c3c596716 G/C VM_MAP_INTRSAFE flag 2012-02-19 02:47:53 +00:00
christos
f25b5b6cd8 this has not been used for ages. 2012-02-18 16:05:21 +00:00
wiz
86986a6435 Fix typo. Bump date for previous. 2012-02-17 11:43:24 +00:00
apb
f9135d4e36 The "-N" command line option means "include the terminating NUL byte",
so rename the corresponding flag from F_NO_NUL to F_INCLUDE_NUL to match
the behaviour.

This is the second half of the fix for PR 46035.
2012-02-17 11:37:33 +00:00
apb
5efc9deabf db(1) "-N" flag means "Include the NUL byte at the end of the key
or value".  (Previously, the description was reversed.)  Also expand
the description.

This is the first half of a fix for PR 46035.
2012-02-17 11:18:55 +00:00
matt
3dcb0b124a Avoid signed/unsigned comparision. 2012-02-17 08:28:36 +00:00
matt
02a2e7c81a MIPS uses a variable page size now.
(pulled up from matt-nb5-mips64)
2012-02-17 08:13:18 +00:00
matt
dfc6b54984 Let address/entry be 64bit if they are just sign-extended 32-bit values.
(change pulled up from matt-nb5-mips64).
2012-02-17 08:11:28 +00:00
skrll
d6c003a8de Correct LDOUBLE_SIZE 2012-02-16 16:27:15 +00:00
jmmv
7054f14003 Remove window(1).
window(1) was replaced by tmux(1) on March 2011.  The source code has
been reimported into othersrc/usr.bin/window and an up-to-date package
is available in pkgsrc/misc/window.

This removal was approved by core@, with the condition that it be done
once netbsd-6 had been brached.  And the branching has just happened!
2012-02-16 04:52:47 +00:00
dholland
7da608ca9c Update dangling references to quotactl(2), mostly now libquota(3), and to
quotactl(8), mostly now quotarestore(8). ok riz@
2012-02-13 19:53:24 +00:00
christos
0cdb0b2663 PR/44889: Yamamoto Takashi: netstat -d option is broken (from Elad) 2012-02-12 19:11:33 +00:00
joerg
410d0f4380 Import the new apropos/whatis.
This code has been developed by Abhinav Upadhyay as part of Google's Summer
of Code 2011. It uses libmandoc to parse man pages and builds a Full
Text Index in a SQLite database. The combination of indexing the full
manual page, filtering out stop words and ranking individual matches
based on the section gives a much improved user experience.

The old makewhatis and friends are kept under MKMAKEMANDB=no for now.
2012-02-07 19:13:24 +00:00
dholland
430a952206 Remove unneeded #include. 2012-02-05 14:14:44 +00:00
sjg
367aa166aa Fix description of 'silent' in .MAKE.MODE
Also document 'env' in that context.
2012-02-03 21:39:25 +00:00
yamt
bfb50d59ee make the result stable.
releng@ ok
2012-02-03 05:06:08 +00:00
dholland
a577f74f5b libquota no longer requires libprop. Also remove some other no-longer-used
.PATH'd-in bits from repquota.
2012-02-01 17:53:01 +00:00
dholland
fb3f26c0cf Simplify elaborate calls to quota_check_limit(). 2012-02-01 17:48:10 +00:00
dholland
59b296daa7 Change the syscall API for quotas over to the new non-proplib one.
- struct vfs_quotactl_args -> struct quotactl_args
   - add sys/stdint.h to sys/quotactl.h for clean userland build
   - install sys/quotactl.h in /usr/include
   - update set lists for same
   - add new marshalling code in libquota
   - add new unmarshalling code in vfs_syscalls.c
   - discard proplib interpreter code in vfs_quotactl.c
   - add dispatching code for the 14 quotactl ops in vfs_quotactl.c
   - mark the proplib quotactl syscall obsolete
   - add a new syscall number for the new quotactl syscall
   - change the name of the syscall to __quotactl()
   - remove the decl of the old quotactl from quota/quotaprop.h
   - add a decl of the new quotactl to sys/quotactl.h
   - update the libc build
   - update ktruss
   - remove proplib marshalling code from libquota
   - update copy of syscall table in gdb ppc sources
   - hack rumphijack to accomodate new quotactl name (as I recall,
     pooka wanted such a name change to simplify something, but I
     don't really see what/how)

This change appears to require a kernel version bump for rumpish
reasons.
2012-02-01 05:34:38 +00:00
wiz
8599966dc6 Sync usage with man page. 2012-01-31 21:53:42 +00:00
christos
c966a89be8 PR/45897: Takahiro Kambe: Make default display < 80 characters and add -w flag
to display unlimited
2012-01-31 16:30:40 +00:00
dholland
bdf1946e25 Remove this material, which is no longer used. 2012-01-30 19:21:37 +00:00
dholland
cae8b79fca Remove unused include. 2012-01-30 16:46:30 +00:00
dholland
3db227b343 Remove stray p in identifier name. This has (as far as I can tell)
prevented quotacheck and other old-style quota bits from working since
last March. Use a correct declaration in the header file, so that if
something similar happens again affected programs will fail to link
instead of failing to work.

This kind of nonsense is why I like -Wl,-warn-common.
2012-01-30 06:14:43 +00:00
dholland
e4f0c6844a Don't strlcpy from a string buffer to itself; the behavior is not
defined.
2012-01-30 06:02:12 +00:00
dholland
e5e6acbd31 Remove an old, no longer necessary hack from libquota and handle the
relevant case properly in usr.bin/quota.
2012-01-30 06:00:49 +00:00
para
e62ee4d475 extending vmem(9) to be able to allocated resources for it's own needs.
simplifying uvm_map handling (no special kernel entries anymore no relocking)
make malloc(9) a thin wrapper around kmem(9)
(with private interface for interrupt safety reasons)

releng@ acknowledged
2012-01-27 19:48:38 +00:00
dholland
2d709bd6e8 Remove unnecessary include. 2012-01-25 01:24:07 +00:00
apb
56a90ee419 Fix the csh(1) example ("make ... |& error ...", not "make ... | error ..."),
and add a sh(1) example ("make ... 2>&1 | error ...").
2012-01-22 09:25:26 +00:00
joerg
0f5f511fae Remove code for CITRUS!=yes. 2012-01-20 16:31:29 +00:00
christos
7f5fd4a5cd PR/45842: Henning Petersen: compare fgets with NULL not 0 2012-01-16 17:38:16 +00:00
christos
24352c32b9 fix previous; use append instead of write. 2012-01-15 20:43:24 +00:00
christos
65445fb66d make -R work the same in ftp:// like it does for http:// (i.e. work if
there is no local file).
2012-01-15 03:58:28 +00:00
riz
dface83f37 MENU_name -> MSG_name 2012-01-11 00:30:56 +00:00
joerg
4c70cdf100 Use __dead 2012-01-10 23:39:11 +00:00
christos
06c8e120ad fix signed/unsigned comparison. 2012-01-10 13:49:32 +00:00
christos
fcdbba429b PR/45805: Borodin Oleg: telnet/telnetd with -DAUTHENTICATION -DENCRYPTION
(rfc2941)
- Minimal diffs to separate MKCRYPTO from USE_KERBEROS
2012-01-09 16:08:55 +00:00
dholland
c64bfb1c4d Clean up usr.bin/quota to use the new libquota API.
(with one relatively minor exception remaining)
2012-01-09 15:35:44 +00:00
drochner
892b9bad57 split the ipsec.c source file into the pfkey part which is shared
with FAST_IPSEC and KAME specific IPSEC statistics
2012-01-06 14:21:16 +00:00
drochner
47a381e15e more IPSEC header cleanup: don't install unneeded headers to userland,
and remove some differences berween KAME and FAST_IPSEC
2012-01-06 14:17:10 +00:00
drochner
86deb82572 kill ipsec support which hasn't been working for a long time
(neither for KAME nor for FAST_IPSEC)
2012-01-06 14:08:08 +00:00
drochner
a438c2d1f9 -make digital mode work in non-interactive mode (init sighandler
earlier, sleep(3) until playing finished)
-also switch to digital mode if an audio device is given on the
 cmd line, or the (new) "CDPLAY_DIGITAL" env var is set

(The latter can be used to make digital mode default per system.
As I see it, analog mode is not dead yet - two of three external
DVD drives I looked at have a speaker output.)
2012-01-04 17:26:21 +00:00
drochner
5923e578df kill unnecessary srandom() call which crept in in rev. 1.33 2012-01-04 17:07:20 +00:00
yamt
9753d46d1c install tprof related commands and man pages. 2012-01-04 16:25:13 +00:00
yamt
1f34562751 SEE ALSO and CAVEATS 2012-01-04 16:18:11 +00:00
drochner
8fd6dadaf8 include <netipsec/ipsec.h> rather than <netinet6/ipsec.h> from userland
where possible, for consistency and compatibility to FreeBSD
(exception: KAME specific statistics gathering in netstat(1) and systat(1))
2012-01-04 16:09:40 +00:00
yamt
f40ab0e98f install fincore. 2012-01-04 15:54:37 +00:00
joerg
c09f2f1d25 If the default path doesn't result in a match, bail out early instead of
running into a segmentation fault. Based on patch by Abhinav Upadhyay.
2012-01-03 17:49:57 +00:00
wiz
dafcaac4c0 Remove unnecessary quoting. From Abhinav Upadhyay. 2012-01-02 00:35:53 +00:00
wiz
e530d885c0 Make usage() match man page. 2011-12-29 22:58:27 +00:00
christos
6e1ec48784 Make msgfile optional like other OS's 2011-12-29 16:41:38 +00:00
apb
25998b2e56 Document the reality that the _build and _crunch commands should each
contain exactly one "%s".  The previous description allowed any number
of "%s" in the _build command, but that does not match the actual
behaviour of either man(1) or catman(8).
2011-12-27 13:15:55 +00:00
christos
2ebaa9112a kill the space so we can turn $Foo$ to Foo 2011-12-25 23:31:22 +00:00
christos
7ae009b5a7 fix the grammar conflict differently. 2011-12-25 20:11:22 +00:00
christos
8af1345344 correct debugging flags. 2011-12-25 01:05:44 +00:00
christos
1e73d755b4 PR/45666: Nicolas Joly: lint(1) wrong 'syntax error' message 2011-12-25 01:05:03 +00:00
christos
de766f5829 use the names from the include files. 2011-12-24 20:18:35 +00:00
sjg
25e3dfbf18 Mention limits of :P 2011-12-23 05:01:59 +00:00
njoly
def73a1f81 c99: do not warn about trailing comma in enum declaration. 2011-12-19 16:52:27 +00:00
sjg
3a4494dc38 The :@ example gives the impression that we encourage the ODE
convention of naming loop variables like .LINK., when in fact
single char variables are far more common in NetBSD.
2011-12-17 04:43:45 +00:00
agc
f8a6a8bef4 We usually refer to RCS keywords as "Ids", so make it obvious in the
synopsis that this script strips RCS Ids, and cross reference
ident(1) - makes it easier to find this utility with apropos(1).
2011-12-11 23:01:55 +00:00
lukem
2c9a7b42f6 Move determination of socket buffer sizes from startup to the first
time a socket is used, as the previous logic assumed AF_INET sockets
were available (which they may not be in an IPv6-only system).
Per discussion with Maxim Konovalov and the FreeBSD problem 162661.
2011-12-10 05:53:58 +00:00
wiz
7559f8d444 Fix typo. Use more markup. 2011-12-09 19:15:11 +00:00
yamt
6735245dce - fix the section
- fix a warning
2011-12-09 15:24:39 +00:00
yamt
d4e8773667 a utility to show in-core status of file pages 2011-12-09 15:17:34 +00:00
dholland
d1d45012e0 Adjust the quota-fetching code to allow more than two object types.
(as far as we can so far, at least)

Note that quota won't actually work fully with multiple object types
as it is, but this and the last change are a good start and do fold
together a lot of duplicated code.
2011-11-30 16:12:32 +00:00
dholland
ebec1aced8 Clean up the printout code to support more than the old fixed two
object types.
2011-11-30 16:09:29 +00:00
dholland
0cde282c93 Move a big chunk of code out of a loop into its own function. 2011-11-30 16:07:28 +00:00
wiz
8956200af2 Remove unused header. From Henning Petersen in PR 45658. 2011-11-28 10:10:10 +00:00
dholland
4a00a690f3 Use __dead, not attribute noreturn. 2011-11-27 13:24:32 +00:00
dholland
dc46435fc4 The proper type for a variable that can be either a uid or gid is id_t,
not uint32_t.
2011-11-27 13:23:50 +00:00
christos
338bfe9851 If the ioctl to play tracks returned EINVAL, switch to digital mode and
try again.
XXX: Should we do this for the other ioctls? Should we default to digital mode?
Definitely the error message is completely unfriendly and should be fixed.
2011-11-26 23:20:41 +00:00
wiz
336147a4cf Sort sections, remove line that must have crept in here from ls(1). 2011-11-26 22:47:39 +00:00
yamt
6f09a307e0 man page 2011-11-26 16:15:09 +00:00
yamt
0fc2ee88d2 try to speed up symbol lookup 2011-11-26 05:04:09 +00:00
dholland
51d1d7e7c4 Rename struct ufs_quota_entry -> struct quotaval. 2011-11-25 16:55:05 +00:00
jmcneill
26719ba336 - accept "midi0" as an alias for "0" to the -d flag
- verify that the requested unit exists before playing
- if the verbose flag is set, print the selected device name and unit #
2011-11-25 01:39:47 +00:00
dholland
9851fd89b4 Fix xref to the PSD; PR 45568 from Petri Laakso. 2011-11-13 18:18:35 +00:00
christos
fa19104dd8 compare the sed we just build with the installed one instead of bogus
paths.
2011-11-12 03:15:05 +00:00
gdt
c9bfbf1142 Move RTF_ANNOUNCE flag so that it no longer conflicts with RTF_PROTO2.
RTF_ANNOUNCE was defined as RTF_PROTO2.  The flag is used to indicated
that host should act as a proxy for a link level arp or ndp request.
(If RTF_PROTO2 is used as an experimental flag (as advertised),
various problems can occur.)

This commit provides a first-class definition with its own bit for
RTF_ANNOUNCE, removes the old aliasing definitions, and adds support
for the new RTF_ANNOUNCE flag to netstat(8) and route(8).,

Also, remove unused RTF_ flags that collide with RTF_PROTO1:
  netinet/icmp6.h defined RTF_PROBEMTU as RTF_PROTO1
  netinet/if_inarp.h defined RTF_USETRAILERS as RTF_PROTO1
  (Neither of these flags are used anywhere.  Both have been removed
  to reduce chances of collision with RTF_PROTO1.)

Figuring this out and the diff are the work of Beverly Schwartz of
BBN.

(Passed release build, boot in VM, with no apparently related atf
failures.)

Approved for Public Release, Distribution Unlimited
This material is based upon work supported by the Defense Advanced
Research Projects Agency and Space and Naval Warfare Systems Center,
Pacific, under Contract No. N66001-09-C-2073.
2011-11-11 15:09:32 +00:00
wiz
10532e0141 Sort sections, use Aq, add comma in enumeration. 2011-11-09 19:42:27 +00:00
christos
d656290c5d PR/45592: Greg A. Woods: changes to get time(1) to use CLOCK_MONOTONIC 2011-11-09 19:10:10 +00:00
roy
6a222e7196 Replace fgetln(3) with the more standard getline(3) 2011-11-09 07:40:27 +00:00
christos
e8514ab687 explain how to use .PARSEDIR and .PARSEFILE 2011-11-06 19:50:46 +00:00
christos
f0528cf595 add debugging for parsedir and parsefile 2011-11-06 19:46:56 +00:00
roy
ff10397929 Use memmove as we are effectively moving memory from left to right so
that the use=foo capability is removed when merging foo.
2011-11-03 10:12:57 +00:00
pgoyette
eb11ed074e Fix a couple of mis-spellings of "descriptions" 2011-11-02 19:21:49 +00:00
yamt
29af9462d1 annotate for lint 2011-10-31 13:27:51 +00:00
jym
16bd08511a Move getuid() out of the loop, uid should not change behind our back. KNF. 2011-10-25 23:45:19 +00:00
jym
a960d51308 kill(2) might not be a good test after all, users can send signals
to setuid binaries (like SIGINT for ping(8)). So apply the exact same
rights as procfs, and test uid against proc p_uid (real owner of process).

Bail out if we are not root and we attempt to print mappings of a process
that the user does not really own.
2011-10-25 22:13:22 +00:00
joerg
10769988ef Add support for build as part of the toolchain. Add option for
deterministic output (-p), which replaces the random seed with a
incremental counter.
2011-10-21 23:47:11 +00:00
christos
924cacedb8 Remove stale proc_compare code and use the shared one in libutil. 2011-10-21 02:26:09 +00:00
reed
08dba12376 patch from from Snader_LB via IRC.
- mention  "The following options are available:"

- improve grammar

- provide useful tip about -x
2011-10-19 00:27:40 +00:00
jym
9bea009cb1 Disallow printing of kernel mappings if we are not root.
pid 0 is a special case for kill(pid, 0), and unlikely to be the
correct test there. This follows the procfs "mem" rights changes that
happened some time ago.
2011-10-18 20:54:56 +00:00
mbalmer
2790b28f0e Fix typo in comment. 2011-10-17 16:31:14 +00:00
christos
81aad1d7e8 use warn instead of perror. 2011-10-15 21:59:48 +00:00
christos
76f57a76c2 unbreak -f -H -h, etc, part 1
- get nlist once in the beginning and fix the flags. Not each time! It is
not like the kernel will change it symbols in the middle of the run.
2011-10-15 21:06:05 +00:00
mbalmer
a51a64158b Add towns to dmr's dates. 2011-10-13 07:44:27 +00:00
mbalmer
67aae85cd8 Dennis "dmr" Ritchie R.I.P. 2011-10-13 07:41:32 +00:00
wiz
e6c49c32de More standard Dt/Nm. 2011-10-11 20:39:40 +00:00
christos
08c23328c8 make getcap a link to getent, since many of the databases we use are of the
"cap" format.
2011-10-11 19:25:07 +00:00
christos
5345ba7f3a fix usage formatting. 2011-10-11 19:24:43 +00:00
tsutsui
077be3445f Consistently use "%#"PRIxVADDR to print VA, not "0x%#"PRIxVADDR
or "0x%"PRIxVADDR etc.  Noticed by Y.Sugahara.
2011-10-11 12:25:56 +00:00
chs
585f34003b fix rdev reporting for UFS2 and ext2fs. 2011-10-09 21:16:00 +00:00
jnemeth
e894be756a add an xref to fstat(2) 2011-10-08 22:16:03 +00:00
wiz
d2edac91a8 Fix Dt argument. Correct date. Some wording improvements. 2011-10-08 20:19:10 +00:00
christos
582bebaa0f fix markup 2011-10-08 19:20:50 +00:00
christos
07fb1a358e descend into cleantags 2011-10-08 19:16:54 +00:00
christos
830d5efd84 Small script used when importing 3rd party programs. The code in this
script is used in many foo2netbsd scripts, but none of them has the
complete list of keywords. I will make all those scripts use this one
instead.
2011-10-08 19:16:08 +00:00
christos
1dcb02d8c7 remove casts 2011-10-07 16:30:17 +00:00
mbalmer
947c965b88 Refer to X11R7. 2011-10-07 10:52:31 +00:00
joerg
26c79d78b3 Simplify 2011-10-07 10:14:22 +00:00
mrg
92461b24a3 enable building/installing audiocfg(1). ok jmcneill. 2011-10-06 07:38:54 +00:00
roy
47e1ece0c2 Use terminfo and the non-standard ttytype rather than termcap. 2011-10-05 10:48:54 +00:00
shattered
8836963d2f PR/43968 -- add 'segqlen' of TCPCB to 'netstat -P'.
OK by wiz@
2011-10-04 21:12:40 +00:00
christos
c6a6b07331 Handle c99 declarations in the middle of blocks. 2011-10-04 16:19:59 +00:00
roy
26bd22ac44 Ensure we only pass cap names of one or two characters to tgetstr
and friends so we don't mistakenly try and convert a terminfo code to a
termcap code.
2011-10-04 12:23:14 +00:00
roy
9f4db5a1ea tput now uses longname(3) to derive the terminal description instead
of trying to parse it from termpcap.
Fixes PR/43386.
2011-10-04 11:02:32 +00:00
roy
4060cbcd0c Use tiparm instead of vtparm. 2011-10-03 12:32:15 +00:00
christos
0e4108c639 eat the last d in double constants. 2011-10-02 19:45:10 +00:00
dholland
81e8d7471a Describe the output more accurately, and in the correct order. Noted by
Snader_LB on freenode.
2011-10-02 01:51:00 +00:00
dholland
1e6da30b2e Fix ambiguous/confusing wording. 2011-10-02 01:47:27 +00:00
jym
afca4e3b49 Fix an implementation inconsistency with the prop_*_send_syscall() and
prop_*_recv_syscall() functions from proplib(3). They now share the
same logic as the one from prop_*_send_ioctl() functions:
- returns an int
- 0 indicates "no error", otherwise returns the error number (and
set errno)

Many consumers of the prop_*_{ioctl, syscall} expect errno to be set
on error and use err() to display the error message. As such, ensures that
errno gets set before returning from these functions.

prop_*_send_syscall() functions returned a boolean, and now return an int.
Fix all call sites to use the new paradigm (only quota2 is affected in src).

As the prop_*_{send,recv}_syscall() API appeared in -current and is only
used by the recent quota2 code, I am not bumping the lib. The API change
only affects the prop_*_send_syscall() function (recv_syscall()s were
already used correctly), so ensure you are not mixing "old" -current
quota binaries with a new proplib(3) (or the other way around). This
change will be announced via a HEADS-UP and UPDATING.

Does not affect the kernel part of proplib.

Document the correct API in prop_array(3) and prop_dictionary(3).

Thanks to Francois Tigeot for noticing the API inconsistency and
reporting it on tech-kern@.

ok bouyer@.
2011-09-30 22:08:18 +00:00
christos
22d49ff4f1 add copyright 2011-09-30 01:32:21 +00:00
sjg
123e6558cd Make sure .PHONY targets get .TARGET set.
This wasn't happening when a dependency of .END.
Set .PREFIX too and add a unit-test.

PR: 43534
2011-09-29 23:38:04 +00:00
christos
190c081319 don't limit sockets to sizeof(sizeof sockaddr_storage). We can create valid
sockaddr_un sockets that exceed that. Arguably either
sizeof(struct sockaddr_storage) should be amended, or we should disallow
unix domain sockaddrs that exceed that size.
2011-09-28 16:28:27 +00:00
apb
aaffb7873e Updates to the find(1) man page, based on PR 45381 from Greg Woods,
with additional changes by myself.
2011-09-24 13:45:43 +00:00
mrg
81a1075469 apply some (uintptr_t) so that printing printers works on i386 (likely
all 32 bit.)
2011-09-23 07:31:39 +00:00
apb
64d2b8e0ba Use vis(3) encoding when a string format is modified by the '#' flag.
Also bump copyright years.
2011-09-22 20:23:55 +00:00
christos
a0af16e360 - factor out common code in the inet and inet6 printing.
- add appletalk (ddp) support.
2011-09-22 17:27:50 +00:00
christos
8624929e77 Fix unchecked malloc, check for overflow (Maksymilian Arciemowicz)
While here, remove unused casts, fix types.
2011-09-22 12:49:57 +00:00
christos
17c41f8e0c Symbolic printing of some known MISC records. 2011-09-21 17:48:51 +00:00
christos
618434e41f PR/45385: Henning Petersen: Swapped arguments in lseek 2011-09-21 14:33:35 +00:00
christos
48adc0d0fe PR/45384: Henning Petersen: Swapped arguments in lseek 2011-09-21 14:32:14 +00:00
christos
6f2c981e29 PR/45383: Henning Petersen: Swapped lseek args 2011-09-21 14:30:47 +00:00
jym
37232010ea Use __arraycount(), as done above. 2011-09-21 12:08:02 +00:00
njoly
7d41567535 Fix lseek(2) swapped arguments. 2011-09-18 09:07:35 +00:00
christos
45afe09801 ansify, const, knf 2011-09-17 15:15:46 +00:00
minskim
05d81a59ae Add back a line accidentally deleted in the previous commit. 2011-09-17 03:09:51 +00:00
joerg
6818646ac8 Use __dead 2011-09-16 15:39:25 +00:00
joerg
84700a0331 Use __dead consistently. If it doesn't exist, define it away. 2011-09-16 15:38:03 +00:00
apb
9438a85a85 More corrections to format compatibility between stat(1), find(1) -ls,
and ls(1) -lT.
2011-09-16 14:32:53 +00:00
wiz
8438689645 Remove unnecessary Ns. 2011-09-16 13:33:13 +00:00
apb
229948abdb Anothe difference in output format: stat -f "%Z" does not add any
space in "major,minor" for device nodes, whereas both "ls -l" and
"find -ls" add at least one space.
2011-09-16 11:06:27 +00:00
apb
7f5f7e4b90 Add examples of formats for stat(1) to simulate "find -ls" and "ls -lTd". 2011-09-15 19:56:35 +00:00
plunky
1803dc4bc8 when printing URL strings, don't use VIS_HTTPSTYLE, it does
not quite work as I expected.. just use VIS_CSTYLE
2011-09-15 17:52:53 +00:00
wiz
4285677d6b Add argument in options table. Resize to fit. 2011-09-15 09:40:57 +00:00
wiz
826f78a987 Mark file argument(s) as being optional (as does the usage message
from fold.c, which is correct); minor spelling correction; note
`width' as being an argument to `-w'; reference fmt(1) in `SEE
ALSO' section.

From Snader_LB.
2011-09-15 09:39:57 +00:00
christos
2ba0028160 - remove bogus casts
- print recycled vnode flags
2011-09-10 18:35:28 +00:00
christos
ebb6dc2ee4 add libutil. 2011-09-10 18:34:54 +00:00
christos
48bd4d9cb5 add all the possible fileops here, and if there is one we know about
print that instead of the passed name.
2011-09-10 18:34:40 +00:00
christos
6438f483a9 revert previous; don't change the logic. 2011-09-08 12:00:26 +00:00
christos
90932ffc48 don't forget to 0 init the rest of the array since now we removed the memset 2011-09-08 01:19:52 +00:00
christos
47ecf56863 a little more KNF, plus add \e (from the previous commit) 2011-09-08 01:18:44 +00:00
christos
0ffd30a090 It is pointless to assign to the CLASS.set member and never use it again.
Perhaps the author meant to check if it is already set and not allocated it
again to avoid memory leaks? Anyway make everything const back and delete
the unused code. Yes, this leaks the same way as before but it is
insignificant. If we want to save memory we could use bytes or even bits
instead of ints, and not allocate/initialize the same thing multiple times.
2011-09-08 01:18:05 +00:00
joerg
91a068001c Add comment to explain the const issue to avoid future trouble. 2011-09-07 22:59:19 +00:00
riz
958c749ae4 Remove newly-introduced const qualifier from static CLASS classes[],
as CLASS->set gets changed in genclass().  Fixes a segfault doing:

tr '[:lower:]' '[:upper:]'

on (at least) amd64.
2011-09-07 18:21:41 +00:00
jmcneill
a123dfbe30 recognize AUDIO_ENCODING_AC3 2011-09-06 22:41:53 +00:00
wiz
2a5f867d29 Remove trailing whitespace and use Sx for section crossreference. 2011-09-06 19:22:05 +00:00
joerg
7d5aba78d7 Use static and __dead. 2011-09-06 18:50:32 +00:00
joerg
48ed0846d6 static + __dead 2011-09-06 18:46:35 +00:00
joerg
8751fcdadd Use __printflike and __dead. 2011-09-06 18:46:21 +00:00
joerg
78eefffb5d static + __dead 2011-09-06 18:46:03 +00:00
joerg
abb50018a2 ANSIfy, static + __dead 2011-09-06 18:45:49 +00:00
joerg
b47a64d89e static + __dead 2011-09-06 18:45:21 +00:00
joerg
505c5e5515 Use static and __dead 2011-09-06 18:45:04 +00:00
joerg
a12e209ee8 Mark usage as static and __dead. 2011-09-06 18:44:46 +00:00
joerg
4d7311244b static + __dead 2011-09-06 18:44:26 +00:00
joerg
60bd81b021 error_count is unsigned, so use %ju 2011-09-06 18:43:41 +00:00
joerg
8f7d1f2721 Use __dead and __printflike. Fix one format string and one error()
argument as hinted by the new format string checking.
2011-09-06 18:42:13 +00:00
joerg
1ed141bb41 ANSIfy, static + __dead 2011-09-06 18:35:41 +00:00
joerg
424d701a2a ANSIfy + __dead 2011-09-06 18:34:57 +00:00
joerg
4a9db21a64 ANSIfy, static + __dead 2011-09-06 18:34:37 +00:00
joerg
be0c033d10 ANSIfy. Sprinkle static and __dead. 2011-09-06 18:34:12 +00:00
joerg
1d57801981 ANSIfy. Sprinkle const and __dead. 2011-09-06 18:33:46 +00:00
joerg
cd57b1ce2a ANSIfy, static + __dead 2011-09-06 18:33:18 +00:00
joerg
f20d1d233d Use __dead. Make a bunch of local functions static. 2011-09-06 18:33:01 +00:00
joerg
c8b60166de ANSIfy + static + __dead 2011-09-06 18:32:26 +00:00
joerg
68168df687 ANSIfy + __dead 2011-09-06 18:32:03 +00:00
joerg
96c339267b Consistently use __dead and __printflike. 2011-09-06 18:31:44 +00:00
joerg
fb1e3f6f7d static + __dead 2011-09-06 18:31:22 +00:00
joerg
b480aed3ce Use static and __dead. 2011-09-06 18:30:56 +00:00
joerg
3500df6f19 Use pid_t directly. Apply static and __dead. 2011-09-06 18:30:38 +00:00
joerg
4d72fc9046 static + __dead 2011-09-06 18:29:35 +00:00
joerg
cfac3cac2b ANSIfy, static + __dead 2011-09-06 18:28:58 +00:00
joerg
3e796e7d89 static + __dead 2011-09-06 18:28:35 +00:00
joerg
75acfabd7f Use __dead and __printflike. 2011-09-06 18:28:18 +00:00
joerg
0b82381295 static + __dead 2011-09-06 18:26:55 +00:00
joerg
e7997c0db8 ANSIfy, static + __dead 2011-09-06 18:26:06 +00:00
joerg
d5bd94639a Consistently use __dead and __printflike. 2011-09-06 18:25:14 +00:00
joerg
f085baab1a static + __dead 2011-09-06 18:24:43 +00:00
joerg
0487dc01d5 ANSIfy + __dead 2011-09-06 18:24:15 +00:00
joerg
a2f897e7fe ANSIfy, static + __dead. 2011-09-06 18:19:58 +00:00
joerg
2eacf5d5a2 Mark __menu_initerror as dead in the output. 2011-09-06 18:16:38 +00:00
joerg
f0f23e661a Move usage and onintr to make them static. Add __dead as needed. 2011-09-06 18:16:01 +00:00
christos
f5cf37944f move UNIX socket mention in the BUGS section. 2011-09-06 11:31:47 +00:00
wiz
ba45f45512 Remove duplicate RCS Id and split file system. 2011-09-05 18:27:31 +00:00
joerg
170bc8c273 Moved to src/external/bsd/byacc. 2011-09-05 18:25:23 +00:00
joerg
7654d36ad8 Sprinkle const. Use __dead. 2011-09-05 18:11:53 +00:00
joerg
6d5539de9c static + __dead 2011-09-04 20:55:43 +00:00
joerg
08af8338c6 Sprinkle one more static and a bunch of consts. 2011-09-04 20:35:07 +00:00
joerg
81249d1a2f static + __dead 2011-09-04 20:31:00 +00:00
joerg
4e46e5935f ANSIfy + static + __dead 2011-09-04 20:29:12 +00:00
joerg
924863260a static + __dead 2011-09-04 20:28:59 +00:00
joerg
cb377560e8 ANSIfy + static + __dead 2011-09-04 20:28:09 +00:00
joerg
d6555585cf static + __dead 2011-09-04 20:27:05 +00:00
joerg
8f81f2eef9 Use static, change deep if / else if / ... chains to switch(), apply
__dead, ANSIfy.
2011-09-04 20:26:17 +00:00
joerg
60dc5170cc static + __dead 2011-09-04 20:24:59 +00:00
christos
44f7f983f5 - minor KNF
- for system processes (0, 1) where fd_lastfile == -1, fail early.
- instead of printing the pcb connection address, print the pathname if
  possible for unix domain sockets.
2011-09-03 13:24:19 +00:00
christos
21e29f6268 Mention that fstat -f will not list open unix sockets on that filesystem. 2011-09-03 13:22:55 +00:00
christos
d44b4781e6 minor knf, no functional change. 2011-09-03 10:59:10 +00:00
christos
221bb4e4bf leave the original errno as it was. don't report EFBIG on all mmap failures. 2011-09-03 10:35:13 +00:00
christos
56b933f4a2 Instead of declaring our own err() which is different than the standard one,
and using it incorrectly in a few places because of confusion (does it print
errno or not?), declare two versions following the standard ones xerrx and,
xerr, and use those as appropriate, implementing them using them vwarn and
vwarnx.
2011-09-03 09:02:20 +00:00
christos
c09f04bf36 - use PT_STRINGS
- use __arraycount()
2011-09-02 20:11:42 +00:00
sjg
b79c6e0ff9 meta_oodate should ignore makeDependfile 2011-09-02 16:26:21 +00:00
joerg
12da85b5f0 static + __dead 2011-09-01 13:37:33 +00:00
joerg
223a11b436 static + __dead 2011-09-01 13:25:02 +00:00
plunky
acae68523e reinstate NULL cast by request, where the NULL was being passed as a vararg 2011-09-01 07:18:50 +00:00
plunky
9f61b80465 NULL does not need a cast 2011-08-31 16:24:54 +00:00
joerg
06cf5ec8d8 Use __dead. Be a bit more consistent about static.__dead. Be a bit more
consistent about static.
2011-08-31 13:38:19 +00:00
joerg
31870c16c9 static + __dead 2011-08-31 13:35:46 +00:00
joerg
1009d03daf static + __dead 2011-08-30 23:10:45 +00:00
joerg
9f9e1b91cd Use __printflike and __dead 2011-08-30 23:08:05 +00:00
joerg
7e57d8fe3f Use __printflike and __dead. 2011-08-30 23:06:00 +00:00
joerg
1f81257a3a static + __dead 2011-08-30 21:33:28 +00:00
plunky
87d4f6076b Apply casts to cases where xdrproc_t is expected but is not
strictly passed, for example because the second argument is
a different kind of pointer.
2011-08-30 17:06:20 +00:00
christos
2b57c17dce in external now. 2011-08-30 10:09:26 +00:00
joerg
7e47a1209f Use __dead 2011-08-29 14:24:03 +00:00
joerg
d27ef895bf static + __dead 2011-08-29 14:22:46 +00:00
joerg
593b4a9f8c Use __dead 2011-08-29 14:14:11 +00:00
joerg
a696160afc static + __dead 2011-08-29 14:12:29 +00:00
joerg
6e33bec8d4 static + __dead 2011-08-29 14:05:08 +00:00
joerg
136ac38948 ANSIfy + static + __dead 2011-08-29 14:00:54 +00:00
joerg
d04cc43e5c usage() is not unused, it is dead 2011-08-29 13:56:17 +00:00
joerg
49dbe234f7 static + __dead 2011-08-29 13:55:22 +00:00
joerg
a746333485 static + __dead 2011-08-29 13:47:16 +00:00
elric
95bd2d4a1e Remove crypto/dist/heimdal and its associated build infrastructure as
it has been replaced by crypto/external/bsd/heimdal.
2011-08-28 16:21:57 +00:00
christos
d99091ea8b use strpct from libutil. 2011-08-28 08:24:42 +00:00
sjg
09fee58e88 In meta mode, we create .meta files for most targets.
These capture all the interesting data - useful for debugging.
In such cases there is no need to replicate commands in the build log.
Rather than run the entire build .SILENT, allow meta mode to set that flag
per target iff a .meta file is created.
Normal behavior is retained for targets where no .meta file is created,
ensuring that no build data is lost.
2011-08-28 03:54:07 +00:00
joerg
c36a7298be ANSIfy. Add static. Add __dead. 2011-08-28 01:17:47 +00:00
joerg
45e9b5a831 Avoid using non-literal format strings. Fix verbose option -- va_list is
passed by reference and vprintf would have processed all arguments
already.
2011-08-25 16:19:23 +00:00
christos
76987894af misc knf cleanup. 2011-08-23 20:27:22 +00:00
dholland
879c64122d Requires stdint.h. 2011-08-21 23:38:43 +00:00
christos
a040843f47 use const char [] for format. 2011-08-21 08:50:08 +00:00
plunky
a54eea1c06 add print_utf8_string for some profiles that specify UTF-8 specifically,
and supply a print_codeset_string() so we don't need void * casts to avoid
the char ** -> const char ** complaint
2011-08-20 09:18:47 +00:00
sjg
daf6508d3f Make some dashes em-dashes (based on patch from Andrew O. Shadoura).
Note behavior of .META flag wrt out-of-date.
2011-08-18 15:36:51 +00:00
sjg
4f95291ad9 Fix formatting of Notes to work with groff.
Patch from Andrew O. Shadoura.
2011-08-18 15:19:30 +00:00
christos
cb81bcdf23 revert 4 digit year printing and add -y option to print 4 digit years. 2011-08-18 11:29:27 +00:00
sjg
bbf6dc9998 If a target is explicitly flagged .META,
a missing .meta file means it is out-of-date.
2011-08-18 00:00:21 +00:00
joerg
0a09baa75f Fix disable stricter format string messages with clang again. 2011-08-17 22:16:42 +00:00
christos
cef6b9f736 document non-literal format strings 2011-08-17 15:32:20 +00:00
christos
4802a96d70 fix non-literal format strings 2011-08-17 14:07:45 +00:00
christos
90f7aa069d add noreturn atttribute. 2011-08-17 14:07:31 +00:00
christos
82c2d298ee document non-literal format strings 2011-08-17 14:00:30 +00:00
christos
9ca5242243 fix non-literal string format 2011-08-17 13:57:12 +00:00
christos
103ef387e2 document that we are using non-literal string formats. 2011-08-17 13:54:31 +00:00
christos
e6c0663544 Eliminate non-literal format strings, and now that gcc warns, kill y2k format
warning.
2011-08-17 13:48:11 +00:00
christos
e9332b1686 kill 2 digit year format. 2011-08-17 13:37:39 +00:00
christos
6d44ff404c document non-literal string format 2011-08-17 13:29:39 +00:00
christos
08c8290bd9 eliminate non-literal format strings. 2011-08-17 13:26:49 +00:00
christos
9590e2915d document non-literal format strings 2011-08-17 13:22:33 +00:00
christos
5a1e6eb35b document non literal string format 2011-08-17 13:19:09 +00:00
christos
c480e28cfc fix non-literal format stringg. 2011-08-17 13:12:39 +00:00
christos
ea9a6fbf23 avoid "... dutch" being interpreted as a pascal continuation message, and
core-dumping.
2011-08-17 13:11:22 +00:00
christos
77984ce781 document non-literal format strings. 2011-08-17 12:57:19 +00:00
joerg
09b543b065 Do proper input validation without penalizing performance. 2011-08-16 13:55:01 +00:00
christos
d27516e895 document non-literal format string. 2011-08-16 12:05:52 +00:00
christos
aab2693089 document non-literal format strings 2011-08-16 12:03:31 +00:00
christos
855e98819b - document non-literal format string
- use err/errx
- prototypes
2011-08-16 12:00:46 +00:00
christos
abf73dc18d document non-literal format string 2011-08-16 11:49:17 +00:00
christos
5353040f23 document non-literal format strings 2011-08-16 10:35:03 +00:00
christos
4a313422fa set errno on overflow return. 2011-08-16 03:25:34 +00:00
christos
89c75b98e4 provisional fix for CVE-2011-2895, buffer overflow in decompression 2011-08-16 03:24:47 +00:00
christos
5db8b1f126 provisional fix for CVS-2011-2895, buffer overflow when uncompressing 2011-08-16 03:21:47 +00:00
christos
4551250b00 document non-literal format strings. 2011-08-14 13:45:34 +00:00
christos
856f19c27d Provide a consistent date/time format instead of a
locale-specific one that might have 2 digit years
2011-08-14 13:41:17 +00:00
christos
e3f2281ab3 kill gcc-4.5 warnings 2011-08-14 13:27:47 +00:00
christos
d0e87f5f87 - add a SYSEX0 macro that does not override the initializers and use it
- fix whitespace
- make things static and eliminate unused functions
2011-08-14 13:26:23 +00:00
christos
ccb821a2ac - remove gcc-4.5 warnings
- simplify job printing code
- document non-literal format strings
2011-08-14 13:06:09 +00:00
christos
42ff0d2ac9 kill gcc-4.5 warning 2011-08-14 12:59:25 +00:00
christos
51a4285889 fix gcc-4.5 warnings 2011-08-14 12:58:15 +00:00
christos
2da76c1342 eliminate gcc4.5 warnings 2011-08-14 12:50:10 +00:00
wiz
e96bfc25cf Sort options and option descriptions, and sync usage. 2011-08-13 14:11:16 +00:00
jakllsch
6c3008d052 Sort (and synchronize) option list and `SYNOPSIS' section in
manpage, as well as the program's `usage'-line; also some other
minor changes.

From Snader_LB.
2011-08-13 14:02:48 +00:00
jruoho
ea330d8d1a Xref limits(3). 2011-08-09 18:11:37 +00:00
wiz
9038276921 Add lzma and lzo to usage. From Elie De Brauwer in PR 45219. 2011-08-06 11:12:05 +00:00
matt
8fa5ea82ed Add O_TRUNC to the open of the image file (in case the size decreases). 2011-08-04 04:47:59 +00:00
matt
9be0f04367 Add lzma and lzo compression types 2011-08-03 17:46:40 +00:00
matt
dfbaa6afbe Add -E entrypoint for "byteswapped" entry-points. 2011-08-03 17:00:13 +00:00
riz
a91ba62b09 Add an -m flag to mkubootimage, for specifying an alternate magic
value.
2011-08-01 06:16:35 +00:00
christos
3edabd2e8e Don't attempt to touch special targets; make -t would create .END in every
directory.
2011-08-01 02:13:21 +00:00
yamt
b0bc17c5a1 dopoolcache: don't print unused caches unless verbose 2011-07-26 13:24:38 +00:00
yamt
4af7b61bfc add an option to put samples for each symbols together. 2011-07-26 12:24:16 +00:00
yamt
836b5ebd94 remove a duplicated "unknown option" message. 2011-07-26 12:21:27 +00:00
christos
d97d3aebdc - use poll() instead of select()
- make everything static
- knf
- consistently check for == -1 for syscall errors
- isatty(fd) == tcgetattr(fd), don't do it twice
- make error messages more consistent
- use sig_atomic_t for variable set inside signal handler
2011-07-18 21:51:06 +00:00
christos
ea35959226 gcc 4.5 error support ("file:line:col: error" instead of "file:line: error") 2011-07-18 21:46:15 +00:00
plunky
412b8db41e only modify the termios structure when tty_in is verifiably a terminal 2011-07-18 15:44:17 +00:00
njoly
58b2cc408f Use errx() to display kvm_openfiles error message, the provided buffer
already has it.
2011-07-17 10:22:07 +00:00
wiz
d738592f9d Fix typos, remove trailing whitespace. 2011-07-14 22:14:03 +00:00
manu
a6ed313d9c Improve extended attribute commands:
- allow namespace to be omitted when using a namespace-prefixed attribute
  name, a la Linux.
- Improve hexdump for getextattr -x
- Add more display option for binary attributes, using vis(3)
- Add a -i option to setextattr to get the attribute value from file, so
  that we can set binary values
2011-07-14 15:25:27 +00:00
wiz
e1881f54f7 Fix a logic error: when renaming a file, strip trailing \n from file name. 2011-07-14 06:35:30 +00:00
apb
8c250ec6f2 Comments and white space changes, inspired by Greg Woods' remarks
in PR 45130, but not directly copied from the patch in the PR.
2011-07-13 07:58:35 +00:00
apb
69e4520422 Fix error in previous: The first character of $i should be removed
only if it is '!', but it was removed in the wrong case branch.
2011-07-13 07:48:19 +00:00
apb
404ff31a48 Allow quoting of embedded shell metacharacters in locate.conf(5).
The shell_quote function here is identical to that in postinstall
and etcupdate.

This should fix PR 45130 from Greg Woods.
2011-07-10 13:42:49 +00:00
mrg
29bf026bea install elf2ecoff for all mips64 systems. it's needed for stand. 2011-07-10 08:43:50 +00:00
tsutsui
b578f76170 Make this cross-tool ready. Mostly taken from elf2ecoff(1).
XXX: assume no LP64 a.out binaries
2011-07-10 05:07:48 +00:00
tsutsui
da8589ed6d Set a_midmag MAGIC in a.out header properly for more possible a.out ports
in the past per ex.e_machine in ELF header.
2011-07-10 04:56:31 +00:00