Home
last modified time | relevance | path

Searched refs:namlen (Results 1 – 25 of 30) sorted by relevance

12

/illumos-gate/usr/src/contrib/ast/src/lib/libast/misc/
H A Dgetcwd.c161 size_t namlen;
191 namlen++;
194 if (len < namlen) ERROR(ERANGE);
197 return (char*)memcpy(buf, p, namlen);
211 namlen = strlen(p);
274 namlen = D_NAMLEN(entry);
288 namlen = D_NAMLEN(entry);
299 while ((p -= namlen) <= (buf + 1))
309 memcpy(p, env[n].path, namlen);
312 memcpy(p, entry->d_name, namlen);
[all …]
/illumos-gate/usr/src/uts/common/fs/
H A Ddnlc.c441 uchar_t namlen; in dnlc_enter() local
510 uchar_t namlen; in dnlc_update() local
591 uchar_t namlen; in dnlc_lookup() local
612 ncp->namlen == namlen && in dnlc_lookup()
670 uchar_t namlen; in dnlc_remove() local
940 ncp->namlen == namlen && in dnlc_search()
984 ncp->namlen = namlen; in dnlc_get()
1109 uchar_t namlen; in dnlc_dir_lookup() local
1250 uchar_t namlen; in dnlc_dir_add_entry() local
1551 uchar_t namlen; in dnlc_dir_rem_entry() local
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/preroot/
H A Dgetpreroot.c68 int namlen; in getpreroot() local
128 namlen = D_NAMLEN(entry); in getpreroot()
142 namlen = D_NAMLEN(entry); in getpreroot()
143 if ((d - dots) > (PATH_MAX - 1 - namlen)) ERROR(ERANGE); in getpreroot()
144 memcpy(d, entry->d_name, namlen + 1); in getpreroot()
149 if ((p -= namlen) <= (path + 1)) ERROR(ERANGE); in getpreroot()
150 memcpy(p, entry->d_name, namlen); in getpreroot()
/illumos-gate/usr/src/cmd/fs.d/autofs/
H A Dautod_xdr.c394 uint_t namlen; local
414 namlen = strlen(name);
418 roundup(namlen, BYTES_PER_XDR_UNIT);
426 !xdr_bytes(xdrs, &name, &namlen, AUTOFS_MAXPATHLEN) ||
443 #define reclen(namlen) DIRENT64_RECLEN((namlen)) argument
454 uint_t namlen; local
470 !xdr_u_int(xdrs, &namlen)) {
473 if (reclen(namlen) > size) {
477 if (!xdr_opaque(xdrs, dp->d_name, namlen)||
482 dp->d_reclen = reclen(namlen);
[all …]
/illumos-gate/usr/src/uts/common/fs/autofs/
H A Dauto_xdr.c403 uint_t namlen; in xdr_autofs_putrddirres() local
421 namlen = (uint_t)strlen(name); in xdr_autofs_putrddirres()
425 roundup(namlen, BYTES_PER_XDR_UNIT); in xdr_autofs_putrddirres()
433 !xdr_bytes(xdrs, &name, &namlen, AUTOFS_MAXPATHLEN) || in xdr_autofs_putrddirres()
454 uint_t namlen; in xdr_autofs_getrddirres() local
470 !xdr_u_int(xdrs, &namlen)) in xdr_autofs_getrddirres()
472 if (DIRENT64_RECLEN(namlen) > size) { in xdr_autofs_getrddirres()
476 if (!xdr_opaque(xdrs, dp->d_name, namlen)|| in xdr_autofs_getrddirres()
480 dp->d_reclen = (ushort_t)DIRENT64_RECLEN(namlen); in xdr_autofs_getrddirres()
481 bzero(&dp->d_name[namlen], in xdr_autofs_getrddirres()
[all …]
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dfsys_jfs.c281 int namlen, cmp, n, link_count; in jfs_dir() local
337 namlen = de->namlen; in jfs_dir()
339 uni2ansi (de->name, namebuf, namlen); in jfs_dir()
340 namebuf[namlen] = 0; in jfs_dir()
345 namlen -= DTLHDRDATALEN; in jfs_dir()
350 namlen -= DTSLOTDATALEN; in jfs_dir()
353 uni2ansi (ds->name, ptr, namlen); in jfs_dir()
354 ptr += namlen; in jfs_dir()
H A Djfs.h297 u8 namlen; /* 1: */ member
309 u8 namlen; /* 1: */ member
/illumos-gate/usr/src/stand/lib/fs/nfs/
H A Dgetdents4.c226 int namlen; in nfs4getdents() local
231 if ((namlen = ep->b_name.utf8string_len) == 0) in nfs4getdents()
234 n = BDIRENT_RECLEN(namlen); in nfs4getdents()
240 bcopy(ep->b_name.utf8string_val, dep->d_name, namlen); in nfs4getdents()
241 dep->d_name[namlen] = '\0'; in nfs4getdents()
/illumos-gate/usr/src/uts/common/fs/ufs/
H A Dufs_dir.c380 namlen = strlen(namep); in ufs_dirlook()
670 for (s = namep, namlen = 0; *s; s++, namlen++) in ufs_direnter_cm()
673 ASSERT(namlen); in ufs_direnter_cm()
686 (namlen == 1 || (namlen == 2 && namep[1] == '.'))) { in ufs_direnter_cm()
822 for (s = namep, namlen = 0; *s; s++, namlen++) in ufs_direnter_lr()
825 ASSERT(namlen); in ufs_direnter_lr()
833 (namlen == 1 || (namlen == 2 && namep[1] == '.'))) { in ufs_direnter_lr()
1768 int namlen, in ufs_diraddentry() argument
2418 int namlen; in ufs_dirremove() local
2424 if (namlen == 0) { in ufs_dirremove()
[all …]
/illumos-gate/usr/src/cmd/boot/bootadm/
H A Dbootadm_hyper.c329 unsigned namlen; in cvt_metal_option() local
339 namlen = value - optstr; in cvt_metal_option()
344 if (strncmp(optstr, "console", namlen) == 0) { in cvt_metal_option()
349 if ((strncmp(optstr, "ttya-mode", namlen) == 0) || in cvt_metal_option()
350 (strncmp(optstr, "ttyb-mode", namlen) == 0)) { in cvt_metal_option()
351 char *port = strndupa(optstr, namlen); in cvt_metal_option()
378 unsigned namlen; in cvt_hyper_option() local
396 namlen = value - optstr; in cvt_hyper_option()
416 if (strncmp(optstr, "console", namlen) == 0) { in cvt_hyper_option()
431 if ((strncmp(optstr, "com1", namlen) == 0) || in cvt_hyper_option()
[all …]
/illumos-gate/usr/src/lib/libtecla/common/
H A Dcplfile.c771 int namlen; /* The number of characters in nambuf[] */ in cf_read_name() local
780 for(sptr=string,namlen=0; in cf_read_name()
781 namlen < nmax && (slen-namlen < FS_DIR_SEP_LEN || in cf_read_name()
783 namlen++) { in cf_read_name()
784 nambuf[namlen] = *sptr++; in cf_read_name()
789 if(namlen >= nammax) { in cf_read_name()
796 nambuf[namlen] = '\0'; in cf_read_name()
/illumos-gate/usr/src/boot/include/ufs/ufs/
H A Ddir.h111 #define DIRECTSIZ(namlen) \ argument
113 ((namlen)+1)*sizeof(((struct direct *)0)->d_name[0]) + 3) & ~3)
/illumos-gate/usr/src/uts/common/sys/
H A Ddnlc.h84 uchar_t namlen; /* length of name */ member
166 #define DNLCHASH(name, dvp, hash, namlen) \ argument
174 (namlen) = Xcp - (name); \
/illumos-gate/usr/src/cmd/svr4pkg/libinst/
H A Dmntinfo.c132 if (fs1->namlen == fs2->namlen) in fs_tab_ent_comp()
135 return (fs2->namlen - fs1->namlen); in fs_tab_ent_comp()
624 nfte->namlen = strlen(mountp); in fs_tab_init()
628 if ((nfte->name = malloc(nfte->namlen+1)) == NULL) { in fs_tab_init()
1102 else if (fs_tab[i]->namlen <= pathlen) in fsys()
1111 fs_namelen = fs_tab[i]->namlen; in fsys()
/illumos-gate/usr/src/uts/common/syscall/
H A Dgetdents.c134 uint32_t reclen, namlen; in getdents32() local
153 namlen = strlen(dp->d_name); in getdents32()
154 reclen = DIRENT32_RECLEN(namlen); in getdents32()
/illumos-gate/usr/src/uts/common/fs/hsfs/
H A Dhsfs_node.c763 int namlen, /* length of 'name' */ in hs_dirlook() argument
802 if (!is_rrip && *name == '\1' && namlen == 1) in hs_dirlook()
808 if (namlen >= cmpname_size) in hs_dirlook()
809 namlen = cmpname_size - 1; in hs_dirlook()
816 cmpnamelen = namlen; in hs_dirlook()
823 name[namlen-1] == '.' && in hs_dirlook()
824 CAN_TRUNCATE_DOT(name, namlen)) in hs_dirlook()
825 name[--namlen] = '\0'; in hs_dirlook()
828 cmpnamelen = hs_iso_copy(name, cmpname, namlen); in hs_dirlook()
830 cmpnamelen = hs_uppercase_copy(name, cmpname, namlen); in hs_dirlook()
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs3_xdr.c2031 uint_t namlen; in xdr_putdirlist() local
2065 namlen = (uint_t)strlen(dp->d_name); in xdr_putdirlist()
2077 roundup(namlen, BYTES_PER_XDR_UNIT); in xdr_putdirlist()
2183 uint_t namlen; in xdr_READDIR3vres() local
2209 this_reclen = DIRENT64_RECLEN(namlen); in xdr_READDIR3vres()
2221 if (!xdr_opaque(xdrs, dp->d_name, namlen)) in xdr_READDIR3vres()
2223 bzero(&dp->d_name[namlen], in xdr_READDIR3vres()
2425 uint_t namlen; in xdr_READDIRPLUS3vres() local
2454 this_reclen = DIRENT64_RECLEN(namlen); in xdr_READDIRPLUS3vres()
2466 if (!xdr_opaque(xdrs, dp->d_name, namlen)) in xdr_READDIRPLUS3vres()
[all …]
H A Dnfs_xdr.c777 uint_t namlen; in xdr_putrddirres() local
805 namlen = (uint_t)strlen(name); in xdr_putrddirres()
807 roundup(namlen, BYTES_PER_XDR_UNIT); in xdr_putrddirres()
815 !xdr_bytes(xdrs, &name, &namlen, NFS_MAXNAMLEN) || in xdr_putrddirres()
835 uint_t namlen; in xdr_getrddirres() local
858 !xdr_u_int(xdrs, &namlen)) in xdr_getrddirres()
860 this_reclen = DIRENT64_RECLEN(namlen); in xdr_getrddirres()
865 if (!xdr_opaque(xdrs, dp->d_name, namlen)|| in xdr_getrddirres()
869 bzero(&dp->d_name[namlen], in xdr_getrddirres()
870 DIRENT64_NAMELEN(this_reclen) - namlen); in xdr_getrddirres()
/illumos-gate/usr/src/cmd/svr4pkg/hdrs/
H A Dinstall.h110 int namlen; /* The length of the name (mountpoint) */ member
/illumos-gate/usr/src/uts/common/sys/fs/
H A Dhsfs_impl.h53 extern int hs_dirlook(struct vnode *dvp, char *name, int namlen,
/illumos-gate/usr/src/uts/common/fs/udfs/
H A Dudf_dir.c340 int32_t namlen, err; in ud_direnter() local
349 for (s = namep, namlen = 0; *s; s++, namlen++) { in ud_direnter()
355 if (namlen == 0) { in ud_direnter()
366 (namlen == 1 || (namlen == 2 && namep[1] == '.'))) { in ud_direnter()
475 namep, namlen, &slot, &tip, buf, cr)) { in ud_direnter()
522 namlen, &slot, sip, sdp, cr)) { in ud_direnter()
/illumos-gate/usr/src/boot/libsa/
H A Dufs.c442 int namlen, length; in search_directory() local
458 namlen = dp->d_namlen; in search_directory()
459 if (namlen == length && in search_directory()
H A Dext2fs.c764 int namlen, length; in search_directory() local
778 namlen = dp->d_namlen; in search_directory()
779 if (namlen == length && in search_directory()
H A Dcd9660.c108 char namlen [ISODCL(1, 1)]; /* 711 */ member
115 #define PTSIZE(pp) roundup(PTFIXSZ + isonum_711((pp)->namlen), 2)
/illumos-gate/usr/src/cmd/fs.d/ufs/fsck/
H A Ddir.c1285 int namlen; in lftempname() local
1292 namlen = cp - bufp; in lftempname()
1293 if ((namlen > BUFSIZ) || (namlen > MAXPATHLEN)) { in lftempname()

12