Home
last modified time | relevance | path

Searched refs:strlen (Results 251 – 275 of 3896) sorted by relevance

1...<<11121314151617181920>>...156

/illumos-gate/usr/src/uts/common/xen/io/
H A Dxenbus_xs.c368 iovec.iov_len = strlen(string) + 1; in xs_single()
392 buffer = kmem_alloc(strlen(dir) + slashlen + strlen(name) + 1, in join()
419 p += strlen(p) + 1) { in split()
436 kmem_free(path, strlen(path) + 1); in xenbus_directory()
490 kmem_free(path, strlen(path) + 1); in xenbus_read()
539 iovec[1].iov_len = strlen(string); in xenbus_write()
555 kmem_free(path, strlen(path) + 1); in xenbus_mkdir()
568 kmem_free(path, strlen(path) + 1); in xenbus_rm()
709 iov[0].iov_len = strlen(path) + 1; in xs_watch()
711 iov[1].iov_len = strlen(token) + 1; in xs_watch()
[all …]
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_pathname.c51 int len = strlen(path); in smb_is_executable()
228 len = strlen(usepath); in smb_pathname_reduce()
249 len = strlen(usepath); in smb_pathname_reduce()
571 strlen(component)); in smb_pathname()
916 len = strlen(pn->pn_sname); in smb_pathname_init()
940 if (strlen(pn->pn_path) == 0) { in smb_pathname_preprocess()
988 p += strlen(name); in smb_pathname_preprocess_quota()
993 len = strlen(pn->pn_path) + 2; in smb_pathname_preprocess_quota()
1025 n = strlen(s) + 1; in smb_pathname_strdup()
1046 n = strlen(s1) + strlen(s2) + 1; in smb_pathname_strcat()
[all …]
/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/test/zfs-tests/cmd/chg_usr_exec/
H A Dchg_usr_exec.c45 if (argc < 3 || strlen(argv[1]) == 0) { in main()
55 len += strlen(argv[i]) + strlen(sep); in main()
/illumos-gate/usr/src/cmd/scadm/sparc/mpxu/common/
H A Dset.c58 Message.len = strlen(argv[2]) + strlen(argv[3]) + 2; in ADM_Process_set()
70 (void) strcpy(&DataBuffer[strlen(argv[2])+1], argv[3]); in ADM_Process_set()
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dgetsubopt.c53 p = s + strlen(s); in getsubopt()
60 optlen = strlen(s); in getsubopt()
67 if ((optlen == strlen(tokens[i])) && in getsubopt()
/illumos-gate/usr/src/lib/libnsl/key/
H A Dpublickey.c171 strlen(netname), &keyval, &keylen, 0); in getkeys_nis()
196 len = strlen(keyval); in getkeys_nis()
277 int len = strlen(mval); in getkeys_files()
353 char *buf = malloc(strlen(raw) + 1); /* private tmp buf */ in extract_secret_g()
380 if (strlen(buf) >= prilen) { in extract_secret_g()
476 len = strlen(keyval); in getkeys_ldap_g()
515 if (bufsiz > strlen(netname)) in netname2hashname()
522 if (bufsiz > (strlen(netname) + strlen(tmp))) in netname2hashname()
/illumos-gate/usr/src/cmd/format/
H A Dmisc.c556 ns = zalloc(strlen(s) + 1); in alloc_string()
657 if (strncmp(devp, name, strlen(devp)) == 0) { in emcpower_name()
658 name += strlen(devp) + 1; in emcpower_name()
659 } else if (strncmp(rdevp, name, strlen(rdevp)) == 0) { in emcpower_name()
660 name += strlen(rdevp) + 1; in emcpower_name()
662 if (strncmp(emcp, name, strlen(emcp)) == 0) { in emcpower_name()
663 name += strlen(emcp); in emcpower_name()
753 name += strlen(*p); in canonical4x_name()
783 s = dst + strlen(dst) - 2; in canonicalize_name()
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/ontario/common/
H A Dhuron.c78 strlen(HURON_PCIE_SLOT0)) == 0) { in huron_get_slot_number()
82 strlen(HURON_PCIE_SLOT1)) == 0) { in huron_get_slot_number()
86 strlen(HURON_PCIE_SLOT2)) == 0) { in huron_get_slot_number()
90 strlen(HURON_PCIE_SLOT3)) == 0) { in huron_get_slot_number()
94 strlen(HURON_PCIE_SLOT4)) == 0) { in huron_get_slot_number()
98 strlen(HURON_PCIE_SLOT5)) == 0) { in huron_get_slot_number()
264 if (strlen(pci_card.name) > 24) in huron_pci_callback()
269 if (strlen(pci_card.model) > 10) in huron_pci_callback()
363 if (strlen(device_path) > 45) in huron_hw_rev_callback()
/illumos-gate/usr/src/lib/libdevinfo/
H A Ddevfsinfo.c206 len = strlen(ptr) + 1; in devfs_get_prom_name_list()
355 len = strlen(ptr) + 1; in devfs_get_all_prom_names()
488 j = strlen(ptr); in devfs_bootdev_set_list()
509 + strlen(prom_path) + 2); in devfs_bootdev_set_list()
632 opp->oprom_size = strlen(valbuf) + strlen(opp->oprom_array) + 2; in set_boot_dev_var()
680 opp->oprom_size = strlen(valbuf) + strlen(opp->oprom_array) + 2; in set_boot_dev_var()
807 line[strlen(line) - 1] = '\0'; in find_x86_boot_device()
1238 (strlen(name) == strlen(physdev))) { in check_logical_dev()
1649 if (strlen(dev) >= MAXPATHLEN) in prom_dev_to_alias()
2018 len1 = strlen(addrname1); in prom_compare_devs()
[all …]
/illumos-gate/usr/src/lib/libproc/common/
H A Dpr_rename.c58 adp->arg_size = strlen(old) + 1; in pr_rename()
72 adp->arg_size = strlen(new) + 1; in pr_rename()
109 adp->arg_size = strlen(existing) + 1; in pr_link()
123 adp->arg_size = strlen(new) + 1; in pr_link()
167 adp->arg_size = strlen(path) + 1; in pr_unlink()
/illumos-gate/usr/src/cmd/ypcmd/
H A Dypset.c96 extern unsigned int strlen();
122 if ((int)strlen(domain) == 0) {
162 if ((int)strlen(host) > 256) {
187 if (strlen(domain) > YPMAXDOMAIN) {
224 if ((int)strlen(server_to_use) > 256) {
/illumos-gate/usr/src/lib/libnwam/common/
H A Dlibnwam_files.c72 totlen = strlen(in); in nwam_tokenize_by_unescaped_delim()
105 for (i = 0; i < strlen(in); i++) { in value_add_escapes()
135 for (i = 0; i < strlen(in); i++) { in value_remove_escapes()
230 strlen(nextval)) == 0) { in nwam_line_to_object()
233 NWAM_FILE_BOOLEAN_FALSE, strlen(nextval)) in nwam_line_to_object()
375 filenamelen = strlen(NWAM_CONF_DIR) + strlen(dp->d_name) + 1; in create_ncp_file_list()
381 strlen(NWAM_CONF_DIR) + 1); in create_ncp_file_list()
383 dp->d_name, filenamelen - strlen(NWAM_CONF_DIR)); in create_ncp_file_list()
518 strlen(filename) + 1); in nwam_read_object_from_files_backend()
536 if (line[strlen(line) - 1] == '\n') in nwam_read_object_from_files_backend()
[all …]
/illumos-gate/usr/src/lib/libadm/common/
H A Dputhelp.c51 n = strlen(help); in puthelp()
54 tmp = calloc(n+strlen(defmesg)+1, sizeof (char)); in puthelp()
62 tmp = calloc(n+strlen(defmesg)+2, sizeof (char)); in puthelp()
/illumos-gate/usr/src/cmd/abi/spectrans/parser/
H A Dextends.c128 p = realloc(localvalue, sizeof (char)*(strlen(buf2)+1)); in do_extends()
203 p = realloc(localvalue, sizeof (char)*(strlen(buf2)+1)); in do_extends()
206 sizeof (char)*(strlen(buf2)+1)); in do_extends()
329 len = strlen(buf); in arch_match()
336 len = strlen(buf); in arch_match()
346 p = realloc(localvalue, sizeof (char)*(strlen(buf2)+1)); in arch_match()
349 sizeof (char)*(strlen(buf2)+1)); in arch_match()
/illumos-gate/usr/src/lib/krb5/kadm5/
H A Dstr_conv.c162 nsize = strlen(neg);
163 psize = (positive) ? strlen(positive) : 0;
213 if ((op+strlen(flags_table[i].fl_output)+strlen(sepstring)) <
217 op += strlen(sep);
221 op += strlen(flags_table[i].fl_output);
248 if(strlen(flags_table[flag].fl_specifier) > buflen) return ENOMEM;
/illumos-gate/usr/src/cmd/csh/
H A Dsh.err.c179 err_msg = (char *)xalloc(strlen(chbuf)+strlen(gdp)+1); in seterr2()
210 err_msg = (char *)xalloc(strlen(cp)+strlen(chbuf)+1); in seterrc()
/illumos-gate/usr/src/cmd/oamuser/user/
H A Dproj.c91 p_length = strlen(p_string); in edit_project()
115 p_length -= (strlen(*memptr)+1); in edit_project()
137 strlen(*memptr)) == 0) in edit_project()
140 p_length += strlen(new_login ? in edit_project()
/illumos-gate/usr/src/cmd/lp/lib/lp/
H A Dsdn.c112 z = dec + strlen(dec) - 1; in fdprintsdn()
154 *p_after = str + strlen(NAME_PICA); in _getsdn()
160 *p_after = str + strlen(NAME_ELITE); in _getsdn()
166 *p_after = str + strlen(NAME_COMPRESSED); in _getsdn()
/illumos-gate/usr/src/boot/i386/libi386/
H A Dbootinfo.c161 i386_copyin(ep->ev_name, addr, strlen(ep->ev_name)); in bi_copyenv()
162 addr += strlen(ep->ev_name); in bi_copyenv()
166 i386_copyin(ep->ev_value, addr, strlen(ep->ev_value)); in bi_copyenv()
167 addr += strlen(ep->ev_value); in bi_copyenv()
/illumos-gate/usr/src/uts/common/os/
H A Dmodsysfile.c548 cp = tok1 + strlen(tok1); in do_sysfile_cmd()
591 strlen(tok1) + 1, VM_SLEEP); in do_sysfile_cmd()
700 cp += strlen(cp); in do_sysfile_cmd()
1377 len = strlen(tchar); in kobj_get_string()
1570 kmem_free(name, strlen(name) + 1); in hwc_free()
1572 kmem_free(name, strlen(name) + 1); in hwc_free()
1574 kmem_free(name, strlen(name) + 1); in hwc_free()
1660 int len = strlen(name); in valid_prop_name()
1825 strlen(prop_name) + 1); in get_hwc_spec()
2657 if (strlen(tokbuf) == 0) { in read_dacf_binding_file()
[all …]
/illumos-gate/usr/src/cmd/sendmail/src/
H A Dusersmtp.c336 l1 = strlen(s1);
337 l2 = strlen(s2);
357 l1 = strlen(h1);
435 if (strlen(line) < 5)
493 l = strlen(p) + 1;
621 len = strlen(line);
1196 l = strlen(h) + strlen(realm) + 2;
1341 len = strlen(p);
1457 len = strlen(item);
1508 len = strlen(list) - strlen(rem);
[all …]
/illumos-gate/usr/src/lib/nsswitch/ldap/common/
H A Dgetprinter.c95 slen = strlen(SUNWPR_PREFIX); in _nss_ldap_printers2str()
96 plen = strlen(PRINTER_PREFIX); in _nss_ldap_printers2str()
135 len = strlen(attr->attrvalue[j]); in _nss_ldap_printers2str()
204 len = strlen(attr->attrvalue[j]); in _nss_ldap_printers2str()
235 buffer += strlen(attr->attrvalue[j]) + k; in _nss_ldap_printers2str()
241 be->buflen = strlen(be->buffer); in _nss_ldap_printers2str()
/illumos-gate/usr/src/cmd/lp/model/netpr/
H A Dbsd_misc.c153 jobdata->np_path_file = malloc(strlen(job->np_filename) + 1); in create_bsd_job()
205 dfname = (char *)malloc(strlen(job->np_host) + 3 + 3 + 1); in create_dfname()
207 (void) memset(dfname, 0, strlen(job->np_host) + 3 + 3 + 1); in create_dfname()
227 cfname = (char *)malloc(strlen(job->np_host) + 3 + 3 + 1); in create_cfname()
229 (void) memset(cfname, 0, strlen(job->np_host) + 3 + 3 + 1); in create_cfname()
261 job->np_cfAfilesize += strlen(value) + 2; /* (opt)(value)\n */ in job_primitive()
/illumos-gate/usr/src/cmd/fs.d/autofs/
H A Dautod_autofs.c79 sprintf(rel_mntpnt, ".%s", mntpnt+strlen(rootp)); in mount_autofs()
109 fnip->addr.len = strlen(fnip->addr.buf); in mount_autofs()
154 len = strlen(fnip->opts); in mount_autofs()
163 if (len + strlen(",nest") + 1 > MAX_MNTOPT_STR) in mount_autofs()
170 alp->action.action_list_entry_u.mounta.optlen = strlen(buf) + 1; in mount_autofs()
205 assert(strlen(options)+1 < AUTOFS_MAXOPTSLEN); in process_opts()

1...<<11121314151617181920>>...156