Home
last modified time | relevance | path

Searched refs:strlen (Results 76 – 100 of 3766) sorted by relevance

12345678910>>...151

/illumos-gate/usr/src/lib/libcmdutils/common/
H A Dwritefile.c60 src_size = strlen(infile) + strlen(asfile) + in writefile()
61 strlen(dgettext(TEXT_DOMAIN, " attribute ")) + 1; in writefile()
63 src_size = strlen(infile) + 1; in writefile()
80 targ_size = strlen(outfile) + strlen(atfile) + in writefile()
81 strlen(dgettext(TEXT_DOMAIN, " attribute ")) + 1; in writefile()
83 targ_size = strlen(outfile) + 1; in writefile()
/illumos-gate/usr/src/cmd/lp/cmd/lpsched/
H A Dfaults.c48 peLen = strlen(pe); in shortenReason()
55 pe = reason + strlen(reason) -1; in shortenReason()
60 pe = reason + strlen(reason) -1; in shortenReason()
191 msg = Malloc(strlen(PREFIX) + strlen(p->reason) + 2); in dial_problem()
204 strlen(PREFIX) + strlen(p->reason) + strlen(SUFFIX) + 2 in dial_problem()
/illumos-gate/usr/src/cmd/ypcmd/
H A Dypserv_ancil.c49 extern unsigned int strlen();
96 namesz = (int)strlen(dp->d_name);
115 strlen(NTOL_PREFIX)))
122 mapname = dp->d_name + strlen(NTOL_PREFIX);
125 strlen(NTOL_PREFIX)))
147 namesz = (int)strlen(mapname);
/illumos-gate/usr/src/contrib/ast/src/lib/libast/path/
H A Dpathrepl.c57 return(path + strlen(path)); in pathrepl_20100601()
59 size = strlen(path) + 1; in pathrepl_20100601()
80 t = path + strlen(path); in pathrepl_20100601()
81 u = t + strlen(r); in pathrepl_20100601()
85 else p += strlen(p) + 1; in pathrepl_20100601()
H A Dpathnative.c62 if ((n = strlen(tmp)) < siz && buf) in pathnative()
67 return strlen(buf); in pathnative()
86 else if ((n = strlen(path)) < siz && buf) in pathnative()
105 return strlen(buf); in pathnative()
115 if ((n = strlen(path)) < siz && buf) in pathnative()
H A Dpathposix.c62 if ((n = strlen(tmp)) < siz && buf) in pathposix()
67 return strlen(buf); in pathposix()
86 else if ((n = strlen(path)) < siz && buf) in pathposix()
107 return strlen(buf); in pathposix()
117 if ((n = strlen(path)) < siz && buf) in pathposix()
/illumos-gate/usr/src/lib/cfgadm_plugins/scsi/common/
H A Dcfga_cvt.c193 len = strlen(CFGA_DEV_DIR SLASH); in get_hba_devlink()
196 strlen(*hba_logpp + len) + 1); in get_hba_devlink()
319 len = strlen(DEVICES_DIR); in path_apid_dyn_to_path()
321 len + strlen(SLASH)) == 0) { in path_apid_dyn_to_path()
376 if (strlen(di_path_bus_addr(pi_node)) != strlen(dyn)) { in path_apid_dyn_to_path()
389 len = strlen(DEVICES_DIR) + strlen(devpath) + 1; in path_apid_dyn_to_path()
485 devlen = strlen(DEVICES_DIR) + strlen(physpath) + 1; in do_drv_dyn_to_devpath()
833 len = strlen(buf); in disk_dyncomp_to_devlink()
925 len = strlen(buf); in tape_dyncomp_to_devlink()
970 len = strlen(DEV_DIR SLASH); in def_devlink_to_dyncomp()
[all …]
/illumos-gate/usr/src/tools/smatch/src/validation/
H A Dsm_strlen2.c1 int strlen(char *str);
10 if (strlen(input1) > 4) in func()
14 if (10 > strlen(input2)) in func()
17 if (strlen(input3) <= 4) in func()
/illumos-gate/usr/src/cmd/boot/bootadm/
H A Dbootadm_hyper.c83 len = strlen(orig) + strlen(str) + strlen(delim) + 1; in append_str()
116 len = strlen(path) - strlen(old_str) + strlen(new_str) + 1; in modify_path()
124 pc += strlen(old_str); in modify_path()
233 *rp = s_realloc(*rp, strlen(rate) + 1); in set_serial_rate()
268 strlen(DEFAULT_SERIAL)) == 0) { in serial_metal_to_hyper()
539 if (strncmp(token, BFLAG, strlen(BFLAG)) != 0) { in cvt_metal_kernel()
636 if (strncmp(token, BFLAG, strlen(BFLAG)) != 0) { in cvt_hyper_module()
667 len = strlen(osroot) + strlen(BOOTRC_FILE) + 1; in parse_bootenvrc()
922 len = strlen(osroot) + strlen(XEN_MENU) + strlen(kern_bargs) + in cvt_to_hyper()
958 len = (strlen(kern_path) * 2) + WHITESPC(1) + 1; in cvt_to_hyper()
[all …]
/illumos-gate/usr/src/lib/storage/libg_fc/common/
H A Dgenf.c160 ns = (char *)g_zalloc(strlen(s) + 1); in g_alloc_string()
162 (void) strncpy(ns, s, (strlen(s) + 1)); in g_alloc_string()
466 ((s[0] == 'c') && ((int)strlen(s) > 1) && ((int)strlen(s) < 5))) { in g_get_physical_name()
470 if ((s[0] != 'c') || ((int)strlen(s) <= 1) || in g_get_physical_name()
471 ((int)strlen(s) >= 5)) { in g_get_physical_name()
474 for (i = 1; i < (int)strlen(s); i++) { in g_get_physical_name()
484 &s[1], strlen(s)); in g_get_physical_name()
856 (void) sprintf(&msg_string[strlen(msg_string)], in g_scsi_printerr()
1040 (strlen(path_ptr) == DEV_PREFIX_LEN)) { in g_get_path_type()
1258 strlen(enclDiskTbl[i].vid)) == 0) && in g_enclDiskChk()
[all …]
/illumos-gate/usr/src/cmd/regcmp/
H A Dregcmp.c73 write(2, message, strlen(message)); in main()
98 write(2, message, strlen(message)); in main()
122 write(2, message, strlen(message)); in main()
126 write(2, message, strlen(message)); in main()
130 write(2, message, strlen(message)); in main()
171 write(2, message, strlen(message)); in main()
183 write(2, message, strlen(message)); in main()
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dan_to_ln.c251 (loc2 == &string[strlen(string)])) in aname_do_match()
306 use_bytes(strlen(repl)); in do_replacement()
308 op += strlen(op); in do_replacement()
311 use_bytes(strlen(cp)); in do_replacement()
317 use_bytes(strlen(cp)); in do_replacement()
346 use_bytes(strlen(repl)); in do_replacement()
348 op += strlen(repl); in do_replacement()
351 use_bytes(strlen(cp)); in do_replacement()
357 use_bytes(strlen(cp)); in do_replacement()
469 if (strlen(out) == 0) { in aname_replacer()
[all …]
/illumos-gate/usr/src/cmd/sendmail/src/
H A Dconvtime.c162 p += strlen(p);
174 p += strlen(p);
180 p += strlen(p);
186 p += strlen(p);
192 p += strlen(p);
198 p += strlen(p);
/illumos-gate/usr/src/lib/cfgadm_plugins/fp/common/
H A Dcfga_cvt.c137 len = strlen(CFGA_DEV_DIR SLASH); in get_xport_devlink()
140 strlen(*xport_logpp + len) + 1); in get_xport_devlink()
217 strlen(SLASH)) == 0) { in is_apid_configured()
218 cp = devfs_phys + strlen(DEVICES_DIR); in is_apid_configured()
238 devfs_phys, strlen(devfs_phys)))) { in is_apid_configured()
390 strlen(path_name)], in is_apid_configured()
398 devlen = strlen(DEVICES_DIR) + in is_apid_configured()
399 strlen(path_name) + 1; in is_apid_configured()
484 devlen = strlen(DEVICES_DIR) + strlen(path_name) + 1; in insert_lun_to_lunlist()
744 sprintf(&path_name[strlen(path_name)], in construct_nodepath_from_dinode()
[all …]
/illumos-gate/usr/src/tools/protocmp/
H A Dproto_list.c57 int len = strlen(str); in is_num()
80 if ((!v[NAME]) || ((int)strlen(v[NAME]) < 1)) in check_line()
83 if ((!v[SRC]) || ((int)strlen(v[SRC])) < 1) in check_line()
86 if ((!v[PERM]) || ((int)strlen(v[PERM]) < 3) || (!is_num(v[PERM]))) in check_line()
89 if ((!v[OWNR]) || ((int)strlen(v[OWNR]) < 2)) in check_line()
92 if ((!v[GRP]) || ((int)strlen(v[GRP]) < 2)) in check_line()
104 (*v[CODE] != 's')) || ((int)strlen(v[CODE]) > 1)) in check_line()
140 } else if ((rc != NULL) && ((len = strlen(p)) > 1) && in get_line()
196 e->symsrc = malloc(strlen(v[SYM]) + 1); in parse_line()
/illumos-gate/usr/src/cmd/sendmail/util/
H A Dsmrsh.c124 if (sizeof newcmdbuf - strlen(newcmdbuf) <=
125 len + 1 + (cmd ? (strlen(CMDDIR) + 1) : 0))
192 if (strlen(SPECIALS) * 2 >= sizeof specialbuf)
208 if (strlen(par) > (sizeof newcmdbuf - sizeof CMDDIR - 2))
250 cmd = &q[strlen(q)];
270 addcmd("exec ", false, strlen("exec "));
279 addcmd(cmd, false, strlen(cmd));
362 addcmd(cmd, true, strlen(cmd));
374 addcmd(p, false, strlen(p));
/illumos-gate/usr/src/lib/libpcp/common/
H A Dpcp_utils.c93 if ((strncmp(devname, VCHAN, strlen(VCHAN)) == 0) || in get_vldc_svc_name()
94 (strncmp(devname, VCHAN_C, strlen(VCHAN_C)) == 0)) { in get_vldc_svc_name()
190 if (strncmp(devname, SERVICE_PREFIX, strlen(SERVICE_PREFIX)) == 0) { in platsvc_extract_svc_name()
191 sname = strdup(devname + strlen(SERVICE_PREFIX)); in platsvc_extract_svc_name()
252 dev_path = malloc(strlen(glvc_path) + in svc_name_to_glvc_dev_path()
253 strlen(DEVICES_DIR) + 1); in svc_name_to_glvc_dev_path()
304 dev_path = malloc(strlen(vldc_path) + in svc_name_to_vldc_dev_path()
305 strlen(DEVICES_DIR) + 1); in svc_name_to_vldc_dev_path()
/illumos-gate/usr/src/lib/libnisdb/yptol/
H A Dshim_ancil.c67 length = strlen(domain) + strlen(map) + ypdbpath_sz + 3;
69 length += strlen(NTOL_PREFIX) + 1;
221 if (!pname || ((len = (int)strlen(pname)) == 0) || in ypcheck_map_existence_yptol()
343 name_len = (int)strlen(dp->d_name); in add_map_domain_to_list()
363 strlen(NTOL_PREFIX))) { in add_map_domain_to_list()
371 mapname = dp->d_name + strlen(NTOL_PREFIX); in add_map_domain_to_list()
374 strlen(NTOL_PREFIX))) { in add_map_domain_to_list()
H A Dshim_changepasswd.c455 map_name_len += strlen(domain); in proc_map_list()
545 data.dsize = strlen(data.dptr); in update_single_map()
561 key.dsize = strlen(key.dptr); in update_single_map()
624 len_dif = strlen(s1) - strlen(s2); in strend()
990 len = strlen(pwd->pw_name) + 1; in create_pwd_str()
1065 key.dsize = strlen(key.dptr); in get_old_info()
1135 data.dsize = strlen(data.dptr); in put_new_info()
1137 key.dsize = strlen(key.dptr); in put_new_info()
1148 key.dsize = strlen(key.dptr); in put_new_info()
1286 len = strlen(sp->sp_namp) + 1; in write_shadow_info()
[all …]
/illumos-gate/usr/src/cmd/svc/startd/
H A Ddeathrow.c147 sz = strlen(line); in deathrow_init()
165 if (fmri != NULL && strlen(fmri) > 0 && in deathrow_init()
166 strlen(fmri) < max_scf_fmri_size && in deathrow_init()
167 manifest != NULL && strlen(manifest) > 0 && in deathrow_init()
168 pkgname != NULL && strlen(pkgname) > 0) { in deathrow_init()
205 startd_free(d->fmri, strlen(d->fmri) + 1); in deathrow_fini()
224 d->fmri = startd_alloc(strlen(fmri) + 1); in deathrow_add()
/illumos-gate/usr/src/common/acpica/utilities/
H A Dutnonansi.c302 if (strlen (Source) >= DestSize) in AcpiUtSafeStrcpy()
318 if ((strlen (Dest) + strlen (Source)) >= DestSize) in AcpiUtSafeStrcat()
337 ActualTransferLength = ACPI_MIN (MaxTransferLength, strlen (Source)); in AcpiUtSafeStrncat()
339 if ((strlen (Dest) + ActualTransferLength) >= DestSize) in AcpiUtSafeStrncat()
/illumos-gate/usr/src/lib/libcryptoutil/common/
H A Dpassutils.c97 (void) memset(tmpbuf, 0, strlen(tmpbuf)); /* clean up */ in pkcs11_get_pass()
111 (void) memset(databuf, 0, strlen(databuf)); in pkcs11_get_pass()
118 (void) memset(tmpbuf, 0, strlen(tmpbuf)); in pkcs11_get_pass()
119 (void) memset(databuf, 0, strlen(databuf)); in pkcs11_get_pass()
126 *psize = strlen(databuf); in pkcs11_get_pass()
/illumos-gate/usr/src/cmd/acpi/iasl/
H A Dprexpress.c186 UINT32 Length = strlen (Buffer); in PrUnTokenize()
196 Buffer[strlen(Buffer)] = ' '; in PrUnTokenize()
255 &Gbl_CurrentLineBuffer[TokenOffset], strlen (Token), in PrExpandMacros()
256 ReplaceString, strlen (ReplaceString)); in PrExpandMacros()
260 OffsetAdjust += strlen (ReplaceString) - strlen (Token); in PrExpandMacros()
/illumos-gate/usr/src/psm/stand/boot/sparc/common/
H A Dinetboot.c106 (void) strncpy(tmpname, fn, strlen(fn)+1); in post_mountroot_nfs()
113 strlen(ctmpname)+1); in post_mountroot_nfs()
128 strlen(cmd_line_boot_archive)+1); in post_mountroot_nfs()
133 strlen(def_boot_archive)+1); in post_mountroot_nfs()
137 strlen(def_miniroot)+1); in post_mountroot_nfs()
152 strlen(def_miniroot)+1) != 0) in post_mountroot_nfs()
/illumos-gate/usr/src/cmd/ldap/ns_ldap/
H A Dldapaddent.c117 for (i = 0; i < strlen(c); i++) in ascii_to_int()
615 if (strlen(line) >= sizeof (buf)) { in genent_hosts()
873 if (strlen(line) >= sizeof (buf)) { in genent_rpc()
1038 if (strlen(name) < 8) in dump_rpc()
1084 if (strlen(line) >= sizeof (buf)) { in genent_protocols()
1249 if (strlen(name) < 8) in dump_protocols()
1477 if (strlen(name) < 8) in dump_networks()
1878 if (strlen(t) != 0) in genent_group()
2331 keylen = (strlen(t) / 2) * 8; in genent_publickey()
3955 len = strlen(line->str); in filedbmline_comment()
[all …]

12345678910>>...151