HomeSort by: relevance | last modified time | path
    Searched refs:d_namlen (Results 1 - 25 of 92) sorted by relevancy

1 2 3 4

  /src/sys/compat/sys/
dirent.h 40 u_int16_t d_namlen; /* length of string in d_name */ member in struct:dirent43
48 u_int8_t d_namlen; /* length of string in d_name */ member in struct:dirent12
  /src/sys/sys/
dir.h 58 * null byte (dp->d_namlen+1), rounded up to a 4 byte boundary.
62 ((sizeof (struct direct) - (MAXNAMLEN+1)) + (((dp)->d_namlen+1 + 3) &~ 3))
dirent.h 53 uint16_t d_namlen; /* length of string in d_name */ member in struct:dirent
113 #define _DIRENT_SIZE(dp) _DIRENT_RECLEN(dp, (dp)->d_namlen)
dirhash.h 38 /* dirent's d_namlen is to avoid useless costly fid->dirent translations */
42 uint32_t d_namlen; member in struct:dirhash_entry
  /src/lib/libc/compat/sys/
compat_getdents.c 77 if (ndp->d_namlen >= sizeof(odp->d_name))
78 odp->d_namlen = sizeof(odp->d_name) - 1;
80 odp->d_namlen = (u_int8_t)ndp->d_namlen;
82 (void)memcpy(odp->d_name, ndp->d_name, (size_t)odp->d_namlen);
83 odp->d_name[odp->d_namlen] = '\0';
  /src/lib/libc/compat/gen/
compat_readdir.c 30 if (d->d_fileno > UINT_MAX || d->d_namlen >= sizeof(d12->d_name)) {
36 d12->d_namlen = (uint8_t)MIN(d->d_namlen, sizeof(d->d_name) - 1);
38 memcpy(d12->d_name, d->d_name, (size_t)d12->d_namlen);
39 d12->d_name[d12->d_namlen] = '\0';
  /src/sys/compat/sunos/
sunos_dirent.h 41 u_short d_namlen; member in struct:sunos_dirent
  /src/sys/compat/sunos32/
sunos32_dirent.h 42 u_short d_namlen; member in struct:sunos32_dirent
  /src/bin/ksh/
ksh_dir.h 11 # define NLENGTH(dirent) (dirent->d_namlen)
  /src/sys/ufs/ufs/
dir.h 85 u_int8_t d_namlen; /* length of string in d_name */ member in struct:direct
112 * NUL byte (dp->d_namlen+1), rounded up to a 4 byte boundary.
125 UFS_DIRECTSIZ((dp)->d_type) : UFS_DIRECTSIZ((dp)->d_namlen))
129 UFS_DIRECTSIZ((dp)->d_type) : UFS_DIRECTSIZ((dp)->d_namlen))
150 * return ((FSFMT(vp) && swap) ? dp->d_type : dp->d_namlen);
170 * volumes there is no d_type field, just a 16-bit d_namlen; so if
171 * the 16-bit d_namlen is little-endian, the useful part of it is
  /src/sys/kern/
vfs_dirhash.c 269 hashvalue = hash32_strn(dirent->d_name, dirent->d_namlen,
281 KASSERT(dirh_e->d_namlen == dirent->d_namlen);
287 offset, entry_size, dirent->d_namlen,
288 dirent->d_namlen, dirent->d_namlen, dirent->d_name));
326 dirh_e->d_namlen = dirent->d_namlen;
355 dirh_e->d_namlen = 0; /* not relevant */
373 dirent->d_namlen, dirent->d_namlen, dirent->d_name))
    [all...]
  /src/lib/libc/gen/
scandir.c 139 p->d_namlen = d->d_namlen;
140 (void)memmove(p->d_name, d->d_name, (size_t)(p->d_namlen + 1));
  /src/sys/compat/common/
vfs_syscalls_12.c 206 if (bdp->d_namlen >= sizeof(idb.d_name))
207 idb.d_namlen = sizeof(idb.d_name) - 1;
209 idb.d_namlen = bdp->d_namlen;
210 old_reclen = _DIRENT_RECLEN(&idb, bdp->d_namlen);
224 (void)memcpy(idb.d_name, bdp->d_name, idb.d_namlen);
225 memset(idb.d_name + idb.d_namlen, 0,
226 idb.d_reclen - _DIRENT_NAMEOFF(&idb) - idb.d_namlen);
vfs_syscalls_43.c 424 if (bdp->d_namlen >= sizeof(idb.d_name))
425 idb.d_namlen = sizeof(idb.d_name) - 1;
427 idb.d_namlen = bdp->d_namlen;
428 old_reclen = _DIRENT_RECLEN(&idb, bdp->d_namlen);
442 (void)memcpy(idb.d_name, bdp->d_name, idb.d_namlen);
443 memset(idb.d_name + idb.d_namlen, 0,
444 idb.d_reclen - _DIRENT_NAMEOFF(&idb) - idb.d_namlen);
vfs_syscalls_30.c 282 if (bdp->d_namlen >= sizeof(idb.d_name))
283 idb.d_namlen = sizeof(idb.d_name) - 1;
285 idb.d_namlen = bdp->d_namlen;
299 (void)memcpy(idb.d_name, bdp->d_name, idb.d_namlen);
300 memset(idb.d_name + idb.d_namlen, 0,
301 idb.d_reclen - _DIRENT_NAMEOFF(&idb) - idb.d_namlen);
  /src/sys/fs/cd9660/
cd9660_vnops.c 302 dp->d_name[dp->d_namlen] = 0;
334 cl = idp->current.d_namlen;
345 if (!(sl = dp->d_namlen)) {
348 sl = dp->d_namlen - 1;
353 if (idp->assocent.d_namlen) {
358 idp->assocent.d_namlen = 0;
360 if (idp->saveent.d_namlen) {
365 idp->saveent.d_namlen = 0;
418 idp->saveent.d_namlen = idp->assocent.d_namlen = 0
    [all...]
  /src/sys/stand/
ls.c 99 if (((DP *)dp)->d_namlen > NAME_MAX + 1) {
  /src/sbin/fsck_ffs/
dir.c 159 tmp = tdp->d_namlen;
160 tdp->d_namlen = tdp->d_type;
203 u_int8_t tmp = dp->d_namlen;
204 dp->d_namlen = dp->d_type;
264 dp->d_namlen = 0;
326 type = dp->d_namlen;
329 namlen = dp->d_namlen;
354 if (dp->d_namlen != 0) {
355 dp->d_namlen = 0;
512 newent.d_namlen = strlen(idesc->id_name)
    [all...]
pass2.c 373 proto.d_namlen = 1;
383 proto.d_type = proto.d_namlen;
384 proto.d_namlen = tmp;
424 proto.d_namlen = 2;
434 proto.d_type = proto.d_namlen;
435 proto.d_namlen = tmp;
519 if (dirp->d_namlen <= 2 &&
522 if (dirp->d_namlen == 1) {
  /src/regress/sys/kern/getcwd/
old_getcwd.c 189 dlen = dp->d_namlen;
203 dlen = dp->d_namlen;
  /src/sbin/restore/
dirs.c 186 nulldir.d_namlen = 1;
274 if (namelen + dp->d_namlen >= sizeof(locname)) {
331 } while (dp->d_namlen != len || strncmp(dp->d_name, name, len) != 0);
364 dp->d_namlen = dp->d_type;
367 dp->d_namlen = dp->d_type;
375 dp->d_namlen > NAME_MAX */) {
384 #if 0 /* dp->d_namlen is a uint8_t, always < NAME_MAX */
385 if (dp->d_namlen > NAME_MAX)
388 dp->d_namlen, NAME_MAX);
452 ndp->d_namlen = strlen(ndp->d_name)
    [all...]
  /src/lib/libpuffs/
subr.c 71 d->d_namlen = (uint16_t)strlen(name);
72 (void)memcpy(&d->d_name, name, (size_t)d->d_namlen);
73 d->d_name[d->d_namlen] = '\0';
  /src/sys/compat/linux32/common/
linux32_dirent.c 193 linux32_reclen = LINUX_RECLEN(&idb, bdp->d_namlen);
211 idb.d_reclen = (u_short)bdp->d_namlen;
221 size_t dirl = MIN(sizeof(idb.d_name) - 1, bdp->d_namlen + 1);
  /src/sys/coda/
coda.h 165 unsigned short d_namlen; /* length of string in d_name */ member in struct:venus_dirent
170 (((dp)->d_namlen+1 + 3) &~ 3))
179 unsigned char d_namlen; /* length of string in d_name */ member in struct:venus_dirent
184 (((dp)->d_namlen+1 + 3) &~ 3))
  /src/usr.sbin/ypserv/ypserv/
ypserv_proc.c 480 (dp->d_namlen < 4) || (dp->d_namlen > YPMAXMAP + 3))
484 suffix = (char *)&dp->d_name[dp->d_namlen - 3];
494 (size_t)(dp->d_namlen - 2));

Completed in 51 milliseconds

1 2 3 4