games/rogue/level.c
590
short i, de;
games/rogue/level.c
597
de = rn + offsets[i];
games/rogue/level.c
598
if (((de < 0) || (de >= MAXROOMS)) ||
games/rogue/level.c
599
(!(same_row(rn, de) || same_col(rn, de)))) {
games/rogue/level.c
602
if (!(rooms[de].is_room & R_NOTHING)) {
games/rogue/level.c
605
drow = (rooms[de].top_row + rooms[de].bottom_row) / 2;
games/rogue/level.c
606
dcol = (rooms[de].left_col + rooms[de].right_col) / 2;
games/rogue/level.c
607
if (same_row(rn, de)) {
games/rogue/level.c
608
tunnel_dir = (rooms[rn].left_col < rooms[de].left_col) ?
games/rogue/level.c
611
tunnel_dir = (rooms[rn].top_row < rooms[de].top_row) ?
games/rogue/level.c
615
r_de = de;
games/rogue/level.c
616
recursive_deadend(de, offsets, drow, dcol);
lib/libc/citrus/citrus_db_factory.c
114
struct _citrus_db_factory_entry *de;
lib/libc/citrus/citrus_db_factory.c
116
de = malloc(sizeof(*de));
lib/libc/citrus/citrus_db_factory.c
117
if (de == NULL)
lib/libc/citrus/citrus_db_factory.c
120
de->de_hashvalue = df->df_hashfunc(key);
lib/libc/citrus/citrus_db_factory.c
121
de->de_key = *key;
lib/libc/citrus/citrus_db_factory.c
122
de->de_key_free = keyfree;
lib/libc/citrus/citrus_db_factory.c
123
de->de_data = *data;
lib/libc/citrus/citrus_db_factory.c
124
de->de_data_free = datafree;
lib/libc/citrus/citrus_db_factory.c
125
de->de_idx = -1;
lib/libc/citrus/citrus_db_factory.c
127
STAILQ_INSERT_TAIL(&df->df_entries, de, de_entry);
lib/libc/citrus/citrus_db_factory.c
263
struct _citrus_db_factory_entry *de, **depp, *det;
lib/libc/citrus/citrus_db_factory.c
278
STAILQ_FOREACH(de, &df->df_entries, de_entry) {
lib/libc/citrus/citrus_db_factory.c
279
de->de_hashvalue %= df->df_num_entries;
lib/libc/citrus/citrus_db_factory.c
280
de->de_idx = -1;
lib/libc/citrus/citrus_db_factory.c
281
de->de_next = NULL;
lib/libc/citrus/citrus_db_factory.c
282
if (depp[de->de_hashvalue] == NULL) {
lib/libc/citrus/citrus_db_factory.c
283
depp[de->de_hashvalue] = de;
lib/libc/citrus/citrus_db_factory.c
284
de->de_idx = (int)de->de_hashvalue;
lib/libc/citrus/citrus_db_factory.c
290
STAILQ_FOREACH(de, &df->df_entries, de_entry) {
lib/libc/citrus/citrus_db_factory.c
291
if (de->de_idx == -1) {
lib/libc/citrus/citrus_db_factory.c
292
det = depp[de->de_hashvalue];
lib/libc/citrus/citrus_db_factory.c
295
det->de_next = de;
lib/libc/citrus/citrus_db_factory.c
298
depp[i] = de;
lib/libc/citrus/citrus_db_factory.c
299
de->de_idx = (int)i;
lib/libc/citrus/citrus_db_factory.c
312
de = depp[i];
lib/libc/citrus/citrus_db_factory.c
314
if (de->de_next) {
lib/libc/citrus/citrus_db_factory.c
316
de->de_next->de_idx * _CITRUS_DB_ENTRY_SIZE;
lib/libc/citrus/citrus_db_factory.c
318
put32(r, &ofs, de->de_hashvalue);
lib/libc/citrus/citrus_db_factory.c
321
put32(r, &ofs, _region_size(&de->de_key));
lib/libc/citrus/citrus_db_factory.c
323
put32(r, &ofs, _region_size(&de->de_data));
lib/libc/citrus/citrus_db_factory.c
325
_region_head(&de->de_key), _region_size(&de->de_key));
lib/libc/citrus/citrus_db_factory.c
326
keyofs += _region_size(&de->de_key);
lib/libc/citrus/citrus_db_factory.c
328
_region_head(&de->de_data), _region_size(&de->de_data));
lib/libc/citrus/citrus_db_factory.c
329
dataofs += _region_size(&de->de_data);
lib/libc/citrus/citrus_db_factory.c
91
struct _citrus_db_factory_entry *de;
lib/libc/citrus/citrus_db_factory.c
93
while ((de = STAILQ_FIRST(&df->df_entries)) != NULL) {
lib/libc/citrus/citrus_db_factory.c
95
if (de->de_key_free)
lib/libc/citrus/citrus_db_factory.c
96
free(_region_head(&de->de_key));
lib/libc/citrus/citrus_db_factory.c
97
if (de->de_data_free)
lib/libc/citrus/citrus_db_factory.c
98
free(_region_head(&de->de_data));
lib/libc/citrus/citrus_db_factory.c
99
free(de);
lib/libfetch/file.c
126
struct dirent *de;
lib/libfetch/file.c
146
while ((de = readdir(dir)) != NULL) {
lib/libfetch/file.c
147
strncpy(p, de->d_name, l - 1);
lib/libfetch/file.c
152
fetch_add_entry(&ue, &size, &len, de->d_name, &us);
libexec/diff3prog/diff3prog.c
110
struct diff *de;
libexec/diff3prog/diff3prog.c
537
de[j].old.from = diff->old.from;
libexec/diff3prog/diff3prog.c
538
de[j].old.to = diff->old.to;
libexec/diff3prog/diff3prog.c
539
de[j].new.from = de[j-1].new.to + skip(2, diff->new.from, NULL);
libexec/diff3prog/diff3prog.c
540
de[j].new.to = de[j].new.from + skip(2, diff->new.to, NULL);
libexec/diff3prog/diff3prog.c
554
prange(&de[n].old);
libexec/diff3prog/diff3prog.c
556
printf("%da\n=======\n", de[n].old.to -1);
libexec/diff3prog/diff3prog.c
557
(void)fseek(fp[2], (long)de[n].new.from, SEEK_SET);
libexec/diff3prog/diff3prog.c
558
for (k = de[n].new.to-de[n].new.from; k > 0; k-= j) {
libexec/diff3prog/diff3prog.c
575
printf("%da\n%s\n.\n", de[n].old.from - 1, f1mark);
libexec/diff3prog/diff3prog.c
602
p = reallocarray(de, newsz, sizeof(struct diff));
libexec/diff3prog/diff3prog.c
606
de = p;
libexec/dma/spool.c
287
struct dirent *de;
libexec/dma/spool.c
298
while ((de = readdir(spooldir)) != NULL) {
libexec/dma/spool.c
303
if (de->d_name[0] != 'Q')
libexec/dma/spool.c
305
if (asprintf(&queuefn, "%s/Q%s", config.spooldir, de->d_name + 1) < 0)
libexec/dma/spool.c
307
if (asprintf(&mailfn, "%s/M%s", config.spooldir, de->d_name + 1) < 0)
sbin/fsck_msdosfs/dir.c
105
struct dosDirEntry *de;
sbin/fsck_msdosfs/dir.c
107
if (!(de = freede)) {
sbin/fsck_msdosfs/dir.c
108
if (!(de = malloc(sizeof(*de))))
sbin/fsck_msdosfs/dir.c
111
freede = de->next;
sbin/fsck_msdosfs/dir.c
112
return de;
sbin/fsck_msdosfs/dir.c
116
freeDosDirEntry(struct dosDirEntry *de)
sbin/fsck_msdosfs/dir.c
118
de->next = freede;
sbin/fsck_msdosfs/dir.c
119
freede = de;
sbin/hammer/cmd_dedup.c
1035
struct dedup_entry *de;
sbin/hammer/cmd_dedup.c
1040
RB_FOREACH(de, dedup_entry_rb_tree, &dedup_tree) {
sbin/hammer/cmd_dedup.c
1041
if (de->flags & HAMMER_DEDUP_ENTRY_FICTITIOUS) {
sbin/hammer/cmd_dedup.c
1042
printf("\tcrc=%08x fictitious\n", de->leaf.data_crc);
sbin/hammer/cmd_dedup.c
1044
RB_FOREACH(sha_de, sha_dedup_entry_rb_tree, &de->u.fict_root) {
sbin/hammer/cmd_dedup.c
1056
de->leaf.data_crc,
sbin/hammer/cmd_dedup.c
1057
(uintmax_t)de->u.de.ref_blks,
sbin/hammer/cmd_dedup.c
1058
(uintmax_t)de->u.de.ref_size);
sbin/hammer/cmd_dedup.c
262
struct dedup_entry *de;
sbin/hammer/cmd_dedup.c
336
while ((de = RB_ROOT(&dedup_tree)) != NULL) {
sbin/hammer/cmd_dedup.c
337
if (de->flags & HAMMER_DEDUP_ENTRY_FICTITIOUS) {
sbin/hammer/cmd_dedup.c
338
while ((sha_de = RB_ROOT(&de->u.fict_root)) != NULL) {
sbin/hammer/cmd_dedup.c
344
&de->u.fict_root, sha_de);
sbin/hammer/cmd_dedup.c
347
assert(RB_EMPTY(&de->u.fict_root));
sbin/hammer/cmd_dedup.c
349
assert(de->u.de.ref_blks != 0);
sbin/hammer/cmd_dedup.c
350
dedup_ref_size += de->u.de.ref_size;
sbin/hammer/cmd_dedup.c
351
dedup_alloc_size += de->u.de.ref_size / de->u.de.ref_blks;
sbin/hammer/cmd_dedup.c
354
RB_REMOVE(dedup_entry_rb_tree, &dedup_tree, de);
sbin/hammer/cmd_dedup.c
355
free(de);
sbin/hammer/cmd_dedup.c
513
struct dedup_entry *de;
sbin/hammer/cmd_dedup.c
533
de = RB_MAX(dedup_entry_rb_tree, &dedup_tree);
sbin/hammer/cmd_dedup.c
534
if (de == NULL || de->leaf.data_crc < DedupCrcEnd)
sbin/hammer/cmd_dedup.c
536
if (de->flags & HAMMER_DEDUP_ENTRY_FICTITIOUS) {
sbin/hammer/cmd_dedup.c
537
while ((sha_de = RB_ROOT(&de->u.fict_root)) !=
sbin/hammer/cmd_dedup.c
540
&de->u.fict_root, sha_de);
sbin/hammer/cmd_dedup.c
545
RB_REMOVE(dedup_entry_rb_tree, &dedup_tree, de);
sbin/hammer/cmd_dedup.c
546
MemoryUse -= sizeof(*de);
sbin/hammer/cmd_dedup.c
547
free(de);
sbin/hammer/cmd_dedup.c
557
de = RB_LOOKUP(dedup_entry_rb_tree, &dedup_tree, scan_leaf->data_crc);
sbin/hammer/cmd_dedup.c
558
if (de == NULL) {
sbin/hammer/cmd_dedup.c
559
de = calloc(1, sizeof(*de));
sbin/hammer/cmd_dedup.c
560
de->leaf = *scan_leaf;
sbin/hammer/cmd_dedup.c
561
RB_INSERT(dedup_entry_rb_tree, &dedup_tree, de);
sbin/hammer/cmd_dedup.c
562
MemoryUse += sizeof(*de);
sbin/hammer/cmd_dedup.c
569
if (de->flags & HAMMER_DEDUP_ENTRY_FICTITIOUS) {
sbin/hammer/cmd_dedup.c
581
RB_FOREACH(sha_de, sha_dedup_entry_rb_tree, &de->u.fict_root) {
sbin/hammer/cmd_dedup.c
602
&de->u.fict_root, &temp);
sbin/hammer/cmd_dedup.c
614
RB_INSERT(sha_dedup_entry_rb_tree, &de->u.fict_root,
sbin/hammer/cmd_dedup.c
63
} de;
sbin/hammer/cmd_dedup.c
682
if (validate_dedup_pair(&de->leaf, scan_leaf))
sbin/hammer/cmd_dedup.c
688
error = deduplicate(&de->leaf, scan_leaf);
sbin/hammer/cmd_dedup.c
700
de->leaf = *scan_leaf;
sbin/hammer/cmd_dedup.c
731
sha_de->leaf = de->leaf;
sbin/hammer/cmd_dedup.c
732
sha_de->ref_blks = de->u.de.ref_blks;
sbin/hammer/cmd_dedup.c
733
sha_de->ref_size = de->u.de.ref_size;
sbin/hammer/cmd_dedup.c
740
RB_INIT(&de->u.fict_root);
sbin/hammer/cmd_dedup.c
745
RB_INSERT(sha_dedup_entry_rb_tree, &de->u.fict_root, sha_de);
sbin/hammer/cmd_dedup.c
750
de->flags |= HAMMER_DEDUP_ENTRY_FICTITIOUS;
sbin/hammer/cmd_dedup.c
759
sha_de = RB_FIND(sha_dedup_entry_rb_tree, &de->u.fict_root,
sbin/hammer/cmd_dedup.c
774
RB_INSERT(sha_dedup_entry_rb_tree, &de->u.fict_root, sha_de);
sbin/hammer/cmd_dedup.c
780
de->u.de.ref_blks += 1;
sbin/hammer/cmd_dedup.c
781
de->u.de.ref_size += scan_leaf->data_len;
sbin/newfs_msdos/mkfs_msdos.c
242
struct de *de;
sbin/newfs_msdos/mkfs_msdos.c
458
bpb.bpbBytesPerSec / sizeof(struct de)) +
sbin/newfs_msdos/mkfs_msdos.c
467
howmany(DEFRDE, bpb.bpbBytesPerSec / sizeof(struct de)) +
sbin/newfs_msdos/mkfs_msdos.c
529
bpb.bpbBytesPerSec / sizeof(struct de));
sbin/newfs_msdos/mkfs_msdos.c
742
de = (struct de *)img;
sbin/newfs_msdos/mkfs_msdos.c
743
mklabel(de->deName, o.volume_label);
sbin/newfs_msdos/mkfs_msdos.c
744
mk1(de->deAttributes, 050);
sbin/newfs_msdos/mkfs_msdos.c
748
mk2(de->deMTime, x);
sbin/newfs_msdos/mkfs_msdos.c
752
mk2(de->deMDate, x);
stand/lib/dosfs.c
131
#define stclus(sz, de) ((sz) != 32 ? cv2((de)->clus) : \
stand/lib/dosfs.c
132
((u_int)cv2((de)->dex.h_clus) << 16) | \
stand/lib/dosfs.c
133
cv2((de)->clus))
stand/lib/dosfs.c
209
DOS_DE *de;
stand/lib/dosfs.c
221
if ((err = namede(fs, path, &de)))
stand/lib/dosfs.c
224
clus = stclus(fs->fatsz, de);
stand/lib/dosfs.c
225
size = cv4(de->size);
stand/lib/dosfs.c
227
if ((!(de->attr & FA_DIR) && (!clus != !size)) ||
stand/lib/dosfs.c
228
((de->attr & FA_DIR) && size) ||
stand/lib/dosfs.c
237
f->de = *de;
stand/lib/dosfs.c
256
if ((size = fsize(f->fs, &f->de)) == -1)
stand/lib/dosfs.c
261
if ((clus = stclus(f->fs->fatsz, &f->de)))
stand/lib/dosfs.c
308
size = cv4(f->de.size);
stand/lib/dosfs.c
359
sb->st_mode = f->de.attr & FA_DIR ? S_IFDIR | 0555 : S_IFREG | 0444;
stand/lib/dosfs.c
363
if ((sb->st_size = fsize(f->fs, &f->de)) == -1)
stand/lib/dosfs.c
387
if (dd.de.name[0] == 0)
stand/lib/dosfs.c
391
if (dd.de.name[0] == 0xe5)
stand/lib/dosfs.c
395
if (dd.de.attr & FA_LABEL) {
stand/lib/dosfs.c
400
if ((dd.de.attr & FA_MASK) == FA_XDE) {
stand/lib/dosfs.c
425
x += (i < 8) ? dd.de.name[i] : dd.de.ext[i-8];
stand/lib/dosfs.c
431
cp_sfn(fn, &dd.de);
stand/lib/dosfs.c
438
d->d_fileno = (dd.de.clus[1] << 8) + dd.de.clus[0];
stand/lib/dosfs.c
439
d->d_type = (dd.de.attr & FA_DIR) ? DT_DIR : DT_REG;
stand/lib/dosfs.c
500
DOS_DE *de;
stand/lib/dosfs.c
506
de = &fs->root;
stand/lib/dosfs.c
519
if (!(de->attr & FA_DIR))
stand/lib/dosfs.c
521
if ((err = lookup(fs, stclus(fs->fatsz, de), name, &de)))
stand/lib/dosfs.c
524
*dep = de;
stand/lib/dosfs.c
562
if (!*dir[ent].de.name)
stand/lib/dosfs.c
564
if (*dir[ent].de.name != 0xe5) {
stand/lib/dosfs.c
565
if ((dir[ent].de.attr & FA_MASK) == FA_XDE) {
stand/lib/dosfs.c
579
} else if (!(dir[ent].de.attr & FA_LABEL)) {
stand/lib/dosfs.c
583
((i < 8) ? dir[ent].de.name[i] :
stand/lib/dosfs.c
584
dir[ent].de.ext[i - 8])
stand/lib/dosfs.c
590
cp_sfn(sfn, &dir[ent].de);
stand/lib/dosfs.c
594
*dep = &dir[ent].de;
stand/lib/dosfs.c
646
cp_sfn(u_char *sfn, DOS_DE *de)
stand/lib/dosfs.c
652
if (*de->name != ' ') {
stand/lib/dosfs.c
653
for (j = 7; de->name[j] == ' '; j--);
stand/lib/dosfs.c
655
*p++ = de->name[i];
stand/lib/dosfs.c
656
if (*de->ext != ' ') {
stand/lib/dosfs.c
658
for (j = 2; de->ext[j] == ' '; j--);
stand/lib/dosfs.c
660
*p++ = de->ext[i];
stand/lib/dosfs.c
672
fsize(DOS_FS *fs, DOS_DE *de)
stand/lib/dosfs.c
678
if (!(size = cv4(de->size)) && de->attr & FA_DIR) {
stand/lib/dosfs.c
679
if (!(c = cv2(de->clus)))
stand/lib/dosfs.h
116
DOS_DE de; /* directory entry */
stand/lib/dosfs.h
91
DOS_DE de; /* standard directory entry */
stand/lib/hammer1.c
1093
struct dirent de;
stand/lib/hammer1.c
1094
while (hreaddir(&hfs, ino, &off, &de) == 0) {
stand/lib/hammer1.c
1096
de.d_name, de.d_type, de.d_ino);
stand/lib/hammer1.c
575
hreaddir(struct hfs *hfs, ino_t ino, int64_t *off, struct dirent *de)
stand/lib/hammer1.c
602
de->d_namlen = e->data_len - HAMMER_ENTRY_NAME_OFF;
stand/lib/hammer1.c
603
de->d_type = hammer_get_dtype(e->base.obj_type);
stand/lib/hammer1.c
607
de->d_ino = ed->entry.obj_id;
stand/lib/hammer1.c
608
bcopy(ed->entry.name, de->d_name, de->d_namlen);
stand/lib/hammer1.c
609
de->d_name[de->d_namlen] = 0;
sys/netinet6/nd6.c
2161
struct in6_defrouter *d, *de;
sys/netinet6/nd6.c
2171
de = (struct in6_defrouter *)(buf + sizeof(buf));
sys/netinet6/nd6.c
2173
if (d + 1 <= de) {
sys/vfs/ext2fs/ext2_lookup.c
125
struct ext2fs_direct_2 *de, int entryoffsetinblock);
sys/vfs/ext2fs/ext2_lookup.c
795
ext2_check_direntry(struct vnode *dp, struct ext2fs_direct_2 *de,
sys/vfs/ext2fs/ext2_lookup.c
801
if (le16toh(de->e2d_reclen) < EXT2_DIR_REC_LEN(1))
sys/vfs/ext2fs/ext2_lookup.c
803
else if (le16toh(de->e2d_reclen) % 4 != 0)
sys/vfs/ext2fs/ext2_lookup.c
805
else if (le16toh(de->e2d_reclen) < EXT2_DIR_REC_LEN(de->e2d_namlen))
sys/vfs/ext2fs/ext2_lookup.c
807
else if (entryoffsetinblock + le16toh(de->e2d_reclen)> fs->e2fs_bsize)
sys/vfs/ext2fs/ext2_lookup.c
809
else if (le32toh(de->e2d_ino) > fs->e2fs->e2fs_icount)
sys/vfs/ext2fs/ext2_lookup.c
815
le32toh(de->e2d_ino), le16toh(de->e2d_reclen),
sys/vfs/ext2fs/ext2_lookup.c
816
de->e2d_namlen);
sys/vfs/isofs/cd9660/cd9660_vnops.c
317
struct dirent de;
sys/vfs/isofs/cd9660/cd9660_vnops.c
374
cl = idp->current.de.d_namlen;
sys/vfs/isofs/cd9660/cd9660_vnops.c
375
cname = idp->current.de.d_name;
sys/vfs/isofs/cd9660/cd9660_vnops.c
382
dp = &idp->saveent.de;
sys/vfs/isofs/cd9660/cd9660_vnops.c
385
dp = &idp->assocent.de;
sys/vfs/isofs/cd9660/cd9660_vnops.c
392
if (idp->assocent.de.d_namlen) {
sys/vfs/isofs/cd9660/cd9660_vnops.c
393
if ((error = iso_uiodir(idp,&idp->assocent.de,idp->assocoff)) != 0)
sys/vfs/isofs/cd9660/cd9660_vnops.c
395
idp->assocent.de.d_namlen = 0;
sys/vfs/isofs/cd9660/cd9660_vnops.c
397
if (idp->saveent.de.d_namlen) {
sys/vfs/isofs/cd9660/cd9660_vnops.c
398
if ((error = iso_uiodir(idp,&idp->saveent.de,idp->saveoff)) != 0)
sys/vfs/isofs/cd9660/cd9660_vnops.c
400
idp->saveent.de.d_namlen = 0;
sys/vfs/isofs/cd9660/cd9660_vnops.c
406
bcopy(&idp->current,&idp->assocent,_DIRENT_DIRSIZ(&idp->current.de));
sys/vfs/isofs/cd9660/cd9660_vnops.c
409
bcopy(&idp->current,&idp->saveent,_DIRENT_DIRSIZ(&idp->current.de));
sys/vfs/isofs/cd9660/cd9660_vnops.c
448
idp->saveent.de.d_namlen = idp->assocent.de.d_namlen = 0;
sys/vfs/isofs/cd9660/cd9660_vnops.c
453
idp->saveent.de.d_type = DT_UNKNOWN;
sys/vfs/isofs/cd9660/cd9660_vnops.c
454
idp->assocent.de.d_type = DT_UNKNOWN;
sys/vfs/isofs/cd9660/cd9660_vnops.c
455
idp->current.de.d_type = DT_UNKNOWN;
sys/vfs/isofs/cd9660/cd9660_vnops.c
522
idp->current.de.d_namlen = isonum_711(ep->name_len);
sys/vfs/isofs/cd9660/cd9660_vnops.c
524
if (reclen < ISO_DIRECTORY_RECORD_SIZE + idp->current.de.d_namlen) {
sys/vfs/isofs/cd9660/cd9660_vnops.c
531
idp->current.de.d_ino = isodirino(ep, imp);
sys/vfs/isofs/cd9660/cd9660_vnops.c
533
idp->current.de.d_ino = bp->b_bio1.bio_offset +
sys/vfs/isofs/cd9660/cd9660_vnops.c
541
ino_t cur_fileno = idp->current.de.d_ino;
sys/vfs/isofs/cd9660/cd9660_vnops.c
542
cd9660_rrip_getname(ep,idp->current.de.d_name, &namelen,
sys/vfs/isofs/cd9660/cd9660_vnops.c
544
idp->current.de.d_ino = cur_fileno;
sys/vfs/isofs/cd9660/cd9660_vnops.c
545
idp->current.de.d_namlen = namelen;
sys/vfs/isofs/cd9660/cd9660_vnops.c
546
if (idp->current.de.d_namlen)
sys/vfs/isofs/cd9660/cd9660_vnops.c
547
error = iso_uiodir(idp,&idp->current.de,idp->curroff);
sys/vfs/isofs/cd9660/cd9660_vnops.c
551
strcpy(idp->current.de.d_name,"..");
sys/vfs/isofs/cd9660/cd9660_vnops.c
552
if (idp->current.de.d_namlen == 1 && ep->name[0] == 0) {
sys/vfs/isofs/cd9660/cd9660_vnops.c
553
idp->current.de.d_namlen = 1;
sys/vfs/isofs/cd9660/cd9660_vnops.c
554
error = iso_uiodir(idp,&idp->current.de,idp->curroff);
sys/vfs/isofs/cd9660/cd9660_vnops.c
555
} else if (idp->current.de.d_namlen == 1 && ep->name[0] == 1) {
sys/vfs/isofs/cd9660/cd9660_vnops.c
556
idp->current.de.d_namlen = 2;
sys/vfs/isofs/cd9660/cd9660_vnops.c
557
error = iso_uiodir(idp,&idp->current.de,idp->curroff);
sys/vfs/isofs/cd9660/cd9660_vnops.c
559
isofntrans(ep->name,idp->current.de.d_namlen,
sys/vfs/isofs/cd9660/cd9660_vnops.c
560
idp->current.de.d_name, &namelen,
sys/vfs/isofs/cd9660/cd9660_vnops.c
566
idp->current.de.d_namlen = namelen;
sys/vfs/isofs/cd9660/cd9660_vnops.c
570
error = iso_uiodir(idp,&idp->current.de,idp->curroff);
sys/vfs/isofs/cd9660/cd9660_vnops.c
580
idp->current.de.d_namlen = 0;
sys/vfs/msdosfs/denode.h
224
#define DETOV(de) ((de)->de_vnode)
sys/vfs/tmpfs/tmpfs.h
131
tmpfs_dircookie(struct tmpfs_dirent *de)
sys/vfs/tmpfs/tmpfs.h
133
return ((off_t)((uintptr_t)de >> 1) & 0x7FFFFFFFFFFFFFFFLLU);
sys/vfs/tmpfs/tmpfs.h
454
#define TMPFS_DIRENT_MATCHES(de, name, len) \
sys/vfs/tmpfs/tmpfs.h
455
(de->td_namelen == (uint16_t)len && \
sys/vfs/tmpfs/tmpfs.h
456
bcmp((de)->td_name, (name), (de)->td_namelen) == 0)
sys/vfs/tmpfs/tmpfs_subr.c
302
const char *name, uint16_t len, struct tmpfs_dirent **de)
sys/vfs/tmpfs/tmpfs_subr.c
311
*de = NULL;
sys/vfs/tmpfs/tmpfs_subr.c
322
*de = nde;
sys/vfs/tmpfs/tmpfs_subr.c
339
tmpfs_free_dirent(struct tmpfs_mount *tmp, struct tmpfs_dirent *de)
sys/vfs/tmpfs/tmpfs_subr.c
343
node = de->td_node;
sys/vfs/tmpfs/tmpfs_subr.c
348
kfree(de->td_name, tmp->tm_name_zone);
sys/vfs/tmpfs/tmpfs_subr.c
349
de->td_namelen = 0;
sys/vfs/tmpfs/tmpfs_subr.c
350
de->td_name = NULL;
sys/vfs/tmpfs/tmpfs_subr.c
351
de->td_node = NULL;
sys/vfs/tmpfs/tmpfs_subr.c
352
kfree_obj(de, tmp->tm_dirent_zone);
sys/vfs/tmpfs/tmpfs_subr.c
527
struct tmpfs_dirent *de;
sys/vfs/tmpfs/tmpfs_subr.c
568
error = tmpfs_alloc_dirent(tmp, node, ncp->nc_name, ncp->nc_nlen, &de);
sys/vfs/tmpfs/tmpfs_subr.c
580
tmpfs_free_dirent(tmp, de);
sys/vfs/tmpfs/tmpfs_subr.c
591
tmpfs_dir_attach_locked(dnode, de);
sys/vfs/tmpfs/tmpfs_subr.c
608
tmpfs_dir_attach_locked(struct tmpfs_node *dnode, struct tmpfs_dirent *de)
sys/vfs/tmpfs/tmpfs_subr.c
610
struct tmpfs_node *node = de->td_node;
sys/vfs/tmpfs/tmpfs_subr.c
621
de2 = RB_INSERT(tmpfs_dirtree, &dnode->tn_dir.tn_dirtree, de);
sys/vfs/tmpfs/tmpfs_subr.c
624
de, de2));
sys/vfs/tmpfs/tmpfs_subr.c
625
de2 = RB_INSERT(tmpfs_dirtree_cookie, &dnode->tn_dir.tn_cookietree, de);
sys/vfs/tmpfs/tmpfs_subr.c
628
de, de2));
sys/vfs/tmpfs/tmpfs_subr.c
644
tmpfs_dir_detach_locked(struct tmpfs_node *dnode, struct tmpfs_dirent *de)
sys/vfs/tmpfs/tmpfs_subr.c
646
struct tmpfs_node *node = de->td_node;
sys/vfs/tmpfs/tmpfs_subr.c
648
RB_REMOVE(tmpfs_dirtree, &dnode->tn_dir.tn_dirtree, de);
sys/vfs/tmpfs/tmpfs_subr.c
649
RB_REMOVE(tmpfs_dirtree_cookie, &dnode->tn_dir.tn_cookietree, de);
sys/vfs/tmpfs/tmpfs_subr.c
691
struct tmpfs_dirent *de;
sys/vfs/tmpfs/tmpfs_subr.c
700
de = RB_FIND(tmpfs_dirtree, &node->tn_dir.tn_dirtree, &wanted);
sys/vfs/tmpfs/tmpfs_subr.c
702
KASSERT((f == NULL || de == NULL || f == de->td_node),
sys/vfs/tmpfs/tmpfs_subr.c
704
f, de, (de ? de->td_node : NULL)));
sys/vfs/tmpfs/tmpfs_subr.c
706
return de;
sys/vfs/tmpfs/tmpfs_subr.c
766
struct tmpfs_dirent *de;
sys/vfs/tmpfs/tmpfs_subr.c
767
de = RB_MIN(tmpfs_dirtree_cookie, &node->tn_dir.tn_cookietree);
sys/vfs/tmpfs/tmpfs_subr.c
768
if (de == NULL)
sys/vfs/tmpfs/tmpfs_subr.c
771
uio->uio_offset = tmpfs_dircookie(de);
sys/vfs/tmpfs/tmpfs_subr.c
787
struct tmpfs_dirent *de;
sys/vfs/tmpfs/tmpfs_subr.c
791
lubycookie_cmp(struct tmpfs_dirent *de, void *arg)
sys/vfs/tmpfs/tmpfs_subr.c
794
off_t cookie = tmpfs_dircookie(de);
sys/vfs/tmpfs/tmpfs_subr.c
804
lubycookie_callback(struct tmpfs_dirent *de, void *arg)
sys/vfs/tmpfs/tmpfs_subr.c
808
if (tmpfs_dircookie(de) == info->cookie) {
sys/vfs/tmpfs/tmpfs_subr.c
809
info->de = de;
sys/vfs/tmpfs/tmpfs_subr.c
828
info.de = NULL;
sys/vfs/tmpfs/tmpfs_subr.c
831
return (info.de);
sys/vfs/tmpfs/tmpfs_subr.c
868
struct tmpfs_dirent *de;
sys/vfs/tmpfs/tmpfs_subr.c
891
de = tmpfs_dir_lookupbycookie(node, startcookie, 0);
sys/vfs/tmpfs/tmpfs_subr.c
892
if (de == NULL) {
sys/vfs/tmpfs/tmpfs_subr.c
907
d_ino = de->td_node->tn_id;
sys/vfs/tmpfs/tmpfs_subr.c
908
switch (de->td_node->tn_type) {
sys/vfs/tmpfs/tmpfs_subr.c
939
de->td_node, (int)de->td_node->tn_type);
sys/vfs/tmpfs/tmpfs_subr.c
941
KKASSERT(de->td_namelen < 256); /* 255 + 1 */
sys/vfs/tmpfs/tmpfs_subr.c
944
de->td_namelen, de->td_name)) {
sys/vfs/tmpfs/tmpfs_subr.c
950
de = RB_NEXT(tmpfs_dirtree_cookie,
sys/vfs/tmpfs/tmpfs_subr.c
951
node->tn_dir.tn_cookietree, de);
sys/vfs/tmpfs/tmpfs_subr.c
952
} while (error == 0 && uio->uio_resid > 0 && de != NULL);
sys/vfs/tmpfs/tmpfs_subr.c
955
if (de == NULL) {
sys/vfs/tmpfs/tmpfs_subr.c
958
uio->uio_offset = tmpfs_dircookie(de);
sys/vfs/tmpfs/tmpfs_vfsops.c
350
struct tmpfs_dirent *de;
sys/vfs/tmpfs/tmpfs_vfsops.c
352
while ((de = RB_ROOT(&node->tn_dir.tn_dirtree)) != NULL) {
sys/vfs/tmpfs/tmpfs_vfsops.c
353
tmpfs_dir_detach_locked(node, de);
sys/vfs/tmpfs/tmpfs_vfsops.c
354
tmpfs_free_dirent(tmp, de);
sys/vfs/tmpfs/tmpfs_vnops.c
1093
struct tmpfs_dirent *de;
sys/vfs/tmpfs/tmpfs_vnops.c
1123
de = tmpfs_dir_lookup(dnode, node, ncp);
sys/vfs/tmpfs/tmpfs_vnops.c
1124
if (de == NULL) {
sys/vfs/tmpfs/tmpfs_vnops.c
1142
tmpfs_dir_detach_locked(dnode, de);
sys/vfs/tmpfs/tmpfs_vnops.c
1148
tmpfs_free_dirent(tmp, de);
sys/vfs/tmpfs/tmpfs_vnops.c
1176
struct tmpfs_dirent *de;
sys/vfs/tmpfs/tmpfs_vnops.c
121
struct tmpfs_dirent *de;
sys/vfs/tmpfs/tmpfs_vnops.c
1223
ncp->nc_name, ncp->nc_nlen, &de);
sys/vfs/tmpfs/tmpfs_vnops.c
1228
tmpfs_dir_attach_locked(dnode, de);
sys/vfs/tmpfs/tmpfs_vnops.c
1260
struct tmpfs_dirent *de, *tde, *de2;
sys/vfs/tmpfs/tmpfs_vnops.c
129
de = tmpfs_dir_lookup(dnode, NULL, ncp);
sys/vfs/tmpfs/tmpfs_vnops.c
130
if (de == NULL) {
sys/vfs/tmpfs/tmpfs_vnops.c
1316
de = tmpfs_dir_lookup(fdnode, fnode, fncp);
sys/vfs/tmpfs/tmpfs_vnops.c
1317
if (de == NULL) {
sys/vfs/tmpfs/tmpfs_vnops.c
1321
KKASSERT(de->td_node == fnode);
sys/vfs/tmpfs/tmpfs_vnops.c
137
tnode = de->td_node;
sys/vfs/tmpfs/tmpfs_vnops.c
1386
tmpfs_dir_detach_locked(fdnode, de);
sys/vfs/tmpfs/tmpfs_vnops.c
1389
KKASSERT(de == tmpfs_dir_lookup(fdnode, fnode, fncp));
sys/vfs/tmpfs/tmpfs_vnops.c
1390
RB_REMOVE(tmpfs_dirtree, &fdnode->tn_dir.tn_dirtree, de);
sys/vfs/tmpfs/tmpfs_vnops.c
1392
&fdnode->tn_dir.tn_cookietree, de);
sys/vfs/tmpfs/tmpfs_vnops.c
1400
oldname = de->td_name;
sys/vfs/tmpfs/tmpfs_vnops.c
1401
de->td_name = newname;
sys/vfs/tmpfs/tmpfs_vnops.c
1402
de->td_namelen = (uint16_t)tncp->nc_nlen;
sys/vfs/tmpfs/tmpfs_vnops.c
1431
if (de->td_node->tn_type == VDIR) {
sys/vfs/tmpfs/tmpfs_vnops.c
1434
tmpfs_dir_attach_locked(tdnode, de);
sys/vfs/tmpfs/tmpfs_vnops.c
1437
de2 = RB_INSERT(tmpfs_dirtree, &tdnode->tn_dir.tn_dirtree, de);
sys/vfs/tmpfs/tmpfs_vnops.c
1440
de, de2));
sys/vfs/tmpfs/tmpfs_vnops.c
1442
&tdnode->tn_dir.tn_cookietree, de);
sys/vfs/tmpfs/tmpfs_vnops.c
1445
de, de2));
sys/vfs/tmpfs/tmpfs_vnops.c
1504
struct tmpfs_dirent *de;
sys/vfs/tmpfs/tmpfs_vnops.c
1564
de = tmpfs_dir_lookup(dnode, node, ncp);
sys/vfs/tmpfs/tmpfs_vnops.c
1565
KKASSERT(TMPFS_DIRENT_MATCHES(de, ncp->nc_name, ncp->nc_nlen));
sys/vfs/tmpfs/tmpfs_vnops.c
1575
tmpfs_dir_detach_locked(dnode, de);
sys/vfs/tmpfs/tmpfs_vnops.c
1589
tmpfs_free_dirent(tmp, de);
sys/vfs/tmpfs/tmpfs_vnops.c
1700
struct tmpfs_dirent *de = NULL;
sys/vfs/tmpfs/tmpfs_vnops.c
1711
de = RB_MIN(tmpfs_dirtree_cookie,
sys/vfs/tmpfs/tmpfs_vnops.c
1713
} else if (de != NULL) {
sys/vfs/tmpfs/tmpfs_vnops.c
1714
de = RB_NEXT(tmpfs_dirtree_cookie,
sys/vfs/tmpfs/tmpfs_vnops.c
1715
&node->tn_dir.tn_cookietree, de);
sys/vfs/tmpfs/tmpfs_vnops.c
1717
de = tmpfs_dir_lookupbycookie(node, off,
sys/vfs/tmpfs/tmpfs_vnops.c
1719
KKASSERT(de != NULL);
sys/vfs/tmpfs/tmpfs_vnops.c
1720
de = RB_NEXT(tmpfs_dirtree_cookie,
sys/vfs/tmpfs/tmpfs_vnops.c
1721
&node->tn_dir.tn_cookietree, de);
sys/vfs/tmpfs/tmpfs_vnops.c
1723
if (de == NULL)
sys/vfs/tmpfs/tmpfs_vnops.c
1726
off = tmpfs_dircookie(de);
usr.sbin/installer/dfuibe_installer/fn_configure.c
460
struct dirent *de;
usr.sbin/installer/dfuibe_installer/fn_configure.c
475
while ((de = readdir(d)) != NULL) {
usr.sbin/installer/dfuibe_installer/fn_configure.c
476
if (strcmp(de->d_name, ".") == 0 ||
usr.sbin/installer/dfuibe_installer/fn_configure.c
477
strcmp(de->d_name, "..") == 0 ||
usr.sbin/installer/dfuibe_installer/fn_configure.c
478
strstr(de->d_name, ext) == NULL)
usr.sbin/installer/dfuibe_installer/fn_configure.c
480
aura_dict_store(dict, de->d_name, strlen(de->d_name) + 1, "", 1);
usr.sbin/makefs/ffs.c
1051
struct direct *de;
usr.sbin/makefs/ffs.c
1060
de = (struct direct *)(dbuf->buf + i);
usr.sbin/makefs/ffs.c
1061
reclen = ufs_rw16(de->d_reclen, needswap);
usr.sbin/makefs/ffs.c
1064
ufs_rw32(de->d_ino, needswap),
usr.sbin/makefs/ffs.c
1065
inode_type(DTTOIF(de->d_type)), i, reclen,
usr.sbin/makefs/ffs.c
1066
de->d_namlen, de->d_name);
usr.sbin/makefs/ffs.c
1075
struct direct de, *dp;
usr.sbin/makefs/ffs.c
1083
(void)memset(&de, 0, sizeof(de));
usr.sbin/makefs/ffs.c
1084
de.d_ino = ufs_rw32(node->inode->ino, needswap);
usr.sbin/makefs/ffs.c
1085
de.d_type = IFTODT(node->type);
usr.sbin/makefs/ffs.c
1086
de.d_namlen = (uint8_t)strlen(name);
usr.sbin/makefs/ffs.c
1087
strcpy(de.d_name, name);
usr.sbin/makefs/ffs.c
1088
reclen = DIRSIZ_SWAP(0, &de, needswap);
usr.sbin/makefs/ffs.c
1089
de.d_reclen = ufs_rw16(reclen, needswap);
usr.sbin/makefs/ffs.c
1101
ufs_rw32(de.d_ino, needswap), de.d_type, reclen,
usr.sbin/makefs/ffs.c
1102
de.d_namlen, de.d_name);
usr.sbin/makefs/ffs.c
1118
memcpy(dp, &de, reclen);
usr.sbin/makefs/msdos.c
248
struct denode *de;
usr.sbin/makefs/msdos.c
249
if ((de = msdosfs_mkdire(pbuf, dir, cur)) == NULL) {
usr.sbin/makefs/msdos.c
253
if (msdos_populate_dir(pbuf, de, cur->child, cur,