Home
last modified time | relevance | path

Searched refs:strncmp (Results 26 – 50 of 1393) sorted by relevance

12345678910>>...56

/illumos-gate/usr/src/cmd/audio/audiorecord/
H A Daudiorecord.c252 if (strncmp(optarg, "mono", strlen(optarg)) == 0) { in main()
254 } else if (strncmp(optarg, "stereo", in main()
269 } else if (strncmp(optarg, "linear8", in main()
273 } else if (strncmp(optarg, "ulaw", in main()
277 } else if (strncmp(optarg, "alaw", in main()
281 } else if ((strncmp(optarg, "linear", in main()
282 strlen(optarg)) == 0) || (strncmp(optarg, "pcm", in main()
293 if (strncmp(optarg, "au", strlen(optarg)) == 0) { in main()
295 } else if (strncmp(optarg, "wav", in main()
298 } else if (strncmp(optarg, "aif", in main()
[all …]
/illumos-gate/usr/src/cmd/biosdev/
H A Dbiosdev.c284 if ((len > 0) && (strncmp((char *)&usbsp->serialno, serialp, in i_match_usbserialno()
336 if (strncmp(busaddr, matchbusaddr, MAXNAMELEN) == 0) in search_children_match_busaddr()
345 if (strncmp(busaddr, matchbusaddr, MAXNAMELEN) == 0) in search_children_match_busaddr()
383 if (strncmp(bd->bustype, "PCI", 3) != 0) { in match_edd()
415 if (strncmp(bd->interface_type, "SCSI", 4) == 0) { in match_edd()
422 } else if ((strncmp(bd->interface_type, "ATAPI", 5) == 0) || in match_edd()
423 (strncmp(bd->interface_type, "ATA", 3) == 0) || in match_edd()
424 (strncmp(bd->interface_type, "SATA", 4) == 0)) { in match_edd()
426 if (strncmp(di_node_name(node), "pci-ide", 7) == 0) { in match_edd()
457 if (strncmp(bd->interface_type, "SATA", 4) == 0) { in match_edd()
[all …]
/illumos-gate/usr/src/cmd/svc/startd/
H A Dfile.c60 if (strncmp(file_fmri, "file:///", sizeof ("file:///") - 1) == 0) { in file_ready()
62 } else if (strncmp(file_fmri, "file://localhost/", in file_ready()
65 } else if (strncmp(file_fmri, "file://", sizeof ("file://") - 1) in file_ready()
/illumos-gate/usr/src/cmd/boot/bootadm/
H A Dbootadm_hyper.c205 if (strncmp(console, "ttya", 4) == 0) in console_metal_to_hyper()
207 else if (strncmp(console, "ttyb", 4) == 0) in console_metal_to_hyper()
267 if (strncmp(metal_serial, DEFAULT_SERIAL, in serial_metal_to_hyper()
344 if (strncmp(optstr, "console", namlen) == 0) { in cvt_metal_option()
416 if (strncmp(optstr, "console", namlen) == 0) { in cvt_hyper_option()
421 if (strncmp(value, "com1", 4) == 0) in cvt_hyper_option()
423 else if (strncmp(value, "com2", 4) == 0) in cvt_hyper_option()
431 if ((strncmp(optstr, "com1", namlen) == 0) || in cvt_hyper_option()
432 (strncmp(optstr, "com2", namlen) == 0)) { in cvt_hyper_option()
539 if (strncmp(token, BFLAG, strlen(BFLAG)) != 0) { in cvt_metal_kernel()
[all …]
/illumos-gate/usr/src/cmd/isns/isnsd/
H A Ddump.c508 if (strncmp(cmd, "list ", 5) == 0) { in getcmd()
568 if (strncmp(cmd, "view ", 5) == 0) { in getcmd()
586 if (strncmp(cmd, "add ", 4) == 0) { in getcmd()
590 if (strncmp(cmd, "dd ", 3) == 0) { in getcmd()
659 if (strncmp(cmd, "dd ", 3) == 0) { in getcmd()
725 if (strncmp(cmd, "new ", 4) == 0) { in getcmd()
729 if (strncmp(cmd, "dd ", 3) == 0) { in getcmd()
787 if (strncmp(cmd, "del ", 4) == 0) { in getcmd()
791 if (strncmp(cmd, "dds ", 4) == 0) { in getcmd()
849 if (strncmp(cmd, "file ", 5) == 0) { in getcmd()
[all …]
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/montoya/common/
H A Dmontoya.c83 if (strncmp(path, SATA_DISK_PATH, strlen(SATA_DISK_PATH)) == 0) { in get_slot_number()
86 } else if (strncmp(path, AMC_PATH, strlen(AMC_PATH)) == 0) { in get_slot_number()
99 if (strncmp(path, NETWORK_1_PATH, strlen(NETWORK_1_PATH)) == 0) { in montoya_get_network_instance()
101 } else if (strncmp(path, NETWORK_0_PATH, strlen(NETWORK_0_PATH)) == 0) { in montoya_get_network_instance()
103 } else if (strncmp(path, NETWORK_3_PATH, strlen(NETWORK_3_PATH)) == 0) { in montoya_get_network_instance()
105 } else if (strncmp(path, NETWORK_2_PATH, strlen(NETWORK_2_PATH)) == 0) { in montoya_get_network_instance()
358 if ((strncmp(path, NETWORK_0_PATH, strlen(NETWORK_0_PATH)) == 0) || in montoya_hw_rev_callback()
359 (strncmp(path, NETWORK_1_PATH, strlen(NETWORK_1_PATH)) == 0)) { in montoya_hw_rev_callback()
367 if ((strncmp(path, NETWORK_2_PATH, strlen(NETWORK_2_PATH)) == 0) || in montoya_hw_rev_callback()
368 (strncmp(path, NETWORK_3_PATH, strlen(NETWORK_3_PATH)) == 0)) { in montoya_hw_rev_callback()
/illumos-gate/usr/src/uts/common/io/ib/clients/of/sol_ofs/
H A Dsol_ofs_debug_util.c232 if (!(uint_t)strncmp(name, "sol_ucma", 8)) { \
235 } else if (!(uint_t)strncmp(name, "sol_rdmacm", 10)) { \
238 } else if (!(uint_t)strncmp(name, "sol_uverbs", 10)) { \
241 } else if (!(uint_t)strncmp(name, "sol_umad", 8)) { \
244 } else if (!(uint_t)strncmp(name, "sol_ofs_mod", 12)) { \
247 } else if (strncmp(name, "sol_kverbs", 10) == 0) { \
/illumos-gate/usr/src/lib/libpkg/common/
H A Dlogerr.c51 if (strncmp(fmt, estr, strlen(estr)) && in logerr()
52 strncmp(fmt, wstr, strlen(wstr)) && in logerr()
53 strncmp(fmt, nstr, strlen(nstr))) { in logerr()
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dttyslot.c72 if (strncmp(p, "/dev/", 5) == 0) in ttyslot()
82 strncmp(p, ubuf.ut_line, in ttyslot()
86 strncmp(ubuf.ut_host, ":0", 2) == 0) in ttyslot()
/illumos-gate/usr/src/cmd/man/
H A Dmakewhatis.c409 if (strncmp(line, section_start, 3) != 0) in name_section_line()
440 if (strncmp(&from[1], "em", 2) == 0 || in de_nroff_copy()
441 strncmp(&from[1], "mi", 2) == 0) { in de_nroff_copy()
548 xref = strncmp(line, ".Xr", 3) == 0; in process_mdoc_line()
644 if (strncmp(line, ".\\\"", 3) == 0) in process_page()
658 if (strncmp(line, ".SH", 3) == 0 || in process_page()
659 strncmp(line, ".SS", 3) == 0) in process_page()
665 if (strncmp(altline, ".IX", 3) == 0) { in process_page()
675 if (strncmp(line, ".Nm", 3) == 0) { in process_page()
687 if (strncmp(line, ".Sh", 3) == 0) in process_page()
[all …]
/illumos-gate/usr/src/cmd/tabs/
H A Dtabs.c477 if (strncmp(term, "1620", 4) == 0 || in getmarg()
478 strncmp(term, "1700", 4) == 0 || strncmp(term, "450", 3) == 0) in getmarg()
480 else if (strncmp(term, "300s", 4) == 0) in getmarg()
482 else if (strncmp(term, "4000a", 5) == 0) in getmarg()
499 if (strncmp(terminal, "40-2", 4) == 0 || strncmp(terminal, in termadj()
500 "40/2", 4) == 0 || strncmp(terminal, "4420", 4) == 0) in termadj()
502 else if (strncmp(terminal, "ibm", 3) == 0 || strcmp(terminal, in termadj()
/illumos-gate/usr/src/cmd/fm/fmd/common/
H A Dfmd_string.c227 strncmp(s0, "fmd_", 4) == 0 || strncmp(s0, "FMD_", 4) == 0 || in fmd_strbadid()
228 strncmp(s0, "fmd.", 4) == 0 || strncmp(s0, "FMD.", 4) == 0)) in fmd_strbadid()
/illumos-gate/usr/src/cmd/gss/gsscred/
H A Dgsscred_file.c298 if (strncmp(item, name->value, name_len) != 0) { in matchEntry()
312 if (strncmp(name->value, krb5_ntok_prefix, in matchEntry()
316 if (strncmp(item, krb5_ntok_prefix, in matchEntry()
328 (strncmp(item_buf + (strlen(item_buf) - 2), "00", 2) in matchEntry()
337 if (strncmp(item_buf, name_buf, name_len - NAME_OFFSET) in matchEntry()
/illumos-gate/usr/src/uts/common/io/nxge/
H A Dnxge_espc.c241 if ((strncmp(nxgep->vpd_info.bd_model, NXGE_QGC_LP_BM_STR, in nxge_vpd_info_get()
243 (strncmp(nxgep->vpd_info.bd_model, NXGE_QGC_PEM_BM_STR, in nxge_vpd_info_get()
246 } else if ((strncmp(nxgep->vpd_info.bd_model, in nxge_vpd_info_get()
248 (strncmp(nxgep->vpd_info.bd_model, NXGE_2XGF_PEM_BM_STR, in nxge_vpd_info_get()
251 } else if (strncmp(nxgep->vpd_info.bd_model, in nxge_vpd_info_get()
254 } else if (strncmp(nxgep->vpd_info.bd_model, in nxge_vpd_info_get()
268 if ((strncmp(nxgep->vpd_info.bd_model, in nxge_vpd_info_get()
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/
H A Dpiclfrudr.c1274 if (strncmp(nodename, PS_NAME, in frudr_completion_handler()
1283 if (strncmp(nodename, DISK_NAME, in frudr_completion_handler()
1430 if ((strncmp(ap_id, "FT0", 3) == 0) || in get_fantray_path()
1431 (strncmp(ap_id, "FT1", 3) == 0) || in get_fantray_path()
1432 (strncmp(ap_id, "FT2", 3) == 0)) { in get_fantray_path()
1435 (strncmp(ap_id, "FT4", 3) == 0) || in get_fantray_path()
1436 (strncmp(ap_id, "FT5", 3) == 0)) { in get_fantray_path()
1444 if ((strncmp(ap_id, "FT0", 3) == 0) || in get_fantray_path()
1445 (strncmp(ap_id, "FT1", 3) == 0) || in get_fantray_path()
1446 (strncmp(ap_id, "FT2", 3) == 0)) { in get_fantray_path()
[all …]
/illumos-gate/usr/src/lib/libcryptoutil/common/
H A Dconfig_parsing.c112 if (strncmp(buf, EF_FIPS_STATUS, sizeof (EF_FIPS_STATUS) - 1) == 0) { in parse_fips_mode()
243 if (strncmp(buf, EF_DISABLED, sizeof (EF_DISABLED) - 1) == 0) { in parse_policylist()
245 } else if (strncmp(buf, EF_ENABLED, sizeof (EF_ENABLED) - 1) == 0) { in parse_policylist()
247 } else if (strncmp(buf, EF_NORANDOM, sizeof (EF_NORANDOM) - 1) == 0) { in parse_policylist()
250 } else if (strncmp(buf, METASLOT_TOKEN, in parse_policylist()
262 } else if (strncmp(buf, METASLOT_SLOT, in parse_policylist()
274 } else if (strncmp(buf, METASLOT_STATUS, in parse_policylist()
293 } else if (strncmp(buf, METASLOT_AUTO_KEY_MIGRATE, in parse_policylist()
/illumos-gate/usr/src/lib/libadm/common/
H A Dgetvol.c83 #define IFTAPE(s) ((strncmp(s, "/dev/mt", 7) == 0) || \
84 (strncmp(s, "mt", 2) == 0))
87 #define IFTAPE(s) ((strncmp(s, "/dev/rmt", 8) == 0) || \
88 (strncmp(s, "rmt", 3) == 0) || (strncmp(s, "/dev/rtp", 8) == 0) || \
89 (strncmp(s, "rtp", 3) == 0))
211 if (strncmp(pt, look, n) == 0) { in ckilabel()
/illumos-gate/usr/src/cmd/prctl/
H A Dutils.c129 if ((strncmp("0x", scaledin, 2) == 0) || in scaledtouint64()
130 (strncmp("0X", scaledin, 2) == 0)) { in scaledtouint64()
189 cmp = strncmp(modifiers[index], endptr, in scaledtouint64()
243 cmp = strncmp(unit, endptr, strlen(unit)); in scaledtouint64()
300 if ((strncmp(modifiers[index], maxmodifierin, in uint64toscaled()
449 return ((strncmp(scaledA, scaledB, strlen(scaledA)) == 0) && in scaledeqscaled()
498 return ((strncmp(scaledA, scaledB, strlen(scaledA)) == 0) && in scaledequint64()
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/ontario/common/
H A Derie.c375 if (strncmp(path, PCIX_BUS, ERIE_PCIX_COMP) == 0) { in erie_get_bus_type()
391 if (strncmp(path, FIRE0, ERIE_PCIE_COMP) == 0) in erie_get_slot_number()
406 if (strncmp(path, ERIE_NETWORK_1, strlen(ERIE_NETWORK_1)) == 0) { in erie_get_network_instance()
408 } else if (strncmp(path, ERIE_NETWORK_3, strlen(ERIE_NETWORK_3)) == 0) { in erie_get_network_instance()
410 } else if (strncmp(path, ERIE_NETWORK_0, strlen(ERIE_NETWORK_0)) == 0) { in erie_get_network_instance()
412 } else if (strncmp(path, ERIE_NETWORK_2, strlen(ERIE_NETWORK_2)) == 0) { in erie_get_network_instance()
497 if (strncmp(name, NETWORK, NET_COMP_NUM) == 0) { in erie_get_nac()
/illumos-gate/usr/src/cmd/last/
H A Dlast.c76 #define lineq(a, b) (strncmp(a, b, LMAX) == 0)
77 #define nameq(a, b) (strncmp(a, b, NMAX) == 0)
78 #define hosteq(a, b) (strncmp(a, b, HMAX) == 0)
298 if (strncmp(bp->ut_line, "ftp", 3) == 0) in main()
300 if (strncmp(bp->ut_line, "uucp", 4) == 0) in main()
520 if (strncmp(bp->ut_line, "dtremote", 8) == 0) { in want()
525 else if (strncmp(bp->ut_line, "dtlocal", 7) == 0) { in want()
553 (strncmp(bp->ut_line, "ftp", 3) == 0))) { in want()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/
H A Drwho.c105 if (strncmp(dp->d_name, "whod.", 5)) in main()
181 rc = strncmp(u1->myutmp.out_name, u2->myutmp.out_name, in utmpcmp()
185 rc = strncmp(u1->myhost, u2->myhost, sizeof (u1->myhost)); in utmpcmp()
188 return (strncmp(u1->myutmp.out_line, u2->myutmp.out_line, in utmpcmp()
/illumos-gate/usr/src/cmd/devfsadm/
H A Ddcam1394_link.c108 if (strncmp(m_name, "dcamctl", 7) == 0) { in dcam1394_process()
111 } else if (strncmp(m_name, "dcam", 4) == 0) { in dcam1394_process()
144 if (strncmp(di_minor_name(minor), "dcamctl", 7) == 0) in dcam1394_process()
/illumos-gate/usr/src/uts/common/crypto/core/
H A Dkcf_policy.c118 if (strncmp(module_name, policy_desc->pd_name, in kcf_policy_remove_by_name()
159 strncmp(policy_desc->pd_name, name, MAXNAMELEN) == 0 && in kcf_policy_remove_by_dev()
195 if (strncmp(module_name, policy_desc->pd_name, in kcf_policy_lookup_by_name()
222 strncmp(policy_desc->pd_name, name, MAXNAMELEN) == 0 && in kcf_policy_lookup_by_dev()
266 if (strncmp(policy_tab[i]->pd_name, module_name, in kcf_policy_load_soft_disabled()
329 strncmp(policy_tab[i]->pd_name, name, MAXNAMELEN) == 0 && in kcf_policy_load_dev_disabled()
/illumos-gate/usr/src/cmd/sgs/libld/common/
H A Dargs.c1278 if (strncmp(optarg, MSG_ORIG(MSG_STR_COMMA), in parseopt_pass1()
1286 if (strncmp(optarg, MSG_ORIG(MSG_ARG_HELP), in parseopt_pass1()
1296 if ((strncmp(optarg, MSG_ORIG(MSG_ARG_LD32), in parseopt_pass1()
1298 (strncmp(optarg, MSG_ORIG(MSG_ARG_LD64), in parseopt_pass1()
1764 } else if (strncmp(optarg, in parseopt_pass1()
1772 } else if (strncmp(optarg, in parseopt_pass1()
1943 } else if (strncmp(optarg, in parseopt_pass2()
1953 } else if (strncmp(optarg, in parseopt_pass2()
1963 } else if (strncmp(optarg, in parseopt_pass2()
1973 } else if (strncmp(optarg, in parseopt_pass2()
[all …]
/illumos-gate/usr/src/lib/libtecla/common/
H A Dcplfile.c292 strncmp(lptr, FS_DIR_SEP, FS_DIR_SEP_LEN) == 0) { in _cf_complete_file()
331 strncmp(lptr + seglen, FS_DIR_SEP, FS_DIR_SEP_LEN)==0) { in _cf_complete_file()
395 strncmp(lptr, FS_DIR_SEP, FS_DIR_SEP_LEN) == 0) { in _cf_complete_file()
413 strncmp(lptr, FS_DIR_SEP, FS_DIR_SEP_LEN) == 0) { in _cf_complete_file()
627 strncmp(pathname + start, FS_DIR_SEP, FS_DIR_SEP_LEN) != 0; start--) in cf_complete_entry()
633 (start < 0 && strncmp(pathname, FS_ROOT_DIR, FS_ROOT_DIR_LEN) == 0)) { in cf_complete_entry()
686 if(name_len >= prefix_len && strncmp(prefix, file_name, prefix_len)==0) { in cf_complete_entry()
782 strncmp(sptr, FS_DIR_SEP, FS_DIR_SEP_LEN) != 0); in cf_read_name()

12345678910>>...56