Commit Graph

57 Commits

Author SHA1 Message Date
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
hubertf
4d486ab67d Add "progress=1" switch to show a sign of life by printing a '.' for
every block written to the output file.
1999-07-29 19:03:31 +00:00
thorpej
341bd18b4a Add some braces to make egcs happy. 1998-08-19 01:31:46 +00:00
mycroft
9dc385beb1 Delint. 1998-07-28 05:31:22 +00:00
mycroft
1381f68431 Delint. 1998-07-28 05:15:46 +00:00
mycroft
ce7d757530 Delint. 1998-07-28 03:47:14 +00:00
msaitoh
eb590dc473 "static" should be located at the beginning of declaration. 1998-07-09 18:06:17 +00:00
gwr
cc865e4609 Fix a minor bug that made conv=sync pad partial blocks with garbage,
when it is supposd to pad with zero or space as with osync.
1998-06-29 19:49:04 +00:00
kleink
81f498a32b Need <time.h> fo time() prototype. 1998-04-01 13:55:23 +00:00
enami
0c5c9f41f8 Lineup case' label and default' label with `switch'. 1998-02-28 04:22:34 +00:00
enami
d376e10e90 Put space after the keyword `switch'. 1998-02-28 04:20:02 +00:00
thorpej
610e7210d9 quads must be cast to long long for printing. 1998-02-06 23:30:18 +00:00
perry
6982982f8d macroize BSD, NetBSD, FreeBSD and misc cleanup 1998-02-06 05:39:31 +00:00
enami
7ceec99c06 Use u_quad_t instead of u_long to define struct STAT.bytes, which
is used to count bytes transfered, so that it won't overflow even if
transfer is more than 4Gbytes.
1998-02-04 06:42:31 +00:00
enami
c3872193cf Fix .Nm usage. 1997-10-20 08:50:59 +00:00
phil
d355fd58e8 Do multiply in lseek calls as off_t arithmetic. This allows for seeks
of more than INT_MAX.  Removed Check for INT_MAX as maximum seeks.
Fixes PR 2101.
1997-07-25 06:46:23 +00:00
christos
23edbe3557 Remove WARNS=1 from all the subdirectory Makefiles, and add it to Makefile.inc
now that all /bin has been cleaned.
1997-07-20 22:36:20 +00:00
christos
4a3a58b6f2 Fix compiler warnings.
Add WARNS=1
1997-07-20 21:58:35 +00:00
jtc
6ea95846cb add const qualifier to args and clist tables 1996-03-01 01:18:58 +00:00
jtc
dba6c61918 Re-do change to use const qualifer with conversion tables.
Fixed bug where pre-computed upper/lower case conversion tables were
used.  This won't work if user selected a different locale.
1996-02-20 19:29:01 +00:00
cgd
6e72825941 Previous change (Use const qualifier with conversion tables) is broken.
(1) It won't compile, and (2) there's code in dd.c which actually
does modify (some, all, used?) conversion tables, so they can't _all_ be
const (if any can).
1996-02-20 18:54:01 +00:00
jtc
a162c334b1 Use const qualifier with conversion tables 1996-02-19 23:12:55 +00:00
gwr
f8791fb073 Add -DNO_CONV to make this smaller in my ramdisk. 1995-10-08 23:01:22 +00:00