/netbsd-current/sys/compat/sys/ |
H A D | 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
|
/netbsd-current/external/bsd/mdocml/dist/ |
H A D | test-dirent-namlen.c | 9 return sizeof(entry.d_namlen) == 0;
|
/netbsd-current/sys/sys/ |
H A D | 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))
|
H A D | 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)
|
H A D | dirhash.h | 42 /* dirent's d_namlen is to avoid useless costly fid->dirent translations */ 46 uint32_t d_namlen; member in struct:dirhash_entry
|
/netbsd-current/lib/libc/compat/sys/ |
H A D | 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';
|
/netbsd-current/lib/libc/compat/gen/ |
H A D | 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';
|
/netbsd-current/external/gpl3/gdb.old/dist/readline/readline/ |
H A D | posixdir.h | 29 # define D_NAMLEN(d) ((d)->d_namlen) 46 # define D_NAMLEN(d) ((d)->d_namlen)
|
/netbsd-current/external/gpl3/gdb/dist/readline/readline/ |
H A D | posixdir.h | 29 # define D_NAMLEN(d) ((d)->d_namlen) 46 # define D_NAMLEN(d) ((d)->d_namlen)
|
/netbsd-current/sys/compat/sunos32/ |
H A D | sunos32_dirent.h | 42 u_short d_namlen; member in struct:sunos32_dirent
|
/netbsd-current/sys/compat/sunos/ |
H A D | sunos_dirent.h | 41 u_short d_namlen; member in struct:sunos_dirent
|
/netbsd-current/external/gpl2/gmake/dist/ |
H A D | vmsdir.h | 37 u_short d_namlen; member in struct:direct 45 + ((dp)->d_namlen+1)) \
|
/netbsd-current/bin/ksh/ |
H A D | ksh_dir.h | 11 # define NLENGTH(dirent) (dirent->d_namlen)
|
/netbsd-current/sys/ufs/ufs/ |
H A D | 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
|
/netbsd-current/sys/kern/ |
H A D | vfs_dirhash.c | 253 hashvalue = hash32_strn(dirent->d_name, dirent->d_namlen, HASH32_STR_INIT); 264 KASSERT(dirh_e->d_namlen == dirent->d_namlen); 270 offset, entry_size, dirent->d_namlen, 271 dirent->d_namlen, dirent->d_namlen, dirent->d_name)); 307 dirh_e->d_namlen = dirent->d_namlen; 338 dirh_e->d_namlen = 0; /* not relevant */ 357 dirent->d_namlen, diren 398 dirhash_lookup(struct dirhash *dirh, const char *d_name, int d_namlen, struct dirhash_entry **result) argument [all...] |
/netbsd-current/external/bsd/openldap/dist/include/ac/ |
H A D | dirent.h | 44 # define NAMLEN(dirent) (dirent)->d_namlen
|
/netbsd-current/external/bsd/libarchive/dist/tar/ |
H A D | bsdtar_platform.h | 65 * In particular, FreeBSD includes d_namlen in its dirent structure, 66 * so my configure script includes an explicit test for the d_namlen 72 # define DIRENT_NAMLEN(dirent) (dirent)->d_namlen 78 # define DIRENT_NAMLEN(dirent) (dirent)->d_namlen
|
/netbsd-current/lib/libc/gen/ |
H A D | scandir.c | 139 p->d_namlen = d->d_namlen; 140 (void)memmove(p->d_name, d->d_name, (size_t)(p->d_namlen + 1));
|
/netbsd-current/sys/compat/common/ |
H A D | 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);
|
H A D | 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);
|
H A D | 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);
|
/netbsd-current/sys/fs/cd9660/ |
H A D | 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 [all...] |
/netbsd-current/sys/stand/ |
H A D | ls.c | 99 if (((DP *)dp)->d_namlen > NAME_MAX + 1) {
|
/netbsd-current/sbin/fsck_ffs/ |
H A D | 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 [all...] |
/netbsd-current/regress/sys/kern/getcwd/ |
H A D | old_getcwd.c | 189 dlen = dp->d_namlen; 203 dlen = dp->d_namlen;
|