Home
last modified time | relevance | path

Searched refs:strncmp (Results 1 – 25 of 1395) sorted by relevance

12345678910>>...56

/illumos-gate/usr/src/lib/mpapi/libmpscsi_vhci/common/
H A Dmp_utils.c233 if (strncmp(subClassName, ESC_SUN_MP_PLUGIN_CHANGE, 255) in notifyClient()
238 } else if (strncmp(subClassName, ESC_SUN_MP_LU_CHANGE, 255) in notifyClient()
243 } else if (strncmp(subClassName, ESC_SUN_MP_PATH_CHANGE, 255) in notifyClient()
248 } else if (strncmp(subClassName, ESC_SUN_MP_INIT_PORT_CHANGE, in notifyClient()
253 } else if (strncmp(subClassName, ESC_SUN_MP_TPG_CHANGE, 255) in notifyClient()
258 } else if (strncmp(subClassName, ESC_SUN_MP_TARGET_PORT_CHANGE, in notifyClient()
263 } else if (strncmp(subClassName, ESC_SUN_MP_DEV_PROD_CHANGE, in notifyClient()
280 if (strncmp(subClassName, ESC_SUN_MP_LU_ADD, 255) == 0) { in notifyClient()
284 } else if (strncmp(subClassName, ESC_SUN_MP_PATH_ADD, 255) in notifyClient()
289 } else if (strncmp(subClassName, ESC_DDI_INITIATOR_REGISTER, in notifyClient()
[all …]
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/ontario/common/
H A Dstpaul.c158 if (strncmp(name, USB, strlen(USB)) == 0) { in stpaul_pci_callback()
369 if (strncmp(path, SPL_PCIE_PEM0, strlen(SPL_PCIE_PEM0)) == 0) { in get_bus_type()
371 } else if (strncmp(path, SPL_PCIE_PEM1, strlen(SPL_PCIE_PEM1)) == 0) { in get_bus_type()
373 } else if (strncmp(path, SPL_PCIE_NEM0, strlen(SPL_PCIE_NEM0)) == 0) { in get_bus_type()
375 } else if (strncmp(path, SPL_PCIE_NEM1, strlen(SPL_PCIE_NEM1)) == 0) { in get_bus_type()
377 } else if (strncmp(path, SWITCH_A_PATH, strlen(SWITCH_A_PATH)) == 0) { in get_bus_type()
379 } else if (strncmp(path, SWITCH_B_PATH, strlen(SWITCH_B_PATH)) == 0) { in get_bus_type()
389 if (strncmp(path, SPL_PCIE_PEM0, strlen(SPL_PCIE_PEM0)) == 0) { in get_slot_number()
392 } else if (strncmp(path, SPL_PCIE_NEM0, strlen(SPL_PCIE_NEM0)) == 0) { in get_slot_number()
395 } else if (strncmp(path, SPL_PCIE_PEM1, strlen(SPL_PCIE_PEM1)) == 0) { in get_slot_number()
[all …]
H A Dontario.c81 if (strncmp(path, PCIX_SLOT0, PCIX_COMP_NUM) == 0) { in get_bus_type()
91 if (strncmp(path, PCIE_SLOT0, PCIE_COMP_NUM) == 0) { in get_slot_number()
94 } else if (strncmp(path, PCIE_SLOT1, PCIE_COMP_NUM) == 0) { in get_slot_number()
97 } else if (strncmp(path, PCIE_SLOT2, PCIE_COMP_NUM) == 0) { in get_slot_number()
100 } else if ((strncmp(path, PCIX_SLOT1, strlen(PCIX_SLOT1)) == 0) || in get_slot_number()
101 (strncmp(path, PCIX_SLOT0, strlen(PCIX_SLOT0)) == 0)) { in get_slot_number()
132 if (strncmp(path, NETWORK_1_PATH, strlen(NETWORK_1_PATH)) == 0) { in ontario_get_network_instance()
134 } else if (strncmp(path, NETWORK_3_PATH, strlen(NETWORK_3_PATH)) == 0) { in ontario_get_network_instance()
136 } else if (strncmp(path, NETWORK_0_PATH, strlen(NETWORK_0_PATH)) == 0) { in ontario_get_network_instance()
138 } else if (strncmp(path, NETWORK_2_PATH, strlen(NETWORK_2_PATH)) == 0) { in ontario_get_network_instance()
[all …]
H A Dpelton.c67 if (strncmp(path, PEL_PCIX_SLOT0, PCIX_COMP_NUM) == 0) { in get_bus_type()
69 } else if (strncmp(path, PEL_PCIX_SLOT1, PCIX_COMP_NUM) == 0) { in get_bus_type()
71 } else if (strncmp(path, PEL_PCIX_SLOT2, PCIX_COMP_NUM) == 0) { in get_bus_type()
73 } else if (strncmp(path, PEL_PCIX_ONBOARD0, PCIX_COMP_NUM) == 0) { in get_bus_type()
93 if (strncmp(path, PEL_PCIE_SLOT0, PCIE_COMP_NUM) == 0) { in get_slot_number()
96 } else if (strncmp(path, PEL_PCIX_SLOT2, strlen(PEL_PCIX_SLOT2)) == 0) { in get_slot_number()
99 } else if (strncmp(path, PEL_PCIX_SLOT1, strlen(PEL_PCIX_SLOT1)) == 0) { in get_slot_number()
102 } else if (strncmp(path, PEL_PCIX_SLOT0, strlen(PEL_PCIX_SLOT0)) == 0) { in get_slot_number()
114 if (strncmp(path, PEL_NETWORK_1_PATH, in pelton_get_network_instance()
117 } else if (strncmp(path, PEL_NETWORK_3_PATH, in pelton_get_network_instance()
[all …]
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/monza/common/
H A Dmonza.c105 if (strncmp(path, MONZA_NETWORK_0, strlen(MONZA_NETWORK_0)) == 0) { in monza_get_network_instance()
107 } else if (strncmp(path, MONZA_NETWORK_1, strlen(MONZA_NETWORK_1)) in monza_get_network_instance()
110 } else if (strncmp(path, MONZA_NETWORK_2, strlen(MONZA_NETWORK_2)) in monza_get_network_instance()
113 } else if (strncmp(path, MONZA_ENET_2, strlen(MONZA_ENET_2)) in monza_get_network_instance()
116 } else if (strncmp(path, MONZA_NETWORK_3, strlen(MONZA_NETWORK_3)) in monza_get_network_instance()
119 } else if (strncmp(path, MONZA_ENET_3, strlen(MONZA_ENET_3)) in monza_get_network_instance()
122 } else if (strncmp(path, MONZA_NETWORK_4, strlen(MONZA_NETWORK_4)) in monza_get_network_instance()
125 } else if (strncmp(path, MONZA_NETWORK_5, strlen(MONZA_NETWORK_5)) in monza_get_network_instance()
128 } else if (strncmp(path, MONZA_N2_XAUI0, strlen(MONZA_N2_XAUI0)) in monza_get_network_instance()
131 } else if (strncmp(path, MONZA_N2_XAUI1, strlen(MONZA_N2_XAUI1)) in monza_get_network_instance()
[all …]
/illumos-gate/usr/src/tools/smatch/src/
H A Dsmatch.c97 if (!strncmp(reg_funcs[i].name, "check_", 6)) in show_checks()
117 if (strncmp(s, "check_", 6) == 0) in enable_disable_checks()
193 if (!strncmp((*argvp)[i], "--project=", 10)) in parse_args()
196 if (!strncmp((*argvp)[i], "-p=", 3)) in parse_args()
199 if (!strncmp((*argvp)[i], "--db-file=", 10)) in parse_args()
202 if (!strncmp((*argvp)[i], "--data=", 7)) in parse_args()
205 if (!strncmp((*argvp)[i], "--debug=", 8)) in parse_args()
208 if (strncmp((*argvp)[i], "--trace=", 8) == 0) in parse_args()
211 if (strncmp((*argvp)[i], "--enable=", 9) == 0) { in parse_args()
216 if (strncmp((*argvp)[i], "--disable=", 10) == 0) { in parse_args()
[all …]
/illumos-gate/usr/src/cmd/mailx/
H A Dusg.local.c86 return (strncmp(file, maildir, strlen(maildir)) == 0); in ismailbox()
88 if (strncmp(file, "/var", 4) != 0 in ismailbox()
89 && strncmp(file, "/usr", 4) != 0 in ismailbox()
93 if (strncmp(file, "/spool", 6) == 0) in ismailbox()
95 return (strncmp(file, "/mail/", 6) == 0); in ismailbox()
/illumos-gate/usr/src/lib/scsi/plugins/ses/SUN-Storage-J4400/common/
H A Driverwalk.c123 if (strncmp(strp->rws_ps0_id, "SPS0", 4) != 0) in sun_riverwalk_parse_node()
131 if (strncmp(strp->rws_ps1_id, "SPS1", 4) != 0) in sun_riverwalk_parse_node()
143 if (strncmp(strp->rws_sim0_id, "SIM0", 4) != 0) in sun_riverwalk_parse_node()
151 if (strncmp(strp->rws_sim1_id, "SIM1", 4) != 0) in sun_riverwalk_parse_node()
169 if (strncmp(strp->rws_ps0_id, "FAN0", 4) != 0) in sun_riverwalk_parse_node()
177 if (strncmp(strp->rws_ps1_id, "FAN1", 4) != 0) in sun_riverwalk_parse_node()
212 if (strncmp(strp->rws_mid_id, "MID ", 4) == 0 && in sun_riverwalk_parse_node()
/illumos-gate/usr/src/tools/protocmp/
H A Dproto_list.c200 if (strncmp(e->symsrc, "sun4/", 5) == 0) in parse_line()
202 else if (strncmp(e->symsrc, "sun4c/", 6) == 0) in parse_line()
204 else if (strncmp(e->symsrc, "sun4u/", 6) == 0) in parse_line()
206 else if (strncmp(e->symsrc, "sun4d/", 6) == 0) in parse_line()
208 else if (strncmp(e->symsrc, "sun4e/", 6) == 0) in parse_line()
210 else if (strncmp(e->symsrc, "sun4m/", 6) == 0) in parse_line()
212 else if (strncmp(e->symsrc, "sun4v/", 6) == 0) in parse_line()
215 if (strncmp(e->symsrc, "i86pc/", 6) == 0) in parse_line()
218 if (strncmp(e->symsrc, "prep/", 5) == 0) in parse_line()
/illumos-gate/usr/src/lib/scsi/plugins/ses/SUN-Storage-J4500/common/
H A Dloki.c144 if (strncmp(field, "Storage J4500", 13) == 0) { in sun_loki_parse_node()
161 } else if (strncmp(field, "Fan PartNUM", 11) == 0) { in sun_loki_parse_node()
177 strncmp(field, "Unknown", 7) != 0 && in sun_loki_parse_node()
178 strncmp(field, "Not Installed", 13) != 0) { in sun_loki_parse_node()
186 } else if (strncmp(field, "PS PartNUM", 10) == 0) { in sun_loki_parse_node()
203 strncmp(field, "Unknown", 7) != 0 && in sun_loki_parse_node()
204 strncmp(field, "Not Installed", 13) != 0) { in sun_loki_parse_node()
/illumos-gate/usr/src/cmd/cdrw/
H A Ddevice.c62 if (strncmp("SONY", (const char *)&dev->d_inq[8], 4) == 0) { in is_old_sun_drive()
63 if (strncmp("CDU 561", (const char *)&dev->d_inq[16], 7) == 0) in is_old_sun_drive()
65 if (strncmp("CDU-8012", (const char *)&dev->d_inq[16], 8) == 0) in is_old_sun_drive()
69 if ((strncmp("TOSHIBA", (const char *)&dev->d_inq[8], 7) == 0) && in is_old_sun_drive()
70 (strncmp("XM", (const char *)&dev->d_inq[16], 2) == 0)) { in is_old_sun_drive()
75 if (strncmp("SUN32XCD", (const char *)&dev->d_inq[24], 8) == 0) in is_old_sun_drive()
118 if ((strncmp(devnode, "/devices/", 9) != 0) && in get_device()
119 (strncmp(devnode, "/vol/dev/rdsk", 13) != 0)) in get_device()
177 if ((strncmp("LITE-ON", (const char *)&dev->d_inq[8], 7) == 0) && in get_device()
178 (strncmp("LTR-48", (const char *)&dev->d_inq[16], 6) == 0)) { in get_device()
[all …]
/illumos-gate/usr/src/cmd/backup/restore/
H A Dinteractive.c83 if (strncmp(cmd, "add", strlen(cmd)) != 0) in runcmdshell()
98 if (strncmp(cmd, "cd", strlen(cmd)) != 0) in runcmdshell()
119 if (strncmp(cmd, "delete", strlen(cmd)) != 0) in runcmdshell()
135 if (strncmp(cmd, "extract", strlen(cmd)) != 0) in runcmdshell()
149 if (strncmp(cmd, "help", strlen(cmd)) != 0) in runcmdshell()
177 if ((strncmp(cmd, "ls", strlen(cmd)) != 0) && in runcmdshell()
178 (strncmp(cmd, "marked", strlen(cmd)) != 0)) in runcmdshell()
193 if (strncmp(cmd, "pwd", strlen(cmd)) == 0) { in runcmdshell()
199 } else if (strncmp(cmd, "paginate", strlen(cmd)) == 0) { in runcmdshell()
235 if (strncmp(cmd, "quit", strlen(cmd)) != 0) in runcmdshell()
[all …]
/illumos-gate/usr/src/cmd/sqlite/
H A Dshell.c575 if( c=='d' && n>1 && strncmp(azArg[0], "databases", n)==0 ){ in do_meta_command()
592 if( c=='d' && strncmp(azArg[0], "dump", n)==0 ){ in do_meta_command()
622 if( c=='e' && strncmp(azArg[0], "echo", n)==0 && nArg>1 ){ in do_meta_command()
637 if( c=='e' && strncmp(azArg[0], "exit", n)==0 ){ in do_meta_command()
641 if( c=='e' && strncmp(azArg[0], "explain", n)==0 ){ in do_meta_command()
683 if( c=='h' && (strncmp(azArg[0], "header", n)==0 in do_meta_command()
685 strncmp(azArg[0], "headers", n)==0 )&& nArg>1 ){ in do_meta_command()
700 if( c=='h' && strncmp(azArg[0], "help", n)==0 ){ in do_meta_command()
704 if( c=='i' && strncmp(azArg[0], "indices", n)==0 && nArg>1 ){ in do_meta_command()
726 if( c=='m' && strncmp(azArg[0], "mode", n)==0 && nArg>=2 ){ in do_meta_command()
[all …]
/illumos-gate/usr/src/cmd/fm/fmd/common/
H A Dfmd_self.c130 if (strncmp(class, "ereport.io.ddi.", strlen("ereport.io.ddi.")) == 0) in self_recv()
144 strncmp(class, FM_FAULT_CLASS, strlen(FM_FAULT_CLASS)) == 0 || in self_recv()
145 strncmp(class, FM_DEFECT_CLASS, strlen(FM_DEFECT_CLASS)) == 0) in self_recv()
148 if (strncmp(class, FMD_ERR_CLASS, FMD_ERR_CLASS_LEN) == 0) in self_recv()
151 if (strncmp(class, FMD_RSRC_CLASS, FMD_RSRC_CLASS_LEN) == 0) in self_recv()
154 if (strncmp(class, SYSEVENT_RSRC_CLASS, SYSEVENT_RSRC_CLASS_LEN) == 0) in self_recv()
160 if (strncmp(class, FM_IREPORT_CLASS ".", in self_recv()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/
H A Dsymlink.c43 …p' || *(a + 1) == 'n') && (!strncmp(a, "/dev/tcp/", 9) || !strncmp(a, "/dev/udp/", 9) || !strncmp(…
/illumos-gate/usr/src/cmd/sgs/libelf/misc/
H A Ddemangle.c86 if (strncmp(c, MSG_ORIG(MSG_STR_DBLUNDBAR), 2)) in second()
142 if (strncmp(c, MSG_ORIG(MSG_STR_DBLUNDBAR), 2) != 0) { in demangle()
148 while (c[i] && strncmp(c+i, MSG_ORIG(MSG_STR_DBLUNDBAR), 2)) in demangle()
155 if (strncmp(c+i, MSG_ORIG(MSG_STR_DBLUNDBAR), 2) == 0) { in demangle()
207 if (strncmp(c, MSG_ORIG(MSG_STR_OP), 2) == 0) { in demangle()
231 strncmp(c+1, MSG_ORIG(MSG_STR_TDBLUNDBAR), 3) == 0) { in demangle()
/illumos-gate/usr/src/lib/libresolv2/common/resolv/
H A Dres_init.c408 (!strncmp(line, name, sizeof(name) - 1) && \ in __res_vinit()
639 if (!strncmp(cp, "ndots:", sizeof("ndots:") - 1)) { in res_setoptions()
649 } else if (!strncmp(cp, "timeout:", sizeof("timeout:") - 1)) { in res_setoptions()
660 } else if (!strncmp(cp, "retrans:", sizeof("retrans:") - 1)) { in res_setoptions()
667 } else if (!strncmp(cp, "retry:", sizeof("retry:") - 1)){ in res_setoptions()
675 } else if (!strncmp(cp, "attempts:", sizeof("attempts:") - 1)){ in res_setoptions()
685 } else if (!strncmp(cp, "debug", sizeof("debug") - 1)) { in res_setoptions()
694 } else if (!strncmp(cp, "no_tld_query", in res_setoptions()
696 !strncmp(cp, "no-tld-query", in res_setoptions()
699 } else if (!strncmp(cp, "inet6", sizeof("inet6") - 1)) { in res_setoptions()
[all …]
/illumos-gate/usr/src/cmd/sunpc/other/
H A Ddos2unix.c133 if (argc > 1 && !strncmp(*argv,"-iso",4)) { in main()
136 } else if (argc > 1 && !strncmp(*argv,"-7",2)) { in main()
139 } else if (argc > 1 && !strncmp(*argv,"-ascii",6)) { in main()
142 } else if (argc > 1 && !strncmp(*argv,"-437",4)) { in main()
145 } else if (argc > 1 && !strncmp(*argv,"-850",4)) { in main()
148 } else if (argc > 1 && !strncmp(*argv,"-860",4)) { in main()
151 } else if (argc > 1 && !strncmp(*argv,"-863",4)) { in main()
154 } else if (argc > 1 && !strncmp(*argv,"-865",4)) { in main()
H A Dunix2dos.c137 if (argc > 1 && !strncmp(*argv, "-iso", 4)) { in main()
140 } else if (argc > 1 && !strncmp(*argv, "-7", 2)) { in main()
143 } else if (argc > 1 && !strncmp(*argv, "-ascii", 6)) { in main()
146 } else if (argc > 1 && !strncmp(*argv, "-437", 4)) { in main()
149 } else if (argc > 1 && !strncmp(*argv, "-850", 4)) { in main()
152 } else if (argc > 1 && !strncmp(*argv, "-860", 4)) { in main()
155 } else if (argc > 1 && !strncmp(*argv, "-863", 4)) { in main()
158 } else if (argc > 1 && !strncmp(*argv, "-865", 4)) { in main()
/illumos-gate/usr/src/cmd/krb5/kadmin/ktutil/
H A Dktutil.c207 if ((strlen(argv[i]) == 2) && !strncmp(argv[i], "-p", 2)) {
211 if ((strlen(argv[i]) == 2) && !strncmp(argv[i], "-k", 2)) {
215 if ((strlen(argv[i]) == 2) && !strncmp(argv[i], "-e", 2)) {
219 if ((strlen(argv[i]) == 9) && !strncmp(argv[i], "-password", 9)) {
223 if ((strlen(argv[i]) == 4) && !strncmp(argv[i], "-key", 4)) {
268 if ((strlen(argv[i]) == 2) && !strncmp(argv[i], "-t", 2)) {
272 if ((strlen(argv[i]) == 2) && !strncmp(argv[i], "-k", 2)) {
276 if ((strlen(argv[i]) == 2) && !strncmp(argv[i], "-e", 2)) {
/illumos-gate/usr/src/cmd/fm/schemes/mem/
H A Dmem_unum.c39 #define ISHCUNUM(unum) (strncmp(unum, "hc:/", 4) == 0)
360 if ((strncmp(erunum, "/N", 2) != 0 && strncmp(erunum, "/IO", 3) != 0 && in unum_contains_bysubstr()
361 strncmp(erunum, "/SB", 3) != 0) || in unum_contains_bysubstr()
362 (strncmp(eeunum, "/N", 2) != 0 && strncmp(eeunum, "/IO", 3) != 0 && in unum_contains_bysubstr()
363 strncmp(eeunum, "/SB", 3) != 0)) { in unum_contains_bysubstr()
380 return (strncmp(erunum, eeunum, MIN(erlen, eelen)) == 0); in unum_contains_bysubstr()
/illumos-gate/usr/src/lib/sun_sas/common/
H A Devent.c147 if (strncmp(EC_HBA, sysevent_get_class_name(ev), strlen(EC_HBA)) == 0) { in syseventHandler()
149 if (strncmp(ESC_SAS_PHY_EVENT, sysevent_get_subclass_name(ev), in syseventHandler()
163 if (strncmp(eventStr, "phy_online", in syseventHandler()
174 } else if (strncmp(eventStr, in syseventHandler()
178 } else if (strncmp(eventStr, in syseventHandler()
217 } else if (strncmp(EC_DR, sysevent_get_class_name(ev), 2) == 0) { in syseventHandler()
/illumos-gate/usr/src/cmd/sgs/rtld/common/
H A Dutil.c1479 if ((len == MSG_LD_AUDIT_SIZE) && (strncmp(s1, in ld_generic_env()
1488 (strncmp(s1, MSG_ORIG(MSG_LD_AUDIT_ARGS), in ld_generic_env()
1502 if ((len == MSG_LD_BIND_LAZY_SIZE) && (strncmp(s1, in ld_generic_env()
1508 } else if ((len == MSG_LD_BIND_NOW_SIZE) && (strncmp(s1, in ld_generic_env()
1513 } else if ((len == MSG_LD_BIND_NOT_SIZE) && (strncmp(s1, in ld_generic_env()
1525 } else if ((len == MSG_LD_BINDINGS_SIZE) && (strncmp(s1, in ld_generic_env()
1540 if ((len == MSG_LD_CAP_FILES_SIZE) && (strncmp(s1, in ld_generic_env()
1546 } else if ((len == MSG_LD_CONFGEN_SIZE) && (strncmp(s1, in ld_generic_env()
1556 } else if ((len == MSG_LD_CONFIG_SIZE) && (strncmp(s1, in ld_generic_env()
1577 if ((len == MSG_LD_DEBUG_SIZE) && (strncmp(s1, in ld_generic_env()
[all …]
/illumos-gate/usr/src/tools/cw/
H A Dcw.c547 if (strncmp(arg, "-_g++=", 6) == 0) { in do_gcc()
566 if ((strncmp(arg, nameflag, strlen(nameflag)) == 0) || in do_gcc()
567 (strncmp(arg, "-_gcc=", 6) == 0) || in do_gcc()
568 (strncmp(arg, "-_gnu=", 6) == 0)) { in do_gcc()
728 if (strncmp(arg, "-Wa,", 4) == 0 || in do_gcc()
729 strncmp(arg, "-Wp,", 4) == 0 || in do_gcc()
730 strncmp(arg, "-Wl,", 4) == 0) { in do_gcc()
755 if (strncmp(arg, "-xarch=", 7) == 0) { in do_gcc()
762 if (strncmp(arg, "-xbuiltin=", 10) == 0) { in do_gcc()
770 if (strncmp(arg, "-xc99=%all", 10) == 0) { in do_gcc()
[all …]
/illumos-gate/usr/src/cmd/svc/startd/
H A Denv.c86 if (strncmp(tokp, "CMASK=", 6) == 0 || in init_env()
87 strncmp(tokp, "SMF_", 4) == 0) { in init_env()
133 } else if (strncmp(var, "SMF_", 4) == 0) { in valid_env_var()
139 } else if (path != NULL && strncmp(var, "PATH=", 5) == 0) { in valid_env_var()
155 if (strncmp(*p, var, tmp - *p) == 0) in find_dup()
167 strncmp(*p, DEF_PATH, strlen(DEF_PATH)) != 0) { in find_dup()

12345678910>>...56