Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: basesrc/bin/dd



Module Name:    basesrc
Committed By:   lukem
Date:           Sun Nov 25 10:50:07 UTC 2001

Modified Files:
        basesrc/bin/dd: Makefile args.c conv.c dd.1 dd.c dd.h extern.h misc.c
Added Files:
        basesrc/bin/dd: strsuftoull.c strsuftoull.h

Log Message:
- 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


To generate a diff of this commit:
cvs rdiff -r1.7 -r1.8 basesrc/bin/dd/Makefile basesrc/bin/dd/dd.h
cvs rdiff -r1.18 -r1.19 basesrc/bin/dd/args.c
cvs rdiff -r1.12 -r1.13 basesrc/bin/dd/conv.c basesrc/bin/dd/misc.c
cvs rdiff -r1.10 -r1.11 basesrc/bin/dd/dd.1
cvs rdiff -r1.22 -r1.23 basesrc/bin/dd/dd.c
cvs rdiff -r1.11 -r1.12 basesrc/bin/dd/extern.h
cvs rdiff -r0 -r1.1 basesrc/bin/dd/strsuftoull.c basesrc/bin/dd/strsuftoull.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index