Home
last modified time | relevance | path

Searched refs:d_namlen (Results 1 – 25 of 71) sorted by relevance

123

/openbsd/sys/isofs/cd9660/
H A Dcd9660_vnops.c317 dp->d_name[dp->d_namlen] = 0; in iso_uiodir()
340 cl = idp->current.d_namlen; in iso_shipdir()
350 if (!(sl = dp->d_namlen)) { in iso_shipdir()
353 sl = dp->d_namlen - 1; in iso_shipdir()
363 idp->assocent.d_namlen = 0; in iso_shipdir()
365 if (idp->saveent.d_namlen) { in iso_shipdir()
370 idp->saveent.d_namlen = 0; in iso_shipdir()
501 if (idp->current.d_namlen) in cd9660_readdir()
509 idp->current.d_namlen = 1; in cd9660_readdir()
513 idp->current.d_namlen = 2; in cd9660_readdir()
[all …]
/openbsd/lib/libc/gen/
H A Dscandir.c60 (((dp)->d_namlen + 1 + 3) &~ 3))
123 p->d_namlen = d->d_namlen; in scandir_dirp()
124 bcopy(d->d_name, p->d_name, p->d_namlen + 1); in scandir_dirp()
H A Dttyname.c129 if (dirp->d_namlen > len - sizeof(_PATH_DEV)) { in oldttyname()
133 dirp->d_namlen + 1); in oldttyname()
H A Dreaddir_r.c50 sizeof (struct dirent) - NAME_MAX + dp->d_namlen); in readdir_r()
/openbsd/sys/sys/
H A Ddirent.h56 __uint8_t d_namlen; /* length of string in d_name */ member
95 DIRENT_RECSIZE((dp)->d_namlen)
H A Ddir.h63 ((sizeof (struct direct) - (MAXNAMLEN+1)) + (((dp)->d_namlen+1 + 3) &~ 3))
/openbsd/sbin/restore/
H A Ddirs.c175 nulldir.d_namlen = 1; in extractdirs()
267 if (namelen + dp->d_namlen >= sizeof(locname)) { in treescan()
324 } while (dp->d_namlen != len || strncmp(dp->d_name, name, len) != 0); in searchdir()
357 dp->d_namlen = dp->d_type; in putdir()
360 dp->d_namlen = dp->d_type; in putdir()
368 dp->d_namlen > NAME_MAX) { in putdir()
378 if (dp->d_namlen > NAME_MAX) in putdir()
381 (unsigned)dp->d_namlen, NAME_MAX); in putdir()
442 ndp->d_namlen = strlen(ndp->d_name); in dcvt()
H A Dinteractive.c554 if (namelen + dp->d_namlen >= PATH_MAX) { in printlist()
559 (int)dp->d_namlen); in printlist()
725 adirent.d_namlen = dp->d_namlen; in glob_readdir()
726 memcpy(adirent.d_name, dp->d_name, dp->d_namlen + 1); in glob_readdir()
/openbsd/sys/ufs/ufs/
H A Ddir.h83 u_int8_t d_namlen; /* length of string in d_name */ member
116 ((sizeof(struct direct) - (MAXNAMLEN+1)) + (((dp)->d_namlen+1 + 3) &~ 3))
H A Dufs_dirhash.c221 slot = ufsdirhash_hash(dh, ep->d_name, ep->d_namlen); in ufsdirhash_build()
413 if (dp->d_namlen == namelen && in ufsdirhash_lookup()
621 slot = ufsdirhash_hash(dh, dirp->d_name, dirp->d_namlen); in ufsdirhash_add()
656 slot = ufsdirhash_findslot(dh, dirp->d_name, dirp->d_namlen, offset); in ufsdirhash_remove()
690 slot = ufsdirhash_findslot(dh, dirp->d_name, dirp->d_namlen, oldoff); in ufsdirhash_move()
835 ufsdirhash_findslot(dh, dp->d_name, dp->d_namlen, offset + i); in ufsdirhash_checkblock()
/openbsd/gnu/usr.bin/cvs/os2/
H A Ddirent.c114 entp->d_namlen = (unsigned short) ff.cchName; in opendir()
115 memcpy(entp->d_name, ff.achName, entp->d_namlen); in opendir()
116 entp->d_name[entp->d_namlen] = '\0'; in opendir()
H A Ddirent.h27 unsigned short d_namlen; member
/openbsd/gnu/usr.bin/cvs/vms/
H A Dndir.c284 dir_static.d_namlen = strlen (dirp->dd_buf);
287 + dir_static.d_namlen - dir_static.d_namlen % 4;
289 dir_static.d_name[dir_static.d_namlen] = '\0';
H A Dndir.h40 unsigned short d_namlen; /* length of string in d_name */ member
/openbsd/sbin/fsck_ffs/
H A Ddir.c154 dp->d_namlen = 0; in fsck_readdir()
210 namlen = dp->d_namlen; in dircheck()
290 newent.d_namlen = strlen(idesc->id_name); in mkentry()
304 dirp->d_namlen = newent.d_namlen; in mkentry()
305 memcpy(dirp->d_name, idesc->id_name, (size_t)dirp->d_namlen + 1); in mkentry()
314 if (memcmp(dirp->d_name, idesc->id_name, (int)dirp->d_namlen + 1)) in chgino()
H A Dpass2.c279 proto.d_namlen = 1; in pass2check()
310 proto.d_namlen = 2; in pass2check()
362 if (dirp->d_namlen <= 2 && in pass2check()
365 if (dirp->d_namlen == 1) { in pass2check()
/openbsd/sys/msdosfs/
H A Dmsdosfs_conv.c704 dp->d_namlen = (wep->weCnt&WIN_CNT) * WIN_CHARS; in win2unixfn()
722 dp->d_namlen -= sizeof(wep->wePart2)/2 in win2unixfn()
744 dp->d_namlen -= sizeof(wep->wePart3)/2 + i + 1; in win2unixfn()
765 dp->d_namlen -= i + 1; in win2unixfn()
/openbsd/sys/kern/
H A Dvfs_getcwd.c173 dp->d_namlen > reclen) { in vfs_getcwd_scandir()
177 bp -= dp->d_namlen; in vfs_getcwd_scandir()
183 memmove(bp, dp->d_name, dp->d_namlen); in vfs_getcwd_scandir()
/openbsd/gnu/lib/libreadline/
H A Dposixdir.h42 # define D_NAMLEN(d) ((d)->d_namlen)
/openbsd/gnu/usr.bin/cvs/windows-NT/
H A Dndir.h32 int d_namlen; /* length of d_name */ member
/openbsd/gnu/usr.bin/perl/win32/include/
H A Ddirent.h28 long d_namlen; /* name length */ member
/openbsd/usr.bin/vi/ex/
H A Dex_argv.c523 if (dp->d_namlen < nlen || in argv_lexp()
529 argv_alloc(sp, dlen + dp->d_namlen + 2); in argv_lexp()
537 memcpy(p, dp->d_name, dp->d_namlen + 1); in argv_lexp()
538 exp->args[exp->argsoff]->len = dlen + dp->d_namlen + 1; in argv_lexp()
/openbsd/usr.bin/lndir/
H A Dlndir.c214 if (dp->d_namlen == 0 || dp->d_name[dp->d_namlen - 1] == '~' || in dodir()
/openbsd/sbin/fsdb/
H A Dfsdb.c440 typename[dirp->d_type], dirp->d_namlen, dirp->d_name); in scannames()
603 testdir.d_namlen = strlen(idesc->id_name); in chnamefunc()
605 dirp->d_namlen = testdir.d_namlen; in chnamefunc()
/openbsd/gnu/usr.bin/cvs/contrib/
H A Ddirfns.shar137 X unsigned short d_namlen; /* length of string in d_name */
175 X if (dp->d_namlen == len && strcmp(dp->d_name, name) == 0) {
260 X unsigned short d_namlen; /* length of string in d_name */
268 X * null byte (dp->d_namlen+1), rounded up to a 4 byte boundary.
272 X ((sizeof (struct direct) - (MAXNAMLEN+1)) + (((dp)->d_namlen+1 + 3) &~ 3))
421 X dir.d_namlen = strlen(dir.d_name);

123