2001-11-26 03:13:23 +03:00
|
|
|
/* $NetBSD: strsuftoull.h,v 1.2 2001/11/26 00:13:24 lukem Exp $ */
|
- 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 13:50:06 +03:00
|
|
|
|
2001-11-26 03:13:23 +03:00
|
|
|
uint64_t strsuftoull(const char *, const char *, uint64_t, uint64_t);
|
- 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 13:50:06 +03:00
|
|
|
|
2001-11-26 03:13:23 +03:00
|
|
|
uint64_t strsuftoullx(const char *, const char *, uint64_t, uint64_t,
|
|
|
|
char *, size_t);
|