rillig
57fc49ddbc
Fixed an off-by-one error with ASCII <-> EBCDIC conversion combined with
...
lcase/ucase. Approved by mrg.
2005-04-20 17:38:59 +00:00
wiz
e3fc4b66c3
Spell the plural of suffix "suffixes", not "suffices".
...
Inspired by PR 24400 by Todd Vierling.
2004-02-13 17:56:17 +00:00
dbj
f01a4aa26e
minor nit, set out.dbp correctly when constructing final null block
...
for sparse files.
2004-01-17 21:00:16 +00:00
dbj
6b4933739d
add support for conv=sparse
...
inspired by freebsd, although this patch attempts
to avoid some potential bugs in their implementation.
2004-01-17 20:48:57 +00:00
dbj
cae90fa713
Add C_ASCII and C_EBCDIC to list of options which unset C_BS semantics.
...
Without this fix, the bs option would cause any of the ascii<->ebcdic
conv options to be ignored.
2004-01-17 05:42:50 +00:00
jschauma
ad8530d1eb
remove unused code left from printescaped() backput as pointed out by Jeff
...
Ito in PR bin/23969 and PR bin/23970.
2004-01-04 16:04:18 +00:00
dsainty
39973c5237
Optimise previous change, using fcntl(F_DUPFD) to locate a free descriptor
...
for us, rather than iterating until satisfied.
Suggested by David Laight.
2003-11-15 14:55:32 +00:00
dsainty
0b16f71074
Avoid corrupting the dd(1) IO streams. This would happen by accidentally
...
outputting to the files being manipulated by opening a file in the standard IO
descriptor space. In particular, an output file unlucky enough to be sitting
on descriptor 2 (stderr) is certain to be corrupted.
Addresses PR bin/8521, and passes the recently committed regression test
"bin/dd".
2003-11-15 12:44:54 +00:00
jschauma
6a75fbb636
Following private discussion with kleink@ and hubertf@ and public discussion
...
on tech-userlevel@, back out printescaped() functionality.
kleink: ``We sell rope.''
2003-09-14 19:20:16 +00:00
jschauma
39ff49f1b4
Fix memory leak noted by Hubert Feyrer in private email.
...
Patch by Hubert Feyrer as well, OK by kleink.
(I'm just fixing it b/c it's my fault to begin with.)
2003-08-20 14:25:54 +00:00
kleink
5d98794ef5
Minor KNF nit from rev. 1.13.
2003-08-20 10:43:55 +00:00
agc
b5b2954259
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22249, verified by myself.
2003-08-07 09:05:01 +00:00
erh
e5f16a4651
Include stdlib.h so EXIT_FAILURE is defined.
2003-08-05 14:55:03 +00:00
jschauma
458ed23412
As discusses a little while back on tech-userlevel:
...
If stdout is a tty, use vis(3) to print any filenames to prevent garbage
from being printed if the filename contains control- or other non-printable
characters.
While here, sprinkle some EXIT_FAILURE and NOTREACHED where appropriate.
2003-08-04 22:31:21 +00:00
wiz
990562bfef
.Nm does not need a dummy argument ("") before punctuation or
...
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
lukem
550a64a8e9
convert to using strsuftoll(3) from libc
2002-11-29 13:11:10 +00:00
enami
caa54090d6
Add comment about my rev. 1.27 change.
2002-09-04 04:21:54 +00:00
tron
4fc0806163
Ignore EINVAL returned from fsync(2) because it is the expected error code
...
if we try to use it on a pipe.
2002-09-03 06:17:26 +00:00
enami
cef250dab9
Detect the last nfs write error.
2002-09-01 11:33:22 +00:00
matt
acc63b5fea
Add LL to 1099511627776 since it won't fit in a long on ILP32 systems.
2002-06-09 19:38:00 +00:00
ross
dc5571b22e
Generate <>& symbolically. I'm avoiding .../dist/... directories for now.
2002-02-08 01:21:55 +00:00
lukem
1242cb95f9
.ifdef SMALLPROG, compile with -DNO_CONV and don't compile in conv_tab.o
2002-02-02 13:03:21 +00:00
tv
9fbd88883c
Roll in fixes to permit cross-compiling from non-NetBSD hosts. This
...
round has been tested on Solaris/x86 and Linux hosts.
* Add host tools cap_mkdb, ctags, m4, uudecode.
* Protect __RCSID() and __COPYRIGHT() better.
* Reduce the number of places that need to include "config.h", to keep
sources closer to their "vanilla" versions.
* Add more compat #defines and autoconf-checked functions.
2002-01-31 22:43:33 +00:00
tv
6660e8d99e
Blah, oversight. Revert previous; clean up to proper syntax, and add
...
conditional for <err.h>.
2002-01-29 10:53:39 +00:00
tv
4fe0f9e35e
This doesn't appear to be used in src/tools any longer; remove the config.h
...
glue bits.
2002-01-29 10:51:45 +00:00
is
ef3617499c
add config.h when compiled as host tool.
2002-01-22 13:03:57 +00:00
lukem
466f245289
Convert some variables that were signed ints before my update to 64 bit sizes
...
from uint64_t to int64_t. Fixes [bin/15187]
2002-01-10 03:25:12 +00:00
thorpej
eaf8d9021b
Deal with LP64 printf format issues.
2001-11-30 00:12:04 +00:00
enami
cd5b60066b
a bit more cosmetic changes.
2001-11-26 00:56:33 +00:00
lukem
301fb81a16
Replace {u_,}longlong_t usage with {u,}int64_t, as the former has
...
"issues" and really shouldn't be used outside of the Sun XDR stuff.
Thanks again to Chuck Silvers for reminding me.
2001-11-26 00:13:23 +00:00
wiz
0c148f3ac9
Drop a space and an unnecessary .Pp.
2001-11-25 18:08:29 +00:00
lukem
5605d92740
fix conv= description
2001-11-25 10:54:47 +00:00
lukem
b6ce735c04
- Use u_longlong_t instead of u_quad_t, u_long, or int for various buffer sizes
...
- Add strsuftoull(), which parses a number into a u_longlong_t, with
multiplication support, and support for 'g' (GB) and 't' (TB) suffices.
If an error occurs, print to stderr and exit.
Based on get_blk() from args.c and strsufto*() (in other programs)
- Add strsuftoullx(), which acts as per strsuftoull() but returns the
error in the supplied buffer instead (if the returned buffer != "", an
error occurred)
- Replace get_bsz() use with strsuftoull()
- Remove (now) unnecessary argument validation
- Remove unused {f,p,s,t}_stats fields in struct IO
2001-11-25 10:50:06 +00:00
lukem
6848de8fe5
fix WARNS=2 for -DNO_CONV
2001-11-25 06:57:55 +00:00
lukem
8605a1aa68
- ANSI KNF
...
- WARNS=2 (mainly converting some "char *" -> "const char *")
2001-11-25 06:53:48 +00:00
wiz
a9356936b4
seperate -> separate
2001-07-22 13:33:58 +00:00
ross
aecbd4c404
In the words of Our Fearless Leader, I am "utterly sick" of dd(1)
...
lying to me about transfer rates. Do some fixed point frobbing to get
stuff like: 2486864 bytes transferred in 0.272 secs (9142882 bytes/sec)
2001-04-28 22:47:23 +00:00
cgd
9cfe468c74
avoid C sequence point issues warned about by development version of gcc.
2001-01-16 02:41:17 +00:00
lukem
f819878ce7
use more standard %ll_ in favour of %q_
2001-01-04 15:39:50 +00:00
kleink
b40fbcbce7
KNF nit in previous.
2000-10-25 10:57:20 +00:00
kleink
5072fc9eb4
Make sure we accept the getopt(3) 'last option' delimiter;
...
fixes PR standards/11229.
2000-10-16 09:22:34 +00:00
kleink
2caf6aacdd
For commands and utilities, use EXIT STATUS rather than RETURN VALUES as
...
appropriate (and documented in mdoc(7)).
2000-09-04 07:30:07 +00:00
hubertf
1cb54f68ac
Add 'RETURN VALUE' section header.
2000-08-28 02:11:04 +00:00
matt
54d55aa138
Fix conv=swab. Don't swab the entire input buffer every time we read
...
another block, just swab the block we just read.
2000-08-25 03:40:32 +00:00
christos
7c30c00a8c
rename nset to infoset from jhawk.
2000-08-02 19:44:18 +00:00
christos
80dd95bb8f
block siginfo during writes.
2000-08-02 16:46:16 +00:00
itojun
bbef2fbaac
errx?/warnx? audit. do not pass variable alone, use %s. idea from openbsd
2000-07-07 15:10:32 +00:00
drochner
85cbf55d16
Since our gcc doesn't warn about NULL format strings anymore, we can
...
fix the incorrect err(1, "%s", "") et al.
Closes PR bin/7592 by cgd.
1999-11-09 15:06:30 +00:00
jtk
3917d8b9e7
fix comment regarding when we attempt to seek
1999-10-09 00:43:32 +00:00
mycroft
713ea8dcde
Use lseek(2) on character devices, damn it.
1999-10-04 17:11:53 +00:00