Home
last modified time | relevance | path

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

12345678910>>...57

/titanic_51/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(subClassNam in notifyClient()
[all...]
/titanic_51/usr/src/tools/cw/
H A Dcw.c721 if (strncmp(arg, "-compat=", 8) == 0) { in do_gcc()
777 else if (strncmp(arg, "-_cc=", 5) == 0 || in do_gcc()
778 strncmp(arg, "-_CC=", 5) == 0) in do_gcc()
780 else if (strncmp(arg, "-_gcc=", 6) == 0 || in do_gcc()
781 strncmp(arg, "-_g++=", 6) == 0) in do_gcc()
886 if (strncmp(arg, "-erroff=", 8) == 0) in do_gcc()
903 if (strncmp(arg, "-features=zla", 13) == 0) { in do_gcc()
1053 if (strncmp(arg, "-Wp,-xc99", 9) == 0) { in do_gcc()
1060 if (strncmp(arg, "-Wa,", 4) == 0 || in do_gcc()
1061 strncmp(ar in do_gcc()
[all...]
/titanic_51/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()
/titanic_51/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()
377 } else if (strncmp(path, SPL_PCIE_NEM1, strlen(SPL_PCIE_NEM1)) == 0) { in get_bus_type()
379 } else if (strncmp(path, SWITCH_A_PATH, strlen(SWITCH_A_PATH)) == 0) { in get_bus_type()
381 } else if (strncmp(path, SWITCH_B_PATH, strlen(SWITCH_B_PATH)) == 0) { in get_bus_type()
391 if (strncmp(path, SPL_PCIE_PEM0, strlen(SPL_PCIE_PEM0)) == 0) { in get_slot_number()
394 } else if (strncmp(path, SPL_PCIE_NEM0, strlen(SPL_PCIE_NEM0)) == 0) { in get_slot_number()
397 } else if (strncmp(pat in get_slot_number()
[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()
96 } else if (strncmp(path, PCIE_SLOT1, PCIE_COMP_NUM) == 0) { in get_slot_number()
99 } else if (strncmp(path, PCIE_SLOT2, PCIE_COMP_NUM) == 0) { in get_slot_number()
102 } else if ((strncmp(path, PCIX_SLOT1, strlen(PCIX_SLOT1)) == 0) || in get_slot_number()
103 (strncmp(path, PCIX_SLOT0, strlen(PCIX_SLOT0)) == 0)) { in get_slot_number()
134 if (strncmp(path, NETWORK_1_PATH, strlen(NETWORK_1_PATH)) == 0) { in ontario_get_network_instance()
136 } else if (strncmp(path, NETWORK_3_PATH, strlen(NETWORK_3_PATH)) == 0) { in ontario_get_network_instance()
138 } else if (strncmp(path, NETWORK_0_PATH, strlen(NETWORK_0_PATH)) == 0) { in ontario_get_network_instance()
140 } else if (strncmp(pat in ontario_get_network_instance()
[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()
104 } else if (strncmp(path, PEL_PCIX_SLOT0, strlen(PEL_PCIX_SLOT0)) == 0) { in get_slot_number()
116 if (strncmp(path, PEL_NETWORK_1_PATH, in pelton_get_network_instance()
119 } else if (strncmp(pat in pelton_get_network_instance()
[all...]
/titanic_51/usr/src/lib/libprtdiag_psr/sparc/monza/common/
H A Dmonza.c107 if (strncmp(path, MONZA_NETWORK_0, strlen(MONZA_NETWORK_0)) == 0) { in monza_get_network_instance()
109 } 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(pat in monza_get_network_instance()
[all...]
/titanic_51/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()
/titanic_51/usr/src/tools/protocmp/
H A Dproto_list.c198 if (strncmp(e->symsrc, "sun4/", 5) == 0) in parse_line()
200 else if (strncmp(e->symsrc, "sun4c/", 6) == 0) in parse_line()
202 else if (strncmp(e->symsrc, "sun4u/", 6) == 0) in parse_line()
204 else if (strncmp(e->symsrc, "sun4d/", 6) == 0) in parse_line()
206 else if (strncmp(e->symsrc, "sun4e/", 6) == 0) in parse_line()
208 else if (strncmp(e->symsrc, "sun4m/", 6) == 0) in parse_line()
210 else if (strncmp(e->symsrc, "sun4v/", 6) == 0) in parse_line()
213 if (strncmp(e->symsrc, "i86pc/", 6) == 0) in parse_line()
216 if (strncmp(e->symsrc, "prep/", 5) == 0) in parse_line()
/titanic_51/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()
/titanic_51/usr/src/lib/libast/common/comp/
H A Dsymlink.c43 …p' || *(a + 1) == 'n') && (!strncmp(a, "/dev/tcp/", 9) || !strncmp(a, "/dev/udp/", 9) || !strncmp(…
/titanic_51/usr/src/contrib/ast/src/lib/libast/comp/
H A Dsymlink.c43 if (*a == '/' && (*(a + 1) == 'd' || *(a + 1) == 'p' || *(a + 1) == 'n') && (!strncmp(a, "/dev/tcp/", 9) || !strncmp(a, "/dev/udp/", 9) || !strncmp(a, "/proc/", 6) || !strncmp(a, "/n/", 3)))
/titanic_51/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("LT in get_device()
[all...]
/titanic_51/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()
/titanic_51/usr/src/lib/libbc/libc/sys/sys5/
H A Dexecve.c37 if (strncmp(file, "/usr/bin", strlen("/usr/bin")) == 0 || in execve()
38 strncmp(file, "/bin", strlen("/bin")) == 0) { in execve()
45 else if (strncmp(file, "/usr/ucb", strlen("/usr/ucb")) == 0) { in execve()
51 else if (strncmp(file, "/usr/5bin", strlen("/usr/5bin")) == 0) { in execve()
/titanic_51/usr/src/lib/libbc/libc/sys/common/
H A Dgettimeofday.c80 if ((strncmp(zonename, "US/", 3) == 0) || in get_tzp_info()
85 (strncmp(zonename, "America/", 8) == 0)) in get_tzp_info()
88 if (strncmp(zonename, "Australia/", 10) == 0) in get_tzp_info()
100 if (strncmp(zonename, "Canada/", 7) == 0) in get_tzp_info()
/titanic_51/usr/src/lib/libbc/libc/sys/4.2/
H A Dexecve.c40 if (strncmp(file, "/usr/ucb", strlen("/usr/ucb")) == 0) { in execve()
47 else if (strncmp(file, "/bin", strlen("/bin")) == 0 || in execve()
48 strncmp(file, "/usr/bin", strlen("/usr/bin")) == 0) { in execve()
54 else if (strncmp(file, "/usr/5bin", strlen("/usr/5bin")) == 0) { in execve()
/titanic_51/usr/src/cmd/backup/restore/
H A Dinteractive.c94 * Using strncmp() to catch unique prefixes. in runcmdshell()
101 if (strncmp(cmd, "add", strlen(cmd)) != 0) in runcmdshell()
116 if (strncmp(cmd, "cd", strlen(cmd)) != 0) in runcmdshell()
137 if (strncmp(cmd, "delete", strlen(cmd)) != 0) in runcmdshell()
153 if (strncmp(cmd, "extract", strlen(cmd)) != 0) in runcmdshell()
167 if (strncmp(cmd, "help", strlen(cmd)) != 0) in runcmdshell()
195 if ((strncmp(cmd, "ls", strlen(cmd)) != 0) && in runcmdshell()
196 (strncmp(cmd, "marked", strlen(cmd)) != 0)) in runcmdshell()
211 if (strncmp(cmd, "pwd", strlen(cmd)) == 0) { in runcmdshell()
217 } else if (strncmp(cm in runcmdshell()
[all...]
/titanic_51/usr/src/cmd/sqlite/
H A Dshell.c577 if( c=='d' && n>1 && strncmp(azArg[0], "databases", n)==0 ){ in do_meta_command()
594 if( c=='d' && strncmp(azArg[0], "dump", n)==0 ){ in do_meta_command()
624 if( c=='e' && strncmp(azArg[0], "echo", n)==0 && nArg>1 ){ in do_meta_command()
639 if( c=='e' && strncmp(azArg[0], "exit", n)==0 ){ in do_meta_command()
643 if( c=='e' && strncmp(azArg[0], "explain", n)==0 ){ in do_meta_command()
685 if( c=='h' && (strncmp(azArg[0], "header", n)==0 in do_meta_command()
687 strncmp(azArg[0], "headers", n)==0 )&& nArg>1 ){ in do_meta_command()
702 if( c=='h' && strncmp(azArg[0], "help", n)==0 ){ in do_meta_command()
706 if( c=='i' && strncmp(azArg[0], "indices", n)==0 && nArg>1 ){ in do_meta_command()
728 if( c=='m' && strncmp(azAr in do_meta_command()
[all...]
/titanic_51/usr/src/cmd/sgs/libelf/misc/
H A Ddemangle.c87 if(strncmp(c, MSG_ORIG(MSG_STR_DBLUNDBAR), 2))
145 if(strncmp(c, MSG_ORIG(MSG_STR_DBLUNDBAR), 2) != 0) {
150 while(c[i] && strncmp(c+i, MSG_ORIG(MSG_STR_DBLUNDBAR), 2))
157 if(strncmp(c+i, MSG_ORIG(MSG_STR_DBLUNDBAR), 2) == 0) {
205 if(strncmp(c, MSG_ORIG(MSG_STR_OP), 2) == 0) {
227 if ((*c == 'c' || *c == 'd') && strncmp(c+1,
/titanic_51/usr/src/lib/libbc/libc/gen/sys5/
H A Dsystem.c54 if (strncmp(s, "/usr/ucb", strlen("/usr/ucb")) == 0) {
67 else if (strncmp(s, "/bin", strlen("/bin")) == 0 ||
68 strncmp(s, "/usr/bin", strlen("/usr/bin")) == 0) {
73 if (strncmp(s, "/bin", strlen("/bin")) == 0)
/titanic_51/usr/src/lib/libbc/libc/gen/4.2/
H A Dsystem.c54 if (strncmp(s, "/usr/ucb", strlen("/usr/ucb")) == 0) {
67 else if (strncmp(s, "/bin", strlen("/bin")) == 0 ||
68 strncmp(s, "/usr/bin", strlen("/usr/bin")) == 0) {
72 if (strncmp(s, "/bin", strlen("/bin")) == 0)
/titanic_51/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()
/titanic_51/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)) {

12345678910>>...57