/illumos-gate/usr/src/cmd/getopt/ |
H A D | getopt.c | 59 char *outstr; in main() local 80 if ((outstr = (char *)malloc(bufsize)) == NULL) { in main() 84 outstr[0] = '\0'; in main() 98 ALLOC_BUFMEM(outstr, bufsize, 3); in main() 100 (void) strcat(outstr, tmpstr); in main() 103 ALLOC_BUFMEM(outstr, bufsize, strlen(optarg)+1) in main() local 104 (void) strcat(outstr, optarg); in main() 105 (void) strcat(outstr, " "); in main() 113 ALLOC_BUFMEM(outstr, bufsize, 3) in main() local 114 (void) strcat(outstr, "-- "); in main() [all …]
|
/illumos-gate/usr/src/cmd/lp/model/netpr/ |
H A D | misc.c | 76 char * outstr; in alloc_str() local 78 outstr = (char *)malloc(strlen(instr) + 1); in alloc_str() 79 ASSERT(outstr, MALLOC_ERR); in alloc_str() 80 (void) memset(outstr, 0, strlen(instr) + 1); in alloc_str() 81 (void) strcpy(outstr, instr); in alloc_str() 83 return (outstr); in alloc_str()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_smb.c | 811 unicode2ascii(char *outstr, int outlen, uchar_t *instr, int inlen) in unicode2ascii() argument 824 outstr[j] = c; in unicode2ascii() 828 outstr[j] = '\0'; in unicode2ascii() 857 get_info_level(char *outstr, int outsz, int value) in get_info_level() argument 862 snprintf(outstr, outsz, "Standard"); in get_info_level() 865 snprintf(outstr, outsz, "Query EA Size"); in get_info_level() 868 snprintf(outstr, outsz, "Query EAS from List"); in get_info_level() 871 snprintf(outstr, outsz, "Directory Info"); in get_info_level() 874 snprintf(outstr, outsz, "Full Directory Info"); in get_info_level() 877 snprintf(outstr, outsz, "Names Info"); in get_info_level() [all …]
|
/illumos-gate/usr/src/cmd/bnu/ |
H A D | uudemon.admin | 66 outstr="" 77 outstr="$outstr $i" 83 if [ -n "$outstr" ]; then
|
H A D | uudemon.cleanup | 64 outstr="" 75 outstr="$outstr $i" 81 if [ -n "$outstr" ]; then
|
/illumos-gate/usr/src/lib/libxcurses/src/libc/stdio/ |
H A D | vfscanf.c | 468 match(const char *str, char *outstr) in match() argument 499 if (outstr != NULL) in match() 500 *outstr++ = c; in match() 508 else if (outstr != NULL) in match() 509 *outstr++ = c; in match() 513 else if (outstr != NULL) in match() 514 *outstr++ = c; in match() 522 if (outstr != NULL) in match() 523 *outstr = '\0'; in match()
|
/illumos-gate/usr/src/cmd/ldap/common/ |
H A D | convutf8.c | 614 char *outstr = NULL; 637 outstr = (char *) malloc(outlen + 2); 639 wclen, outstr, outlen, NULL, NULL); 641 *(outstr+outlen) = _T('\0'); 646 return outstr;
|
/illumos-gate/usr/src/cmd/mailx/ |
H A D | tty.c | 63 static void outstr(register char *s); 181 outstr(pr); in readtty() 198 outstr(canonb); in readtty() 268 outstr("(continue)\n"); in readtty() 270 outstr(pr); in readtty() 272 outstr(canonb); in readtty() 356 outstr(register char *s) in outstr() function
|
/illumos-gate/usr/src/cmd/mandoc/ |
H A D | dba.c | 243 static char *outstr = NULL; in prepend() local 249 outstr = mandoc_realloc(outstr, newlen + 1); in prepend() 252 *outstr = inbyte; in prepend() 253 memcpy(outstr + 1, instr, newlen); in prepend() 254 return outstr; in prepend()
|
/illumos-gate/usr/src/cmd/tail/tests/ |
H A D | sun_solaris_tail.sh | 500 outstr=$(/usr/bin/tail "${OUTFILE}") || err_exit "tail returned non-zero exit code $?" 501 …[[ "${outstr}" == 49991*50000 ]] || err_exit "${title}: Expected match for 49991*50000, got "$(sin…
|
/illumos-gate/usr/src/cmd/ast/libshell/common/tests/ |
H A D | sun_solaris_builtin_tail.sh | 477 outstr=$(/usr/bin/tail "${OUTFILE}") || err_exit "tail returned non-zero exit code $?" 478 …[[ "${outstr}" == 49991*50000 ]] || err_exit "${title}: Expected match for 49991*50000, got "$(sin…
|
/illumos-gate/usr/src/cmd/locale/ |
H A D | locale.c | 92 static void outstr(char *s); 495 outstr(eff); in print_cur_locale() 500 outstr(eff); in print_cur_locale() 503 outstr(eff); in print_cur_locale() 511 outstr(lc_allp); in print_cur_locale() 820 outstr(q[j]); in print_keyword() 943 outstr(char *s) in outstr() function
|
/illumos-gate/usr/src/cmd/pg/ |
H A D | pg.c | 600 char outstr[PROMPTSIZE]; in command() local 606 (void) sprintf(outstr, gettext( in command() 608 sopr(outstr, 1); in command() 1650 char outstr[PROMPTSIZE+6]; in prompt() local 1657 (void) sprintf(outstr, gettext("(Next file: %s)"), filename); in prompt() 1663 (void) sprintf(outstr, promptstr, pagenum); in prompt() 1665 sopr(outstr, 1); in prompt()
|
/illumos-gate/usr/src/cmd/nscd/ |
H A D | nscd_config.c | 2743 char *outstr = NULL; in _nscd_srcs_in_db_nsw_policy() local 2793 outstr = (char *)calloc(1, dlen); in _nscd_srcs_in_db_nsw_policy() 2794 if (outstr == NULL) { in _nscd_srcs_in_db_nsw_policy() 2814 (void) strlcat(outstr, dbname, dlen); in _nscd_srcs_in_db_nsw_policy() 2815 (void) strlcat(outstr, ",", dlen); in _nscd_srcs_in_db_nsw_policy() 2821 (void) strlcat(outstr, dbname, dlen); in _nscd_srcs_in_db_nsw_policy() 2822 (void) strlcat(outstr, ",", dlen); in _nscd_srcs_in_db_nsw_policy() 2827 i = strlen(outstr) - 1; in _nscd_srcs_in_db_nsw_policy() 2828 if (outstr[i] == ',') in _nscd_srcs_in_db_nsw_policy() 2829 outstr[i] = '\0'; in _nscd_srcs_in_db_nsw_policy() [all …]
|
/illumos-gate/usr/src/uts/common/disp/ |
H A D | priocntl.c | 141 char *outstr; in priocntl_common() local 725 outstr = ""; in priocntl_common() 727 outstr = sclass[defaultcid].cl_name; in priocntl_common() 728 size = strlen(outstr) + 1; in priocntl_common() 730 if ((*copyoutfn)(outstr, arg, size) != 0) in priocntl_common()
|
/illumos-gate/usr/src/cmd/ptools/pargs/ |
H A D | pargs.c | 1021 char *outstr, *outstrptr; in convert_run_iconv() local 1025 outstrptr = outstr = safe_zalloc(bufsz + 1); in convert_run_iconv() 1044 *(outstr + (bufsz - outleft)) = '\0'; in convert_run_iconv() 1048 free(outstr); in convert_run_iconv() 1050 free(outstr); in convert_run_iconv() 1064 return (outstr); in convert_run_iconv()
|
/illumos-gate/usr/src/lib/libkmf/libkmf/common/ |
H A D | generalop.c | 2481 int numattrs, char **outstr) in kmf_get_string_attr() argument 2486 if (outstr == NULL) in kmf_get_string_attr() 2491 *outstr = malloc(len + 1); in kmf_get_string_attr() 2492 if ((*outstr) == NULL) in kmf_get_string_attr() 2494 (void) memset((*outstr), 0, len + 1); in kmf_get_string_attr() 2495 rv = kmf_get_attr(type, attrlist, numattrs, (*outstr), &len); in kmf_get_string_attr() 2497 free(*outstr); in kmf_get_string_attr() 2498 *outstr = NULL; in kmf_get_string_attr()
|
/illumos-gate/usr/src/lib/libnisdb/ |
H A D | ldap_val.h | 117 char *sepset, char **outstr);
|
H A D | ldap_val.c | 2092 int *numVals, char *sepset, char **outstr) { in matchMappingItem() argument 2211 if (outstr != 0) in matchMappingItem() 2212 *outstr = str; in matchMappingItem()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | zone.c | 5418 char *outstr; in zone_getattr() local 5616 outstr = ""; in zone_getattr() 5618 outstr = zone->zone_bootargs; in zone_getattr() 5619 size = strlen(outstr) + 1; in zone_getattr() 5623 err = copyoutstr(outstr, buf, bufsize, NULL); in zone_getattr() 5640 outstr = ""; in zone_getattr() 5642 outstr = sclass[zone->zone_defaultcid].cl_name; in zone_getattr() 5643 size = strlen(outstr) + 1; in zone_getattr() 5647 err = copyoutstr(outstr, buf, bufsize, NULL); in zone_getattr() 5667 outstr = ""; in zone_getattr() [all …]
|
/illumos-gate/usr/src/cmd/mail/ |
H A D | mail.h | 285 extern void cmdexpand(int letnum, string *instr, string *outstr, char **lbraslist, char **lbraelist…
|
/illumos-gate/usr/src/uts/common/io/usb/usba/ |
H A D | usba.c | 1738 usba_filter_string(char *instr, char *outstr) in usba_filter_string() argument 1742 *outstr = *instr; in usba_filter_string() 1744 *outstr = ' '; in usba_filter_string() 1746 outstr++; in usba_filter_string() 1749 *outstr = '\0'; in usba_filter_string()
|
/illumos-gate/usr/src/cmd/zonecfg/ |
H A D | zonecfg.c | 1808 char *outstr; in quoteit() local 1811 if ((outstr = malloc(outstrsize)) == NULL) { in quoteit() 1816 (void) strlcpy(outstr, instr, outstrsize); in quoteit() 1817 return (outstr); in quoteit() 1819 (void) snprintf(outstr, outstrsize, "\"%s\"", instr); in quoteit() 1820 return (outstr); in quoteit()
|