| /mirbsd/src/gnu/usr.bin/perl/ext/SDBM_File/sdbm/ |
| D | pair.c | 53 register short *ino = (short *) pag; in fitpair() local 55 off = ((n = ino[0]) > 0) ? ino[n] : PBLKSIZ; in fitpair() 69 register short *ino = (short *) pag; in putpair() local 71 off = ((n = ino[0]) > 0) ? ino[n] : PBLKSIZ; in putpair() 77 ino[n + 1] = off; in putpair() 83 ino[n + 2] = off; in putpair() 87 ino[0] += 2; in putpair() 96 register short *ino = (short *) pag; in getpair() local 98 if ((n = ino[0]) == 0) in getpair() 104 val.dptr = pag + ino[i + 1]; in getpair() [all …]
|
| D | dbd.c | 75 register short *ino = (short *) pag; in dispage() local 78 for (i = 1; i < ino[0]; i += 2) { in dispage() 79 printf("\t[%d]: ", ino[i]); in dispage() 80 for (n = ino[i]; n < off; n++) in dispage() 83 off = ino[i]; in dispage() 84 printf("[%d]: ", ino[i + 1]); in dispage() 85 for (n = ino[i + 1]; n < off; n++) in dispage() 87 off = ino[i + 1]; in dispage() 97 register short *ino = (short *) pag; in dispage() local 100 for (i = 1; i < ino[0]; i += 2) { in dispage() [all …]
|
| D | util.c | 29 register short *ino = (short *) pag; in okpage() local 31 if ((n = ino[0]) > PBLKSIZ / sizeof(short)) in okpage() 38 for (ino++; n; ino += 2) { in okpage() 39 if (ino[0] > off || ino[1] > off || in okpage() 40 ino[1] > ino[0]) in okpage() 42 off = ino[1]; in okpage()
|
| /mirbsd/src/sbin/dump/ |
| D | traverse.c | 70 static int dirindir(ino_t ino, daddr_t blkno, int level, off_t *size); 71 static void dmpindir(ino_t ino, daddr_t blk, int level, off_t *size); 72 static int searchdir(ino_t ino, daddr_t blkno, long size, off_t filesize); 130 mapfileino(ino_t ino, off_t *tapesize, int *dirskipped) in mapfileino() argument 135 dp = getino(ino); in mapfileino() 138 SETINO(ino, usedinomap); in mapfileino() 140 SETINO(ino, dumpdirmap); in mapfileino() 142 SETINO(ino, dumpinomap); in mapfileino() 233 ino_t ino; in mapfiles() local 235 for (ino = ROOTINO; ino < maxino; ino++) { in mapfiles() [all …]
|
| D | dump.h | 48 #define SETINO(ino, map) \ argument 49 map[(u_int)((ino) - 1) / NBBY] |= 1 << ((u_int)((ino) - 1) % NBBY) 50 #define CLRINO(ino, map) \ argument 51 map[(u_int)((ino) - 1) / NBBY] &= ~(1 << ((u_int)((ino) - 1) % NBBY)) 52 #define TSTINO(ino, map) \ argument 53 (map[(u_int)((ino) - 1) / NBBY] & (1 << ((u_int)((ino) - 1) % NBBY))) 108 void blksout(daddr_t *blkp, int frags, ino_t ino); 110 void dumpino(struct ufs1_dinode *dp, ino_t ino); 111 void dumpmap(char *map, int type, ino_t ino); 112 void writeheader(ino_t ino);
|
| D | main.c | 101 ino_t ino; in main() local 499 for (map = dumpdirmap, ino = 1; ino < maxino; ino++) { in main() 500 if (((ino - 1) % NBBY) == 0) /* map is offset by 1 */ in main() 509 dp = getino(ino); in main() 512 (void)dumpino(dp, ino); in main() 516 for (map = dumpinomap, ino = 1; ino < maxino; ino++) { in main() 519 if (((ino - 1) % NBBY) == 0) /* map is offset by 1 */ in main() 528 dp = getino(ino); in main() 532 (void)dumpino(dp, ino); in main()
|
| /mirbsd/src/sbin/restore/ |
| D | restore.c | 59 listfile(char *name, ino_t ino, int type) in listfile() argument 63 if (TSTINO(ino, dumpmap) == 0) in listfile() 66 fprintf(stdout, "%10d\t%s\n", ino, name); in listfile() 75 addfile(char *name, ino_t ino, int type) in addfile() argument 81 if (TSTINO(ino, dumpmap) == 0) { in addfile() 86 (void)snprintf(buf, sizeof(buf), "./%u", ino); in addfile() 89 (void)genliteraldir(name, ino); in addfile() 93 ep = lookupino(ino); in addfile() 101 ep = addentry(name, ino, type); in addfile() 114 deletefile(char *name, ino_t ino, int type) in deletefile() argument [all …]
|
| D | dirs.c | 81 ino_t ino; member 195 itp = allocinotab(curfile.ino, ip, seekpt); in extractdirs() 220 treescan(char *pname, ino_t ino, long (*todo)(char *, ino_t, int)) in treescan() argument 228 itp = inotablookup(ino); in treescan() 233 (void)(*todo)(pname, ino, LEAF); in treescan() 239 if ((*todo)(pname, ino, NODE) == FAIL) in treescan() 287 ino_t ino; in pathsearch() local 293 ino = ROOTINO; in pathsearch() 298 if ((dp = searchdir(ino, name)) == NULL) in pathsearch() 300 ino = dp->d_ino; in pathsearch() [all …]
|
| D | restore.h | 109 ino_t ino; /* inumber of file */ member 131 #define TSTINO(ino, map) \ argument 132 (map[(u_int)((ino) - 1) / NBBY] & (1 << ((u_int)((ino) - 1) % NBBY))) 133 #define SETINO(ino, map) \ argument 134 map[(u_int)((ino) - 1) / NBBY] |= 1 << ((u_int)((ino) - 1) % NBBY)
|
| D | main.c | 86 ino_t ino; in main() local 253 ino = dirlookup(name); in main() 254 if (ino == 0) in main() 256 treescan(name, ino, listfile); in main() 268 ino = dirlookup(name); in main() 269 if (ino == 0) in main() 273 treescan(name, ino, addfile); in main()
|
| /mirbsd/src/sbin/fsck_ext2fs/ |
| D | inode.c | 538 u_int32_t ino = fs2h32(dirp->e2d_ino); in findino() local 540 if (ino == 0) in findino() 543 (ino == EXT2_ROOTINO || ino >= EXT2_FIRSTINO) in findino() 544 && ino <= maxino) { in findino() 545 idesc->id_parent = ino; in findino() 552 pinode(ino_t ino) in pinode() argument 560 printf(" I=%u ", ino); in pinode() 561 if ((ino < EXT2_FIRSTINO && ino != EXT2_ROOTINO) || ino > maxino) in pinode() 563 dp = ginode(ino); in pinode() 582 blkerror(ino_t ino, char *type, daddr_t blk) in blkerror() argument [all …]
|
| D | dir.c | 257 direrror(ino_t ino, char *errmesg) in direrror() argument 260 fileerror(ino, ino, errmesg); in direrror() 264 fileerror(ino_t cwd, ino_t ino, char *errmesg) in fileerror() argument 270 pinode(ino); in fileerror() 272 getpathname(pathbuf, sizeof pathbuf, cwd, ino); in fileerror() 273 if ((ino < EXT2_FIRSTINO && ino != EXT2_ROOTINO) || ino > maxino) { in fileerror() 277 dp = ginode(ino); in fileerror() 485 makeentry(ino_t parent, ino_t ino, char *name) in makeentry() argument 493 (ino < EXT2_FIRSTINO && ino < EXT2_ROOTINO) || ino >= maxino) in makeentry() 499 idesc.id_parent = ino; /* this is the inode to enter */ in makeentry() [all …]
|
| /mirbsd/src/sbin/ncheck_ffs/ |
| D | ncheck_ffs.c | 66 ino_t ino; member 109 ino_t ino = *(ino_t *)key; in matchcache() local 112 if (ino < ic->ino) in matchcache() 114 else if (ino > ic->ino) in matchcache() 123 cacheino(ino_t ino, struct ufs1_dinode *ip) in cacheino() argument 135 icache[nicache].ino = ino; in cacheino() 143 cached(ino_t ino) in cached() argument 147 ic = (struct icache_s *)bsearch(&ino, icache, nicache, in cached() 160 ino_t ino; in findinodes() local 164 for (ino = ROOTINO; ino < maxino; ino++) { in findinodes() [all …]
|
| /mirbsd/src/lib/libc/db/hash/ |
| D | hash_page.c | 175 u_int16_t *ino; in __split_page() local 194 ino = (u_int16_t *)(op = old_bufp->page); in __split_page() 199 for (n = 1, ndx = 1; n < ino[0]; n += 2) { in __split_page() 200 if (ino[n + 1] < REAL_KEY) { in __split_page() 208 key.data = (u_char *)op + ino[n]; in __split_page() 209 key.size = off - ino[n]; in __split_page() 215 copyto = ino[n + 1] + diff; in __split_page() 216 memmove(op + copyto, op + ino[n + 1], in __split_page() 217 off - ino[n + 1]); in __split_page() 218 ino[ndx] = copyto + ino[n] - ino[n + 1]; in __split_page() [all …]
|
| /mirbsd/src/sbin/fsck_ffs/ |
| D | dir.c | 262 direrror(ino_t ino, char *errmesg) in direrror() argument 264 fileerror(ino, ino, errmesg); in direrror() 268 fileerror(ino_t cwd, ino_t ino, char *errmesg) in fileerror() argument 274 pinode(ino); in fileerror() 276 getpathname(pathbuf, sizeof pathbuf, cwd, ino); in fileerror() 277 if (ino < ROOTINO || ino > maxino) { in fileerror() 281 dp = ginode(ino); in fileerror() 514 makeentry(ino_t parent, ino_t ino, char *name) in makeentry() argument 521 ino < ROOTINO || ino >= maxino) in makeentry() 527 idesc.id_parent = ino; /* this is the inode to enter */ in makeentry() [all …]
|
| D | inode.c | 501 pinode(ino_t ino) in pinode() argument 508 printf(" I=%u ", ino); in pinode() 509 if (ino < ROOTINO || ino > maxino) in pinode() 511 dp = ginode(ino); in pinode() 529 blkerror(ino_t ino, char *type, daddr_t blk) in blkerror() argument 532 pfatal("%d %s I=%u", blk, type, ino); in blkerror() 534 switch (statemap[ino]) { in blkerror() 537 statemap[ino] = FCLEAR; in blkerror() 541 statemap[ino] = DCLEAR; in blkerror() 549 errexit("BAD STATE %d TO BLKERR\n", statemap[ino]); in blkerror() [all …]
|
| /mirbsd/src/sbin/growfs/ |
| D | debug.c | 599 dbg_dump_ino(struct fs *sb, const char *comment, struct ufs1_dinode *ino) in dbg_dump_ino() argument 609 fprintf(dbg_log, "# %d@%lx: %s\n", indent, (unsigned long)ino, comment); in dbg_dump_ino() 612 fprintf(dbg_log, "mode u_int16_t 0%o\n", ino->di_mode); in dbg_dump_ino() 613 fprintf(dbg_log, "nlink int16_t 0x%04x\n", ino->di_nlink); in dbg_dump_ino() 615 ((unsigned int *)&(ino->di_size))[1], in dbg_dump_ino() 616 ((unsigned int *)&(ino->di_size))[0]); in dbg_dump_ino() 617 fprintf(dbg_log, "atime int32_t 0x%08x\n", ino->di_atime); in dbg_dump_ino() 619 ino->di_atimensec); in dbg_dump_ino() 621 ino->di_mtime); in dbg_dump_ino() 623 ino->di_mtimensec); in dbg_dump_ino() [all …]
|
| /mirbsd/src/gnu/usr.bin/perl/t/io/ |
| D | fs.t | 86 my ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$mtime,$ctime, 95 ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$mtime,$ctime, 123 ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$mtime,$ctime, 138 ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$mtime,$ctime, 147 ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$mtime,$ctime, 158 ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$mtime,$ctime, 161 is($ino, undef, "ino of removed file b should be undef"); 163 ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$mtime,$ctime, 166 is($ino, undef, "ino of removed file x should be undef"); 208 ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$mtime,$ctime, [all …]
|
| /mirbsd/src/sys/isofs/cd9660/ |
| D | cd9660_lookup.c | 118 ino_t ino = 0; local 270 ino = isodirino(ep, imp); 272 ino = dbtob(bp->b_blkno) 275 } else if (ino) 287 ino = isodirino(ep, imp); 289 ino = dbtob(bp->b_blkno) + entryoffsetinblock; 290 dp->i_ino = ino; 295 ino = 0; 301 if (ino) { 303 dp->i_ino = ino; [all …]
|
| /mirbsd/src/gnu/usr.bin/perl/x2p/ |
| D | find2perl.PL | 152 $out .= tab . n('$ino', shift); 339 my ($dev,$ino,$mode,$nlink,$uid,$gid); 404 my ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size, 441 $ino, 488 my ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size, 494 ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size, 497 ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size, 519 $ino & 0777777, 532 070707, $dev, $ino, $mode, $uid, $gid, $nlink, $rdev, $mtime, 574 my ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size, [all …]
|
| /mirbsd/src/sys/ufs/ext2fs/ |
| D | ext2fs_alloc.c | 144 ino_t ino, ipref; in ext2fs_inode_alloc() local 158 ino = (ino_t)ext2fs_hashalloc(pip, cg, (long)ipref, mode, ext2fs_nodealloccg); in ext2fs_inode_alloc() 159 if (ino == 0) in ext2fs_inode_alloc() 161 error = VFS_VGET(pvp->v_mount, ino, vpp); in ext2fs_inode_alloc() 163 ext2fs_inode_free(pip, ino, mode); in ext2fs_inode_alloc() 531 ext2fs_inode_free(struct inode *pip, ino_t ino, mode_t mode) in ext2fs_inode_free() argument 539 if ((u_int)ino > fs->e2fs.e2fs_icount || (u_int)ino < EXT2_FIRSTINO) in ext2fs_inode_free() 541 pip->i_dev, ino, fs->e2fs_fsmnt); in ext2fs_inode_free() 542 cg = ino_to_cg(fs, ino); in ext2fs_inode_free() 551 ino = (ino - 1) % fs->e2fs.e2fs_ipg; in ext2fs_inode_free() [all …]
|
| /mirbsd/src/usr.bin/du/ |
| D | du.c | 222 ino_t ino; member 229 if (e1->ino == e2->ino) in links_cmp() 232 return (e1->ino < e2->ino ? -1 : 1); in links_cmp() 253 ltmp.ino = st->st_ino; in linkchk() 294 le->ino = st->st_ino; in linkchk()
|
| /mirbsd/src/gnu/usr.sbin/sendmail/contrib/ |
| D | bounce-resender.pl | 192 ($dev, $ino) = (stat($df))[0 .. 1]; 198 print MSGHDR "I$maj/$min/$ino\n"; 217 $dev = $ino = $maj = $min = $r = $time = undef; 223 ($dev, $ino) = (stat($df))[0 .. 1]; 229 print MSGHDR "I$maj/$min/$ino\n"; 248 $dev = $ino = $maj = $min = $r = $time = undef;
|
| /mirbsd/src/bin/pax/ |
| D | tables.c | 158 if ((pt->ino == arcn->sb.st_ino) && in chk_lnk() 202 pt->ino = arcn->sb.st_ino; in chk_lnk() 251 if ((pt->ino == arcn->sb.st_ino) && in purg_lnk() 964 add_atdir(char *fname, dev_t dev, ino_t ino, time_t mtime, time_t atime) in add_atdir() argument 979 indx = ((unsigned)ino) % A_TAB_SZ; in add_atdir() 982 if ((pt->ino == ino) && (pt->dev == dev)) in add_atdir() 1000 pt->ino = ino; in add_atdir() 1026 get_atdir(dev_t dev, ino_t ino, time_t *mtime, time_t *atime) in get_atdir() argument 1037 indx = ((unsigned)ino) % A_TAB_SZ; in get_atdir() 1043 if ((pt->ino == ino) && (pt->dev == dev)) in get_atdir() [all …]
|
| /mirbsd/src/usr.sbin/makefs/ |
| D | ffs.c | 761 cur->inode->ino = cur->parent->inode->ino; in ffs_populate_dir() 763 cur->inode->ino = fsopts->curinode; in ffs_populate_dir() 813 cur->inode->ino, inode_type(cur->type)); in ffs_populate_dir() 820 ffs_write_file(&din, cur->inode->ino, membuf, fsopts); in ffs_populate_dir() 822 ffs_write_file(&din, cur->inode->ino, path, fsopts); in ffs_populate_dir() 825 ffs_write_inode(&din, cur->inode->ino, fsopts); in ffs_populate_dir() 858 ffs_write_file(union dinode *din, uint32_t ino, void *buf, fsinfo_t *fsopts) in ffs_write_file() argument 883 ino, din, isfile, inode_type(DIP(din, mode) & S_IFMT), in ffs_write_file() 891 in.i_number = ino; in ffs_write_file() 948 ino, in ffs_write_file() [all …]
|