Lines Matching refs:arg
101 #define argto1(arg, lo, msg) argtou(arg, lo, 0xff, msg)
102 #define argto2(arg, lo, msg) argtou(arg, lo, 0xffff, msg)
103 #define argto4(arg, lo, msg) argtou(arg, lo, 0xffffffff, msg)
104 #define argtox(arg, lo, msg) argtou(arg, lo, UINT_MAX, msg)
951 argtou(const char *arg, u_int lo, u_int hi, const char *msg)
957 x = strtoul(arg, &s, 0);
958 if (errno || !*arg || *s || x < lo || x > hi)
959 errx(1, "%s: bad %s", arg, msg);
967 argtooff(const char *arg, const char *msg)
972 x = strtoll(arg, &s, 0);
975 errx(1, "%s: bad %s", arg, msg);
979 errx(1, "%s: bad %s", arg, msg);
1006 errx(1, "%s: not supported yet %s", arg, msg);