Home
last modified time | relevance | path

Searched refs:strp (Results 1 – 25 of 40) sorted by relevance

12

/freebsd/contrib/libpcap/missing/
H A Dwin_asprintf.c8 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 Dasprintf.c14 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/contrib/tzcode/
H A Dlocaltime.c818 getzname(register const char *strp) in tzloadbody()
822 while ((c = *strp) != '\0' && !is_digit(c) && c != ',' && c != '-' && in tzloadbody()
824 ++strp; in tzloadbody()
825 return strp; in tzloadbody()
839 getqzname(register const char *strp, const int delim) in tzload()
843 while ((c = *strp) != '\0' && c != delim) in tzload()
844 ++strp; in tzload()
845 return strp; in tzload()
856 getnum(register const char *strp, int *const nump, const int min, const int max)
861 if (strp
874 getzname(register const char * strp) getzname() argument
895 getqzname(register const char * strp,const int delim) getqzname() argument
912 getnum(register const char * strp,int * const nump,const int min,const int max) getnum() argument
941 getsecs(register const char * strp,int_fast32_t * const secsp) getsecs() argument
982 getoffset(register const char * strp,int_fast32_t * const offsetp) getoffset() argument
1008 getrule(const char * strp,register struct rule * const rulep) getrule() argument
[all...]
/freebsd/contrib/llvm-project/libcxx/include/__locale_dir/locale_base_api/
H A Dibm.h83 _LIBCPP_ATTRIBUTE_FORMAT(__printf__, 2, 0) int vasprintf(char** strp, const char* fmt, va_list ap) { in vasprintf() argument
85 if ((*strp = (char*)malloc(buff_size)) == NULL) { in vasprintf()
96 int str_size = vsnprintf(*strp, buff_size, fmt, ap_copy); in vasprintf()
100 if ((*strp = (char*)realloc(*strp, str_size + 1)) == NULL) { in vasprintf()
103 str_size = vsnprintf(*strp, str_size + 1, fmt, ap); in vasprintf()
/freebsd/contrib/bsnmp/lib/
H A Dsnmpclient.c1897 get_transp(struct snmp_client *sc, const char **strp) in get_transp() argument
1903 p = strstr(*strp, trans_list[i]); in get_transp()
1904 if (p == *strp) { in get_transp()
1905 *strp += strlen(trans_list[i]); in get_transp()
1910 p = strstr(*strp, "::"); in get_transp()
1911 if (p == *strp) { in get_transp()
1920 const char *ob = strchr(*strp, '['); in get_transp()
1925 seterr(sc, "unknown transport specifier '%.*s'", p - *strp, *strp); in get_transp()
1942 get_comm(struct snmp_client *sc, const char **strp) in get_comm() argument
1944 const char *p = strrchr(*strp, '@'); in get_comm()
[all …]
/freebsd/usr.bin/showmount/
H A Dshowmount.c266 char *strp; in xdr_mntdump() local
276 strp = mp->ml_host; in xdr_mntdump()
277 if (!xdr_string(xdrsp, &strp, MNTNAMLEN)) { in xdr_mntdump()
281 strp = mp->ml_dirp; in xdr_mntdump()
282 if (!xdr_string(xdrsp, &strp, MNTPATHLEN)) { in xdr_mntdump()
348 char *strp; in xdr_exportslist() local
358 strp = ep->ex_dirp; in xdr_exportslist()
359 if (!xdr_string(xdrsp, &strp, MNTPATHLEN)) in xdr_exportslist()
367 strp = gp->gr_name; in xdr_exportslist()
368 if (!xdr_string(xdrsp, &strp, MNTNAMLEN)) in xdr_exportslist()
/freebsd/contrib/ncurses/include/
H A Dcapdefaults.c48 char *strp; variable
52 (short) (strp = strchr(str, '*'), strp ? atoi(strp+1) : 0)
/freebsd/contrib/elftoolchain/libdwarf/
H A Ddwarf_attrval.c65 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/lib/libc/stdio/
H A Dvswscanf.c68 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/sys/fs/tarfs/
H A Dtarfs_vfsops.c123 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()
158 tarfs_str2base256(const char *strp, size_t len, int64_t *num) in tarfs_str2base256() argument
163 KASSERT(strp[0] & 0x80, ("not an extended numeric value")); in tarfs_str2base256()
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()
[all …]
/freebsd/contrib/telnet/libtelnet/
H A Dencrypt.c756 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/crypto/heimdal/appl/telnet/libtelnet/
H A Dencrypt.c788 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/usr.sbin/lpr/common_source/
H A Dctlinfo.c866 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 Dcommon.c455 lpd_gettime(struct timespec *tsp, char *strp, size_t strsize) in lpd_gettime() argument
479 if ((strp == NULL) || (strsize < 1)) in lpd_gettime()
512 strp[TIMESTR_SIZE+1] = '\0'; in lpd_gettime()
514 strlcpy(strp, tempstr, strsize); in lpd_gettime()
/freebsd/sys/dev/aic7xxx/aicasm/
H A Daicasm_scan.l538 const char *strp;
541 strp = next_match + strlen(next_match);
542 while (strp > next_match)
543 unput(*--strp);
/freebsd/usr.sbin/lpr/lpd/
H A Dprintjob.c1493 register char *strp; in scan_out() local
1499 strp = &outbuf[0]; in scan_out()
1505 *strp++ = BACKGND; in scan_out()
1507 strp = scnline(scnkey[(int)c][scnhgt-1-d], strp, cc); in scan_out()
1511 *strp++ = BACKGND; in scan_out()
1512 *strp++ = BACKGND; in scan_out()
1514 while (*--strp == BACKGND && strp >= outbuf) in scan_out()
1516 strp++; in scan_out()
1517 *strp++ = '\n'; in scan_out()
1518 (void) write(scfd, outbuf, strp-outbuf); in scan_out()
/freebsd/lib/libc/posix1e/
H A Dacl_support_nfs4.c137 parse_flags_verbose(const char *strp, uint32_t *var, in parse_flags_verbose() argument
144 str = strdup(strp); in parse_flags_verbose()
/freebsd/cddl/contrib/opensolaris/common/ctf/
H A Dctf_open.c250 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/contrib/libfido2/fuzz/
H A Dwrap.c685 __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/sbin/routed/
H A Dtable.c1156 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/contrib/tcsh/
H A Dsh.glob.c396 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/contrib/unifdef/
H A Dunifdef.c1444 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/lib/libkldelf/
H A Def_obj.c136 const char *strp; in ef_obj_lookup_symbol() local
140 strp = ef->ddbstrtab + symp->st_name; in ef_obj_lookup_symbol()
141 if (symp->st_shndx != SHN_UNDEF && strcmp(name, strp) == 0) { in ef_obj_lookup_symbol()
H A Def.c133 char *strp; in ef_lookup_symbol() local
153 strp = ef->ef_strtab + symp->st_name; in ef_lookup_symbol()
155 if (strcmp(name, strp) == 0) { in ef_lookup_symbol()
/freebsd/sys/kern/
H A Dlink_elf.c1525 const char *strp; in link_elf_lookup_symbol1() local
1550 strp = ef->strtab + symp->st_name; in link_elf_lookup_symbol1()
1552 if (strcmp(name, strp) == 0) { in link_elf_lookup_symbol1()
1586 const char *strp; in link_elf_lookup_debug_symbol() local
1593 strp = ef->ddbstrtab + symp->st_name; in link_elf_lookup_debug_symbol()
1594 if (strcmp(name, strp) == 0) { in link_elf_lookup_debug_symbol()
1615 const char *strp; in link_elf_lookup_debug_symbol_ctf() local
1619 strp = ef->ddbstrtab + symp->st_name; in link_elf_lookup_debug_symbol_ctf()
1620 if (strcmp(name, strp) == 0) { in link_elf_lookup_debug_symbol_ctf()

12