Home
last modified time | relevance | path

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

12

/dragonfly/usr.bin/banner/
H A Dbanner.c111 char *strp; in scan_out() local
117 strp = &outbuf[0]; in scan_out()
129 *strp++ = BACKGND; in scan_out()
131 strp = scnline(scnkey[(int)c][scnhgt-1-d], strp, cc); in scan_out()
134 *strp++ = BACKGND; in scan_out()
136 while (*--strp == BACKGND && strp >= outbuf) in scan_out()
138 strp++; in scan_out()
139 *strp++ = '\n'; in scan_out()
140 write(scfd, outbuf, strp-outbuf); in scan_out()
/dragonfly/sbin/svc/
H A Dsubs.c41 sfree(char **strp) in sfree() argument
43 if (*strp) in sfree()
44 free(*strp); in sfree()
48 sreplace(char **strp, const char *orig) in sreplace() argument
50 if (*strp) { in sreplace()
51 free(*strp); in sreplace()
52 *strp = NULL; in sreplace()
55 *strp = strdup(orig); in sreplace()
59 sdup(char **strp) in sdup() argument
61 if (*strp) in sdup()
[all …]
H A Dsvc.h125 void sfree(char **strp);
126 void sreplace(char **strp, const char *orig);
127 void sdup(char **strp);
/dragonfly/lib/libc/stdtime/
H A Dlocaltime.c689 ++strp; in getqzname()
706 if (strp == NULL || !is_digit(c = *strp)) in getnum()
745 ++strp; in getsecs()
746 strp = getnum(strp, &num, 0, MINSPERHOUR - 1); in getsecs()
753 strp = getnum(strp, &num, 0, SECSPERMIN); in getsecs()
776 ++strp; in getoffset()
778 ++strp; in getoffset()
779 strp = getsecs(strp, offsetp); in getoffset()
802 ++strp; in getrule()
815 strp = getnum(strp, &rulep->r_week, 1, 5); in getrule()
[all …]
/dragonfly/sbin/hammer2/
H A Dsubs.c91 if (*strp) { in hammer2_time64_to_str()
92 free(*strp); in hammer2_time64_to_str()
93 *strp = NULL; in hammer2_time64_to_str()
95 *strp = malloc(64); in hammer2_time64_to_str()
98 strftime(*strp, 64, "%d-%b-%Y %H:%M:%S", tp); in hammer2_time64_to_str()
99 return (*strp); in hammer2_time64_to_str()
106 if (*strp) { in hammer2_uuid_to_str()
107 free(*strp); in hammer2_uuid_to_str()
108 *strp = NULL; in hammer2_uuid_to_str()
110 uuid_to_string(uuid, strp, &status); in hammer2_uuid_to_str()
[all …]
H A Dhammer2_subs.h73 const char *hammer2_time64_to_str(uint64_t htime64, char **strp);
74 const char *hammer2_uuid_to_str(const uuid_t *uuid, char **strp);
/dragonfly/lib/libdmsg/
H A Dsubs.c59 dmsg_uuid_to_str(uuid_t *uuid, char **strp) in dmsg_uuid_to_str() argument
62 if (*strp) { in dmsg_uuid_to_str()
63 free(*strp); in dmsg_uuid_to_str()
64 *strp = NULL; in dmsg_uuid_to_str()
66 uuid_to_string(uuid, strp, &status); in dmsg_uuid_to_str()
67 return (*strp); in dmsg_uuid_to_str()
/dragonfly/usr.bin/showmount/
H A Dshowmount.c254 char *strp; in xdr_mntdump() local
264 strp = mp->ml_host; in xdr_mntdump()
265 if (!xdr_string(xdrsp, &strp, RPCMNT_NAMELEN)) in xdr_mntdump()
267 strp = mp->ml_dirp; in xdr_mntdump()
268 if (!xdr_string(xdrsp, &strp, RPCMNT_PATHLEN)) in xdr_mntdump()
332 char *strp; in xdr_exports() local
342 strp = ep->ex_dirp; in xdr_exports()
343 if (!xdr_string(xdrsp, &strp, RPCMNT_PATHLEN)) in xdr_exports()
351 strp = gp->gr_name; in xdr_exports()
352 if (!xdr_string(xdrsp, &strp, RPCMNT_NAMELEN)) in xdr_exports()
/dragonfly/contrib/ncurses/include/
H A Dcapdefaults.c48 char *strp; variable
52 (short) (strp = strchr(str, '*'), strp ? atoi(strp+1) : 0)
/dragonfly/lib/libc/uuid/
H A Duuid_name_lookup.c106 uuid_addr_lookup(const uuid_t *u, char **strp, uint32_t *status) in RB_GENERATE_STATIC()
110 if (*strp) { in RB_GENERATE_STATIC()
111 free(*strp); in RB_GENERATE_STATIC()
112 *strp = NULL; in RB_GENERATE_STATIC()
125 *strp = strdup(node->name); in RB_GENERATE_STATIC()
/dragonfly/lib/libc/stdio/
H A Dvswscanf.c70 const wchar_t *strp; in vswscanf_l() local
80 strp = str; in vswscanf_l()
81 if ((mlen = wcsrtombs_l(mbstr, &strp, SIZE_T_MAX, &mbs, locale)) == (size_t)-1) { in vswscanf_l()
/dragonfly/usr.sbin/lpr/common_source/
H A Dctlinfo.c791 char *strp, *nl; in ctl_getline() local
804 strp = fgets(cpriv->cji_buff, cpriv->cji_buffsize, cpriv->cji_fstream); in ctl_getline()
805 if (strp == NULL) { in ctl_getline()
812 nl = strchr(strp, '\n'); in ctl_getline()
827 ch = strp; in ctl_getline()
828 for (ch = strp; *ch != '\0'; ch++) { in ctl_getline()
840 return strp; in ctl_getline()
H A Dcommon.c396 lpd_gettime(struct timespec *tsp, char *strp, size_t strsize) in lpd_gettime() argument
420 if ((strp == NULL) || (strsize < 1)) in lpd_gettime()
453 strp[TIMESTR_SIZE+1] = '\0'; in lpd_gettime()
455 strlcpy(strp, tempstr, strsize); in lpd_gettime()
/dragonfly/lib/libtelnet/
H A Dencrypt.c752 unsigned char *strp; in encrypt_send_keyid() local
762 for (strp = &str_keyid[4]; keylen > 0; --keylen) { in encrypt_send_keyid()
763 if ((*strp++ = *keyid++) == IAC) in encrypt_send_keyid()
764 *strp++ = IAC; in encrypt_send_keyid()
766 *strp++ = IAC; in encrypt_send_keyid()
767 *strp++ = SE; in encrypt_send_keyid()
768 net_write(str_keyid, strp - str_keyid); in encrypt_send_keyid()
769 printsub('>', &str_keyid[2], strp - str_keyid - 2); in encrypt_send_keyid()
/dragonfly/usr.bin/dsynth/
H A Dsubs.c308 freestrp(char **strp) in freestrp() argument
310 if (*strp) { in freestrp()
311 free(*strp); in freestrp()
312 *strp = NULL; in freestrp()
317 dupstrp(char **strp) in dupstrp() argument
319 if (*strp) in dupstrp()
320 *strp = strdup(*strp); in dupstrp()
H A Ddsynth.h611 void freestrp(char **strp);
612 void dupstrp(char **strp);
/dragonfly/usr.sbin/lpr/lpd/
H A Dprintjob.c1361 char *strp; in scan_out() local
1367 strp = &outbuf[0]; in scan_out()
1373 *strp++ = BACKGND; in scan_out()
1375 strp = scnline(scnkey[(int)c][scnhgt-1-d], strp, cc); in scan_out()
1379 *strp++ = BACKGND; in scan_out()
1380 *strp++ = BACKGND; in scan_out()
1382 while (*--strp == BACKGND && strp >= outbuf) in scan_out()
1384 strp++; in scan_out()
1385 *strp++ = '\n'; in scan_out()
1386 write(scfd, outbuf, strp-outbuf); in scan_out()
/dragonfly/sys/kern/
H A Dsubr_prf.c470 kvasnprintf(char **strp, size_t size, const char *format, __va_list ap) in kvasnprintf() argument
475 *strp = kmalloc(size, M_TEMP, M_WAITOK); in kvasnprintf()
476 info.str = *strp; in kvasnprintf()
485 kvasfree(char **strp) in kvasfree() argument
487 if (*strp) { in kvasfree()
488 kfree(*strp, M_TEMP); in kvasfree()
489 *strp = NULL; in kvasfree()
H A Dlink_elf.c798 const char *strp; in link_elf_lookup_symbol() local
824 strp = ef->strtab + symp->st_name; in link_elf_lookup_symbol()
826 if (strcmp(name, strp) == 0) { in link_elf_lookup_symbol()
847 strp = ef->ddbstrtab + symp->st_name; in link_elf_lookup_symbol()
848 if (strcmp(name, strp) == 0) { in link_elf_lookup_symbol()
/dragonfly/sbin/mountd/
H A Dmountd.c985 char *strp; in xdr_mlist() local
991 strp = &mlp->ml_host[0]; in xdr_mlist()
992 if (!xdr_string(xdrsp, &strp, RPCMNT_NAMELEN)) in xdr_mlist()
994 strp = &mlp->ml_dirp[0]; in xdr_mlist()
995 if (!xdr_string(xdrsp, &strp, RPCMNT_PATHLEN)) in xdr_mlist()
1052 char *strp; in put_exlist() local
1059 strp = dp->dp_dirp; in put_exlist()
1069 strp = "(...)"; in put_exlist()
1081 if (!xdr_string(xdrsp, &strp, in put_exlist()
1087 strp = grp->gr_ptr.gt_net.nt_name; in put_exlist()
[all …]
/dragonfly/sbin/routed/
H A Dtable.c1138 char str[100], *strp; in read_rt() local
1200 strp = &str[strlen(str)]; in read_rt()
1202 strp += sprintf(strp," from pid %d",m.r.rtm.rtm_pid); in read_rt()
1224 strp += sprintf(strp, ": %s", in read_rt()
1239 strp += sprintf(strp, " --> %s", naddr_ntoa(gate)); in read_rt()
1245 strp += sprintf(strp, " by authority of %s", in read_rt()
/dragonfly/contrib/tcsh-6/
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()
/dragonfly/stand/boot/common/
H A Dload_elf.c694 char *strp; in __elfN() local
712 strp = strdupout((vm_offset_t)(ef->strtab + sym.st_name)); in __elfN()
713 if (strcmp(name, strp) == 0) { in __elfN()
714 free(strp); in __elfN()
723 free(strp); in __elfN()
/dragonfly/usr.bin/unifdef/
H A Dunifdef.c1333 findsym(const char **strp) in findsym() argument
1338 str = *strp; in findsym()
1339 *strp = skipsym(str); in findsym()
1341 if (*strp == str) in findsym()
1348 (int)(*strp-str), str, in findsym()
/dragonfly/contrib/libarchive/libarchive/
H A Darchive_read_support_format_rar.c1365 char *strp; in read_header() local
1606 strp = filename; in read_header()
1607 while (memcmp(strp, "\x00\x00", 2)) in read_header()
1609 if (!memcmp(strp, "\x00\\", 2)) in read_header()
1610 *(strp + 1) = '/'; in read_header()
1611 strp += 2; in read_header()
1627 while ((strp = strchr(filename, '\\')) != NULL) in read_header()
1628 *strp = '/'; in read_header()
1635 while ((strp = strchr(filename, '\\')) != NULL) in read_header()
1636 *strp = '/'; in read_header()

12