| /freebsd-14.2/contrib/libpcap/missing/ |
| H A D | win_asprintf.c | 8 pcapint_vasprintf(char **strp, const char *format, va_list args) in pcapint_vasprintf() argument 17 *strp = NULL; in pcapint_vasprintf() 23 *strp = NULL; in pcapint_vasprintf() 29 *strp = NULL; in pcapint_vasprintf() 32 *strp = str; in pcapint_vasprintf() 42 pcapint_asprintf(char **strp, const char *format, ...) in pcapint_asprintf() argument 48 ret = pcapint_vasprintf(strp, format, args); in pcapint_asprintf()
|
| H A D | asprintf.c | 14 pcapint_vasprintf(char **strp, const char *format, va_list args) in pcapint_vasprintf() argument 66 *strp = NULL; in pcapint_vasprintf() 72 *strp = NULL; in pcapint_vasprintf() 78 *strp = NULL; in pcapint_vasprintf() 81 *strp = str; in pcapint_vasprintf() 91 pcapint_asprintf(char **strp, const char *format, ...) in pcapint_asprintf() argument 97 ret = pcapint_vasprintf(strp, format, args); in pcapint_asprintf()
|
| /freebsd-14.2/contrib/tzcode/ |
| H A D | localtime.c | 844 ++strp; in getqzname() 861 if (strp == NULL || !is_digit(c = *strp)) in getnum() 901 ++strp; in getsecs() 902 strp = getnum(strp, &num, 0, MINSPERHOUR - 1); in getsecs() 909 strp = getnum(strp, &num, 0, SECSPERMIN); in getsecs() 932 ++strp; in getoffset() 934 ++strp; in getoffset() 935 strp = getsecs(strp, offsetp); in getoffset() 959 ++strp; in getrule() 972 strp = getnum(strp, &rulep->r_week, 1, 5); in getrule() [all …]
|
| /freebsd-14.2/contrib/bsnmp/lib/ |
| H A D | snmpclient.c | 1952 p - *strp, *strp); in get_comm() 1956 *strp = p + 1; in get_comm() 1986 p - *strp, *strp); in get_ipv6() 1997 strncpy(str, *strp + 1, p - (*strp + 1)); in get_ipv6() 2011 *strp = p + 1; in get_ipv6() 2040 return *strp; in get_ipv4() 2043 strncpy(str, *strp, p - *strp); in get_ipv4() 2052 *strp = p; in get_ipv4() 2073 *strp += strlen(*strp); in get_host() 2077 *strp = p; in get_host() [all …]
|
| /freebsd-14.2/usr.bin/showmount/ |
| H A D | showmount.c | 278 char *strp; in xdr_mntdump() local 288 strp = mp->ml_host; in xdr_mntdump() 289 if (!xdr_string(xdrsp, &strp, MNTNAMLEN)) { in xdr_mntdump() 293 strp = mp->ml_dirp; in xdr_mntdump() 294 if (!xdr_string(xdrsp, &strp, MNTPATHLEN)) { in xdr_mntdump() 360 char *strp; in xdr_exportslist() local 370 strp = ep->ex_dirp; in xdr_exportslist() 371 if (!xdr_string(xdrsp, &strp, MNTPATHLEN)) in xdr_exportslist() 379 strp = gp->gr_name; in xdr_exportslist() 380 if (!xdr_string(xdrsp, &strp, MNTNAMLEN)) in xdr_exportslist()
|
| /freebsd-14.2/contrib/ncurses/include/ |
| H A D | capdefaults.c | 48 char *strp; variable 52 (short) (strp = strchr(str, '*'), strp ? atoi(strp+1) : 0)
|
| /freebsd-14.2/lib/libc/stdio/ |
| H A D | vswscanf.c | 68 const wchar_t *strp; in vswscanf_l() local 78 strp = str; in vswscanf_l() 79 if ((mlen = wcsrtombs_l(mbstr, &strp, SIZE_T_MAX, &mbs, locale)) == (size_t)-1) { in vswscanf_l()
|
| /freebsd-14.2/contrib/elftoolchain/libdwarf/ |
| H A D | dwarf_attrval.c | 65 dwarf_attrval_string(Dwarf_Die die, Dwarf_Half attr, const char **strp, Dwarf_Error *err) in dwarf_attrval_string() argument 72 if (die == NULL || strp == NULL) { in dwarf_attrval_string() 77 *strp = NULL; in dwarf_attrval_string() 86 *strp = at->u[1].s; in dwarf_attrval_string() 89 *strp = at->u[0].s; in dwarf_attrval_string()
|
| /freebsd-14.2/sys/fs/tarfs/ |
| H A D | tarfs_vfsops.c | 123 tarfs_str2octal(const char *strp, size_t len, int64_t *num) in tarfs_str2octal() argument 130 if (strp[idx] == '-') { in tarfs_str2octal() 138 for (; idx < len && strp[idx] != '\0' && strp[idx] != ' '; idx++) { in tarfs_str2octal() 139 if (strp[idx] < '0' || strp[idx] > '7') in tarfs_str2octal() 142 val += strp[idx] - '0'; in tarfs_str2octal() 166 if ((strp[0] & 0x40) != 0) in tarfs_str2base256() 171 val |= (strp[0] & 0x3f); in tarfs_str2base256() 176 val |= (0xff & (int64_t)strp[idx]); in tarfs_str2base256() 195 if ((strp[0] & 0x80) != 0) in tarfs_str2int64() 196 return (tarfs_str2base256(strp, len, num)); in tarfs_str2int64() [all …]
|
| /freebsd-14.2/contrib/telnet/libtelnet/ |
| H A D | encrypt.c | 756 unsigned char *strp; in encrypt_send_keyid() local 766 for (strp = &str_keyid[4]; keylen > 0; --keylen) { in encrypt_send_keyid() 767 if ((*strp++ = *keyid++) == IAC) in encrypt_send_keyid() 768 *strp++ = IAC; in encrypt_send_keyid() 770 *strp++ = IAC; in encrypt_send_keyid() 771 *strp++ = SE; in encrypt_send_keyid() 772 net_write(str_keyid, strp - str_keyid); in encrypt_send_keyid() 773 printsub('>', &str_keyid[2], strp - str_keyid - 2); in encrypt_send_keyid()
|
| /freebsd-14.2/crypto/heimdal/appl/telnet/libtelnet/ |
| H A D | encrypt.c | 788 unsigned char *strp; in encrypt_send_keyid() local 798 for (strp = &str_keyid[4]; keylen > 0; --keylen) { in encrypt_send_keyid() 799 if ((*strp++ = *keyid++) == IAC) in encrypt_send_keyid() 800 *strp++ = IAC; in encrypt_send_keyid() 802 *strp++ = IAC; in encrypt_send_keyid() 803 *strp++ = SE; in encrypt_send_keyid() 804 telnet_net_write(str_keyid, strp - str_keyid); in encrypt_send_keyid() 805 printsub('>', &str_keyid[2], strp - str_keyid - 2); in encrypt_send_keyid()
|
| /freebsd-14.2/usr.sbin/lpr/common_source/ |
| H A D | ctlinfo.c | 866 char *strp, *nl; in ctl_getline() local 879 strp = fgets(cpriv->cji_buff, cpriv->cji_buffsize, cpriv->cji_fstream); in ctl_getline() 880 if (strp == NULL) { in ctl_getline() 887 nl = strchr(strp, '\n'); in ctl_getline() 902 ch = strp; in ctl_getline() 903 for (ch = strp; *ch != '\0'; ch++) { in ctl_getline() 915 return strp; in ctl_getline()
|
| H A D | common.c | 461 lpd_gettime(struct timespec *tsp, char *strp, size_t strsize) in lpd_gettime() argument 485 if ((strp == NULL) || (strsize < 1)) in lpd_gettime() 518 strp[TIMESTR_SIZE+1] = '\0'; in lpd_gettime() 520 strlcpy(strp, tempstr, strsize); in lpd_gettime()
|
| /freebsd-14.2/sys/dev/aic7xxx/aicasm/ |
| H A D | aicasm_scan.l | 538 const char *strp; 541 strp = next_match + strlen(next_match); 542 while (strp > next_match) 543 unput(*--strp);
|
| /freebsd-14.2/usr.sbin/lpr/lpd/ |
| H A D | printjob.c | 1505 register char *strp; in scan_out() local 1511 strp = &outbuf[0]; in scan_out() 1517 *strp++ = BACKGND; in scan_out() 1519 strp = scnline(scnkey[(int)c][scnhgt-1-d], strp, cc); in scan_out() 1523 *strp++ = BACKGND; in scan_out() 1524 *strp++ = BACKGND; in scan_out() 1526 while (*--strp == BACKGND && strp >= outbuf) in scan_out() 1528 strp++; in scan_out() 1529 *strp++ = '\n'; in scan_out() 1530 (void) write(scfd, outbuf, strp-outbuf); in scan_out()
|
| /freebsd-14.2/lib/libc/posix1e/ |
| H A D | acl_support_nfs4.c | 137 parse_flags_verbose(const char *strp, uint32_t *var, in parse_flags_verbose() argument 144 str = strdup(strp); in parse_flags_verbose()
|
| /freebsd-14.2/cddl/contrib/opensolaris/common/ctf/ |
| H A D | ctf_open.c | 250 const ctf_sect_t *sp, const ctf_sect_t *strp) in init_symtab() argument 277 if (gsp->st_name < strp->cts_size) in init_symtab() 278 name = (const char *)strp->cts_data + gsp->st_name; in init_symtab() 962 ctf_sect_t *ctp, *symp, *strp; in ctf_dup() local 1012 strp = &strsect; in ctf_dup() 1014 strp = NULL; in ctf_dup() 1017 fp = ctf_bufopen(ctp, symp, strp, &err); in ctf_dup()
|
| /freebsd-14.2/contrib/libfido2/fuzz/ |
| H A D | wrap.c | 685 __wrap_asprintf(char **strp, const char *fmt, ...) in __wrap_asprintf() argument 691 *strp = (void *)0xdeadbeef; in __wrap_asprintf() 696 r = vasprintf(strp, fmt, ap); in __wrap_asprintf()
|
| /freebsd-14.2/sbin/routed/ |
| H A D | table.c | 1156 char str[100], *strp; in read_rt() local 1222 strp = &str[strlen(str)]; in read_rt() 1224 strp += sprintf(strp," from pid %d",m.r.rtm.rtm_pid); in read_rt() 1255 strp += sprintf(strp, ": %s", in read_rt() 1279 strp += sprintf(strp, " --> %s", naddr_ntoa(gate)); in read_rt() 1285 strp += sprintf(strp, " by authority of %s", in read_rt()
|
| /freebsd-14.2/contrib/tcsh/ |
| H A D | sh.glob.c | 396 Char **t, *p, *strp; in handleone() local 409 for (t = vl, strp = str; (p = *t++) != NULL; chars++) { in handleone() 411 *strp++ = *p++ & TRIM; in handleone() 412 *strp++ = ' '; in handleone() 414 *--strp = '\0'; in handleone()
|
| /freebsd-14.2/contrib/unifdef/ |
| H A D | unifdef.c | 1444 findsym(const char **strp) in findsym() argument 1450 str = *strp; in findsym() 1451 *strp = skipsym(str); in findsym() 1453 if (*strp == str) in findsym() 1460 (int)(*strp-str), str, in findsym() 1472 strkey = malloc(*strp - str + 1); in findsym() 1473 memcpy(strkey, str, *strp - str); in findsym() 1474 strkey[*strp - str] = 0; in findsym()
|
| /freebsd-14.2/usr.sbin/kldxref/ |
| H A D | ef_obj.c | 134 const char *strp; in ef_obj_lookup_symbol() local 138 strp = ef->ddbstrtab + symp->st_name; in ef_obj_lookup_symbol() 139 if (symp->st_shndx != SHN_UNDEF && strcmp(name, strp) == 0) { in ef_obj_lookup_symbol()
|
| H A D | ef.c | 132 char *strp; in ef_lookup_symbol() local 152 strp = ef->ef_strtab + symp->st_name; in ef_lookup_symbol() 154 if (strcmp(name, strp) == 0) { in ef_lookup_symbol()
|
| /freebsd-14.2/sys/contrib/openzfs/cmd/zed/ |
| H A D | zed_event.c | 616 const char **strp; in _zed_event_add_string_array() local 625 (void) nvpair_value_string_array(nvp, &strp, &nelem); in _zed_event_add_string_array() 627 n = snprintf(p, buflen, "%s ", strp[i] ? strp[i] : "<NULL>"); in _zed_event_add_string_array()
|
| /freebsd-14.2/usr.sbin/mountd/ |
| H A D | mountd.c | 1416 char *strp; in xdr_mlist() local 1421 strp = &mlp->ml_host[0]; in xdr_mlist() 1422 if (!xdr_string(xdrsp, &strp, MNTNAMLEN)) in xdr_mlist() 1424 strp = &mlp->ml_dirp[0]; in xdr_mlist() 1425 if (!xdr_string(xdrsp, &strp, MNTPATHLEN)) in xdr_mlist() 1482 char *strp; in put_exlist() local 1489 strp = dp->dp_dirp; in put_exlist() 1499 strp = "(...)"; in put_exlist() 1511 if (!xdr_string(xdrsp, &strp, in put_exlist() 1517 strp = grp->gr_ptr.gt_net.nt_name; in put_exlist() [all …]
|