Commit Graph

10161 Commits

Author SHA1 Message Date
dsl feafbbe6e5 Convert ADDWORD() to do { ... } while (0) 2008-11-22 17:34:56 +00:00
dsl 66da2b26ce Convert Buf_AddByte(0 to a more normal do { ... } while (0) form. 2008-11-22 17:33:57 +00:00
ginsbach 66acf4d33d Add newgrp(1) to SEE ALSO cross-reference list. 2008-11-19 17:56:53 +00:00
wiz cc64f2edab Use Nm instead of Xr to itself, remove reference to uucp(1), fix casing
of Kerberos.
2008-11-18 15:52:57 +00:00
reed 3e3e695194 Reference login.conf. 2008-11-18 13:02:51 +00:00
dholland 3c6470e287 WARNS=4 2008-11-16 07:06:37 +00:00
dholland 590d8d204a One leftover trailing whitespace, caused by a merge botch at my end. 2008-11-16 05:41:39 +00:00
dholland cd4574a9b3 Further cleanup. Merge a bit of duplicate code. Don't roll private copies
of str(l)cpy or rename; check said rename for failure. Set WARNS=4.
2008-11-16 05:30:24 +00:00
dholland 0f92d2c5da Avoid running off the end of the name buffer when extracting a filename
from the program text.
2008-11-16 05:20:11 +00:00
dholland 671fb7b07e Clean up argument handling.
- Use getopt instead of rolling one's own.
 - Don't copy the -e arguments unnecessarily, and specifically, don't
   copy them into a small static buffer and zoom off the end.
 - Don't zoom off the end of the array of -e option files, either.
2008-11-16 05:11:35 +00:00
dholland 7327b827a5 C has a neat feature called a 'struct'. Use one, instead of
FORTRAN-style parallel arrays.
2008-11-16 04:51:27 +00:00
dholland d790f1327a Index arrays according to customary C idioms, instead of a weird mix of
C and FORTRAN thinking.
2008-11-16 04:39:34 +00:00
dholland ccc5f71f77 Avoid using side-effecting macros. 2008-11-16 04:27:31 +00:00
dholland d07cca5113 Scratch variables shouldn't be global. 2008-11-16 04:21:24 +00:00
dholland 8b10ce7005 KNF, formatting, and whitespace cleanup. No functional change intended. 2008-11-16 04:13:45 +00:00
dholland 2286fbccd9 Sprinkle static and const. Use NULL and '\0', not 0, where appropriate.
Fix typo in comment.
2008-11-16 03:52:24 +00:00
dholland 69a42408ff Use <stdbool.h> and <err.h>. 2008-11-16 03:23:12 +00:00
dholland c1f404eaad Ansify and de-__P(). 2008-11-16 03:13:39 +00:00
christos d5e5a2c9eb PR/39912: Jukka Salmi: Logger eats the first word because of incorrect
syslogp invocation.
2008-11-13 15:51:07 +00:00
apb 39e209a580 intFile.fd should be initialised to -1, not 0. 2008-11-12 15:56:57 +00:00
christos f7d6936d24 avoid using c99 struct named initializers because this is a host tool and
needs to be compiled by a host compiler which might not be c99 compliant.
2008-11-12 15:45:32 +00:00
ad 0efea177e3 Remove LKMs and switch to the module framework, pass 1.
Proposed on tech-kern@.
2008-11-12 12:35:50 +00:00
mrg 9c8df5ee67 - retire MKXORG from public use
- introduce X11FLAVOUR to choose src/x11 vs src/external/mit/xorg
  for the X11 to build if MKX11=yes is set.  it takes the values
  of either Xorg or XFree86.
- default to Xorg on alpha, i386, macppc, shark, sparc and sparc64
- remove MKXORG_WITH_XSRC_XSERVER, unused and never useful
2008-11-09 23:02:28 +00:00
christos 079a9a0235 Make -R accept numeric arguments so one can say -R '\0' to be used in
pipelines like find . -print0 | sort -R '\0'. From Anon Ymous
2008-11-08 17:11:56 +00:00
wiz a6a4761c6a Drop trailing space. 2008-11-07 16:49:45 +00:00
reed a798b8c1a1 Be consistent: document the birthtime field of struct stat for
the "B" field specifier.
2008-11-07 15:33:31 +00:00
ginsbach ab35d36c9e Change for standards compliance:
- Store an empty string in the catalog when the message text is empty an
  a <blank> (space or tab) field separator is present.

Standards:  The Open Group Base Specifications Issue 6
            IEEE Std 1003.1, 2004 Edition
2008-11-04 03:14:46 +00:00
wiz b325f1d9d7 Sort options, add RETURN VALUES section. 2008-11-01 14:03:12 +00:00
christos 3f3059c920 fix compilation issue 2008-10-31 20:53:46 +00:00
christos 79988dffe4 Don't use putenv() because it is not portable. 2008-10-31 17:42:14 +00:00
christos 77d245ec5c undo accidental commit. 2008-10-31 16:34:58 +00:00
christos 1c6aec2060 Import syslogd SoC project by Martin Schuette:
- new syslog protocol api syslogp(3) that supports structured data
	  and draft-rfc timestamps
	- reliable tcp connections with queueing
	- encrypted connections
2008-10-31 16:12:18 +00:00
mrg acc852a217 more MKSHARE == no fixes:
- move installation of atf pkg-config files out of share/atf/
- don't install spell or ching share files
- update some directory entries to not have 'share' tag

now my MKLINT=no MKSHARE=no MKPROFILE=no builds work again.
2008-10-30 21:37:55 +00:00
wiz 8d19dcbd2b Whitespace. 2008-10-30 08:44:18 +00:00
sjg 9bb1d7525f Update the modification date 2008-10-30 00:40:42 +00:00
sjg b3afe166ae Add some examples of how to use :? 2008-10-29 23:30:08 +00:00
christos 7bd2da510f bye old vi! 2008-10-29 16:49:33 +00:00
sjg 16d084a837 If Parse_Error is called after curFile is invalid, set it to a dummy
to avoid seg-fault.  Also the NULL filename will cause ParseVErrorInternal
to skip trying to report file and line number info.

If CondToken is called outside the context of a .if etc, variables in
the expression being parsed will already be expanded, so allow for
an unqouted number to jump us back into the compare logic.
This allows ${${SomeNumber:U42} > 0:?True:False} to work anywhere.

Job_Finish should process postCommands if it has commands or children.
2008-10-29 15:37:08 +00:00
ahoka 4a0fb013e5 Increase last_space only after we wrote the line, so we
don't end up with a trailing space at the end of almost every line.
2008-10-29 01:31:09 +00:00
christos f0fa6bf8e1 pass lint. 2008-10-28 14:01:46 +00:00
hubertf 11236c9878 Make sshd find the xauth program, even with the new /usr/X11R7.
OK'd by christos@
2008-10-27 08:27:04 +00:00
apb f46c1de7cb Use ${TOOL_SED} instead if plain sed in Makefiles. 2008-10-25 22:27:34 +00:00
apb 89799ead73 Pass SED=${TOOL_SED:Q} in the environment to scripts run during the build. 2008-10-25 22:23:55 +00:00
apb 125b7c8cbb In shell scripts run during the build, add a SED variable, defaulting
to "sed".  SED=${TOOL_SED:Q} should be passed in the environment to
override this.
2008-10-25 22:18:15 +00:00
apb 675ed64522 Send debugging output to stderr by default, not to stderr.
If you really want debugging to stdout, specify "-dFstdout"
in MAKEFLAGS or on the command line.

Discussed in tech-userlevel.
2008-10-22 15:04:49 +00:00
matt 5331076d97 NFS hash tables no longer exist. 2008-10-22 11:36:58 +00:00
apb 296f525d9f When building as a host tool, do not add ${LIBM} to DPADD, but do add
"-lm" to LDADD as usual.  We do assume that the host system has a -lm
library, but we can't assume that the library is in /usr/lib/libm.a.
2008-10-20 18:16:54 +00:00
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