/illumos-gate/usr/src/cmd/datadm/ |
H A D | datadm.c | 336 datadm_parse_generic_str(char *str, char **strptr) in datadm_parse_generic_str() argument 340 len = strlen(str); in datadm_parse_generic_str() 345 (void) strcpy(*strptr, str); in datadm_parse_generic_str() 355 datadm_parse_nonnull_str(char *str, char **strptr) in datadm_parse_nonnull_str() argument 360 if (str[0] == '\0') { in datadm_parse_nonnull_str() 363 start = str; in datadm_parse_nonnull_str() 364 for (i = 0; str[i] != '\0'; i++) { in datadm_parse_nonnull_str() 365 if (!isspace(str[i])) { in datadm_parse_nonnull_str() 366 start = &str[i]; in datadm_parse_nonnull_str() 370 for (; str[i] != '\0'; i++) { in datadm_parse_nonnull_str() [all …]
|
/illumos-gate/usr/src/cmd/devctl/ |
H A D | devctl.c | 596 s_strdup(char *str) in s_strdup() argument 598 char *buf = strdup(str); in s_strdup()
|
/illumos-gate/usr/src/cmd/devfsadm/ |
H A D | cfg_link.c | 549 char *str, *devtype; in pci_cfg_ap_node() local 562 str = pci_cfg_slotname(node, ph, pci_dev); in pci_cfg_ap_node() 563 if (str != NULL) { in pci_cfg_ap_node() 564 (void) strlcpy(buf, str, bufsz); in pci_cfg_ap_node() 565 free(str); in pci_cfg_ap_node()
|
H A D | devfsadm.c | 4781 get_component(char *str, const char *comp_str) in get_component() argument 4786 if (str == NULL) { in get_component() 4791 return (str); in get_component() 4801 return (str); in get_component() 4803 for (cp = str; ; cp++) { in get_component() 4814 str = NULL; in get_component() 4817 return (str); in get_component() 7867 char *str; in add_property() local 7927 if ((n = di_prop_strings(prop, &str)) < 1) in add_property() 7935 strarray[i] = str + len; in add_property()
|
H A D | devfsadm_impl.h | 463 static char *get_component(char *str, const char *comp_num);
|
H A D | disk_link.c | 272 uchar_t *str; in disk_callback_fabric() local 294 for (count = 0, str = ascii_wwn; count < 8; count++, str += 2) { in disk_callback_fabric() 295 (void) sprintf((caddr_t)str, "%02x", wwn[count]); in disk_callback_fabric() 297 *str = '\0'; in disk_callback_fabric() 302 for (str = ascii_wwn; *str != '\0'; str++) { in disk_callback_fabric() 303 *str = DISK_LINK_TO_UPPER(*str); in disk_callback_fabric()
|
/illumos-gate/usr/src/cmd/devmgmt/cmds/ |
H A D | getvol.c | 59 char *str; in prog_name() local 62 str = arg0 + strlen(arg0); in prog_name() 63 while (str > arg0 && *--str == '/') in prog_name() 64 *str = '\0'; in prog_name() 65 if ((str = strrchr(arg0, '/')) != NULL) in prog_name() 66 return (str + 1); in prog_name()
|
/illumos-gate/usr/src/cmd/dfs.cmds/sharemgr/ |
H A D | commands.c | 1648 strndupr(char *buff, char *str, int *buffsize) in strndupr() argument 1660 limit = strlen(buff) + strlen(str) + 1; in strndupr() 1666 (void) strcat(buff, str); in strndupr()
|
/illumos-gate/usr/src/cmd/diff/ |
H A D | diff.c | 1011 readhash(FILE *f, int filen, char *str) in readhash() argument 1032 gettext("Warning: missing newline at end of file %s\n"), str); in readhash() 1049 gettext("Warning: missing newline at end of file %s\n"), str); in readhash() 1065 gettext("Warning: missing newline at end of file %s\n"), str); in readhash() 1086 gettext("Warning: missing newline at end of file %s\n"), str); in readhash() 2165 char str[2] = {0, 0}; in getbufwchar() local 2167 str[0] = (char)ch; in getbufwchar() 2168 if (mbtowc(&wc, str, 1) > 0) { in getbufwchar()
|
/illumos-gate/usr/src/cmd/dladm/ |
H A D | dladm.c | 6038 parse_wifi_fields(char *str, ofmt_handle_t *ofmt, uint_t cmdtype, in parse_wifi_fields() argument 6047 if (str == NULL) in parse_wifi_fields() 6048 str = def_scan_wifi_fields; in parse_wifi_fields() 6049 if (strcasecmp(str, "all") == 0) in parse_wifi_fields() 6050 str = all_scan_wifi_fields; in parse_wifi_fields() 6056 if (str == NULL) in parse_wifi_fields() 6057 str = def_show_wifi_fields; in parse_wifi_fields() 6058 if (strcasecmp(str, "all") == 0) in parse_wifi_fields() 6059 str = all_show_wifi_fields; in parse_wifi_fields() 6070 oferr = ofmt_open(str, template, (parsable ? OFMT_PARSABLE : 0), in parse_wifi_fields() [all …]
|
/illumos-gate/usr/src/cmd/dlmgmtd/ |
H A D | dlmgmt_db.c | 881 char *str, *lasts; in process_link_line() local 904 str = tmpbuf + i; in process_link_line() 908 if (strtok_r(str, " \n\t", &lasts) == NULL) in process_link_line() 911 llen = strlen(str); in process_link_line() 920 if (isdigit(str[0])) { in process_link_line() 921 linkp->ll_linkid = atoi(str); in process_link_line() 924 if (strlcpy(linkp->ll_link, str, sizeof (linkp->ll_link)) >= in process_link_line() 929 str += llen + 1; in process_link_line() 930 if (str >= tmpbuf + len) in process_link_line() 936 if ((str = strtok_r(str, " \n\t", &lasts)) == NULL) in process_link_line() [all …]
|
/illumos-gate/usr/src/cmd/drd/ |
H A D | drd.c | 267 char *str; in drd_pack_response() local 297 str = (char *)(uintptr_t)rsrcs[idx].offset; in drd_pack_response() 300 if (str == NULL) in drd_pack_response() 303 len = strlen(str) + 1; in drd_pack_response() 313 str = (char *)(uintptr_t)rsrcs[idx++].offset; in drd_pack_response() 314 s_free(str); in drd_pack_response() 323 bcopy(str, off, len); in drd_pack_response() 331 s_free(str); in drd_pack_response()
|
/illumos-gate/usr/src/cmd/dtrace/ |
H A D | dtrace.c | 840 #define BUFDUMPASSTR(ptr, field, str) \ argument 841 (void) printf("%s: %20s => %s\n", g_pname, #field, str);
|
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/aggs/ |
H A D | tst.subr.d | 44 @str[x] = sum(1); \
|
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/docsExamples/ |
H A D | kstat.d | 46 this->str = copyinstr(self->ksname); 48 printf("%s has ui64 value %u\n", this->str, this->ksp->value.ui64);
|
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/funcs/ |
H A D | tst.index.d | 30 string str; member 40 command[i].str = "foobarbaz"; 44 command[i].str = "foofoofoo"; 48 command[i].str = "boofoofoo"; 52 command[i].str = "foobarbaz"; 56 command[i].str = "foobar"; 60 command[i].str = "foobar"; 64 command[i].str = ""; 68 command[i].str = "foobar"; 72 command[i].str = ""; [all …]
|
H A D | tst.strchr.d | 31 str = "fooeyfooeyfoo"; 35 printf("strchr(\"%s\", '%c') = \"%s\"\n", str, c, strchr(str, c)); 36 printf("strrchr(\"%s\", '%c') = \"%s\"\n", str, c, strrchr(str, c)); 39 printf("strchr(\"%s\", '%c') = \"%s\"\n", str, c, strchr(str, c)); 40 printf("strrchr(\"%s\", '%c') = \"%s\"\n", str, c, strrchr(str, c)); 42 printf("strrchr(\"%s\", '%c') = \"%s\"\n", strchr(str, c), c, 43 strrchr(strchr(str, c), c)); 55 /strchr(str, 'a') != NULL/ 61 /strrchr(str, 'a') != NULL/
|
H A D | tst.strstr.d | 31 str = "foobarbarbazbarbop"; 34 c = str; 35 printf("strstr(\"%s\", \"%s\") = \"%s\"\n", str, c, strstr(str, c)); 38 printf("strstr(\"%s\", \"%s\") = \"%s\"\n", str, c, strstr(str, c)); 41 printf("strstr(\"%s\", \"%s\") = \"%s\"\n", str, c, strstr(str, c)); 44 printf("strstr(\"%s\", \"%s\") = \"%s\"\n", str, c, strstr(str, c)); 47 printf("strstr(\"%s\", \"%s\") = \"%s\"\n", str, c, strstr(str, c)); 50 strstr(str, "baz"), strstr(str, "zba"), 51 strstr(strstr(str, "baz"), strstr(str, "zba"))); 54 printf("strstr(\"%s\", \"%s\") = \"%s\"\n", str, c, strstr(str, c)); [all …]
|
H A D | tst.strtok.d | 31 this->str = ",,,Carrots,,Barley,Oatmeal,,,Beans,"; 35 /(this->field = strtok(this->str, ",")) == NULL/
|
H A D | tst.substr.d | 41 str = "foobarbazbop"; 66 command[i].index = strlen(str) - 1; 70 command[i].index = strlen(str); 74 command[i].index = strlen(str) + 1; 87 command[i].length = strlen(str) - command[i].index + 1; 91 command[i].length = strlen(str) - command[i].index + 2; 142 command[i].index = -2 * strlen(str); 143 command[i].length = 2 * strlen(str); 146 command[i].index = -2 * strlen(str); 147 command[i].length = strlen(str); [all …]
|
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/safety/ |
H A D | tst.shortstr.d | 32 this->str = ",,,Carrots,,Barley,Oatmeal,,,,,,,,,,,,,,,,,,Beans,"; 37 strtok(this->str, ","); 42 this->str = ",,,,,,,,,,,,,,,,,,,,,,Carrots,"; 43 strtok(this->str, ","); 48 strtok(this->str, "a"); 53 printf("%s\n", substr(this->str, 1, 40)); 58 printf("%s\n", strjoin(this->str, this->str)); 64 printf("%d\n", index(this->str, this->str1)); 69 printf("%d\n", rindex(this->str, this->str1));
|
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/speculation/ |
H A D | err.D_ACT_SPEC.SpeculateWithCopyOutStr.d | 37 string str; variable 54 copyoutstr(str, addr, maxlen);
|
/illumos-gate/usr/src/cmd/dtrace/test/tst/i386/funcs/ |
H A D | tst.badcopyoutstr.d | 45 this->str = alloca(10); 46 bcopy("kablammo!", this->str, 10); 47 copyoutstr(this->str, (uintptr_t)&`clock, 10);
|
/illumos-gate/usr/src/cmd/ed/ |
H A D | ed.c | 285 static int strequal(char **scan1, char *str); 3107 strequal(char **scan1, char *str) in strequal() argument 3111 while ((c = *scan++) == *str && c) in strequal() 3112 str++; in strequal() 3114 if (c == 0 && *str == 0) in strequal()
|
/illumos-gate/usr/src/cmd/eqn/ |
H A D | lex.c | 75 pbstr(char *str) in pbstr() argument 79 p = str; in pbstr() 85 while (p > str) in pbstr()
|