Lines Matching defs:arg
42 #define argto1(arg, lo, msg) argtou(arg, lo, 0xff, msg)
43 #define argto2(arg, lo, msg) argtou(arg, lo, 0xffff, msg)
44 #define argto4(arg, lo, msg) argtou(arg, lo, 0xffffffff, msg)
45 #define argtox(arg, lo, msg) argtou(arg, lo, UINT_MAX, msg)
193 argtou(const char *arg, u_int lo, u_int hi, const char *msg)
199 x = strtoul(arg, &s, 0);
200 if (errno || !*arg || *s || x < lo || x > hi)
201 errx(1, "%s: bad %s", arg, msg);
209 argtooff(const char *arg, const char *msg)
215 x = strtoll(arg, &s, 0);
218 errx(1, "%s: bad %s", arg, msg);
222 errx(1, "%s: bad %s", arg, msg);
249 errx(1, "%s: not supported yet %s", arg, msg);