Home
last modified time | relevance | path

Searched refs:strcmp (Results 1 – 25 of 2962) sorted by relevance

12345678910>>...119

/illumos-gate/usr/src/cmd/audio/utilities/
H A DAudioHdrParse.cc225 if ((strcmp(khz, "khz") == 0) || in RateParse()
226 (strcmp(khz, "khertz") == 0) || in RateParse()
227 (strcmp(khz, "kilohertz") == 0) || in RateParse()
228 (strcmp(khz, "k") == 0) || in RateParse()
231 } else if ((strcmp(khz, "hz") != 0) && in RateParse()
232 (strcmp(khz, "hertz") != 0) && in RateParse()
277 if ((strcmp(cstr, "-channel") != 0) && in ChannelParse()
278 (strcmp(cstr, "-chan") != 0) && in ChannelParse()
292 if ((strcmp(cstr, "mono") == 0) || in ChannelParse()
293 (strcmp(cstr, "monaural") == 0) || in ChannelParse()
[all …]
/illumos-gate/usr/src/tools/protocmp/
H A Darch.c38 if (strcmp(architecture, "sparc") == 0) in assign_arch()
40 else if (strcmp(architecture, "ISA") == 0) in assign_arch()
42 else if (strcmp(architecture, "all") == 0) in assign_arch()
44 else if (strcmp(architecture, "sparc.sun4") == 0) in assign_arch()
46 else if (strcmp(architecture, "sparc.sun4c") == 0) in assign_arch()
48 else if (strcmp(architecture, "sparc.sun4u") == 0) in assign_arch()
50 else if (strcmp(architecture, "sparc.sun4d") == 0) in assign_arch()
52 else if (strcmp(architecture, "sparc.sun4e") == 0) in assign_arch()
54 else if (strcmp(architecture, "sparc.sun4m") == 0) in assign_arch()
56 else if (strcmp(architecture, "sparc.sun4v") == 0) in assign_arch()
[all …]
/illumos-gate/usr/src/cmd/troff/troff.d/
H A Dmakedev.c137 else if (strcmp(cmd, "res") == 0) { in main()
139 } else if (strcmp(cmd, "hor") == 0) { in main()
141 } else if (strcmp(cmd, "vert") == 0) { in main()
143 } else if (strcmp(cmd, "unitwidth") == 0) { in main()
145 } else if (strcmp(cmd, "sizescale") == 0) { in main()
147 } else if (strcmp(cmd, "paperwidth") == 0) { in main()
149 } else if (strcmp(cmd, "paperlength") == 0) { in main()
151 } else if (strcmp(cmd, "biggestfont") == 0) { in main()
153 } else if (strcmp(cmd, "spare2") == 0) { in main()
155 } else if (strcmp(cmd, "sizes") == 0) { in main()
[all …]
/illumos-gate/usr/src/cmd/lp/filter/postscript/font/
H A Dmakedev.c142 else if (strcmp(cmd, "res") == 0) { in main()
144 } else if (strcmp(cmd, "hor") == 0) { in main()
146 } else if (strcmp(cmd, "vert") == 0) { in main()
148 } else if (strcmp(cmd, "unitwidth") == 0) { in main()
150 } else if (strcmp(cmd, "sizescale") == 0) { in main()
152 } else if (strcmp(cmd, "paperwidth") == 0) { in main()
154 } else if (strcmp(cmd, "paperlength") == 0) { in main()
156 } else if (strcmp(cmd, "biggestfont") == 0) { in main()
158 } else if (strcmp(cmd, "spare2") == 0) { in main()
160 } else if (strcmp(cmd, "sizes") == 0) { in main()
[all …]
/illumos-gate/usr/src/cmd/krb5/ldap_util/
H A Dkdb5_ldap_policy.c136 if (!strcmp(argv[i], "-maxtktlife")) {
150 } else if (!strcmp(argv[i], "-maxrenewlife")) {
164 } else if (!strcmp((argv[i] + 1), "allow_postdated")) {
173 } else if (!strcmp((argv[i] + 1), "allow_forwardable")) {
182 } else if (!strcmp((argv[i] + 1), "allow_renewable")) {
191 } else if (!strcmp((argv[i] + 1), "allow_proxiable")) {
200 } else if (!strcmp((argv[i] + 1), "allow_dup_skey")) {
209 } else if (!strcmp((argv[i] + 1), "requires_preauth")) {
218 } else if (!strcmp((argv[i] + 1), "requires_hwauth")) {
227 } else if (!strcmp((argv[i] + 1), "allow_svr")) {
[all …]
/illumos-gate/usr/src/cmd/sgs/tsort/common/
H A Derrtext.c169 if (strcmp(token, "nochange") == 0) { in errverb()
177 } else if (strcmp(token, "silent") == 0) { in errverb()
186 } else if (strcmp(token, "verbose") == 0) { in errverb()
195 } else if (strcmp(token, "expert") == 0) { in errverb()
204 } else if (strcmp(token, "bell") == 0) { in errverb()
206 } else if (strcmp(token, "nobell") == 0) { in errverb()
208 } else if (strcmp(token, "tag") == 0) { in errverb()
210 } else if (strcmp(token, "notag") == 0) { in errverb()
212 } else if (strcmp(token, "text") == 0) { in errverb()
214 } else if (strcmp(token, "notext") == 0) { in errverb()
[all …]
/illumos-gate/usr/src/lib/libprtdiag/common/
H A Dpdevinfo_sun4u.c222 } else if ((strcmp(name, FFB_NAME) == 0) || in walk()
223 (strcmp(name, AFB_NAME) == 0) || in walk()
224 (strcmp(type, "cpu") == 0) || in walk()
226 ((strcmp(type, "memory-controller") == 0) && in walk()
227 (strcmp(name, "ac") != 0)) || in walk()
229 ((strcmp(name, "pci") == 0) && in walk()
230 (strcmp(model, "SUNW,psycho") == 0)) || in walk()
232 ((strcmp(name, "pci") == 0) && in walk()
233 (strcmp(model, "SUNW,sabre") == 0)) || in walk()
235 ((strcmp(name, "pci") == 0) && in walk()
[all …]
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dt-strl.c40 SM_TEST(strcmp(s1, s3) == 0);
44 SM_TEST(strcmp(s3, r) == 0);
48 SM_TEST(strcmp(s3, r) == 0);
52 SM_TEST(strcmp(s3, r) == 0);
58 SM_TEST(strcmp(s3, r) == 0);
64 SM_TEST(strcmp(s3, r) == 0);
70 SM_TEST(strcmp(s3, r) == 0);
76 SM_TEST(strcmp(s3, r) == 0);
82 SM_TEST(strcmp(s3, r) == 0);
88 SM_TEST(strcmp(s3, r) == 0);
[all …]
/illumos-gate/usr/src/lib/scsi/plugins/ses/ses2/common/
H A Dses2_element_ctl.c53 if (strcmp(name, SES_PROP_IDENT) == 0) in elem_setprop_device()
55 else if (strcmp(name, SES_PROP_RMV) == 0) in elem_setprop_device()
57 else if (strcmp(name, SES_DEV_PROP_READY_TO_INSERT) == 0) in elem_setprop_device()
59 else if (strcmp(name, SES_DEV_PROP_REQ_MISSING) == 0) in elem_setprop_device()
61 else if (strcmp(name, SES_DEV_PROP_DO_NOT_REMOVE) == 0) in elem_setprop_device()
63 else if (strcmp(name, SES_DEV_PROP_REQ_ACTIVE) == 0) in elem_setprop_device()
65 else if (strcmp(name, SES_DEV_PROP_BYP_B) == 0) in elem_setprop_device()
67 else if (strcmp(name, SES_DEV_PROP_BYP_A) == 0) in elem_setprop_device()
69 else if (strcmp(name, SES_PROP_OFF) == 0) in elem_setprop_device()
71 else if (strcmp(name, SES_DEV_PROP_FAULT_RQSTD) == 0) in elem_setprop_device()
[all …]
/illumos-gate/usr/src/lib/fm/libdiagcode/common/
H A Ddiagcode_test.c84 else if (strcmp(s, "EPERM") == 0) in geterrno()
86 else if (strcmp(s, "ENOENT") == 0) in geterrno()
88 else if (strcmp(s, "ESRCH") == 0) in geterrno()
90 else if (strcmp(s, "ENOMEM") == 0) in geterrno()
92 else if (strcmp(s, "EACCES") == 0) in geterrno()
94 else if (strcmp(s, "EINVAL") == 0) in geterrno()
96 else if (strcmp(s, "ERANGE") == 0) in geterrno()
98 else if (strcmp(s, "ENOMSG") == 0) in geterrno()
100 else if (strcmp(s, "ENOTSUP") == 0) in geterrno()
239 if (reterrno == 0 && argc > 3 && strcmp(code, argv[3])) in do_key2code()
[all …]
/illumos-gate/usr/src/cmd/hal/hald/solaris/
H A Dsysevent.c181 if (strcmp(class, EC_DEVFS) == 0) { in sysevent_dev_handler()
194 if (strcmp(class, EC_PWRCTL) == 0) { in sysevent_dev_handler()
199 } else if (strcmp(class, EC_DR) == 0) { in sysevent_dev_handler()
212 if (strcmp(class, EC_DR) == 0) { in sysevent_dev_handler()
217 if (strcmp(class, EC_PWRCTL) == 0) { in sysevent_dev_handler()
281 if (strcmp(class, EC_DEV_ADD) == 0) { in sysevent_iochannel_data()
282 if ((strcmp(subclass, ESC_DISK) == 0) || in sysevent_iochannel_data()
283 (strcmp(subclass, ESC_PRINTER) == 0)) { in sysevent_iochannel_data()
285 } else if (strcmp(subclass, ESC_LOFI) == 0) { in sysevent_iochannel_data()
288 } else if (strcmp(class, EC_DEV_REMOVE) == 0) { in sysevent_iochannel_data()
[all …]
/illumos-gate/usr/src/tools/smatch/src/
H A Dcheck_all_func_returns.c45 if (strcmp(func, "memcpy") == 0 || in check_func_return()
46 strcmp(func, "memmove") == 0 || in check_func_return()
47 strcmp(func, "memset") == 0) in check_func_return()
55 if (strcmp(func, "printf") == 0 || strcmp(func, "vprintf") == 0) in check_func_return()
58 if (strcmp(func, "fprintf") == 0 || strcmp(func, "vfprintf")) { in check_func_return()
62 (strcmp(arg0, "(&__iob[1])") == 0 || in check_func_return()
63 strcmp(arg0, "(&__iob[2])") == 0)) in check_func_return()
/illumos-gate/usr/src/cmd/hal/tools/
H A Dhal_set_property.c161 if (strcmp (opt, "help") == 0) { in main()
164 } else if (strcmp (opt, "key") == 0) { in main()
166 } else if (strcmp (opt, "string") == 0) { in main()
169 } else if (strcmp (opt, "int") == 0) { in main()
172 } else if (strcmp (opt, "uint64") == 0) { in main()
175 } else if (strcmp (opt, "double") == 0) { in main()
178 } else if (strcmp (opt, "bool") == 0) { in main()
179 if (strcmp (optarg, "true") == 0) in main()
181 else if (strcmp (optarg, "false") == 0) in main()
188 } else if (strcmp (opt, "strlist-pre") == 0) { in main()
[all …]
/illumos-gate/usr/src/cmd/sgs/libld/common/
H A Dargs.c985 strcmp(optarg + olen - MSG_STR_SOEXT_SIZE, in assdeflib_parse()
1304 strcmp(optarg, MSG_ORIG(MSG_ARG_DEFS)) == 0) { in parseopt_pass1()
1312 } else if (strcmp(optarg, in parseopt_pass1()
1321 } else if (strcmp(optarg, in parseopt_pass1()
1330 } else if (strcmp(optarg, in parseopt_pass1()
1339 } else if (strcmp(optarg, in parseopt_pass1()
1352 } else if (strcmp(optarg, in parseopt_pass1()
1355 } else if (strcmp(optarg, in parseopt_pass1()
1358 } else if (strcmp(optarg, in parseopt_pass1()
1361 } else if (strcmp(optarg, in parseopt_pass1()
[all …]
/illumos-gate/usr/src/cmd/nscd/
H A Dnscd_smfmonitor.c84 if (strcmp(state, SCF_STATE_STRING_UNINIT) == 0) in query_smf_state()
86 else if (strcmp(state, SCF_STATE_STRING_MAINT) == 0) in query_smf_state()
88 else if (strcmp(state, SCF_STATE_STRING_OFFLINE) == 0) in query_smf_state()
90 else if (strcmp(state, SCF_STATE_STRING_DISABLED) == 0) in query_smf_state()
92 else if (strcmp(state, SCF_STATE_STRING_ONLINE) == 0) in query_smf_state()
94 else if (strcmp(state, SCF_STATE_STRING_DEGRADED) == 0) in query_smf_state()
171 (strcmp(NSCD_NSW_SRC_NAME(srci), "files") == 0 || in _nscd_get_smf_state()
172 strcmp(NSCD_NSW_SRC_NAME(srci), "compat") == 0 || in _nscd_get_smf_state()
173 strcmp(NSCD_NSW_SRC_NAME(srci), "ad") == 0 || in _nscd_get_smf_state()
174 strcmp(NSCD_NSW_SRC_NAME(srci), "dns") == 0)) { in _nscd_get_smf_state()
[all …]
/illumos-gate/usr/src/cmd/fm/fmd/common/
H A Dfmd_dr.c81 if (strcmp(class, EC_DR) == 0) { in fmd_dr_event()
82 if (strcmp(subclass, ESC_DR_AP_STATE_CHANGE) != 0 && in fmd_dr_event()
83 strcmp(subclass, ESC_DR_TARGET_STATE_CHANGE) != 0) in fmd_dr_event()
86 } else if (strcmp(class, EC_DEVFS) == 0) { in fmd_dr_event()
91 } else if (strcmp(class, EC_PLATFORM) == 0) { in fmd_dr_event()
97 if (strcmp(subclass, ESC_PLATFORM_SP_RESET) != 0) in fmd_dr_event()
99 } else if (strcmp(class, EC_DEV_ADD) == 0 || in fmd_dr_event()
100 strcmp(class, EC_DEV_REMOVE) == 0) { in fmd_dr_event()
101 if (strcmp(subclass, ESC_DISK) != 0) in fmd_dr_event()
/illumos-gate/usr/src/cmd/hal/hald/
H A Ddevice_info.c290 *result = (dbus_int64_t) strcmp (hal_device_property_get_string (d, key), right_side); in match_compare_property()
341 if (strcmp (attr[0], "key") != 0) in handle_match()
364 if (strcmp (attr[2], "string") == 0) { in handle_match()
377 if (strcmp (hal_device_property_get_string (d, prop_to_check), in handle_match()
383 } else if (strcmp (attr[2], "int") == 0) { in handle_match()
402 } else if (strcmp (attr[2], "uint64") == 0) { in handle_match()
421 } else if (strcmp (attr[2], "bool") == 0) { in handle_match()
426 if (strcmp (attr[3], "false") == 0) in handle_match()
428 else if (strcmp (attr[3], "true") == 0) in handle_match()
445 } else if (strcmp (attr[2], "exists") == 0) { in handle_match()
[all …]
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/ontario/common/
H A Dhuron.c61 if (strcmp(path, HURON_NIU) == 0) { in huron_get_bus_type()
71 if (strcmp(path, HURON_N2_XAUI0) == 0) { in huron_get_slot_number()
74 } else if (strcmp(path, HURON_N2_XAUI1) == 0) { in huron_get_slot_number()
110 if (strcmp(path, HURON_NETWORK_0) == 0) { in huron_get_network_instance()
112 } else if (strcmp(path, HURON_NETWORK_1) == 0) { in huron_get_network_instance()
114 } else if (strcmp(path, HURON_NETWORK_2) == 0) { in huron_get_network_instance()
116 } else if (strcmp(path, HURON_NETWORK_3) == 0) { in huron_get_network_instance()
118 } else if (strcmp(path, HURON_N2_XAUI0) == 0) { in huron_get_network_instance()
120 } else if (strcmp(path, HURON_N2_XAUI1) == 0) { in huron_get_network_instance()
161 if (strcmp(piclclass, "pciex") == 0) { in huron_pci_callback()
[all …]
/illumos-gate/usr/src/cmd/devfsadm/i386/
H A Dmisc_link_i386.c184 if (strcmp(addr, "0,0") == 0) { in diskette()
185 if (strcmp(mn, "c") == 0) { in diskette()
187 } else if (strcmp(mn, "c,raw") == 0) { in diskette()
196 if (strcmp(mn, "c") == 0) { in diskette()
201 } else if (strcmp(mn, "c,raw") == 0) { in diskette()
226 if (strcmp(addr, "1,3bc") == 0) { in lp()
229 } else if (strcmp(addr, "1,378") == 0) { in lp()
232 } else if (strcmp(addr, "1,278") == 0) { in lp()
236 if (strcmp(di_driver_name(node), "ecpp") != 0) { in lp()
276 if (strcmp(mn, "a") == 0) { in serial()
[all …]
/illumos-gate/usr/src/cmd/devctl/
H A Ddevctl.c214 if (strcmp(devctl_cmdname, "list") == 0) { in main()
235 strcmp(devctl_cmdname, "bus-devcreate") == 0) { in main()
269 } else if (strcmp(devctl_cmdname, "bus-raisepower") == 0 || in main()
270 strcmp(devctl_cmdname, "bus-changepowerlow") == 0 || in main()
271 strcmp(devctl_cmdname, "bus-changepowerhigh") == 0 || in main()
272 strcmp(devctl_cmdname, "bus-idlecomp") == 0 || in main()
273 strcmp(devctl_cmdname, "bus-busycomp") == 0 || in main()
274 strcmp(devctl_cmdname, "bus-testbusy") == 0 || in main()
275 strcmp(devctl_cmdname, "bus-failsuspend") == 0 || in main()
276 strcmp(devctl_cmdname, "bus-teststrict") == 0 || in main()
[all …]
/illumos-gate/usr/src/lib/policykit/libpolkit/common/
H A Dlibpolkit-rbac.c143 if (strcmp (privilege, "hal-storage-removable-mount") == 0) { in libpolkit_is_uid_allowed_for_privilege()
145 } else if (strcmp (privilege, "hal-storage-removable-mount-all-options") == 0) { in libpolkit_is_uid_allowed_for_privilege()
147 } else if (strcmp (privilege, "hal-storage-fixed-mount") == 0) { in libpolkit_is_uid_allowed_for_privilege()
149 } else if (strcmp (privilege, "hal-storage-fixed-mount-all-options") == 0) { in libpolkit_is_uid_allowed_for_privilege()
151 } else if (strcmp(privilege, "hal-power-suspend") == 0) { in libpolkit_is_uid_allowed_for_privilege()
153 } else if (strcmp(privilege, "hal-power-hibernate") == 0) { in libpolkit_is_uid_allowed_for_privilege()
155 } else if ((strcmp(privilege, "hal-power-shutdown") == 0) || in libpolkit_is_uid_allowed_for_privilege()
156 (strcmp(privilege, "hal-power-reboot") == 0)) { in libpolkit_is_uid_allowed_for_privilege()
158 } else if (strcmp(privilege, "hal-power-cpu") == 0) { in libpolkit_is_uid_allowed_for_privilege()
160 } else if (strcmp(privilege, "hal-power-brightness") == 0) { in libpolkit_is_uid_allowed_for_privilege()
[all …]
/illumos-gate/usr/src/test/libc-tests/tests/newlocale/
H A Dnewlocale_test.c75 if (strcmp(day, l->day1) != 0) { in testlocale_thr_one()
83 if (strcmp(day, "Sunday") != 0) { in testlocale_thr_one()
88 if (strcmp(lc->currency_symbol, "") != 0) { in testlocale_thr_one()
98 if (strcmp(day, l->day1) != 0) { in testlocale_thr_one()
104 if (strcmp(lc->currency_symbol, l->cursym) != 0) { in testlocale_thr_one()
146 if (strcmp(day, "Sonntag") != 0) { in test_newlocale_negative()
155 if (strcmp(day, "Sonntag") != 0) { in test_newlocale_negative()
181 if ((day == NULL) || (strcmp(day, "Sonntag") != 0)) { in test_newlocale_categories()
185 if ((yes == NULL) || (strcmp(yes, "да") != 0)) { in test_newlocale_categories()
189 if ((cur == NULL) || (strcmp(cur, "-$") != 0)) { in test_newlocale_categories()
[all …]
/illumos-gate/usr/src/lib/libcryptoutil/common/
H A Dpkcs11_uri.c164 if (strcmp(name, PK11_TOKEN) == 0) { in pkcs11_parse_uri()
172 } else if (strcmp(name, PK11_MANUF) == 0) { in pkcs11_parse_uri()
180 } else if (strcmp(name, PK11_SERIAL) == 0) { in pkcs11_parse_uri()
188 } else if (strcmp(name, PK11_MODEL) == 0) { in pkcs11_parse_uri()
196 } else if (strcmp(name, PK11_ID) == 0) { in pkcs11_parse_uri()
215 } else if (strcmp(name, PK11_OBJECT) == 0) { in pkcs11_parse_uri()
223 } else if (strcmp(name, PK11_OBJECTTYPE) == 0) { in pkcs11_parse_uri()
230 if (strcmp(l2, "public") == 0) in pkcs11_parse_uri()
232 else if (strcmp(l2, "private") == 0) in pkcs11_parse_uri()
234 else if (strcmp(l2, "cert") == 0) in pkcs11_parse_uri()
[all …]
/illumos-gate/usr/src/lib/libadm/common/
H A Dgetdev.c306 if (strcmp(devtabentry, *aliases) == 0) found = TRUE; in oktoaddtolist()
427 else if ((cmpcd = strcmp(deventry, q->name)) <= 0) done = TRUE; in addtodevicelist()
878 if (strcmp(p->name, DTAB_ALIAS) == 0) in matchallcriteria()
882 else if (strcmp(p->name, DTAB_CDEVICE) == 0) in matchallcriteria()
886 else if (strcmp(p->name, DTAB_BDEVICE) == 0) in matchallcriteria()
890 else if (strcmp(p->name, DTAB_PATHNAME) == 0) in matchallcriteria()
898 if (strcmp(p->name, q->attr) == 0) { in matchallcriteria()
907 if (strcmp(p->name, DTAB_ALIAS) == 0) failed = TRUE; in matchallcriteria()
908 else if (strcmp(p->name, DTAB_CDEVICE) == 0) in matchallcriteria()
910 else if (strcmp(p->name, DTAB_BDEVICE) == 0) in matchallcriteria()
[all …]
/illumos-gate/usr/src/cmd/ipf/lib/
H A Dports.c35 if (!strcmp(**seg, "<>"))
37 else if (!strcmp(**seg, "><"))
53 } else if (!strcmp(**seg, "=") || !strcasecmp(**seg, "eq"))
55 else if (!strcmp(**seg, "!=") || !strcasecmp(**seg, "ne"))
57 else if (!strcmp(**seg, "<") || !strcasecmp(**seg, "lt"))
59 else if (!strcmp(**seg, ">") || !strcasecmp(**seg, "gt"))
61 else if (!strcmp(**seg, "<=") || !strcasecmp(**seg, "le"))
63 else if (!strcmp(**seg, ">=") || !strcasecmp(**seg, "ge"))

12345678910>>...119