Tim J. Robbins
f9dd3a8b6f
Add cross-reference to fmt(1) and a fairly standard ENVIRONMENT section.
2004-08-02 11:15:01 +00:00
Tim J. Robbins
15cdd785f8
Cross-reference fold(1).
2004-08-02 11:12:13 +00:00
Tim J. Robbins
28d92b747e
Add support for multibyte characters.
2004-08-02 11:10:20 +00:00
Tim J. Robbins
f8fb286a84
Document incorrect handling of multibyte characters with -I and -J options.
2004-08-02 03:07:42 +00:00
Garance A Drosehn
a444635406
This commit was generated by cvs2svn to compensate for changes in r132977,
...
which included commits to RCS files with non-trunk default branches.
2004-08-01 20:45:54 +00:00
Garance A Drosehn
a9c7144e7a
Import of a BSD-licensed version of `patch', which will eventually
...
replace the version we currently have in src/gnu/usr.bin/patch/.
Among other things, this version includes a --posix option for strict
POSIX conformance.
This version is the current source from OpenBSD as of today. It is
their 3.5-release, plus a few updates to patch.c and pch.c that they
made about three weeks ago.
2004-08-01 20:45:54 +00:00
Tim Kientzle
1c962ead2f
Correct the explanation of the -X option.
...
Thanks to: Pav Lucistnik
2004-08-01 20:09:08 +00:00
Alfred Perlstein
dcd6f4bd48
Comment some of the 'io' functions.
2004-08-01 09:19:41 +00:00
Tim J. Robbins
70cd856a0c
Check for read errors.
2004-07-31 06:22:57 +00:00
Tim J. Robbins
be5c85a71b
Add standard DIAGNOSTICS section.
2004-07-31 06:22:01 +00:00
Tim J. Robbins
243041573f
Add support for multibyte characters, loosely based on Bruno Haible's
...
work in the util-linux packages, but with some minor fixes.
2004-07-31 06:19:26 +00:00
Tim J. Robbins
5c14453b7f
Fix some particularly bad style(9) violations.
2004-07-31 04:33:13 +00:00
Tim J. Robbins
be091cf3cc
Check for read errors.
2004-07-30 10:58:06 +00:00
Colin Percival
fe6a04858c
Document the behaviour of the "-o file" option when "file" is a directory
...
(downloaded file(s) are created inside the directory).
MFC after: 3 days
2004-07-30 08:43:16 +00:00
Tim Kientzle
92371d176f
Improve portability to FreeBSD 4.
...
Thanks to: Barry Bouwsma
2004-07-30 02:59:58 +00:00
Tim Kientzle
cfdb7dd69b
Fix comment.
...
Thanks to: Johan Karlsson
2004-07-30 02:46:12 +00:00
Tim J. Robbins
752448ce84
Document incorrect handling of multibyte characters.
2004-07-30 00:10:52 +00:00
Alexander Kabaev
9eaa475e3e
Stop the practice of installing external headers into GCC-specific directory.
...
Install FlexLexer.h into /usr/include directly.
2004-07-30 00:08:15 +00:00
Tim J. Robbins
e5afeeb3be
Add support for multibyte characters, based on Bruno Haible's work
...
in the util-linux package.
2004-07-29 22:51:54 +00:00
Maxim Konovalov
79d0f70f09
The signal number has to be less than NSIG strictly.
...
PR: misc/69768
Submitted by: bronek
MFC after: 1 week
2004-07-29 18:36:35 +00:00
Hartmut Brandt
d010007507
Bump the date in .Dd for the recent '+' flag commit.
...
Requested by: ru
2004-07-29 16:54:42 +00:00
Hartmut Brandt
34c9c43931
Implement POSIX's '+' flag for command lines. This flag causes a line
...
to be executed even when -n is given on the command line to make. This is
very handy for calls to submakes.
This is slightly changed from the original patch as obtained from NetBSD.
The NetBSD variant prints lines which have both '+' and '@' when -n
is specified. The commited version always obeys '@'.
Bump MAKE_VERSION so Makefiles can use this conditionally.
PR: standards/66357 (partly)
Submitted by: Mark Baushke <mdb@juniper.net>
Obtained from: NetBSD
2004-07-29 14:29:23 +00:00
Tim J. Robbins
5480f12049
Add support for multibyte characters.
2004-07-29 13:22:56 +00:00
Tim J. Robbins
d10ab05ebd
Add support for multibyte characters. The output is questionable when a
...
character straddles the "start" or "stop" columns, but this should be
quite uncommon.
2004-07-29 09:09:22 +00:00
Tim J. Robbins
a732e584d0
Add a cross-reference to colcrt(1).
2004-07-29 07:41:43 +00:00
Tim J. Robbins
919480b7be
Sort #include directives and remove one duplicate that crept in to the
...
previous commit.
2004-07-29 07:28:26 +00:00
Tim J. Robbins
c3fae7442e
Add support for multibyte characters, loosely based on Bruno Haible's
...
work in the util-linux package.
2004-07-29 07:23:37 +00:00
Tim J. Robbins
e22bb9db9a
Change the 'no terminating ";"' error message to 'no terminating ";" or "+"'
...
since + is also a valid way to terminate -exec.
2004-07-29 03:33:55 +00:00
Tim J. Robbins
cc4165333c
Remove partial support for building this on NetBSD.
2004-07-29 03:29:44 +00:00
Tim J. Robbins
053e1a39a3
Now that fnmatch() supports multibyte characters, find does too; remove
...
entry from BUGS section that said otherwise.
2004-07-29 03:24:30 +00:00
Gleb Smirnoff
77ef8a97cd
Print link level address on vlan interfaces using ether_ntoa(), to make
...
output on bare ethernet and vlan interfaces the same.
PR: bin/69674
Submitted by: Pawel Malachowski <pawmal-posting@freebsd.lublin.pl>
Reviewed by: ru
Approved by: julian (mentor)
MFC after: 1 week
2004-07-28 18:18:47 +00:00
Stefan Farfeleder
14cc87e479
Use the length modifier 'll' instead of 'q' to print long longs.
2004-07-28 16:03:13 +00:00
Alexander Kabaev
e96993d049
Remove local malloc prototypes, which are incorrect and conflict with
...
both GCC builtin and system declared ones.
2004-07-28 07:12:30 +00:00
Alexander Kabaev
e95e2344a8
Do not predeclare __inline functions, this makes no sense and generates
...
a warning with gcc 3.4.x.
2004-07-28 07:10:03 +00:00
Colin Percival
2cb640f6b1
Start new sentence on new line.
...
Pointed out by: simon
2004-07-27 22:17:26 +00:00
Colin Percival
dfef91e977
Add a BUGS entry pointing out that -mindepth and -maxdepth are global
...
options even though they look like primaries. (This is already documented
in the options themselves, but is sufficiently astonishing that I think it
deserves a BUGS entry as well.)
2004-07-27 21:22:14 +00:00
Colin Percival
ad4876008f
Merge the "multibyte not supported" BUG into the pre-existing BUGS
...
section.
Move the HISTORY section to place it before BUGS rather than after BUGS,
in order to minimize the chance of this error being reproduced in the
future. (Both mdoc(7) and 63% of manual pages have these sections listed
in this order.)
2004-07-27 21:13:04 +00:00
Dag-Erling Smørgrav
e9aa05f18c
Don't strip trailing linear whitespace from passwords.
...
MFC after: 2 weeks
2004-07-27 11:34:25 +00:00
Dag-Erling Smørgrav
ebeb3bab5b
Style nits.
2004-07-27 11:30:35 +00:00
Philippe Charnier
bd5de41339
No capital letter after :
2004-07-26 20:24:59 +00:00
Philippe Charnier
6cc6f12231
Add __FBSDID. Replace local variable sin by sockin to not conflict with sin(3).
...
Use warnx() instead of warn() when error message is not of any interest. Add
prototypes.
2004-07-26 20:18:11 +00:00
Philippe Charnier
17373fb9a5
Introduce options list the standard way. Correct style(9) in FILES section.
2004-07-26 19:59:29 +00:00
Philippe Charnier
2a00e8eade
Introduce options list the standard way.
2004-07-26 19:53:44 +00:00
Philippe Charnier
fce2ca94cf
Remove useless .Pp. Typo: gcos -> gecos (as spelled in passwd(5)).
2004-07-26 19:49:29 +00:00
Stefan Farfeleder
f901ebcfb6
Assign the result of getopt() to an int rather than to a char (which is
...
possibly unsigned).
2004-07-26 15:04:57 +00:00
Tim Kientzle
556d6e605e
Add a --version option to bsdtar that prints the versions of
...
both bsdtar and libarchive. Of course, this requires that bsdtar
have a version number. Let's call this 1.00, shall we? ;-)
2004-07-26 03:21:41 +00:00
Andreas Klemm
1292e8a3b6
wrong order, not 10/03 -> 03/10
2004-07-25 08:45:57 +00:00
Tim Kientzle
4f23b47afa
A bunch of style and security fixes (error checking return values, etc),
...
mostly from: Tim J Robbins
2004-07-25 04:15:50 +00:00
Tim Kientzle
8e5c78995e
Of course, I meant POSIX.1-1996, not 1997.
...
Thanks to: Andrey Chernov
2004-07-25 00:31:24 +00:00
Tim Kientzle
62010d3541
A bunch of stuff from Christoph Mellon:
...
* Whitespace fixes
* Check some malloc calls
* Simplify long_help formatting
* Spell "LINUX" -> "linux"
* A few other miscellaneous style improvements
2004-07-24 22:13:44 +00:00
Suleiman Souhlal
98f59c0d12
Add my birthday.
...
Approved by: grehan (mentor)
2004-07-24 15:02:56 +00:00
Tim J. Robbins
e9b497dbf6
Document incorrect handling of multibyte characters.
2004-07-23 06:56:38 +00:00
Tim J. Robbins
26bdc1d12e
Tweak markup of quoted strings and characters: use Dq instead of enclosing
...
strings in ``obsolete quotes''. Use Li and Ql where appropriate.
2004-07-23 06:06:58 +00:00
Tim J. Robbins
0b651019b4
Add a lengthy discussion of why "tr a-z A-Z" and "tr A-Z a-z" are not the
...
right way to perform case-conversion.
2004-07-23 05:44:04 +00:00
Lukas Ertl
6b61c155e6
Make size suffix case insensitive.
...
PR: bin/27604
Submitted by: David Xu <davidx@viasoft.com.cn>
2004-07-22 13:38:10 +00:00
Johan Karlsson
aae01d2439
display.c:
...
- 'savech' is only used if it is set a few lines above where
it is used, initialize it to silence warning.
- 'length' is either -1 or greater than 0, hence it is safe to cast it
to unsigned when comparing it here.
odsyntax.c:
- 'p' is assigned either (*argvp)[0] or (*argvp)[1] which both are
char *. 'num' and 'end' are assigned values based on 'p'.
Hence use char * instead of unsigned char * for these variables.
'&end' as the second argument to strtoll does not need to be casted
to char** any more.
This solves a
'dereferencing type-punned pointer will break strict-aliasing rules'
warning when compiling with -O2.
parse.c:
- 'prec' is only used when sokay == USEPREC and sokay = USEPREC
when 'prec' is assigned. Hence 'prec' is not used uninitialized,
initialize it to silence warning.
- The code involving 'nextpr' is hard to follow, but I belive
'nextpr' will not be used unless it is initialized.
Anyway, IF 'nextpr' is used uninitialized it is better to
get a consistant error (seg fault, when dereferencing a NULL pointer)
than potentially accessing some random memory.
The above changes makes hexdump WARNS=6 clean even when compiled with
-O2. Hence bump WARNS to keep it clean.
Tested by: CFLAGS='-O2 -pipe' make universe
2004-07-22 13:14:42 +00:00
Hartmut Brandt
19a7439edd
Fix handling of comments on .elif lines. The patch given in a followup
...
to the PR failed, because the line skipping function is actually called
from two places in the code to do quite different things (this should
be two functions probably): in a false .if to skip to the next line
beginning with a dot and to collect .for loops. In the seconds case we
should not skip comments, because they are actually harder to handle than
we need for the .if case and should defer this to the main code.
PR: bin/25627
Submitted by: Seth Kingsley (original patch)
2004-07-22 11:12:01 +00:00
Tim Kientzle
ee92911f48
My bad: /dev/sa0, no 'r'
...
Thanks (and many apologies) to: Cristoph Mallon
2004-07-21 06:43:10 +00:00
Mike Silbersack
27eabced44
Slide pipe.h include after the _KERNEL define in preparation for disallowing
...
non-_KERNEL inclusions of pipe.h
2004-07-21 03:07:50 +00:00
Hartmut Brandt
91540c5b62
Improve make's diagnostic of mistmatched .if-.endif. This patch is
...
slightly different from the patch in the PR. The problem is, that
make handles .if clauses inside false .if clauses simply by
counting them - it doesn't put them onto the conditional stack, nor even
parses them so we need an extra line number stack for these ifs.
PR: bin/61257
Submitted by: Mikhail Teterin <mi@aldan.algebra.com>
2004-07-20 07:42:06 +00:00
Tim Kientzle
040d3851d1
Guard against argv[0] being NULL.
...
Thanks to: Tim J Robbins
2004-07-19 14:54:38 +00:00
Hartmut Brandt
e9345b8636
Make it clearer what means 'won't work' for .if string == ${VAR}.
...
Replace the use of '=' in conditionals in the examples
by the more correct '=='.
Clarify the example explaining that .for expansion takes place before
.if handling by showing the correct code instead of saying 'the other
way around'. Change a variable name there so the example is more parseable
to the human reader.
PR: docs/65400
Submitted by: Roman Neuhauser <neuhauser@chello.cz>
2004-07-19 14:42:57 +00:00
Tim J. Robbins
be1e385e24
Avoid passing negative values to tolower() on machines with signed chars.
2004-07-19 12:57:24 +00:00
Tim J. Robbins
159cd5c64f
Sort sections.
2004-07-19 11:21:34 +00:00
Tim J. Robbins
66339977f4
Move exit status information into a DIAGNOSTICS section. Add an ENVIRONMENT
...
section. Re-add a sentence from the BUGS section that went missing in
the previous commit.
2004-07-19 11:18:56 +00:00
Tim J. Robbins
d67148e425
Add support for multibyte characters. While here, fix a longstanding bug in
...
the implementation of the -d option: we were skipping too many characters
when a non-alphanumeric character was encountered.
2004-07-19 11:12:02 +00:00
Tim J. Robbins
479918321d
Point out in the BUGS section that look expects input files to have
...
been sorted with LC_COLLATE=C.
2004-07-19 10:03:38 +00:00
Gleb Smirnoff
ea34f3f697
Today is a good day to add myself here :)
...
Approved by: julian (mentor)
2004-07-19 08:21:17 +00:00
Tim Kientzle
d3ca4b04cb
Fix some misspellings, document the TAPE environment
...
variable and the default tape device.
2004-07-19 05:24:41 +00:00
Stefan Farfeleder
1deda7df19
Don't forget the arguments for -M and -N in the DESCRIPTION section.
2004-07-18 23:05:31 +00:00
Giorgos Keramidas
ebca193729
Remove the dependency of the :C/regexp/replacement/ variable modifier
...
from the :S modifier which follows a bit further below. This way the
reader can read each of these two descriptions without having to jump
back and forth in the manpage.
PR: docs/26943
Submitted by: Alex Kapranoff <alex@kapran.bitmcnit.bryansk.su>
2004-07-18 02:26:30 +00:00
Johan Karlsson
2345c82ea9
Revert WARNS bump until I figure out why this does not work.
2004-07-17 20:10:23 +00:00
Alfred Perlstein
2bae4eb308
Support readlink(2) better. Readlink does not nul terminate the
...
result buffer, so we need to format it ourselves. The problem is
that the length is stored as the return value from readlink, so we
need to pass the return value from our syscall into print_arg.
Motivated by: truss garbage on my screen from reading /etc/malloc.conf.
2004-07-17 19:48:49 +00:00
Alfred Perlstein
d75300bfa5
When reporting reciept of a signal, print the signal's name.
2004-07-17 19:19:36 +00:00
Tim Kientzle
5ebbe2f056
Remove unused user_uname variable.
...
Add range-checking to argument of -b.
Thanks to: Tim J Robbins
2004-07-17 18:21:00 +00:00
Tim Kientzle
16847ae6c0
Make bsdtar the default system tar. This makes /usr/bin/tar a symlink
...
pointing to /usr/bin/bsdtar by default. To make it point to /usr/bin/gtar,
you can define WITH_GTAR.
2004-07-17 06:03:47 +00:00
Tim Kientzle
b3ea6ecd42
Validate -o usage. Strictly speaking, -o only makes sense with -x,
...
of course, but I make an effort to accomodate GNU tar scripts that
use -o with -c (with a meaning that totally contradicts SUSv2) by
only issuing a benign warning message in that case.
2004-07-17 04:17:50 +00:00
Tim J. Robbins
70ad92ab84
Mention in the BUGS section that write and wall bogusly use the sender's
...
LC_CTYPE setting instead of the receiver's when determining which
characters are printable.
2004-07-17 04:15:27 +00:00
Tim J. Robbins
3d1a01487a
Document incorrect handling of multibyte characters.
2004-07-17 04:04:30 +00:00
Tim J. Robbins
e4d0177f50
Document the limitation that multibyte characters cannot be used as
...
delimiters with the 's' and 'y' commands.
2004-07-17 03:37:31 +00:00
Johan Karlsson
7eaedc0cd3
Include <string.h> to get memset and strcmp prototype.
...
Sort includes.
This is now WARNS=2 clean, bump WARNS to keep it clean.
2004-07-16 11:07:07 +00:00
Tim J. Robbins
507e8f1644
Add support for multibyte characters.
2004-07-16 06:21:40 +00:00
Tim J. Robbins
911a3ff97b
Avoid passing negative values to <ctype.h> functions on machines with
...
signed chars.
2004-07-16 05:10:46 +00:00
Tim J. Robbins
f1f7aaab59
Document incorrect handling of multibyte characters.
2004-07-16 05:08:16 +00:00
Tim J. Robbins
37ec0e95b3
Document incorrect handling of multibyte characters.
2004-07-15 11:10:09 +00:00
Tim J. Robbins
a2b28f9d9a
Avoid passing negative values to isdigit() on machines with signed chars.
2004-07-15 10:26:38 +00:00
Tim J. Robbins
de3b3c0e74
Avoid passing negative values to isspace() on machines with signed chars.
2004-07-15 09:23:04 +00:00
Tim J. Robbins
e781c653dd
Respect locale settings from the environment.
2004-07-15 08:54:41 +00:00
Tim J. Robbins
80209ec51c
Avoid passing negative values to isspace() on systems with signed chars.
2004-07-15 08:27:04 +00:00
Tim J. Robbins
4ff2396545
Respect locale settings from the environment.
2004-07-15 08:13:56 +00:00
Tim J. Robbins
fe1ba53cff
Don't pass negative values into <ctype.h> functions on machines
...
with signed chars.
2004-07-15 07:33:56 +00:00
Tim J. Robbins
ee6b783c62
Print size_t with %zu, not %d.
2004-07-15 07:30:15 +00:00
Tim J. Robbins
c5453cb4db
Respect locale settings from the environment.
2004-07-15 07:26:20 +00:00
Tim J. Robbins
be12aba0e0
Add incorrect multibyte character handling to the already long list
...
of bugs.
2004-07-15 06:59:34 +00:00
Tim J. Robbins
c7fcd3025b
Use freopen() instead of a nasty hack.
2004-07-15 06:57:36 +00:00
Tim J. Robbins
d1573e5841
Document incorrect handling of multibyte characters.
2004-07-15 06:43:52 +00:00
Tim J. Robbins
5d8c7c7ed6
Ensure that suffix matches occur on character boundaries.
2004-07-15 06:15:10 +00:00
Tim J. Robbins
8a68dbeb38
Document line length and multibyte character limitations.
2004-07-15 05:12:04 +00:00
Tim J. Robbins
d88ccf5dca
Use err() instead of perror(), exit().
2004-07-15 04:56:41 +00:00
Tim J. Robbins
208f2fd1ed
Use warn() instead of perror().
2004-07-15 04:51:21 +00:00