Commit Graph

12211 Commits

Author SHA1 Message Date
christos
4b1752e245 undo previous; mail never expanded $ variables in folder. 2013-03-09 19:43:07 +00:00
christos
b209824667 since we are calling realpath() earlier now, we need to expand the name
of the folder in case it contained variables like $HOME.
2013-03-06 20:49:20 +00:00
yamt
e9b3c9231f use more appropriate types
remove unnecessary casts
2013-03-06 11:44:11 +00:00
christos
ed82ee44b4 Add a .STALE special target that gets invoked when dependency files contain
stail entries.
2013-03-05 22:01:43 +00:00
christos
f5b1598c2a Conditionally include the depend files. 2013-03-05 21:57:47 +00:00
christos
a11ae36917 Keep track of the location where a dependency is defined, so we can report
about it.
2013-03-05 02:04:10 +00:00
christos
dc18bf8e97 add -i and -v 2013-03-05 01:59:56 +00:00
christos
c71dc22c13 obey constcond to !constcond 2013-03-02 21:25:12 +00:00
wiz
60accb90d6 Sync usage with man page. 2013-03-02 18:37:19 +00:00
christos
89915ce049 PR/47584: Steffen Daoden: Add option to turn off Nagle to rlogin 2013-03-02 16:35:17 +00:00
joerg
e240adbd0b Retire OSI network stack. OK core@ 2013-03-01 18:25:13 +00:00
christos
00db437ab4 update dates, version 2013-02-27 20:12:44 +00:00
christos
9208117e65 PR/45042: Thomas Cort: HAVE_foo for setrlimit(2) and setpgid(2) 2013-02-26 00:45:27 +00:00
dholland
21fc2b5d09 Fix obvious typo. 2013-02-25 01:57:14 +00:00
dholland
b3e2273034 typo in comment 2013-02-25 00:15:09 +00:00
christos
34b0d22580 While it is nice to have the same function do both the upper case and
lower case conversion, it ends up eating 4% of the total time we spend
in make calling tolower() while building libc.
2013-02-24 19:43:37 +00:00
christos
964e4f5784 fix restart from anon ymous 2013-02-23 13:47:36 +00:00
christos
b2db3f8741 use MB_LEN_MAX directly instead of assuming how large it is. 2013-02-20 17:04:45 +00:00
christos
3157acd0cf PR/47577: Steffen "Daode" Nurpmeso: Refinement to previous to keep always
keep track of the folder when it is updated.
2013-02-20 14:38:13 +00:00
ws
da101daed1 It helps to separate arguments from the query.
While still suboptimal (you cannot use all the queries specified for .DE),
at least this way we don't get cryptic error messages for standard queries.
2013-02-20 09:27:52 +00:00
dsl
41b0a909cc When using the response to SYST to decide whether to default to 'binary'
be a lot less specific.
Kyocera printers report "230 Linux" but really don't want text transfers
of pdf files!
2013-02-19 23:29:15 +00:00
christos
b078433469 PR/47577: Steffen "Daode" Nurpmeso: Keep a resolved folder name together
with a display name in order to keep track of current state when the directory
is changed.
2013-02-19 17:43:32 +00:00
christos
47281a37ea rename enum_t to avoid rpc/types.h lossage. 2013-02-17 01:26:19 +00:00
christos
051dc4b05d we need utsname all the time. 2013-02-16 02:39:27 +00:00
christos
3241ce1c02 Set .MAKE.OS to utsname.sysname so we can tell bogus OS's apart early in
the build process.
2013-02-16 02:11:11 +00:00
christos
96689e7ed9 More fixes from J.R. Oldroyd:
- I have added a call to memset() to clear the mbibuff on
  each loop.  Since we're dealing with possibly broken
  multibyte sequences, clearing it will avoid problems with
  a new input sequence possibly being confused by extra
  bytes still there from the last iteration.  wctomb(),
  which is used to fill that buffer, does not append a NUL.

- I have added a (char) cast when copying single bytes into
  the input buffer after a multibyte conversion error.

- In the call to strvisx() the count must be 1, not mbilen
  which can be 2 or 3 etc for a multibyte character.  This
  value is a count of characters - not bytes - to process.
  It even says characters in the man page.  In vis(3) I
  am interpreting this value to mean multibyte characters.
2013-02-15 00:29:44 +00:00
christos
ba2b5111fb PR/47657: Steffen "Daode" Nurpmeso: quoted printable CTE exceeds RFC limit.
- Encapsulated all the content-transfer-encoding stuff in mime_codecs.c
- Replaced calls of strtol(3) with a handcrafted version that allows simple
  error checking by testing the return value. This allows to easily add
  special code to handle illegal QP sequences.
2013-02-14 18:23:45 +00:00
christos
0439e62143 do the encoding character by character instead of failing on encoding mismatch 2013-02-14 14:00:00 +00:00
wiz
6bb4dc54f9 Mark up LC_CTYPE with Ev (didn't I just do this? :) ). 2013-02-14 08:56:59 +00:00
christos
4d0631d87c Keep the built-in support for passwd -k, but don't make the kpasswd link or
install the kpasswd man page since these are provided by heimdal. I ifdef'ed
them so that the code to install them is still with the Makefile.
2013-02-13 23:19:14 +00:00
christos
652899b7c1 don't allow NULL for extra 2013-02-13 22:28:41 +00:00
christos
ff77c2a8d2 Multi-byte docs and fixes for > 2 mblen charsets from J.R. Oldroyd 2013-02-13 22:24:48 +00:00
christos
c10d89b681 handle EILSEQ. 2013-02-13 13:58:44 +00:00
christos
6db0248c67 handle wide chars 2013-02-13 04:52:31 +00:00
christos
29d24e71d6 don't build kpasswd; heimdal does it for us. 2013-02-11 23:11:48 +00:00
christos
ecb1daed9a put back soelim, if MKGROFF is no so that we don't break the sets. 2013-02-11 17:24:21 +00:00
christos
ed97a32994 Don't build and install soelim anymore, because it got overwritten
anyway by the groff one and messed up the mtree unprived sets. If
we want to switch back to ours, we should probably add the extra
flags GNU added first.
2013-02-11 17:14:23 +00:00
jakllsch
556f85a303 "dcl" is not "dc1".
Fixes PR#47547
2013-02-09 02:49:36 +00:00
wiz
6ba5c58891 Add serial commas.
From Bug Hunting.
2013-02-08 12:50:51 +00:00
tron
b981f2c3d3 Don't crash if "flock" is used to lock a file descriptor e.g. via
"flock --nb 8".
2013-02-07 13:57:40 +00:00
christos
ed82bc80db merry belated x-mas. 2013-02-06 16:37:20 +00:00
christos
c5e748dd3a fix broken logic:
- poll can return EINTR, it is not restartable like read/write
- check poll return
- it does not make sense to check readyfd() is nready < 0
- check read return
- always call Job_CatchChildren, it is harmless
- short circuit scanning of the poll array if we got all the ready descriptors
2013-02-06 16:36:01 +00:00
roy
a6aba8c961 Use putp(3) to output our strings.
Fixes PR lib/47532
2013-02-05 11:31:56 +00:00
christos
0b10d223d4 tools build is non-c-99 2013-02-02 15:24:08 +00:00
christos
74d93a2aa9 avoid the long shadow of i 2013-02-02 15:12:25 +00:00
christos
4b11b0a47f Don't wait forever for output from a child job. 2013-02-02 15:11:48 +00:00
wiz
405ebbdc66 Add comma after i.e.
From Bug Hunting.
2013-01-31 23:09:06 +00:00
joerg
a81d4ca32f bdz -> bpz to match the initials of the authors. 2013-01-31 16:32:02 +00:00
wiz
b5609ab012 Add comma after i.e.
From Bug Hunting.
2013-01-29 09:30:11 +00:00
apb
325671c8e2 Support both "-" and "/dev/stdout" as references to standard
output.  Add comments about what POSIX says regarding stdout.
Also add comments about what POSIX says regarding file mode.
---
2013-01-28 19:50:30 +00:00
apb
708b4c121f Document today's changes to uudecode:
* Add "-o outfile" option.  This is required by POSIX.1-2008.
* Recognise "/dev/stdout" as a magic filename, both when embedded in the
  data stream and when specified via "-o".  This is also required by
  POSIX.1-2008.
2013-01-28 16:08:02 +00:00
apb
9a73b122cd * Add "-o outfile" option. This is required by POSIX.1-2008.
* Recognise "/dev/stdout" as a magic filename, both when embedded in the
  data stream and when specified via "-o".  This is also required by
  POSIX.1-2008.
* Reimplement "-p" as an alias for "-o /dev/stdout".

Thanks to Steffen Daode Nurpmeso for drawing my attention to the problems.
2013-01-28 16:06:42 +00:00
matt
755e896fd8 Make mips64e[bl] check more generic. 2013-01-28 14:25:18 +00:00
joerg
438eb8acb3 Use sysctl based code netstat -r. Remove support for post-mortem
analysis.
2013-01-28 13:49:08 +00:00
sjg
bd0907ac07 In SHELL COMMANDS section, provide some clues about different
behavior in jobs vs non-jobs mode.
Move the comment about when shell is skipped to this discussion
from COMPATABILITY.
Remove the incorrect statement about default mode being somehow
neither jobs mode or compat mode (it is compat mode).
2013-01-27 18:52:01 +00:00
christos
54e31e2d33 Check read and write errors to avoid warnings from linux.
XXX: Should we print an error and exit instead?
2013-01-26 15:52:59 +00:00
roy
2429e4f2af If char * > long then print a suitable error when passing a string parameter. 2013-01-25 12:27:13 +00:00
roy
f2a0b2e345 Remove debug accidently commited. 2013-01-25 12:12:30 +00:00
sjg
7a08ea2711 Remove Check_Cwd - it is no longer needed. 2013-01-25 02:01:10 +00:00
christos
792c142038 use O_CLOEXEC, wrap long line. 2013-01-24 17:50:08 +00:00
christos
4cde7eb37e use O_CLOEXEC. 2013-01-24 17:47:58 +00:00
christos
4cbd234f82 fix type or rval. 2013-01-24 17:46:30 +00:00
christos
185af7b6b5 use O_CLOEXEC 2013-01-24 17:46:00 +00:00
roy
a17592c001 Move the strings vs long analysis to a private function, but allow
tput(1) to use it so we can work with string parameters to capabilities.
2013-01-24 10:41:28 +00:00
riastradh
24eac4746d Assert equality, not assignment, in fsplit, and say who guarantees it. 2013-01-23 20:39:46 +00:00
riastradh
04ce843b93 Move assignment out of assertion in cap_mkdb. 2013-01-23 20:27:01 +00:00
msaitoh
302f86804d Fix memory leak in file_matching(). 2013-01-21 03:24:43 +00:00
simonb
044781f677 We only need to be told once about Lee-Jackson Day in Virginia today.
Remove a duplicate for Memorial Day in Michigan while we're here.
2013-01-20 23:52:43 +00:00
apb
dd481ceb43 As from today, numeric fields may begin with an optional
plus or minus sign, not only an optional minus sign.
2013-01-20 21:02:11 +00:00
apb
85744c86ad When parsing numbers, allow a leading '+'. 2013-01-20 10:12:58 +00:00
sjg
2a4896f81a meta_oodate: rename ignoreOODATE to needOODATE.
if target uses ${.OODATE} in its script;
1. we canno compare commands
2. if we decide it is out-of-date .OODATE must not be empty.
   The only option is to set it to .ALLSRC
2013-01-19 04:23:37 +00:00
christos
b856a9b7db - Don't dump core or print random junk on corrupt utmp entries.
- Factor out duplicated code in the process.
- The actual code is now smaller and does error checking, and encoding.
2013-01-18 22:10:31 +00:00
christos
39fb5ccbf5 From: Steffen "Daode" Nurpmeso:
Amend the previous commit to support zone-style RFC 822 dates.
RFC 5322 marks this zone-style as obsolete (obs-zone), but still supports it.
But then, even if you don't wanna support military style single-letter zones,
the UT zone exists and will not be supported by this commit.

The changes here are not strictly correct (since not all possible
single-letter zones are assigned, and only *UT* has two letters),
but which will match all thre possible *obs-zone* forms.
Compiled and tested on a single MBOX.
2013-01-16 15:21:42 +00:00
christos
8fe0b6ad43 PR/47453: Martin Branderburg: Mail (mail, mailx) does not recognize messages
which have RFC 822 format dates.
XXX: Pullup 6
2013-01-15 17:25:42 +00:00
wiz
4bdac686eb Sort options in man page SYNOPSIS and sync usage with it.
Bump date.
2013-01-06 00:19:13 +00:00
christos
fed1477544 PR/47396: Steffen: mail(1) may falsely use quoted-printable for files with
embedded NULs
2013-01-04 01:54:55 +00:00
christos
ec0bd15985 PR/47395: Steffen: mail(1) unnecessarily uses base64 if a CR without a LF is seen 2013-01-04 01:43:59 +00:00
dsl
44483cabc1 Unset HAVE_DEVNAME for tools build.
config only checks for the symbol in libc, we need the correct prototype.
Which is excluded even on NetBSD (_NETBSD_SOURCE isn't defined in stdlib.h).
2013-01-03 13:28:41 +00:00
dsl
cb5a1df091 Only expose the bulk of sys/proc.h and sys/lwp.h if _KERNEL or _KMEMUSER
is defined.
i386 and amd64 build ok.
2013-01-02 19:39:04 +00:00
apb
e5b434bcf4 Really expand the name, not the definition, as the comment says. 2013-01-02 14:05:04 +00:00
dsl
b374a5685e Explicitly include sys/resource.h 2013-01-02 10:36:07 +00:00
apb
25dbb40a11 fix incomplete comment 2013-01-01 12:45:06 +00:00
apb
c6933fca67 Add -l and -L options to units(1). "-l" simply lists all unit
definitions, while "-L" alsoreduces them to depend only on a few
primitive units (such as m, kg, sec).
2013-01-01 11:51:55 +00:00
apb
55f985ffa7 Correctly ignore duplicate definitions. "continue" applies only to the
innermost loop.
2013-01-01 11:44:00 +00:00
christos
0be3040a8f - use warn/err
- if both users are on the same machine, use the loopback address. This
  allows us to use talkd from inetd listening only to the loopback.
2012-12-29 23:44:22 +00:00
jmcneill
733016fbe5 add missing prototype for crc32v 2012-12-29 16:18:08 +00:00
jmcneill
6412da29f7 add support for generating boot.scr scripts with -T script 2012-12-29 15:11:56 +00:00
apb
1d8e06e4e4 Rename "tappit-hen" to "tappithen" because unit names cannot contain
hyphens.  Also change the definition from "3 imperial" (a dimensionless
quantity) to "3 bottle" (2.25 litres).  Wikipedia and several other web
sites say 3 bottles or 2.25 litres, but
<http://www.christies.com/lotfinder/wine/chateau-lafite-rothschild-vintage-1811-1-tappit-hen-per-4992576-details.aspx>
says:

    There seems to be no firm definition of the bottle size referred to
    as "tappit-hen". Believed to be of Scottish origin, a tappit-hen
    can vary, according to which definition one follows, from 1 1/2
    bottles to a tregnum or 3-bottle bottle. It is safest to say that it
    approximates to a magnum.

and ends with:

    1 Tappit-Hen (2.25 liters) per lot
2012-12-28 17:57:46 +00:00
apb
fd02783e45 Allow a number and a unit to be juxtaposed without an intervening space.
Now "litres/100km" works as desired, instead of silently being
treated as "litres/100".
2012-12-28 17:07:03 +00:00
apb
dd9b8fe876 Fix references to undefined units:
* "southamericarand" should be "southafricarand";
* "sidereal day" should be "siderealday";
* "perusol" should be "perunewsol".
2012-12-28 13:45:53 +00:00
apb
5cd73ddec1 Improve the description of the [count] from-unit to-unit arguments. 2012-12-28 13:25:25 +00:00
christos
ccdf6b9113 backwards compatible with netbsd-6. 2012-12-24 22:12:28 +00:00
christos
e7e7a9f768 compile without SSL 2012-12-22 16:58:51 +00:00
christos
057b4f79a5 document https support, mentioning certificates are not validated, and obey
https_proxy.
2012-12-22 16:57:09 +00:00
christos
f9336fd862 PR/47276: Add https support 2012-12-21 18:07:36 +00:00
uwe
dafbf6787b RFC 1866 does not define any "URI encoding". It defines HTML 2.0 that
includes SGML numerical character references (&#nnn;) and entity
references (&foo;) for Added Latin 1 and a subset of Numeric and
Special Graphic.
2012-12-15 02:08:13 +00:00
msaitoh
fd52732c92 Fix memory leak. 2012-12-14 08:15:44 +00:00
pgoyette
0af2848f9e Adjust case of example to match usage (and code) 2012-12-13 21:09:34 +00:00
wiz
8fd1bb626e - Sort option list;
- create separate section, use `.Ex' macro for, and put in the
  correct location exit status information;
- bump date.

From Bug Hunting.
2012-12-12 13:30:06 +00:00
wiz
54082f205d - Remove incorrect use of `.Em' (this is a presentation term and
should not be used for stylistically decorating technical terms);
- remove superfluous `.Pp' macro (fixes mandoc(1) warning).

From Bug Hunting.
2012-12-12 13:28:06 +00:00
joerg
d6b0aba16b Revert, there is a more fundamental issue with util.h. 2012-12-08 23:29:28 +00:00
joerg
52dd0a9cad Use util.h only in the native case. 2012-12-08 21:04:27 +00:00
wiz
102fc9f099 emove duplicate RCS Id. Bump date for previous. 2012-12-06 07:52:12 +00:00
khorben
10836027d1 Added a reference to prenice(1)
ok riz@, mrg@
2012-12-05 23:59:33 +00:00
wiz
c7ee419f37 Bump date for previous. Remove trailing whitespace. 2012-12-03 07:49:21 +00:00
erh
740a124173 Honor the -t option to set the time format when running stat -s.
Document the format used by -s on the man page.
2012-12-02 21:13:07 +00:00
reed
ed8d05eebe install the mkubootimage(1) manual 2012-12-02 02:21:28 +00:00
mbalmer
e3f283b63f Fix misspelling: accommodate is a long enough word to have room for two 'c's
and two 'm's.
2012-12-01 11:41:49 +00:00
wiz
1221f3d89d More markup. 2012-12-01 08:16:25 +00:00
matt
555aa92b83 Change ULONG_MAX to UINT32_MAX 2012-12-01 05:26:16 +00:00
wiz
f6a7e95e09 Sort SYNOPSIS. Remove unnecessary Ns. Punctuation nit. 2012-11-30 08:25:35 +00:00
reed
9557060a47 Add a manual for mkubootimage(1). It was missing.
It had one review on netbsd-docs@.
I didn't add the manual to the Makefile nor distrib set yet --
waiting for more review or improvements first.
2012-11-29 23:23:22 +00:00
mbalmer
d6d52f19c7 Remove an obsolete (and incomprehensible) comment. Discussed with and ok
Roy Marples, Joerg Sonnenberger.
2012-11-29 23:01:16 +00:00
christos
3d7bb1da45 support printing rnd descriptor info 2012-11-25 15:30:28 +00:00
christos
0548a80ae0 return stuff for ksem 2012-11-25 01:05:49 +00:00
christos
c7c1f1a254 - add more debugging.
- in misctrans() we need the file index not the file type.
2012-11-25 00:36:23 +00:00
christos
79abd5ecae PR/47237: Steffen Nurpmeso: Detect more than 2 pad characters and mark as bad. 2012-11-24 21:40:02 +00:00
christos
5c26317391 bufmem is unsigned. 2012-11-23 15:35:57 +00:00
pgoyette
a5f70a7bc1 Fix format string to resolve build break 2012-11-23 06:44:38 +00:00
christos
0f21b86617 use more sysctl 2012-11-23 03:47:36 +00:00
christos
06cfe04c08 fix wrong sysctl 2012-11-23 03:46:35 +00:00
christos
9a3978f67e use more sysctl 2012-11-23 03:37:27 +00:00
christos
abc21e6c39 use sysctl 2012-11-23 03:33:05 +00:00
joerg
ab86636a8f Adding missing new lines in output. 2012-11-23 02:57:57 +00:00
christos
2696762d5f mbufs display was broken since the time we moved to percpu stats. 2012-11-23 01:43:10 +00:00
christos
f17f1ddf91 PR/47222: Manuel Bouyer: Fix syscall display to show something reasonable. 2012-11-23 00:05:18 +00:00
pgoyette
3a4bfc9ee9 Note that 'su -l' does not update utmp and related databases. 2012-11-21 19:30:53 +00:00
christos
1524d388a5 Don't use p_comm since it is only 16 characters long and you can find the
full argv[0]. It is just confusing to have a long command name, that ps
shows as the long command name, and then when you try to kill it using
the full command name as displayed you don't get a match. While there
fix a format nit, and remove the main() declaration.
2012-11-20 22:52:01 +00:00
christos
7e4ddd095e include the variable name in debugging printfs. 2012-11-15 16:42:26 +00:00
chs
ad0d9d79c0 fix operation on core files: cur_drive.io_name is an embedded array
in the structure we already fetched, not a pointer, so don't try to
dereference its address as a kernel address.
2012-11-13 14:09:58 +00:00
mbalmer
022a461990 It's Henry _Morton_ Stanley and Dr. Livingston_e_. Unfortunately. they did
not meet at an airport.
2012-11-11 20:25:19 +00:00
sjg
15b27c94a1 Add a unit-test for .ORDER 2012-11-09 19:08:28 +00:00
sjg
d6f9abca71 Do not stop looking for children, just because one has a .ORDER dependency. 2012-11-09 18:53:05 +00:00
apb
cd19fc2e6a Reorganise, consolidate duplicated information, clarify wording,
attempt to make the man page match the actual behaviour.
2012-11-04 10:10:03 +00:00
christos
2ce34034e0 off-by-one 2012-11-03 13:59:27 +00:00
christos
babae7a2a2 PR/47155: Eitan Adler: add mktemp zero arguments extension 2012-11-03 13:34:08 +00:00
pgoyette
4d44b16846 Fix build break due to signed/unsigned comparison 2012-11-03 04:51:17 +00:00
sjg
484532a973 Allow cond_state[] to grow.
The need is rare, but real.

Reviewed by: christos
2012-11-03 02:25:13 +00:00
wiz
e516fe9873 Separate SEE ALSO entries with comma. 2012-11-03 00:50:04 +00:00
christos
2e03ba1139 - better usage messages
- verbose can be local
- add static
2012-11-02 17:03:16 +00:00
christos
efb508ca11 cross reference flock(1) 2012-11-02 16:47:42 +00:00
christos
4050c976c3 cross reference shlock(1) 2012-11-02 16:32:35 +00:00
christos
12019f2b8a we don't truncate seconds anymore. 2012-11-02 12:47:57 +00:00
christos
9abb2d20bd - use modern timer functions to handler fractional wait
- add a function to print the full command line
- use sigaction so signals interrupt us
2012-11-02 12:47:23 +00:00
wiz
e7aacc4093 Use longer -c description. 2012-11-02 02:07:19 +00:00
wiz
5f8f0b4dee Sort options and their descriptions. Sync usage with man page. 2012-11-02 02:03:18 +00:00
christos
ac881fe51e treat a command without -c like an argument vector
default to exclusive lock
2012-11-02 01:30:46 +00:00
christos
1e7f0e09f1 fix usage 2012-11-01 23:34:44 +00:00
christos
dcdc302c64 Add an flock program inspired by the linux one with the same name. 2012-11-01 23:30:19 +00:00
para
9334d2fb72 fix format string 2012-10-29 16:25:25 +00:00
para
9a22f48db4 get rid of not used uvm_map flag (UVM_MAP_KMAPENT) 2012-10-29 16:00:05 +00:00
isaki
97e2545aef Fix indent and style. no functional changes. 2012-10-28 02:01:15 +00:00
isaki
afae845d58 Avoid SEGV even if audio device has no mixer features.
Fix PR/47003
2012-10-28 01:51:20 +00:00
alnsn
4d1ae9a9af Report jit'ed bpf fildes in fstat. 2012-10-27 22:38:07 +00:00
pgoyette
93d803dab3 Note that -d, -r, and -t are mutually exclusive and only the last one
is used.

While here, alphabetize the other list of r/d/t flags.
2012-10-24 02:46:25 +00:00
wiz
ee9b5a26a5 Add --date and --reference to SYNOPSIS. 2012-10-23 20:44:22 +00:00
pgoyette
8955665a05 Note that -d flag also precludes historical usage. 2012-10-22 22:59:33 +00:00
christos
730c385f2b Recognize --date and --reference like gnu. 2012-10-22 21:51:58 +00:00
christos
de5e815cfc don't check for i and use j. 2012-10-21 22:18:16 +00:00
christos
1db8a1b54a PR/47098: Steffen "Daode" Nurpmeso: mail(1): SEGV with bad globbed file argument 2012-10-21 01:11:23 +00:00
christos
0575918243 consistently use warn 2012-10-21 01:10:22 +00:00
msaitoh
79efc68e80 Add -t flag. 2012-10-19 20:46:06 +00:00
msaitoh
c370a471ff Add note about -l option. Fixes PR#47085 reported by Julian Fagir. 2012-10-19 20:43:31 +00:00
msaitoh
fe467d4df9 Line up total numbers again (for -b case and -X case). 2012-10-19 19:50:19 +00:00
christos
0d87ef641d print major device numbers symbolically from kinfo_drivers 2012-10-19 02:49:52 +00:00
christos
902a40f133 more info for unix sockets. XXX: chroot handling 2012-10-19 02:11:25 +00:00
jnemeth
c8dac53719 note NetBSD 6.0 release 2012-10-17 18:30:33 +00:00
christos
83d4b28a8e PR/47068: unifdef(1) with cpp directive on last line without newline
Remove bogus test; if there is no newline, the state does not change.
2012-10-13 18:26:03 +00:00
njoly
bee4003ac7 Remove a few unneeded Pp macros. 2012-10-13 14:18:16 +00:00
christos
4f166942a1 It is Sprite, not Sprint; pointed out by Todd Miller. 2012-10-08 15:09:48 +00:00
sjg
0afab3de7c Treat empty commands same as jobs mode 2012-10-07 19:17:31 +00:00
dholland
1ebcbda526 Improve previous change with better wording. 2012-10-04 19:28:36 +00:00
wiz
fde0458761 - In the example for `-f', reference a directory that is actually
available in a default installation (/usr/src isn't);
- put together two lines which belong to the same sentence;
- remove a spurious space character;
- remove unneeded consecutive argument for `.Nm' macro.

From Bug Hunting.
2012-10-03 19:35:08 +00:00
abs
070a35df41 "i.e." -> "i.e.," - from Snader_LB on IRC 2012-10-02 14:15:04 +00:00
christos
8e13556964 fix non-numeric address and port printing. 2012-09-26 23:01:04 +00:00
joerg
4edfbdbb40 Simplify the BDZ compression function, making it smaller at the same
time. Fixes a bug where non-minimal hash functions could be created.
Add regression tests for BDZ, including the map output functionality.
2012-09-25 20:53:46 +00:00
pgoyette
000a3dc38f Sort -h option properly (not between -I and -i)
XXX Should the date be updated?
2012-09-25 14:16:27 +00:00
christos
6010f05a86 spelling 2012-09-17 02:10:46 +00:00
sjg
cf6e63e419 Document the fact that lack of shell meta chars in a command
results in direct exec in compat mode.
2012-09-17 01:23:45 +00:00
joerg
ed602fb487 Don't use const foo const as type, one const is enough. 2012-09-13 21:44:49 +00:00
simonb
809c33aadd Use getc instead of fgetc.
This is approximately five times faster for "comm -23 a b" where a and b
are identical 100MB files.
2012-09-05 04:01:23 +00:00
sjg
ea86d17992 Cast sizeof() to int, which is sufficent and consistent with other use
within make.
2012-08-31 07:00:36 +00:00
pgoyette
4e59942717 Cast sizeof() to (ssize_t) to avoid build errors. 2012-08-31 02:59:37 +00:00
christos
fbb3db86f7 Don't support sysctl for the tools version of config. It is too complicated
to do so, and config -x is not used during the build.
2012-08-31 01:23:49 +00:00
wiz
d5a95690ed Add an s. 2012-08-30 22:35:37 +00:00
sjg
aede2a76f4 Add a knob to control whether -V fully expands a plain variable by default.
The default retains the traditional NetBSD behavior, but the knob
can be set so that FreeBSD can retain their expected behavior.
This is a compromise to be sure.

Add a debug flag -dV to override the above, so that regardless of
the knob setting, the raw value of a variable can be easily seen.
2012-08-30 22:09:58 +00:00
sjg
170700dd50 Add a knob to control whether -V fully expands a plain variable by default.
The default retains the traditional NetBSD behavior, but the knob
can be set so that FreeBSD can retain their expected behavior.
This is a compromise to be sure.

Add a debug flag -dV to override the above, so that regardless of
the knob setting, the raw value of a variable can be easily seen.
2012-08-30 21:17:05 +00:00
wiz
686e48a4a3 Use more markup. Wording. 2012-08-30 12:42:41 +00:00
christos
c9ffe47f54 bump date. 2012-08-30 12:32:07 +00:00
christos
8aaed51273 make config -x look at the booted kernel first. 2012-08-30 12:31:25 +00:00
jmmv
cdcce7d462 Add a new "-P prefix" option to mkdep(1).
This option prepends the string given in prefix to every target
filename.  This is useful for programs that have source files in
multiple subdirectories and a single Makefile that references all of
them explicitly (without using the VPATH functionality because there
can be files with the same name in each subdirectory).
2012-08-26 22:37:19 +00:00
wiz
30cf30e561 Make order of words in comment consistent with that within other
comments (helps with search actions).

Patch from Bug Hunting.
2012-08-26 14:26:37 +00:00
wiz
87cd44cb03 - improve spelling;
- improve wording;
- complement list of primaries that prevent `-print' from being
  used implicitly;
- bump date.

Patch from Bug Hunting.
2012-08-26 14:26:07 +00:00
wiz
5559f4329b - synchronize `usage' message with man page.
Patch from Bug Hunting.
2012-08-26 14:14:16 +00:00
wiz
c33cd716b3 - improve punctuation;
- improve wording (explicitly mention the name of the optional
  additional arguments within the text, using macros as well);
- create separate section, and use `.Ex' macro, for exit status
  information;
- bump date.

Patch from Bug Hunting.
2012-08-26 14:13:50 +00:00
wiz
fcb39fb954 Various improvements:
- remove redundant mentioning of option names within their description;
- improve (and make consistent) punctuation;
- add missing empty line;
- remove superfluous white space;
- extend `-iname' primary description (copying text from `-name');
- general wording improvements;
- improve macro usage;
- remove double spaces from examples (it's readable well without);
- reference re_format(7) in `SEE ALSO' (as it's mentioned in the
  text several times);
- bump date.

From Bug Hunting.
2012-08-16 13:34:10 +00:00
joerg
9edf9a0457 Remove many HAVE_GCC || HAVE_PCC conditionals as the options also apply
to Clang. Add a few cases of HAVE_LLVM for -fno-strict-aliasing.
2012-08-10 12:10:27 +00:00
christos
2be2cb6bfb exclude programs for MKRUMP = no 2012-08-08 14:13:46 +00:00
christos
7dd78711cb fix bogus test. 2012-08-04 15:50:16 +00:00
ginsbach
fc9b30fdd2 - Fix optional argument options (e, i, n, s) in SYNOPSIS and DESCRIPTION
+ First three take two optional arguments
  + All require no space between option and optional argument(s)
  + Make sure that -e and -i similarly describe optional [char] and [gap]
2012-08-01 02:36:17 +00:00
ginsbach
9b02928106 Minor tweaks to usage:
- Sort options to match pr(1) SYNOPSIS (suggested by wiz)
- Add missing -T timefmt option
2012-08-01 02:27:48 +00:00
wiz
f5baaa3a80 Fix error in SYNOPSIS, sort. 2012-07-27 20:49:48 +00:00
wiz
8a3946005d Mention option arguments in DESCRIPTION. 2012-07-27 18:34:35 +00:00
wiz
e9890e4637 New sentence, new line.
Use Aq or Ao/Ac instead of \*[Lt] \*[Gt].
Remove duplicate RCS Id.
2012-07-27 18:28:53 +00:00
christos
9c7d3306a7 add an option to parse human dates. 2012-07-25 01:23:46 +00:00
ginsbach
aa013a1b5e - Fix PR 19468 by adding -f and -p options to pr(1).
Changes adapted from patch by Ryan Younce and FreeBSD.  The provided
  patch was not used directly as the changes didn't mimic the System V
  origins of these options.  System V pr(1) does not pause for empty files.
  These changes follow that precedent.

- Improve man page description of the -i option.
2012-07-24 02:13:04 +00:00
njoly
d8b2422bad mremap(2) return an pointer just like mmap(2). 2012-07-17 14:39:08 +00:00
he
a2cf252b51 Undo the non-sharing of the "toplevel" jmp_buf between main.c and tftp.c,
so that we don't get a core dump if a transfer time-out is experienced.
Also, get rid of an extranous newline printed in the case of time-out.
2012-07-16 09:20:26 +00:00
abs
2a4ad09fef racd *should* be ejectable. Kernel side to come 2012-07-14 20:41:27 +00:00
wiz
b5d2b90f6c Improve wording, fix typo, bump date.
From Bug Hunting.
2012-07-08 22:48:32 +00:00
matt
9a1cb11528 Make sure stuff using Obj_Entry is compiled correctly for ELF32 or ELF64. 2012-07-08 00:53:44 +00:00
wiz
471b14b657 - Even if it may be obvious, actually explain what ``{}'' means
with ``-exec ... {} +'';
- make wording more consistent;
- bump date.

From Bug Hunting.
2012-07-07 20:45:09 +00:00
wiz
14716e14b6 Bug Hunting:
improve wording
2012-07-06 14:10:06 +00:00
wiz
4ac276bf48 From Bug Hunting:
- de-capitalize ``usage'' in `usage' message;
- synchronize `usage' message with man pages.
2012-07-06 09:06:43 +00:00
wiz
06bcaf248a From Bug Hunting:
- correct / improve macro usage;
- (re-)add an actual description in `DESCRIPTION' section;
- synchronize argument name to `-j' option;
- improve wording;
- bump date.
2012-07-06 09:05:26 +00:00
wiz
f6de61aefa From Bug Hunting:
- sort options in `SYNOPSIS' and `DESCRIPTION' sections;
- correct / improve macro usage;
- synchronize argument name to `-s' option;
- improve punctuation / wording;
- augment `SEE ALSO' section;
- bump date.

While here:
Use Sq for single characters instead of Dq.
Use Aq instead of \*[Lt]...\*[Gt].
Mark up NULL with Dv.
2012-07-06 09:03:34 +00:00
is
706521afb9 As discussed on tech-net@: Don't display expected EHOSTUNREACH for all but
the last connect attempts in terse mode.
2012-07-04 06:09:37 +00:00
sjg
645c5e28e0 An X!= command, can cause Shell_Init() to be called before Job_ParseShell().
Job_ParseShell() should call Shell_Init() again if needed
to ensure shellPath is correct.
2012-07-03 21:03:40 +00:00
christos
cc70084500 add -w as an alias to -m 2012-06-30 21:31:15 +00:00
jdf
6e4b17c46b Small fix: Changed 'Nm .' to 'Nm' (introduced by me before). 2012-06-27 22:57:27 +00:00
jdf
ebac77ef57 Various formatting changes:
* Remove superfluous Pp macro (fixes mandoc(1) warning)
 * use Xr macro instead of Nm where appropriate
 * escape punctuation (so Ic actually 'sees' it) (fixed mandoc(1) warning)
 * remove redundant argument to successive Nm macros
 * remove double spaces

Patch supplied by Bug Hunting.
2012-06-27 22:31:26 +00:00
riastradh
9a313cc58d Clean up #includes in progress(1).
Sort them, omit needless ones, and add omitted needful ones.

Omissions revealed by pilfering the code and trying to build it on
Mac OS X.  We ought to have a better way to reveal these omissions...
2012-06-27 22:07:36 +00:00
sjg
7f9f018fd1 gcc 4.2 doesn't like externs inside functions 2012-06-27 17:22:58 +00:00
riastradh
360ba4cb54 Omit outdated cryptographic claims as noted in PR 44160.
Interested readers can follow the references or read Wikipedia; this
is the wrong place to explain cryptographic hash functions and give
security advice.
2012-06-25 02:32:12 +00:00
christos
d28b45a4f8 better to print (null) than core-dump 2012-06-20 18:50:11 +00:00
wiz
28acebf1eb Improve wording and macro usage; bump date.
From Bug Hunting.
2012-06-20 17:55:06 +00:00
wiz
2414f9206a - remove trailing white space;
- synchronize argument name to `-d' in `usage' line with man page.

From Bug Hunting.
2012-06-20 17:53:39 +00:00
wiz
0f816dd2e2 cut.1:
- bump date;
- synchronize argument name to `-d' (prefer ``string'' above
  ``delim'' since it's not just a single character that can be
  given (even though only one, being the first one, is actually
  used));
- improve wording;
- use macro for `EXIT STATUS' section.

From Bug Hunting.
2012-06-20 17:53:19 +00:00
sjg
e47157f5d2 Do not include make_malloc.h or declare progname,
both are already done in make.h
2012-06-20 17:46:28 +00:00
wiz
f602473a1a - Use more consistent wording;
- create separate section, and use `.Ex' macro, for exit status
  information.

From patch by Bug Hunting.

Bump date.
2012-06-20 09:56:18 +00:00
sjg
d912c0b39e Add unit-tests for .for 2012-06-19 23:25:53 +00:00
manu
f8e3cc05a1 Fix off-by-one in hexdump display (getextattr -x), which displayed a
trailing garbage byte.
2012-06-17 08:09:29 +00:00
christos
e11304f45e PR/46608: Jim Bernard: Add xz conversion "X" 2012-06-17 03:52:32 +00:00
joerg
b1e1b1d4c2 Replace __dead, __unused and the various printf format attributes
with versions prefixed by MAKE_ATTR_* to avoid modifying the
implementation namespace. Make sure they are available in all places
using nonints.h to fix bootstrap on Linux.
2012-06-12 19:21:50 +00:00
christos
a7879b44e9 make sure that signal handlers are always initialized. 2012-06-12 19:03:26 +00:00
wiz
8e7413b140 Declare enomem __dead for clang. 2012-06-10 21:44:12 +00:00
wiz
459b76f867 Remove a __dead for an undead function (clang errors out otherwise). 2012-06-10 21:44:01 +00:00
dholland
089467b866 Fix description of -o option. Noted by Snader_LB on freenode. 2012-06-10 17:45:59 +00:00
wiz
82200bc92c Consistenly mention columns and fields. From Bug Hunting in PR 44747. 2012-06-09 19:23:14 +00:00
wiz
59a4ab1af9 Add -b to short error messages. Fix typo. From Bug Hunting in PR 44747. 2012-06-09 19:22:47 +00:00
martin
fcbf6c86a2 If we build several kernel (variants) within the same build directory, bad
things may happen in a parallel build - especially with rules like the
automatic size adjustment for SYMTAB_SPACE, see long standing failure of
evbarm on the build cluster.
Easy fix: .WAIT for each config to complete, before going on with the
next. Low impact, only minor loss of paralellism, and only in cases where
needed.
2012-06-08 08:56:45 +00:00
sjg
d8f6b5d3a6 kill(2) is more appropriate and more portable than raise(3) 2012-06-05 17:31:04 +00:00
sjg
b711398c86 Re-raising SIGINT etc, after running .INTERRUPT
provides much more reliable shutdown on some systems.
Based on CompatInterrupt in FreeBSD's make.
2012-06-05 06:11:51 +00:00
sjg
5408a8dad9 Fix findenv() to fully match name 2012-06-04 22:45:05 +00:00
sjg
8d38755103 Var_UnExport() and setenv() can both realloc environ.
Use a common variable (savedEnv) to track that to avoid wasting memory.
Also, if providing setenv and unsetenv, do getenv too to ensure a consistent
set.
2012-06-04 20:34:20 +00:00
joerg
fc67b0cd11 Switch terminfo(3) to cdb(5). 2012-06-03 23:19:09 +00:00
sjg
81320ffe8e Handle "quoted strings" as items in a .for list 2012-06-03 04:29:40 +00:00
joerg
68a65e1a02 Fix a number of memory leaks. Keep final loop of the cleanup in tic(1)
under #ifdef __VALGRIND__ though.
2012-06-01 12:08:40 +00:00
joerg
84d44fb884 The output function is only order preserving for chm and chm3, so
correct that part of the documentation and also mention what the default
algorithm is.
2012-05-31 21:36:06 +00:00
joerg
7b1c18b0f7 Maintain nalias and nterm on the fly. 2012-05-31 21:01:06 +00:00