Home
last modified time | relevance | path

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

12345678910>>...51

/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()
253 } else if (strncmp(subClassName, ESC_SUN_MP_TPG_CHANGE, 255) 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()
294 } else if (strncmp(subClassName, ESC_SUN_MP_TPG_ADD, in notifyClient()
299 } else if (strncmp(subClassName, ESC_SUN_MP_TARGET_PORT_ADD, in notifyClient()
322 if (strncmp(subClassName, ESC_SUN_MP_LU_REMOVE, 255) == 0) { in notifyClient()
[all …]
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/ontario/common/
H A Dstpaul.c160 if (strncmp(name, USB, strlen(USB)) == 0) { in stpaul_pci_callback()
371 if (strncmp(path, SPL_PCIE_PEM0, strlen(SPL_PCIE_PEM0)) == 0) { in get_bus_type()
373 } else if (strncmp(path, SPL_PCIE_PEM1, strlen(SPL_PCIE_PEM1)) == 0) { in get_bus_type()
375 } else if (strncmp(path, SPL_PCIE_NEM0, strlen(SPL_PCIE_NEM0)) == 0) { in get_bus_type()
391 if (strncmp(path, SPL_PCIE_PEM0, strlen(SPL_PCIE_PEM0)) == 0) { in get_slot_number()
413 if (strncmp(path, SPL_NETWORK_1_PATH, in stpaul_get_network_instance()
416 else if (strncmp(path, SPL_NETWORK_0_PATH, in stpaul_get_network_instance()
426 if (strncmp(path, SPL_USB2_PATH, strlen(SPL_USB2_PATH)) == 0) in stpaul_get_usb_instance()
428 else if (strncmp(path, SPL_USB1_PATH, strlen(SPL_USB1_PATH)) == 0) in stpaul_get_usb_instance()
430 else if (strncmp(path, SPL_USB0_PATH, strlen(path)) == 0) in stpaul_get_usb_instance()
[all …]
H A Dontario.c83 if (strncmp(path, PCIX_SLOT0, PCIX_COMP_NUM) == 0) { in get_bus_type()
93 if (strncmp(path, PCIE_SLOT0, PCIE_COMP_NUM) == 0) { in get_slot_number()
337 if ((strncmp(platbuf, ONTARIO_PLATFORM, in sun4v_display_pci()
339 (strncmp(platbuf, ONTARIO_PLATFORM2, in sun4v_display_pci()
345 } else if ((strncmp(platbuf, PELTON_PLATFORM, in sun4v_display_pci()
351 } else if ((strncmp(platbuf, STPAUL_PLATFORM, in sun4v_display_pci()
355 } else if ((strncmp(platbuf, HURON_1U_PLATFORM, in sun4v_display_pci()
546 if ((strncmp(platbuf, ONTARIO_PLATFORM, in sun4v_display_hw_revisions()
556 } else if ((strncmp(platbuf, PELTON_PLATFORM, in sun4v_display_hw_revisions()
566 } else if ((strncmp(platbuf, STPAUL_PLATFORM, in sun4v_display_hw_revisions()
[all …]
H A Dpelton.c69 if (strncmp(path, PEL_PCIX_SLOT0, PCIX_COMP_NUM) == 0) { in get_bus_type()
71 } else if (strncmp(path, PEL_PCIX_SLOT1, PCIX_COMP_NUM) == 0) { in get_bus_type()
73 } else if (strncmp(path, PEL_PCIX_SLOT2, PCIX_COMP_NUM) == 0) { in get_bus_type()
75 } else if (strncmp(path, PEL_PCIX_ONBOARD0, PCIX_COMP_NUM) == 0) { in get_bus_type()
95 if (strncmp(path, PEL_PCIE_SLOT0, PCIE_COMP_NUM) == 0) { in get_slot_number()
98 } else if (strncmp(path, PEL_PCIX_SLOT2, strlen(PEL_PCIX_SLOT2)) == 0) { in get_slot_number()
101 } else if (strncmp(path, PEL_PCIX_SLOT1, strlen(PEL_PCIX_SLOT1)) == 0) { in get_slot_number()
116 if (strncmp(path, PEL_NETWORK_1_PATH, in pelton_get_network_instance()
119 } else if (strncmp(path, PEL_NETWORK_3_PATH, in pelton_get_network_instance()
122 } else if (strncmp(path, PEL_NETWORK_0_PATH, in pelton_get_network_instance()
[all …]
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/monza/common/
H A Dmonza.c109 } else if (strncmp(path, MONZA_NETWORK_1, strlen(MONZA_NETWORK_1)) in monza_get_network_instance()
112 } else if (strncmp(path, MONZA_NETWORK_2, strlen(MONZA_NETWORK_2)) in monza_get_network_instance()
115 } else if (strncmp(path, MONZA_ENET_2, strlen(MONZA_ENET_2)) in monza_get_network_instance()
118 } else if (strncmp(path, MONZA_NETWORK_3, strlen(MONZA_NETWORK_3)) in monza_get_network_instance()
121 } else if (strncmp(path, MONZA_ENET_3, strlen(MONZA_ENET_3)) in monza_get_network_instance()
124 } else if (strncmp(path, MONZA_NETWORK_4, strlen(MONZA_NETWORK_4)) in monza_get_network_instance()
127 } else if (strncmp(path, MONZA_NETWORK_5, strlen(MONZA_NETWORK_5)) in monza_get_network_instance()
130 } else if (strncmp(path, MONZA_N2_XAUI0, strlen(MONZA_N2_XAUI0)) in monza_get_network_instance()
133 } else if (strncmp(path, MONZA_N2_XAUI1, strlen(MONZA_N2_XAUI1)) in monza_get_network_instance()
415 if ((strncmp(path, MONZA_ENET_2, strlen(MONZA_ENET_2)) == 0) || in monza_hw_rev_callback()
[all …]
/illumos-gate/usr/src/cmd/mailx/
H A Dusg.local.c88 return (strncmp(file, maildir, strlen(maildir)) == 0); in ismailbox()
90 if (strncmp(file, "/var", 4) != 0 in ismailbox()
91 && strncmp(file, "/usr", 4) != 0 in ismailbox()
95 if (strncmp(file, "/spool", 6) == 0) in ismailbox()
97 return (strncmp(file, "/mail/", 6) == 0); in ismailbox()
/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/tools/cw/
H A Dcw.c695 if (strncmp(arg, "-_g++=", 6) == 0) { in do_gcc()
837 if (strncmp(arg, "-erroff=", 8) == 0) in do_gcc()
927 if (strncmp(arg, "-Wa,", 4) == 0 || in do_gcc()
928 strncmp(arg, "-Wp,", 4) == 0 || in do_gcc()
929 strncmp(arg, "-Wl,", 4) == 0) { in do_gcc()
1053 if (strncmp(arg, "-xF", 3) == 0) in do_gcc()
1058 if (strncmp(arg, "-xinline", 8) == 0) in do_gcc()
1080 if (strncmp(arg, "-xO", 3) == 0) { in do_gcc()
1152 if (strncmp(arg, "S,", 2) == 0) in do_gcc()
1154 if (strncmp(arg, "I,", 2) == 0) { in do_gcc()
[all …]
/illumos-gate/usr/src/lib/scsi/plugins/ses/SUN-Storage-J4400/common/
H A Driverwalk.c125 if (strncmp(strp->rws_ps0_id, "SPS0", 4) != 0) in sun_riverwalk_parse_node()
133 if (strncmp(strp->rws_ps1_id, "SPS1", 4) != 0) in sun_riverwalk_parse_node()
145 if (strncmp(strp->rws_sim0_id, "SIM0", 4) != 0) in sun_riverwalk_parse_node()
153 if (strncmp(strp->rws_sim1_id, "SIM1", 4) != 0) in sun_riverwalk_parse_node()
171 if (strncmp(strp->rws_ps0_id, "FAN0", 4) != 0) in sun_riverwalk_parse_node()
179 if (strncmp(strp->rws_ps1_id, "FAN1", 4) != 0) in sun_riverwalk_parse_node()
214 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.c146 if (strncmp(field, "Storage J4500", 13) == 0) { in sun_loki_parse_node()
163 } else if (strncmp(field, "Fan PartNUM", 11) == 0) { in sun_loki_parse_node()
179 strncmp(field, "Unknown", 7) != 0 && in sun_loki_parse_node()
180 strncmp(field, "Not Installed", 13) != 0) { in sun_loki_parse_node()
188 } else if (strncmp(field, "PS PartNUM", 10) == 0) { in sun_loki_parse_node()
205 strncmp(field, "Unknown", 7) != 0 && in sun_loki_parse_node()
206 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()
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()
190 (strncmp("COMBO SOHC-4836VS", in get_device()
469 if (fd < 0 && ((strncmp(supplied, "/dev/rdsk/", 10) == 0) || in lookup_device()
473 if ((strncmp(supplied, "/dev/dsk/", 9) == 0) || in lookup_device()
[all …]
/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/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/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()
193 if (strncmp(cmd, "pwd", strlen(cmd)) == 0) { in runcmdshell()
235 if (strncmp(cmd, "quit", strlen(cmd)) != 0) in runcmdshell()
240 if (strncmp(cmd, "xit", strlen(cmd)) != 0) in runcmdshell()
276 if (strncmp(cmd, "what", strlen(cmd)) != 0) in runcmdshell()
[all …]
/illumos-gate/usr/src/cmd/sqlite/
H A Dshell.c594 if( c=='d' && strncmp(azArg[0], "dump", n)==0 ){ in do_meta_command()
639 if( c=='e' && strncmp(azArg[0], "exit", n)==0 ){ in do_meta_command()
685 if( c=='h' && (strncmp(azArg[0], "header", n)==0 in do_meta_command()
702 if( c=='h' && strncmp(azArg[0], "help", n)==0 ){ in do_meta_command()
730 if( strncmp(azArg[1],"line",n2)==0 in do_meta_command()
732 strncmp(azArg[1],"lines",n2)==0 ){ in do_meta_command()
734 }else if( strncmp(azArg[1],"column",n2)==0 in do_meta_command()
738 }else if( strncmp(azArg[1],"list",n2)==0 ){ in do_meta_command()
740 }else if( strncmp(azArg[1],"html",n2)==0 ){ in do_meta_command()
742 }else if( strncmp(azArg[1],"insert",n2)==0 ){ in do_meta_command()
[all …]
/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()
206 if (strncmp(c, MSG_ORIG(MSG_STR_OP), 2) == 0) { in demangle()
230 strncmp(c+1, MSG_ORIG(MSG_STR_TDBLUNDBAR), 3) == 0) { in demangle()
/illumos-gate/usr/src/cmd/krb5/kadmin/ktutil/
H A Dktutil.c209 if ((strlen(argv[i]) == 2) && !strncmp(argv[i], "-p", 2)) {
213 if ((strlen(argv[i]) == 2) && !strncmp(argv[i], "-k", 2)) {
217 if ((strlen(argv[i]) == 2) && !strncmp(argv[i], "-e", 2)) {
221 if ((strlen(argv[i]) == 9) && !strncmp(argv[i], "-password", 9)) {
225 if ((strlen(argv[i]) == 4) && !strncmp(argv[i], "-key", 4)) {
270 if ((strlen(argv[i]) == 2) && !strncmp(argv[i], "-t", 2)) {
274 if ((strlen(argv[i]) == 2) && !strncmp(argv[i], "-k", 2)) {
278 if ((strlen(argv[i]) == 2) && !strncmp(argv[i], "-e", 2)) {
/illumos-gate/usr/src/cmd/sunpc/other/
H A Ddos2unix.c135 if (argc > 1 && !strncmp(*argv,"-iso",4)) { in main()
138 } else if (argc > 1 && !strncmp(*argv,"-7",2)) { in main()
141 } else if (argc > 1 && !strncmp(*argv,"-ascii",6)) { in main()
144 } else if (argc > 1 && !strncmp(*argv,"-437",4)) { in main()
147 } else if (argc > 1 && !strncmp(*argv,"-850",4)) { in main()
150 } else if (argc > 1 && !strncmp(*argv,"-860",4)) { in main()
153 } else if (argc > 1 && !strncmp(*argv,"-863",4)) { in main()
156 } else if (argc > 1 && !strncmp(*argv,"-865",4)) { in main()
H A Dunix2dos.c140 if (argc > 1 && !strncmp(*argv, "-iso", 4)) { in main()
143 } else if (argc > 1 && !strncmp(*argv, "-7", 2)) { in main()
146 } else if (argc > 1 && !strncmp(*argv, "-ascii", 6)) { in main()
149 } else if (argc > 1 && !strncmp(*argv, "-437", 4)) { in main()
152 } else if (argc > 1 && !strncmp(*argv, "-850", 4)) { in main()
155 } else if (argc > 1 && !strncmp(*argv, "-860", 4)) { in main()
158 } else if (argc > 1 && !strncmp(*argv, "-863", 4)) { in main()
161 } else if (argc > 1 && !strncmp(*argv, "-865", 4)) { in main()
/illumos-gate/usr/src/cmd/fm/schemes/mem/
H A Dmem_unum.c39 #define ISHCUNUM(unum) (strncmp(unum, "hc:/", 4) == 0)
356 if ((strncmp(erunum, "/N", 2) != 0 && strncmp(erunum, "/IO", 3) != 0 && in unum_contains_bysubstr()
357 strncmp(erunum, "/SB", 3) != 0) || in unum_contains_bysubstr()
358 (strncmp(eeunum, "/N", 2) != 0 && strncmp(eeunum, "/IO", 3) != 0 && in unum_contains_bysubstr()
359 strncmp(eeunum, "/SB", 3) != 0)) { in unum_contains_bysubstr()
376 return (strncmp(erunum, eeunum, MIN(erlen, eelen)) == 0); in unum_contains_bysubstr()
/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()
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()
703 } else if (!strncmp(cp, "no-check-names", in res_setoptions()
708 else if (!strncmp(cp, "edns0", sizeof("edns0") - 1)) { in res_setoptions()
712 else if (!strncmp(cp, "dname", sizeof("dname") - 1)) { in res_setoptions()
734 if (!strncmp(cp, "single", sizeof("single") - 1)) { in res_setoptions()
[all …]
/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.c1476 if ((len == MSG_LD_AUDIT_SIZE) && (strncmp(s1, in ld_generic_env()
1485 (strncmp(s1, MSG_ORIG(MSG_LD_AUDIT_ARGS), in ld_generic_env()
1572 if ((len == MSG_LD_DEBUG_SIZE) && (strncmp(s1, in ld_generic_env()
1601 if ((len == MSG_LD_FLAGS_SIZE) && (strncmp(s1, in ld_generic_env()
1613 if ((len == MSG_LD_HWCAP_SIZE) && (strncmp(s1, in ld_generic_env()
1625 if ((len == MSG_LD_INIT_SIZE) && (strncmp(s1, in ld_generic_env()
1796 if ((len == MSG_LD_SFCAP_SIZE) && (strncmp(s1, in ld_generic_env()
1803 (strncmp(s1, MSG_ORIG(MSG_LD_SIGNAL), in ld_generic_env()
1819 (strncmp(s1, MSG_ORIG(MSG_LD_TRACE_OBJS), in ld_generic_env()
1886 if ((len == MSG_LD_WARN_SIZE) && (strncmp(s1, in ld_generic_env()
[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>>...51