Home
last modified time | relevance | path

Searched refs:d_type (Results 1 – 25 of 251) sorted by relevance

1234567891011

/netbsd-src/external/bsd/elftoolchain/dist/libelf/
H A Dlibelf_xlate.c86 if ((int) src->d_type < 0 || src->d_type >= ELF_T_NUM) { in _libelf_xlate()
92 (src->d_type, (size_t) 1, src->d_version)) == 0) in _libelf_xlate()
95 if ((msz = _libelf_msize(src->d_type, elfclass, src->d_version)) == 0) in _libelf_xlate()
136 _libelf_malign(src->d_type, elfclass)) { in _libelf_xlate()
141 dst->d_type = src->d_type; in _libelf_xlate()
150 xlator = _libelf_get_translator(src->d_type, direction, elfclass, in _libelf_xlate()
H A Delf_strptr.c84 if (d->d_type != ELF_T_BYTE) { in elf_strptr()
106 if (d->d_type != ELF_T_BYTE) { in elf_strptr()
H A Delf_update.c209 if (d->d_type >= ELF_T_NUM) { in _libelf_compute_section_extents()
236 if ((msz = _libelf_msize(d->d_type, ec, e->e_version)) == 0) in _libelf_compute_section_extents()
268 fsz = _libelf_fsize(d->d_type, ec, d->d_version, in _libelf_compute_section_extents()
791 assert(d->d_type == ELF_T_BYTE); in _libelf_write_scn()
816 if ((msz = _libelf_msize(d->d_type, ec, e->e_version)) == 0) in _libelf_write_scn()
833 fsz = _libelf_fsize(d->d_type, ec, e->e_version, nobjects); in _libelf_write_scn()
879 src.d_type = ELF_T_EHDR; in _libelf_write_ehdr()
941 src.d_type = ELF_T_PHDR; in _libelf_write_phdr()
999 src.d_type = ELF_T_SHDR; in _libelf_write_shdr()
/netbsd-src/sbin/fsck_ffs/
H A Dpass2.c341 dirp->d_type = inoinfo(iswap32(dirp->d_ino))->ino_type;
358 if (newinofmt && dirp->d_type != DT_DIR) {
361 dirp->d_type = DT_DIR;
370 proto.d_type = DT_DIR;
372 proto.d_type = 0;
382 tmp = proto.d_type;
383 proto.d_type = proto.d_namlen;
421 proto.d_type = DT_DIR;
423 proto.d_type = 0;
433 tmp = proto.d_type;
[all …]
H A Ddir.c160 tdp->d_namlen = tdp->d_type; in dirswap()
161 tdp->d_type = tmp; in dirswap()
204 dp->d_namlen = dp->d_type; in dirscan()
205 dp->d_type = tmp; in dirscan()
263 dp->d_type = 0; in fsck_readdir()
327 namlen = dp->d_type; in dircheck()
330 type = dp->d_type; in dircheck()
350 if (dp->d_type != 0) { in dircheck()
351 dp->d_type = 0; in dircheck()
527 dirp->d_type = inoinfo(idesc->id_parent)->ino_type; in mkentry()
[all …]
/netbsd-src/external/gpl3/gdb/dist/gnulib/import/m4/
H A Dd-type.m45 dnl Check whether struct dirent has a member named d_type.
15 [AC_CACHE_CHECK([for d_type member in directory struct],
21 [[struct dirent dp; dp.d_type = 0;]])],
28 [Define if there is a member named d_type in the struct describing
/netbsd-src/sys/ufs/chfs/
H A Dchfs_subr.c146 dent.d_type = DT_BLK; in chfs_filldir()
150 dent.d_type = DT_CHR; in chfs_filldir()
154 dent.d_type = DT_DIR; in chfs_filldir()
158 dent.d_type = DT_FIFO; in chfs_filldir()
162 dent.d_type = DT_LNK; in chfs_filldir()
166 dent.d_type = DT_REG; in chfs_filldir()
170 dent.d_type = DT_SOCK; in chfs_filldir()
/netbsd-src/usr.bin/xlint/lint1/
H A Ddecl.c203 if (dcs->d_type != NULL || dcs->d_abstract_type != NO_TSPEC || in dcs_add_storage_class()
317 lint_assert(dcs->d_type == NULL); in dcs_add_type()
322 dcs->d_type = tp; in dcs_add_type()
330 if (dcs->d_type != NULL || dcs->d_abstract_type != NO_TSPEC || in dcs_add_type()
337 dcs->d_type = tp; in dcs_add_type()
342 if (dcs->d_type != NULL && !dcs->d_type->t_typedef) { in dcs_add_type()
371 if (dcs->d_type != NULL && dcs->d_type->t_typedef) { in dcs_add_type()
373 dcs->d_type in dcs_add_type()
[all...]
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/fuzzer/
H A DFuzzerIOPosix.cpp69 if (E->d_type == DT_REG || E->d_type == DT_LNK || in ListFilesInDirRecursive()
70 (E->d_type == DT_UNKNOWN && IsFile(Path))) in ListFilesInDirRecursive()
72 else if ((E->d_type == DT_DIR || in ListFilesInDirRecursive()
73 (E->d_type == DT_UNKNOWN && IsDirectory(Path))) && in ListFilesInDirRecursive()
/netbsd-src/external/gpl2/xcvs/dist/m4/
H A Dd-type.m45 dnl Check whether struct dirent has a member named d_type.
17 AC_CACHE_CHECK([for d_type member in directory struct],
37 [struct dirent dp; dp.d_type = 0;],
45 [Define if there is a member named d_type in the struct describing
/netbsd-src/external/gpl3/gcc/dist/libphobos/libdruntime/core/sys/posix/
H A Ddirent.d53 ubyte d_type; in version() member
69 ubyte d_type;
84 ubyte d_type;
98 ubyte d_type;
111 ubyte d_type;
123 ubyte d_type;
135 ubyte d_type; /* file type, see blow */
/netbsd-src/sys/ufs/ufs/
H A Ddir.h84 u_int8_t d_type; /* file type, see below */ member
125 UFS_DIRECTSIZ((dp)->d_type) : UFS_DIRECTSIZ((dp)->d_namlen))
129 UFS_DIRECTSIZ((dp)->d_type) : UFS_DIRECTSIZ((dp)->d_namlen))
/netbsd-src/usr.sbin/diskpart/
H A Ddiskpart.c184 if (dp->d_type == DKTYPE_SMD && dp->d_flags & D_BADSECT && in main()
270 if (dp->d_type != DKTYPE_MSCP) { in main()
307 if (dp->d_type == DKTYPE_SMD && dp->d_flags & D_BADSECT) in main()
309 printf("\\\n\t:dt=%s:", dktypenames[dp->d_type]); in main()
399 dp->d_type = 1; in promptfordisk()
403 dp->d_type = i; in promptfordisk()
437 if (dp->d_type == DKTYPE_SMD) { in promptfordisk()
/netbsd-src/external/gpl2/xcvs/dist/src/
H A Dignore.c440 dp->d_type != DT_UNKNOWN || in ignore_files()
447 dp->d_type == DT_DIR in ignore_files()
448 || (dp->d_type == DT_UNKNOWN && S_ISDIR (sb.st_mode)) in ignore_files()
468 dp->d_type == DT_LNK in ignore_files()
469 || (dp->d_type == DT_UNKNOWN && S_ISLNK (sb.st_mode)) in ignore_files()
H A Dfind_names.c464 if (dp->d_type != DT_DIR) in find_dirs()
466 if (dp->d_type != DT_UNKNOWN && dp->d_type != DT_LNK) in find_dirs()
489 if (dp->d_type != DT_DIR) in find_dirs()
492 if (dp->d_type == DT_LNK) in find_dirs()
/netbsd-src/sys/arch/ia64/stand/efi/libefi/
H A Defifs_ls.c185 if (dp->d_type >= NELEM(typestr) || in efifs_ls()
186 !(t = typestr[dp->d_type])) { in efifs_ls()
209 n->e_type = dp->d_type; in efifs_ls()
/netbsd-src/sys/fs/hfs/
H A Dhfs_vnops.c939 curent.d_type = DT_REG; in hfs_vop_readdir()
942 curent.d_type = DT_DIR; in hfs_vop_readdir()
945 curent.d_type = DT_BLK; in hfs_vop_readdir()
948 curent.d_type = DT_CHR; in hfs_vop_readdir()
951 curent.d_type = DT_LNK; in hfs_vop_readdir()
954 curent.d_type = DT_SOCK; in hfs_vop_readdir()
957 curent.d_type = DT_FIFO; in hfs_vop_readdir()
960 curent.d_type = DT_UNKNOWN; in hfs_vop_readdir()
/netbsd-src/sys/fs/efs/
H A Defs_vnops.c395 dp->d_type = DT_FIFO; in efs_readdir()
398 dp->d_type = DT_CHR; in efs_readdir()
401 dp->d_type = DT_DIR; in efs_readdir()
404 dp->d_type = DT_BLK; in efs_readdir()
407 dp->d_type = DT_REG; in efs_readdir()
410 dp->d_type = DT_LNK; in efs_readdir()
413 dp->d_type = DT_SOCK; in efs_readdir()
416 dp->d_type = DT_UNKNOWN; in efs_readdir()
/netbsd-src/lib/libc/compat/sys/
H A Dcompat_getdents.c81 odp->d_type = ndp->d_type; in getdents()
/netbsd-src/lib/libc/compat/gen/
H A Dcompat_readdir.c37 d12->d_type = (uint8_t)d->d_type; in __weak_alias()
/netbsd-src/sys/arch/luna68k/stand/boot/
H A Ddisklabel.c207 bp->d_type = DKTYPE_SCSI; in disklabel()
338 if ((unsigned) lp->d_type < DKMAXTYPES) in display()
339 printf("type: %s\n", dktypenames[lp->d_type]); in display()
341 printf("type: %d\n", lp->d_type); in display()
/netbsd-src/sys/rump/kern/lib/libsys_cygwin/
H A Drump_cygwin_compat.c167 unsigned char d_type; member
232 idb.d_type = bdp->d_type; in rump_cygwin_sys_getdents()
/netbsd-src/sbin/disklabel/
H A Dprintlabel.c65 if ((unsigned) lp->d_type < DKMAXTYPES) in showinfo()
66 (void)fprintf(f, "type: %s\n", dktypenames[lp->d_type]); in showinfo()
68 (void)fprintf(f, "type: %" PRIu16 "\n", lp->d_type); in showinfo()
/netbsd-src/sys/arch/ia64/stand/common/
H A Dls.c117 snprintf(lbuf, sizeof(lbuf), " %c %8d %s\n", typestr[d->d_type], in command_ls()
120 snprintf(lbuf, sizeof(lbuf), " %c %s\n", typestr[d->d_type], in command_ls()
/netbsd-src/lib/libc/gen/
H A Dscandir.c138 p->d_type = d->d_type; in scandir()

1234567891011