| /src/common/lib/libc/stdlib/ |
| strtoi.c | 1 /* $NetBSD: strtoi.c,v 1.3 2019/11/28 12:33:23 roy Exp $ */ 38 __RCSID("$NetBSD: strtoi.c,v 1.3 2019/11/28 12:33:23 roy Exp $"); 60 #define _FUNCNAME strtoi 67 __weak_alias(strtoi, _strtoi)
|
| /src/lib/libc/stdlib/ |
| strtonum.c | 63 rv = (long long)strtoi(nptr, &eptr, 10, minval, maxval, &e);
|
| Makefile.inc | 16 strtoi.c strtou.c strtonum.c \ 60 strfmon.3 strsuftoll.3 strtod.3 strtoi.3 strtol.3 strtou.3 strtoul.3 \ 65 strtou.3: strtoi.3 67 ${TOOL_SED} -e s/strtoi/strtou/g -e s/STRTOI/STRTOU/g \ 68 -e 's/an intmax_t/a unitmax_t/g' -e 's/strtou 3/strtoi 3/g' \ 105 MLINKS+=strtoi.3 strtoi_l.3
|
| /src/external/bsd/blocklist/port/ |
| strtoi.c | 1 /* $NetBSD: strtoi.c,v 1.2 2025/02/11 17:48:31 christos Exp $ */ 39 __RCSID("$NetBSD: strtoi.c,v 1.2 2025/02/11 17:48:31 christos Exp $"); 57 #define _FUNCNAME strtoi
|
| port.h | 70 intmax_t strtoi(const char *, char **, int, intmax_t, intmax_t, int *);
|
| /src/usr.bin/scmdctl/ |
| scmdctl.c | 176 baud_rate = (long)strtoi(optarg, NULL, 0, 1, LONG_MAX, &error); 182 slave_a = (long)strtoi(optarg, NULL, 0, 0, LONG_MAX, &error); 263 module = (long)strtoi(argv[2], NULL, 10, 0, 16, &error); 273 module = (long)strtoi(argv[2], NULL, 10, 0, 16, &error); 288 module = (long)strtoi(argv[3], NULL, 10, 0, 16, &error); 297 module = (long)strtoi(argv[3], NULL, 10, 0, 16, &error); 302 reg_value = (int8_t)strtoi(argv[5], NULL, 0, -127, 127, &error); 314 module = (long)strtoi(argv[3], NULL, 10, 0, 16, &error); 328 module = (long)strtoi(argv[3], NULL, 10, 0, 16, &error); 364 module = (long)strtoi(argv[2], NULL, 10, 0, 16, &error) [all...] |
| /src/tests/lib/libc/stdlib/ |
| t_strtoi.c | 64 atf_tc_fail_nonfatal("strtoi(\"%s\", &end, %d, %jd, %jd, " 83 atf_tc_fail_nonfatal("strtoi(\"%s\", &end, %d, %jd, %jd, &rstatus)" 96 "strtoi(\"%s\", &end, %d, %jd, %jd, &rstatus), " 105 atf_tc_fail("strtoi(3) changed errno to %d ('%s')", 112 atf_tc_set_md_var(tc, "descr", "Test strtoi(3) with different bases"); 180 rv = strtoi(t[i].str, &end, t[i].base, t[i].lo, t[i].hi, &e); 193 rv = strtoi(f[i].str, &end, f[i].base, f[i].lo, f[i].hi, &e); 204 atf_tc_set_md_var(tc, "descr", "Case insensitivity with strtoi(3)"); 238 rv = strtoi(t[i].str, &end, t[i].base, t[i].lo, t[i].hi, &e); 249 atf_tc_set_md_var(tc, "descr", "Test ERANGE from strtoi(3)") [all...] |
| /src/include/ |
| inttypes.h | 81 intmax_t strtoi(const char * __restrict, char ** __restrict, int,
|
| /src/usr.sbin/emcfanctl/ |
| emcfanctl.c | 381 start_reg = (uint8_t)strtoi(argv[3], NULL, 0, 0, 0xff, &error); 391 end_reg = (uint8_t)strtoi(argv[4], NULL, 0, 0, 0xff, &error); 421 start_reg = (uint8_t)strtoi(argv[3], NULL, 0, 0, 0xff, &error); 430 value = (uint8_t)strtoi(argv[4], NULL, 0, 0, 0xff, &error); 466 the_fan = strtoi(argv[2], NULL, 0, 1, emcfan_chip_infos[iindex].num_fans, &error); 502 the_fan = strtoi(argv[2], NULL, 0, 1, emcfan_chip_infos[iindex].num_tachs, &error); 605 value = (uint8_t)strtoi(argv[5], NULL, 0, 0, 0xff, &error); 639 value = (int)strtoi(argv[5], NULL, 0, 0, 0xffff, &error); 678 value = (uint8_t)strtoi(argv[5], NULL, 0, 0, 9, &error); 766 value = (int)strtoi(argv[5], NULL, 0, 0, 0xffff, &error) [all...] |
| /src/usr.bin/m4/ |
| eval.c | 186 base = (int)strtoi(argv[3], NULL, 0, 2, 36, &e); 192 maxdigits = (int)strtoi(argv[4], NULL, 0, 0, INT_MAX, &e); 232 n = (int)strtoi(argv[2], NULL, 0, INT_MIN, INT_MAX-1, &e); 246 n = (int)strtoi(argv[2], NULL, 0, INT_MIN, INT_MAX-1, &e); 353 n = (int)strtoi(argv[2], NULL, 0, INT_MIN, INT_MAX, &e); 873 n = (int)strtoi(argv[ind], NULL, 0, 1, INT_MAX, &e);
|
| /src/lib/libc/stdio/ |
| makebuf.c | 98 s = strtoi(evp, NULL, 0, 0, 1024 * 1024, &e);
|
| /src/usr.bin/nc/ |
| netcat.c | 236 maxsend = strtoi(optarg, &ep, 0, 0, UINT_MAX, &errnum); 242 maxrecv = strtoi(ep + 1, &ep, 0, 0, UINT_MAX, 274 iflag = strtoi(optarg, NULL, 0, 0, UINT_MAX, &errnum); 290 ttl = strtoi(optarg, NULL, 0, 0, 255, &errnum); 295 minttl = strtoi(optarg, NULL, 0, 0, 255, &errnum); 331 rtableid = (int)strtoi(optarg, NULL, 0, 0, 255, &errnum); 340 timeout = strtoi(optarg, NULL, 0, 0, INT_MAX / 1000, &errnum); 357 Iflag = strtoi(optarg, NULL, 0, 1, 65536 << 14, &errnum); 363 Oflag = strtoi(optarg, NULL, 0, 1, 65536 << 14, &errnum); 382 Tflag = (int)strtoi(optarg, NULL, 0, 0, 255, &errnum) [all...] |
| /src/lib/libutil/ |
| efun.c | 181 intmax_t rv = strtoi(nptr, NULL, base, lo, hi, &e);
|
| pidfile.c | 79 pid = (pid_t)strtoi(buf, &eptr, 10, 1, INT_MAX, &error);
|
| /src/usr.bin/tip/ |
| cu.c | 142 BR = (long)strtoi(optarg, NULL, 0, 1, LONG_MAX, &e);
|
| /src/usr.bin/getnameinfo/ |
| getnameinfo.c | 302 const intmax_t port = strtoi(port_str, NULL, 0, 0, 65535, &r);
|
| /src/usr.sbin/umcpmioctl/ |
| putflash.c | 381 v = (uint16_t) strtoi(argv[argcount], NULL, 0, 0, 0xffff, &error); 482 power_ma = (uint16_t) strtoi(argv[argcount], NULL, 0, 1, 511, &error);
|
| /src/tools/compat/ |
| Makefile | 27 strtoi.c strtou.c \
|
| /src/usr.sbin/usbdevs/ |
| usbdevs.c | 399 addr = strtoi(optarg, NULL, 10, 0, USB_MAX_DEVICES - 1,
|
| /src/external/bsd/dhcpcd/dist/src/ |
| if.c | 738 spec->lun = (int)strtoi(ep + 1, NULL, 10, 0, INT_MAX, &e); 772 spec->ppa = (int)strtoi(ep, &pp, 10, 0, INT_MAX, &e); 781 spec->vlid = (int)strtoi(pp + 1, NULL, 10, 0, INT_MAX, &e);
|
| /src/sys/lib/libkern/ |
| libkern.h | 469 intmax_t strtoi(const char * __restrict, char ** __restrict, int, intmax_t,
|
| /src/usr.bin/col/ |
| col.c | 160 max_bufd_lines = (int)strtoi(optarg, NULL, 0, 1,
|
| /src/lib/libperfuse/ |
| perfuse.c | 159 retval = (uint32_t)strtoi(valstr, NULL, 0, 0, UINT32_MAX, &e);
|
| /src/sbin/ccdconfig/ |
| ccdconfig.c | 862 val = (int)strtoi(flags, &cp, 0, 0, MAX_FLAG, &tmp);
|
| /src/usr.sbin/inetd/ |
| parse_v2.c | 789 count = (int)strtoi(arg, &tail, 10, 0, INT_MAX, &rstatus);
|