Commit Graph

10164 Commits

Author SHA1 Message Date
ad eb1a865124 Don't complain about a missing 'file-system' directive. File system code
can be provided by modules.
2008-10-20 11:02:18 +00:00
wiz 1f8562f538 Fix three variable names.
From Todd T. Fries via Jason McIntyre.
2008-10-20 08:37:25 +00:00
apb cd5c0f944d In shell scripts invoked during a build, and in crunchgen, use ${AWK}
instead of plain "awk".  The Makefiles that invoke these scripts
or programs will pass AWK=${HOST_AWK:Q}.
2008-10-19 22:10:04 +00:00
apb f3f295c281 Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.
2008-10-19 22:05:23 +00:00
apb e0bccb6c18 During the tools build (from src/tools/awk/Makefile),
src/tools/Makefile.host changes .CURDIR back and forth between
src/tools/awk and src/usr.bin/awk.  For some unknown reason, including
bsd.info.mk here leads to the obj dir being created at the wrong time,
while .CURDIR is src/usr.bin/awk.  Work around the problem by not
including bsd.info.mk when MKINFO=no.
2008-10-19 19:42:23 +00:00
wiz dc9d42b1fd Spelling and whitespace and punctuation nits. 2008-10-19 17:57:19 +00:00
wiz bcb1e574cb Add missing dot before macro. 2008-10-19 16:59:08 +00:00
apb 3bf9f42fd4 Always make the debugging output unbuffered; in addition, if debugging
is enabled but debugging output is not directed to stdout, then make
stdout line buffered.

Previously, the code to make debug output unbuffered applied only if
debugging to a file, not if debugging to stdout or stderr.  Making
stdout line buffered when debugging was suggested by Steven Bellovin.
2008-10-19 08:30:10 +00:00
apb 56ce706140 Document how "-dF[+]filename" works. 2008-10-18 14:36:40 +00:00
apb 1dd3e3655e Allow optional "+" in "-dF[+]filename" even if the filename is "stdout"
or "stderr".  Previously, the "+" was alowed only for real file names,
but it's easier to write the documentation if the "+" is always allowed.
2008-10-18 14:35:32 +00:00
ginsbach 06ec28991b More or less a complete rewrite. The man page now better matches reality. 2008-10-17 21:11:27 +00:00
ginsbach b4822afab9 WARNS=3 2008-10-17 20:42:47 +00:00
apb 4de4994446 Fix a bug in which which(1) would check only the first element of the
path for all args except the first.  So "which cp vi" found /bin/cp
using the first entry in the path, but failed to find /usr/bin/vi
using the second entry in the path, although "whereis cp vi" worked.
Restoring the ":" was done in the wrong place.

Also fix a bug in which an arg beginning with "/" would cause all
subsequent args to be ignored.  A "break" should have been "continue".
Add comments to all break and continue statements saying what they are
intended to do.

Also add braces around the body of a for loop which contained only one
multi-line statement.
2008-10-17 10:53:26 +00:00
dholland 3b398d5c25 Adjust previous; apb@ points out that _PATH_TMP is provided by compat_defs.h;
thus, this shouldn't need a paranoid fallback definition.
And, use _PATH_TMP also in the second place that was using a hardwired "/tmp".
2008-10-16 05:41:13 +00:00
dholland 36c1b19ba1 Fix ridiculously small filename buffer for temporary file and resulting
truncation if $TMPDIR is set; also, fix an error path to not leave the
temporary file behind. From Gao Ya'nan in PR 39746.
While here, use _PATH_TMP instead of a hardwired "/tmp".
2008-10-16 05:35:01 +00:00
dyoung 47db387b04 Do not descend into docs/ unless MKDOC != no. 2008-10-13 18:11:54 +00:00
dholland 96ee89a3c5 Fix wrong memset; PR bin/39733 from Henning Petersen. 2008-10-13 14:00:37 +00:00
dholland 3251535c47 Avoid memory leak in error case. From Gao Ya'nan in PR bin/39721. 2008-10-09 07:18:15 +00:00
lukem a1e399536b WARNS=4 2008-10-08 03:55:18 +00:00
lukem e9415a55f8 use a const struct hash pointer 2008-10-08 03:55:05 +00:00
lukem 9cec53beb4 Explicitly pull in "nbtool_config.h" if available.
Fixes tools/db build, as reported by Matthias Scheler.
2008-10-07 10:03:47 +00:00
lukem 84d42cdace Fail with a non-zero exit code if deleting a non-existant key.
Fixes bug introduced in rev 1.15, and reported in PR 39710 from Juan RP.

Don't display various warnings in delete if -q.
Suggested in PR 39710.

Add some sanity enforcing abort()s.
2008-10-07 01:32:51 +00:00
joerg bd681a4d7e Don't use emalloc and friends directly, but call them consistently
bmake_malloc and friends. Implement them via macros for the native case
and provide fallback implementations otherwise. Avoid polluting the
namespace by not defining enomem globally. Don't bother to provide
strdup and strndup, they were only used for the estrdup and estrndup
comapt code.

This addresses the presence of emalloc in system libraries on A/UX and
resulted strange issues as reported by Timothy E. Larson.
2008-10-06 22:09:21 +00:00
dholland b458f98fad If the parser scrapes up something it thinks is positionally a month, but
is numerically out of range, do something reasonable instead of crashing.
PR bin/39627.
2008-09-30 05:51:41 +00:00
dholland d65073510e Use off_t, not __off_t. 2008-09-30 04:03:37 +00:00
lukem b88214a09b update copyrights 2008-09-30 03:41:53 +00:00
dholland c92bbe4462 Don't accidentally treat "long double" as "long". PR bin/39639. 2008-09-27 20:04:24 +00:00
matt c58ed3675c Add the complex types to the floating point promotion rules. 2008-09-27 02:30:46 +00:00
matt 2ded04cde2 Add a missing label for LCOMPLEX 2008-09-26 23:51:04 +00:00
matt 9364aa71ae Teach lint about long double _Complex (C99) 2008-09-26 22:52:24 +00:00
hubertf 4841b75981 sign over my copyright to TNF 2008-09-22 13:10:25 +00:00
wiz ccc14bc16a Sort options. Uppercase GNU. 2008-09-21 16:46:01 +00:00
joerg d5b2c9a825 Update patch to the version used by DragonFly and derived from OpenBSD.
Major changes are:
- better detection of double applied patches
- rejects remain unified diffs for unified patches
- far less limitations, e.g. patch lines may be arbitrary long

This addresses PR standards/11220 by changing patch -b behavior to be
POSIX compliant. Old behavior can be obtained using --suffix, which
works since NetBSD 1.4. pkgsrc has been adjusted accordingly.
2008-09-19 18:33:34 +00:00
perry 5a047c798a Add a -r flag that is an alias for -E, for compatibility with gnu sed. 2008-09-16 13:32:04 +00:00
christos dcfa7f5149 handle SI_NOINFO 2008-09-12 20:46:42 +00:00
christos a5ae52b986 When returning an unknown code, return the code number not NULL 2008-09-12 20:44:40 +00:00
joerg 8a89a3dc54 Check value range of ULONG and UQUAD values. On 32 bit platforms like
i386 "unsigned long x = 0x800000000UL;" passed lint and gcc complains
(rightfully). Validate quad as well to allow using a potentially larger
type to store the value.
2008-09-10 14:05:00 +00:00
jnemeth 60d26697e2 Updated UK Bank Holidays based on http://en.wikipedia.org/wiki/Bank_holiday
Thanks to perry@ for pointing me to this page.
2008-09-10 01:39:00 +00:00
jnemeth c189d3256b - update all dates that varies (hopefully, they'll be correct for the
first year that NetBSD 5.0 is out)
- add release date of NetBSD 4.0

XXX  There are several UK "Bank Holidays" in calendar.holiday.  Could
     somebody update those and give an indication of when they are, please?
2008-09-09 18:47:19 +00:00
gmcgarry 0e0358051d Cast f_type to signed integer before comparison with negative values. 2008-09-09 00:56:23 +00:00
gmcgarry 507b8fdd96 getline() returns int. Don't cast to unsigned value and compare with -1. 2008-09-09 00:48:28 +00:00
wiz fb73034467 Sort SEE ALSO.
Remove unnecessary Bk/Ek in SYNOPSIS.
2008-09-05 09:05:13 +00:00
lukem b5b5e891d4 crank to WARNS=4 2008-09-05 07:56:07 +00:00
lukem 68089bcfee Add -P pagesize, to tune the btree psize and hash bsize.
Set to 0 to let the system choose (based on st_blksize of the file)
Defaults to 4096.
2008-09-05 07:55:33 +00:00
lukem 0e22f8f32f Support -Th (VIS_HTTPSTYLE) when -U decoding key/value for delete or write 2008-09-05 05:04:40 +00:00
lukem 081a7c3db2 Fix -N so that it sets O_TRUNC in the flags to pass to dbopen(3)
and not the flags used by db(1) to control internal behaviour.
2008-09-05 03:41:35 +00:00
lukem 82ec76f4db Support -Th to enable VIS_HTTPSTYLE.
Expand description of -T so there's less need to consult
both vis(1) and strvis(3) to determine what the characters mean.
2008-09-04 09:54:56 +00:00
drochner 316dc7a8ab Support -the "-A addressformat" flag for od(1), from FreeBSD.
(I found a script which tries to figure out the byteorder of a box
by "od -An | grep", but it is POSIX anyway.)
There is a little behavioural change: The whitespace without any arguments
is like "-to2" now; before it was custom. It's not worse imho.
2008-09-03 16:32:57 +00:00
christos 369f880abf disable completely. 2008-09-02 09:26:55 +00:00
christos fb5e0a80e2 Add docs back the best way we can:
1. Don't add changelog and other implementation specific nvi files because
   this have changed from 1.79 and are probably not relevant in 1.81
2. Put back virecover.
3. Descend regularly to subdirs instead of Makefile hacks
4. Use USD.doc stuff from the 1.81 docs except for vi.ref which has
   unfortunately been converted to texinfo. For that, we preserve
   the original documents because we want to still be able to make
   section 13 (building texinfo is not acceptable because it will not
   have the same look and feel as the rest of the book)
5. Since the texinfo reference is probably better maintained, build
   that too as a texinfo document.
2008-09-02 09:25:39 +00:00
dholland 0a268c3ebf Fix description of %b format. PR 39111 from Paul Goyette. 2008-09-01 09:20:41 +00:00
christos 19656dada9 For now descend into old vi for virecover and doc. Unfortunately the
new vi vi.ref is now texinfo and our makeinfo is too old to deal with it.
2008-08-31 12:09:48 +00:00
christos 0d6bb61e85 nvi is now default 2008-08-31 05:17:31 +00:00
christos 45ee307f3b no more magic.mime 2008-08-30 12:25:41 +00:00
cube baebbcf71a Bump CONFIG_VERSION after the previous fix to main.c. 2008-08-30 02:59:55 +00:00
cube 8e3d873278 In find_declared_option, use the correct hash for file-systems. That way,
information about dependencies are actually processed.
2008-08-30 02:57:42 +00:00
gmcgarry 15631ee3b4 Undefine __PCC__ the same as __GNUC__ inside lint. 2008-08-29 00:44:48 +00:00
gmcgarry 3c9a95916d Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC. 2008-08-29 00:02:21 +00:00
mrg 8cdb9d89bb don't parse $LESS env-var in more_mode. (also, don't parse $LESS twice
in non more_mode.)
2008-08-28 07:20:20 +00:00
gmcgarry 6745125758 Remove old pcc reachover build now that pcc and its libraries are built from
src/external/bsd/pcc.
2008-08-27 12:28:14 +00:00
christos 6677e30757 add the ability to have non widechar build, with USE_WIDECHAR=no
On i386:
vi		308685
nvi.nonwide	296856
nvi.wide	340860
2008-08-27 10:17:49 +00:00
christos 80a5932343 setup _POSIX2_C_BIND per SUSv3, from Andy Shevchenko 2008-08-27 08:56:49 +00:00
christos d430a181cb - don't compile with debugging on
- split the wide regex options in preparation for a non-wide build.
2008-08-27 05:42:54 +00:00
lukem c063e13c21 Repeat after me:
* define NOfoo before .including <bsd.own.mk> or anything else that
   might (indirectly) .include it, not after.
 * defining MKfoo=no isn't what Makefiles are supposed to do
(yes, both mistakes were present :)
2008-08-26 12:15:53 +00:00
lukem 7cf6380198 "-indent" isn't a valid directive to .Bl, and "-offset indent" didn't
seem consistent with other man pages.  Remove it.
2008-08-26 12:12:58 +00:00
wiz 8ff1fd42f2 Correction for previous from dillo: it is a backquote, not a single quote. 2008-08-25 09:36:24 +00:00
wiz affdbfea59 Explicitly mention that it is the single quote character, to unconfuse joerg. 2008-08-23 16:32:50 +00:00
he cef17755f2 Restore the "pages actige" and "pages inactive" value printouts
in "vmstat -s" output when run on the active kernel.

The reason we can't easily provide these values out of a crash
dump, is that these fields are no longer proper members of
struct uvmexp, but rather are estimated by and dependent on
the currently active page replacement policy in the kernel.
2008-08-20 18:51:49 +00:00
reed b63f4fe587 Fix birth year for Meriwether Lewis.
Also add who he is.

(Why does this "birthday" file have deaths in it?)
2008-08-18 15:11:42 +00:00
dholland 81b964b825 Avoid dumping core on bad options. 2008-08-18 02:12:35 +00:00
gmcgarry 38c13341d1 Dont build atf tools with (${MKATF} == no). 2008-08-16 23:59:45 +00:00
wiz 5c6f9cb082 Fix typo in Dd argument. 2008-08-15 21:10:57 +00:00
apb b1dd3534e7 For binary controls, ++ and -- toggle between on and off. 2008-08-15 17:41:29 +00:00
wiz 99f508ab37 Correct spellings.
From comet-berkeley <comet@transbay.net> on FreeBSD PR conf/126199,
and Frantisek Holop.

From Igor Sobrado <sobrado@openbsd.org>.
2008-08-15 13:12:15 +00:00
lukem 4f152bac9e Use AF_INET instead of AF_UNSPEC as the default family if !defined(INET6).
Avoids problem reported by Matthias Scheler <tron@NetBSD.org>.
2008-08-13 04:59:13 +00:00
wiz 6ae5b86a80 Drop trailing whitespace. Use .Dq. 2008-08-10 23:25:50 +00:00
gdt 69bdd817cc Add error checking to use of fputs in creating output file in
temprorary directory.  Previously, fputs was used without checking the
return value, leading to silent truncation when the temporary
filesystem was full (such as can easily happen when migrating to
tmpfs).
2008-08-10 22:36:23 +00:00
cube dda0645b09 Clarify a bit .SUFFIXES and .IMPSRC. Should fix PR#37822. 2008-08-10 19:47:29 +00:00
skrll 38af541845 WARNS=3 2008-08-03 09:25:05 +00:00
apb 4e07a05b2d Lint predefines the following symbols: "__LINT__", "lint", "__lint", and
"__lint__"; not only "lint" as the man page previously claimed.
2008-08-02 12:05:48 +00:00
christos 2703aa2d0d enable -P 2008-07-31 15:25:18 +00:00
christos 8bba9bd7b0 document P 2008-07-31 15:24:09 +00:00
christos 3457928c2a Add Picky flag; this produces more warnings:
1. long a; int i; a = i * i;
   suggests casting i to long, so that we gain precision in the multiplication.
2. warns about magnitude comparisons in enums.
3. warns about possible sign extension issues when integer types become widened.
2008-07-31 15:21:34 +00:00
joerg f45c989c53 Micro-optimise VarQuote by exploiting that meta characters are normally
rare and skipping over normal characters with strcspn is therefore
faster. Further simplify logic by always setting newline and precompute
the size of the string.

OK christos@
2008-07-31 15:19:19 +00:00
joerg 2ad045d932 Meta characters are a constant, mark it so. 2008-07-31 14:59:39 +00:00
dsl 0109c05abd Fix 'total' output from 'du -sc'.
Simplify the change (adding -d<depth>) that broke it by noting that
-d0 is supposed to be the same as -s.
Calling fts_set(fts,p,FTS_SKIP) here is also pointless.
2008-07-30 22:03:40 +00:00
pooka f00b7c9b12 Solve the fstat-wants-to-look-at-kernel-data-structures in a nicer
way: don't export the fs internals to innocent userspace programs
which just want to mount the file system.
2008-07-29 09:10:09 +00:00
pooka f99d5e92e0 include correct header 2008-07-28 18:05:09 +00:00
dsl d4d6980a4b Add a check for 'continue' inside a 'do ... while (0)' loop.
'continue' has the same effect as 'break' - as that probably isn't
what the writer had in mind!
2008-07-25 18:33:53 +00:00
gmcgarry 8385c9b102 Both legs of a conditional operator must return the same type. 2008-07-25 06:53:43 +00:00
christos ecfa5800d4 PR/39201: Brian Marcotte: "who am i" problem when using ptyfs, because it
strips pts/
2008-07-24 15:35:41 +00:00
christos 8dd0b4459d handle more types. 2008-07-23 11:59:43 +00:00
lukem 93505eb7ec Add back rev 1.83. (hi christos!) 2008-07-23 00:57:53 +00:00
christos 380fafb740 a better attempt on printing dtype_misc 2008-07-22 22:58:04 +00:00
dyoung 6c06f2593a Per discussion on tech-userlevel@, do not compile and install nvi
if MKNVI=no.

The default is MKNVI=yes, so that this amounts to no change for
most users, but the default may change.
2008-07-22 21:07:58 +00:00
lukem f56a1ee83d Add TNF to __COPYRIGHT 2008-07-21 23:11:16 +00:00
lukem 98e5374ccb Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.
2008-07-21 14:19:20 +00:00
veego e234a5ca82 Use BUILDSYMLINKS for the nvi.1 manpage instead of copying the vi.1 file
to nvi.1
Resolves the problem that this file was not removed during a make cleandir.
2008-07-20 20:06:46 +00:00
veego 2be155d689 Add CLEANFILES for krb5-config 2008-07-20 17:53:30 +00:00
drochner 93e3fc3cf6 thanks David, but the initialisation might not work, dependent on
the %union used -- remove the "const" instead (and add a "static"
which desn't seem to hurt)
2008-07-18 14:25:37 +00:00
dsl 6889d181fd groff puts this code through g++ which is rather happier if we give
yyvalzero an initialiser.
2008-07-18 09:57:15 +00:00
drochner f2e25e0cba fix a longstanding bug, from Otto Moerbeck:
if we're reducing a rule that has an empty
right hand side and the yacc stackpointer is pointing at the very
end of the allocated stack, we end up accessing the stack out of
bounds by the implicit $$ = $1 action

do it a bit differently than in Openbsd: avoid pulling in <string.h>
because this is not compatible with wacky namespace games we do in libc
2008-07-17 16:28:14 +00:00
drochner 1f6364ac89 some improvements to digital play mode:
-use AUMODE_PLAY_ALL, from Sergey Svishchev -- this might cause
 stuttering if the write to audio can't keep up, but it avoids pauses
 if the audio buffer drains out on stop/resume
-The timeout for the raw SCSI command to read audio data
 was too small, causing complete failure for me.
-Since the itimer can't do faster than HZ, a too small buffer doesn't
 work. Try to calculate a sensible buffer size.
-While it makes sense to deliver data a bit faster than necessary,
 it should be not that much that the blocking in the signal handler
 hurts interactive response. Allow for 50ms.
-Comment out a sched_yield() in the signal handler - this doesn't
 look right.
This is far from being perfect, but it makes digital mode usable for me.
And for Jeremy C. Reed, the author of PR bin/38493.
2008-07-16 17:26:25 +00:00
kent ecafa994fb * emitrules()
- code cleanup
 - support for extensions of which length is not 1
2008-07-16 11:45:56 +00:00
christos dd8e10b0fe top is now in dist/bsd 2008-07-16 00:43:04 +00:00
wiz b642991c89 Remove trailing whitespace. Fix formatting. Remove superfluous .Pp. 2008-07-15 12:14:13 +00:00
dillo 74b46c9c7a Improve with information provided by Joerg.
There are some formatting errors, someone with mandoc clue please correct.

Also, this man page assumes familiarity with the concepts uesd.
While fully describing these concepts is outside the scope of this
man page, a pointer to such a description should be included.
Someone who knows of such a description, please provide pointers.

Finally, we should have a companion tool to create the peaces needed
to use this tool: set up a CA, create a certificate chain and a
private key/certificate pair for signing.
2008-07-15 11:17:44 +00:00
dholland 16e3bec279 Clarify how one is supposed to use the pointers returned by getutentries()
(the utmpentry.c code), specifically with respect to who owns them and
when to free them. Now they're owned by utmpentry.c, only. Abolish the
freeutentries() function, which was the wrong abstraction; add instead
endutentries(), which flushes out the internally managed memory.

Update callers as necessary. Some (e.g. talkd) had been leaking memory;
others (e.g. syslogd) had been accidentally freeing and reloading utmp
more often than necessary. There are a couple untidy bits in users and
rwhod that someone should look after sometime, maybe.

Fixes PR bin/35131, which was about talkd's memory leak.
2008-07-13 20:07:48 +00:00
christos da732476b6 fix build. 2008-07-13 03:44:41 +00:00
tnozaki 4dbd28ac77 add check wether /var/run/vi.* is regular file or not.
nvi-1.81.6 may create not only recovery file, but
tempoary directory(for db) using this name.
2008-07-10 17:48:04 +00:00
cube 7490b3179c It actually makes no sense to warn on a behaviour that was allowed in
previous versions, when we know we're working on an old file.  That way,
a -current config(1) works on a 4.0 source tree (or older) without
warning.  Pointed out by Christos Zoulas.

XXX We should set up way to note compatibility code we can get rid of
XXX the day we choose to bump CONFIG_MINVERSION.
2008-07-07 16:10:27 +00:00
he dfcadaa439 Fix alignment of fields for "vmstat -m" when KMEMSTATS are available:
o Make "prop dictionary" fit in the "Type" coloumn
 o Ensure that fields don't run into each other (adds a space between fields)
 o Ensure that a Limit of >100000K fits in the field width
2008-06-24 12:47:23 +00:00
njoly 996306675b Output linux ptrace request name for processes under compat linux32
emulation too.
2008-06-18 23:04:52 +00:00
christos 8b0443fdbf From skd: Delete kernel_floor tests. They don't make sense on amd64. 2008-06-17 15:54:45 +00:00
joerg d40cb84328 If key usage validation is requested, ensure that all bits exist.
Check the certificates before printing that the signature is valid.
Improvide wording of error message as suggested by Love.
2008-06-11 16:31:09 +00:00
aymeric 2974b82da3 enable the wcurses-enabled vi as 'nvi', 'nex', and 'nview'.
Will be put in place of the default "non-n" variants when they are stable.
2008-06-10 18:41:47 +00:00
drochner b66156c7c9 Disable use of pseudo-devices defined "defpseudo" with interface
attributes, but provide compatibility for older source trees (according
to the "version" in conf/files and other files.*.
reviewed by cube
2008-06-10 18:11:31 +00:00
cube 53faa53d5a Do proper config(5) version checking after previous changes [hi drochner!].
The rule is, if you change scan.l or gram.y, you bump the config(5)
version.  If you implement the changes under sys/conf/files or affiliate,
you bump the required version in sys/conf/files or in an appropriate place
to minimise annoyance.  If the changes makes new config(1) incompatible
with a previous version of config(5), embed it in config(1) using the
CONFIG_MINVERSION definition along with CONFIG_VERSION.

This has been in the tree for what, 3 years now?  It's even documented...
2008-06-10 14:03:57 +00:00
wiz 3c60159914 Bump date for previous. 2008-06-10 12:56:33 +00:00
drochner 8456b350de Seperate pseudo-devs which don't use device_t et al. (the classical
ones, mostly network pseudo interfaces) and those which use autoconf
to attach instances dynamically, or to attach child devices.
Use a new keyword "defpseudodev" for the latter.
Issue a warning if interface attributes are used with "old" pseudodevs,
but let it work as before for now. This will be removed soon.
approved by cube
2008-06-10 12:35:32 +00:00
aymeric afab0934cb rename ru_SU to ru_RU, as was done in the previous vi 7 years ago 2008-06-05 21:16:15 +00:00
ad e7fbdbbaf0 vmstat -s: report cpu pagealloc hits/misses. 2008-06-04 12:47:47 +00:00
christos 9f1edc04f7 PR/38840: Pierre Pronchery: make crashes while parsing long lines in Makefiles 2008-06-03 13:02:28 +00:00
wiz fbf4777151 Sort options. 2008-06-01 10:25:29 +00:00
christos dc05e9ba0d - rewrite, ansify, lint
- ad the ability to remove all entries at once.
2008-05-31 14:27:39 +00:00
mrg 04f2afbef7 convert the rest of my licenses to 2-clause, extracting myself out
from a group as necessary.

bozohttpd remains, but it will get fixed next time i update it.
2008-05-30 02:29:37 +00:00
mrg c2b95373bf remove clause #3 from my license where there are no other
copyright holders involved.
2008-05-29 14:51:25 +00:00
christos 8567cf00de PR/38756: dominik: make dumps core on invalid makefile 2008-05-26 14:29:55 +00:00
dholland 2b94d6fae5 Error out instead of dumping core if we can't write (one of) the output
files. Fixes PR 36725.
2008-05-26 07:57:29 +00:00
dholland 89a35a0e0a Cosmetic fix: don't exit without completing the progress bar, either on
write error or by receiving SIGPIPE. This avoids leaving the tty in a
mess. Probably addresses PR 30287.
2008-05-26 04:53:11 +00:00
dholland 2dad86041d Document the values returned by close() and fflush(). PR bin/38132. 2008-05-26 02:07:25 +00:00
rmind 5c6ac26f4d Allow in top(1) to specify refresh time in parts of second. Minimal time is
0.5s for user, and 0.1s for superuser.

OK by <christos>.
2008-05-25 21:49:33 +00:00
christos da88a5a499 Coverity CID 5011: #ifdef out unreachable code. 2008-05-24 19:26:14 +00:00
mlelstv 217da3ad75 don't free input buffer repeatedly during non-whitespace hunt 2008-05-24 14:45:46 +00:00
wiz 16cab1f7e5 Formatting improvements. Use standard headers and macros.
Fix typos. Bump date for import.
2008-05-22 12:01:03 +00:00
aymeric 0536e8e6b3 add the reachover infrastructure to build nvi 1.81.6 from src/dist/nvi
XXX docs are left out for the moment
the recover script is also left out, but provided by the older vi

The src/usr.bin/nvi directory is not descended into yet, but is otherwise
functional
2008-05-20 18:04:16 +00:00
atatat 23a609536c The ofmt variable is actually a bit mask (not the character that was
in the format string) so that we can "or" it with the bits in the
formats variable.  This fixes the missing " -> " in front of the real
path (when you use %SR).

Also, the ?: needs another space.
2008-05-16 17:58:33 +00:00
sjg f2c43a72d5 VAR_CMD context is used by conditionals and other purposes, so
actually set VAR_FROM_CMD when appropriate and only skip setting in
VAR_GLOBAL when that flag is set.
2008-05-15 21:05:54 +00:00
sjg db7f6ac403 Disable this for now, VAR_CMD is abused for other purposes... 2008-05-15 18:25:12 +00:00
sjg 20275ee931 Do not set vars in VAR_GLOBAL context, if they have been set on the
command line.
Add a suitable unit-test.
2008-05-14 14:27:02 +00:00
tron 684e3b35bd Add support for "netgroup" database. The output format matches what
Linux produces (because Solaris doesn't support this).
2008-05-14 11:44:09 +00:00
wiz b766901d20 Bump date; punctuation improvements. 2008-05-13 09:33:36 +00:00
joerg 21edf88c1e Add nbsvtool to the build. 2008-05-11 17:58:45 +00:00
joerg 1762b349a6 Add nbsvtool, a simple and small program to create and verify detached
PKCS7 signatures. This was written by lha@ and discussed on
tech-security. I've slightly cleaned up the program and man page.
Contrary to the original version, this doesn't provide a default trust
anchor.
2008-05-11 17:58:09 +00:00
skd 830972dccc Bump version string, as per lukem@. 2008-05-10 01:14:57 +00:00
skd 315d173b9f Add epsv6 and epsv to disable extended passive mode for ipv6 or both ipv4 and ipv6 respectively. This hack is due to our friends a Juniper Networks who break
epsv in ipv6.  Should be fixed in ScreenOS 6.2.X.
2008-05-10 00:05:31 +00:00
christos da16318f7a new openssl 2008-05-09 21:55:30 +00:00
wiz c75bafc005 2-clause my license. 2008-05-08 15:34:21 +00:00
apb 76807ad91e Add a note about the stupid behaviour of "%c" format. 2008-05-06 12:01:35 +00:00
lukem c63ddfd726 Only attempt to el_parse() a command unknown by the default parser
if editing is enabled.
Fixes PR bin/38589
2008-05-05 22:54:11 +00:00
martin 637bc2e71d Move TNF licenses to 2 clause form 2008-05-04 19:43:05 +00:00
christos 26acf9f9d6 don't check for NaN if fpe. 2008-05-03 16:28:56 +00:00
lukem 66176dfdff Rename MKPRIVATELIB to LIBISPRIVATE, to make it clearer that this is
a variable that is used by in-tree Makefiles to control behaviour.
(MKsomevar variables are generally intended to be controlled by the end-user)
2008-05-03 14:48:30 +00:00
martin 84a064c56f Move to 2 clause license 2008-05-02 21:48:18 +00:00
martin cd22f25e6f Move TNF licenses to 2 clause form 2008-05-02 18:11:04 +00:00
christos 00c6e78061 Since we cannot guarantee that all machines do ieee math, or that they have
the proper math setup deal with SIGFPE directly.
2008-05-02 15:10:05 +00:00
christos ee5dd5c8d7 fix const and volatile printing in types. 2008-05-01 21:52:19 +00:00
gdt 36bcd10549 Use -f in cp, so that a previous file in the OBJDIR that's read-only
won't cause a failure.
2008-05-01 20:56:39 +00:00
christos 1347903131 PR/38543: Valery Ushakov: Don't crash printing anonymous unions. XXX: Type
printing is phase2 is buggy since it does not print the qualifiers, but this
is for another day.
2008-05-01 15:39:33 +00:00
jmmv 75562a3ca6 Adjust the build of the ATF tools to use the new paths to the source files
and the new library names.  Per import of atf-0.5.
2008-05-01 15:35:14 +00:00
ginsbach 709ba647ca Remove clause 3 and 4 from TNF licenses 2008-04-30 14:22:14 +00:00
martin 11a6dbe728 Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
martin 3028e483e4 Convert to new 2 clause license 2008-04-29 06:53:00 +00:00
martin ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
christos 17a5e23949 Make sure the current message (dot) is set correctly when changing the
display state, i.e., hidden/exposed tags or threads.  This fixes at
least two problems:

- If the current message is a duplicate that is deleted by the "deldups"
  command, then the dot was invalid making all messages appear to have
  been deleted.  It is now set to the surviving duplicate message.

- If the current message is tagged, the "hidetags" command would leave
  the dot invalid and the dislay would reset it at the top of the
  current screen.  It is now set the the first untagged (and
  not deleted) message after the previous (tagged) dot message.

From Anon Ymous
2008-04-27 22:26:50 +00:00
nakayama 66f1c31a47 grep "-H" option (print the filename for each match) always prints
filenames whether "-h" option (suppress filenames when multiple files
are searched) is speficied or not.

Make zgrep "-h" option actually works with using "-H" option only
when "-h" is not specified.
2008-04-27 09:27:55 +00:00
nakayama c9f8548d80 Our gzip does not have "-o" option.
So replace -o with >, then znew can now work again.
2008-04-27 09:07:13 +00:00
christos cb68ac0e9c print the types involved in an error. 2008-04-27 01:45:04 +00:00
christos acfccdf2a5 reorder a couple of error messages. 2008-04-27 00:13:58 +00:00
christos 3123c3e08f Fix complex double to be '\0' instead of 'u', from Nicolas Joly. 2008-04-26 23:34:55 +00:00
christos 0ab7d1a4f5 same change: double is emitted as '\0' 2008-04-26 20:31:45 +00:00
christos 93cd306a8f make the complex float/double annotated consistently with regular float/double. 2008-04-26 20:11:09 +00:00
christos 67cf388a2b print the types involved in the mismatch. 2008-04-26 19:38:30 +00:00
christos b965d925d7 - simplify logic in getting the filename index.
- fix an allocation botch.
2008-04-26 17:11:52 +00:00
christos fec2a3517e fix "long double" type recognition which broke with the complex changes. 2008-04-26 16:14:23 +00:00
christos e92259d4ee handle lintlibrary output of _Complex types. 2008-04-25 22:22:28 +00:00
christos 69ade9fd6e preliminary _Complex support.
NB: Does not really understand type conversions between complex and doubles.
2008-04-25 22:18:34 +00:00
christos 5f562aba67 handle case C1 ... C2: 2008-04-25 17:18:24 +00:00
thorpej c7ece08d20 net.atalk, not net.at. 2008-04-24 04:09:50 +00:00
thorpej 40edcfedc2 Note which things are not available by KVM, and print a nice message
stating so if someone specifically asks for it.
2008-04-24 04:09:27 +00:00
thorpej 9af7365b12 Make note of a few things no longer available via kvm. 2008-04-24 03:46:25 +00:00
christos a2fe0ba0a1 Fix a header decode mistake that caused mime header lines decoded by
hfield() to be decoded as if they were "unstructured" regardless of
their type.  This resulted from calling mime_decode_hfield() with the
body of the header line, i.e., the portion after the colon header
field name terminator, rather than the full header line.
From Anon Ymous
2008-04-24 01:27:06 +00:00
thorpej 2654d13326 netns is no longer in the tree; completely purge it from netstat(1). 2008-04-23 15:35:37 +00:00
thorpej d2d995427e Make DDP stats per-cpu. While here, bump the counters to 64-bit and
make them available by sysctl.
2008-04-23 15:17:42 +00:00
plunky 6aadc469d7 don't include <cons_pcb.h> as it is unnecessary 2008-04-23 08:26:47 +00:00
thorpej 02f63fe1bf PF_KEY stats for IPSEC and FAST_IPSEC are now per-CPU. 2008-04-23 07:29:47 +00:00
thorpej caf49ea572 Make IPSEC and FAST_IPSEC stats per-cpu. Use <net/net_stats.h> and
netstat_sysctl().
2008-04-23 06:09:04 +00:00
lukem b81e94d02a Use the service name to getaddrinfo() (along with the host name), so that
features such as DNS Service Discovery have a better chance of working.
Suggested by David Young <dyoung>.

Display the service name in various status & error messages.

Don't getservbyname() the :port component of a URL; RFC 3986 says it's
just an unsigned number, not a service name.
2008-04-22 12:59:33 +00:00
dsl 9890613c15 Fix integer random numbers when bounds given in the wrong order. 2008-04-21 20:33:41 +00:00
veego 638a0ef64f Apply the change in rev 1.15 also to the non PAM code. 2008-04-21 17:37:51 +00:00
thorpej 6144958d8f ARP and IGMP stats are now available by sysctl. 2008-04-15 16:06:28 +00:00
thorpej 83dd106948 Make IGMP stats per-cpu. 2008-04-15 16:02:03 +00:00
thorpej 881a947288 Make ARP stats per-cpu. 2008-04-15 15:17:54 +00:00
thorpej 1121526b25 Make CARP status per-cpu. 2008-04-15 06:03:28 +00:00
thorpej 0e499be12d Make pim6 stats per-cpu. 2008-04-15 05:40:15 +00:00
thorpej 16497cdf28 Make raw6 stats per-cpu. 2008-04-15 05:13:37 +00:00
thorpej db098952cf Use ANSI function decls throughout. 2008-04-15 04:50:05 +00:00
thorpej c2da059bc6 Make udp6 stats per-cpu. 2008-04-15 04:43:25 +00:00
dholland 420b514ac8 Remove insane centering code (that broke on strings of length 1) and
replace it with sane centering code. Fixes PR bin/38209, although with
a different patch.
2008-04-13 03:46:30 +00:00
rmind 8d700f664c Fix shared memory code that it could handle > 4GB addresses correctly.
PR/38109, patch (a little bit modified) from Chris Brand.
2008-04-12 20:49:22 +00:00
oster ff5172a732 Fix a problem in 'top' where we could end up with the following sort of
load-average display:

load averages:  1.12,  3.45,  6.7890

as the load on the system drops from long-term triple-digit averages
closer to zero.
2008-04-10 20:41:42 +00:00
thorpej 8fc3977bed Don't even bother initializing the namelist if we're not going to use it. 2008-04-10 17:16:39 +00:00
thorpej f2bff8adc3 Use sysctl to fetch network statistics unless a memory file is specified
on the command line.
2008-04-10 17:14:25 +00:00
tsutsui 23023a98aa Add more libraries required by libgssapi and libkrb5 etc. in NOPIC case. 2008-04-10 15:05:23 +00:00
njoly e3df4dc6c4 s/_POSIX_MESSAGE_PASSING/_SC_MESSAGE_PASSING/ in value. 2008-04-09 18:38:12 +00:00
christos e8853135f2 fixed reversed tests in calendar (from Anon Ymous) 2008-04-09 17:47:53 +00:00
thorpej 3f466bce48 Change IPv6 stats from a structure to an array of uint64_t's.
Note: This is ABI-compatible with the old ip6stat structure; old netstat
binaries will continue to work properly.
2008-04-08 23:37:43 +00:00
thorpej aa8724ff7b Change ICMP6 stats from a structure to an array of uint64_t's.
Note: This is ABI-compatible with the old icmp6stat structure; old netstat
binaries will continue to work properly.
2008-04-08 15:04:35 +00:00
thorpej f5c68c0b9f Change TCP stats from a structure to an array of uint64_t's.
Note: This is ABI-compatible with the old tcpstat structure; old netstat
binaries will continue to work properly.
2008-04-08 01:03:58 +00:00
thorpej 88d65e9212 Change IP stats from a structure to an array of uint64_t's.
Note: This is ABI-compatible with the old ipstat structure; old netstat
binaries will continue to work properly.
2008-04-07 06:31:27 +00:00
thorpej cca37a84ef Update for ICMP and UDP stats changes. 2008-04-07 05:18:25 +00:00
christos c080a17733 update for 5.0 2008-04-06 23:39:35 +00:00
jnemeth 65c35115a2 fix build problem introduced in 1.79 2008-04-06 21:53:25 +00:00
thorpej 738aabaf82 Change UDP stats from a structure to an array of uint64_t's.
Note: This is ABI-compatible with the old icmpstat structure; old netstat
binaries will continue to work properly.
2008-04-06 20:17:27 +00:00
thorpej 67b7abb1ce Change ICMP stats from a structure to an array of uint64_t's.
Note: This is ABI-compatible with the old icmpstat structure; old netstat
binaries will continue to work properly.
2008-04-06 19:04:48 +00:00
lukem 050e20c6d5 Be consistent about making USE_PAM!=no be exclusive to USE_SKEY!=no. 2008-04-06 09:54:37 +00:00
christos 5f256bd3f7 Style cleanups from Anon Ymous 2008-04-05 16:26:57 +00:00
christos 327d0b0912 call setprogname(), from Anon Ymous 2008-04-05 15:59:39 +00:00
lukem 654f9595de Default for -n is 100 not 99. 2008-04-05 04:02:06 +00:00
christos eaa1a34779 handle NULL better. 2008-04-04 21:15:30 +00:00
christos 03829a56bb elementary handling for different types of DTYPE_FOO.
XXX: DTYPE_CRYPTO is unused.
XXX: should we change fd_clone() to pass a DTYPE_FOO?
2008-04-04 21:14:08 +00:00
christos 6238528d0f catch up with struct filedesc changes. 2008-04-04 18:27:00 +00:00
sjg 98deadff04 If the name passed to Var_Exists contains '$' run it through Var_Subst. 2008-03-31 00:12:21 +00:00
dholland e93a5674cc Add a little const. 2008-03-30 22:28:41 +00:00
lukem 73d8c4238e Add support for PAM when using -p, via USE_PAM!=no.
Fix non-root S/key support with USE_SKEY!=no (which is exclusive to
USE_PAM!=no); discovered whilst testing the "old" behaviour.
2008-03-30 15:30:15 +00:00
christos 56fd57d26f detect more errors from printf/malloc. 2008-03-28 18:05:39 +00:00
mlelstv 2d66ab6e51 kerberos includes are installed in krb5 subdirectory 2008-03-27 22:01:56 +00:00
lukem 3e2ac0a370 Use SCRIPTS not PROG.
Noted by adam@albedo.art.pl
2008-03-27 12:12:40 +00:00
skrll 280a563bc4 Typo. 2008-03-26 14:41:00 +00:00
yamt f722be6c16 include Makefile.inc for BINDIR. 2008-03-25 00:30:11 +00:00
he 7fa93d44f6 Please repeat after me: I shall not define _KERNEL before including
<sys/types.h> in user-land programs.  Doing so causes build problems
for lots of our ports due to differences in how <sys/bswap.h> ends up
defining the swap functions/macros.
2008-03-23 23:01:21 +00:00
christos e82b090f18 little cleanups. 2008-03-23 18:53:51 +00:00
mlelstv d59e5a49dd fix Version to 1.1 2008-03-23 08:24:18 +00:00
yamt d92af407ba call setlocale so that nl_langinfo makes sense. 2008-03-22 10:30:21 +00:00
mlelstv d5be9e9c1d Import Heimdal-1.1
more files
2008-03-22 09:39:22 +00:00
mlelstv 2af0cb41eb Import Heimdal-1.1
Files missing from first commit.
2008-03-22 09:24:06 +00:00
mlelstv b0f88a0388 Import Heimdal-1.1 2008-03-22 08:36:48 +00:00
ad 5456139476 Catch up with recent file descriptor changes. 2008-03-22 02:39:06 +00:00
tnozaki 0b9f4942b6 allow SUSv3 syntax.
if from/to code is ommitted, auto-guess'ed from current locale.
2008-03-20 11:35:44 +00:00
joerg e1032da53f Don't skip ioctls with a digit in the name.
Add a number of conflicting entries.
Add some entries from the IPv6 stack where the used structure is not
exported to userland.
2008-03-11 20:39:57 +00:00
christos 45be95b786 add month names, from FreeBSD via anon ymous 2008-03-11 01:10:12 +00:00
christos 775ae7cec2 - add months + years in the language
- fix daylight savings bogus code
From FreeBSD via Anon Ymous
2008-03-11 01:04:18 +00:00
dholland 46020b9298 MKMAN does not belong in source makefiles; use NOMAN. 2008-03-10 01:08:05 +00:00
dholland e171ff8493 Add missing GROUP heading in example. From PR bin/38205 from Aleksej
Saushev. Also change the example to use echo instead of printf, so it
continues to fit in 80 columns in the source.

Bump date.
2008-03-09 18:18:42 +00:00
christos bb0b4504cd PR/38207: Aleksej Saushev: fmt reports non-existing files erroneously 2008-03-09 17:26:37 +00:00
dholland d06b9ed56d Amplify comments from the previous commit. If xtos misread what was
going on, they can't have been clear enough. (And if xtos misread it,
so will anyone else passing by, and then someone will "fix" it...)

Hopefully this will help. Maybe it should be changed to use memcpy
instead of strncpy after all.
2008-03-08 22:41:03 +00:00
dholland 9cf185a523 Remove reflexive cargo-cult-style null-termination after strncpy; it is
neither needed nor particularly desirable. Add comments to explain what's
going on, and arrange to fail the build if the sizes of things get out
of whack.
Resolves PR bin/38201 from Chris Spiegel.
2008-03-08 22:29:26 +00:00
christos f3e1b062a3 indentation police. 2008-03-08 19:49:08 +00:00
christos 6f6f89d28a pass lint, from anon ymous 2008-03-08 15:48:27 +00:00
christos a8a21bf00e lint patches from Anon-Ymous 2008-03-08 03:35:53 +00:00