/ast/src/lib/libast/port/ |
H A D | iblocks.c | 50 #define B_SIZE BSIZE(st->st_dev) 51 #define B_INDIRECT NINDIR(st->st_dev)
|
/ast/src/lib/libast/preroot/ |
H A D | ispreroot.c | 52 i = !stat(a, &ast) && !stat(b, &bst) && ast.st_dev == bst.st_dev && ast.st_ino == bst.st_ino;
|
H A D | getpreroot.c | 83 if (stat(PR_REAL, cur) || stat("/", par) || cur->st_dev == par->st_dev && cur->st_ino == par->st_ino) ERROR(ENOTDIR); 109 if (par->st_dev == cur->st_dev) 146 } while (tstst.st_ino != cur->st_ino || tstst.st_dev != cur->st_dev);
|
/ast/src/cmd/3d/ |
H A D | fchdir3d.c | 34 if (fd >= 0 && fd < elementsof(state.file) && (dp = state.file[fd].dir) && !FSTAT(fd, &st) && dp->dev == st.st_dev && dp->ino == st.st_ino)
|
H A D | syscall3d.c | 365 if (!fstat(m, &st) && st.st_ino == state.fs[FS_option].st.st_ino && st.st_dev == state.fs[FS_option].st.st_dev) 564 bprintf(&b, e, " [ dev=%d ino=%d view=%d mode=0%o nlink=%d uid=%d gid=%d size=%u atime=%u mtime=%u ctime=%u ]", sp->st_dev, sp->st_ino, iview(sp), sp->st_mode, sp->st_nlink, sp->st_uid, sp->st_gid, sp->st_size, sp->st_atime, sp->st_mtime, sp->st_ctime); 572 bprintf(&b, e, " [ dev=%d ino=%lld view=%d mode=0%o nlink=%d uid=%d gid=%d size=%llu atime=%u mtime=%u ctime=%u ]", sp->st_dev, sp->st_ino, iview(sp), sp->st_mode, sp->st_nlink, sp->st_uid, sp->st_gid, sp->st_size, sp->st_atime, sp->st_mtime, sp->st_ctime);
|
/ast/src/lib/libast/string/ |
H A D | fmtfs.c | 75 else if (ip = (Id_t*)dtmatch(dict, &st->st_dev)) 80 while ((mnt = mntread(mp)) && (stat(mnt->dir, &rt) || rt.st_dev != st->st_dev));
|
H A D | fmtdev.c | 27 * st_dev formatter 43 mm = (S_ISBLK(st->st_mode) || S_ISCHR(st->st_mode)) ? idevice(st) : st->st_dev;
|
/ast/src/lib/libast/misc/ |
H A D | getcwd.c | 207 env[n].dev = cur->st_dev; 209 if (cur->st_ino == par->st_ino && cur->st_dev == par->st_dev) 246 if (par->st_dev == cur->st_dev) 296 } while (stat(dots, &tstst) || tstst.st_ino != cur->st_ino || tstst.st_dev != cur->st_dev); 316 if (env[n].ino == par->st_ino && env[n].dev == par->st_dev)
|
H A D | fts.c | 112 #define SAME(one,two) ((one)->st_ino==(two)->st_ino&&(one)->st_dev==(two)->st_dev) 233 if (f1->statb.st_dev < f2->statb.st_dev) 235 if (f1->statb.st_dev > f2->statb.st_dev) 940 else if (!(fts->flags & FTS_TOP) && (!(fts->flags & FTS_XDEV) || f->statb.st_dev == f->fts_parent->statb.st_dev))
|
/ast/src/cmd/std/ |
H A D | psslib.h | 75 #define st_rdev st_dev
|
H A D | du.c | 242 hit.id.dev = st.st_dev; 252 hit.id.dev = ent->fts_statp->st_dev;
|
/ast/src/lib/libast/comp/ |
H A D | statvfs.c | 82 vfs->f_fsid = st->st_dev; 133 vfs->f_fsid = st->st_dev;
|
/ast/src/cmd/ksh93/sh/ |
H A D | suid_exec.c | 194 statb.st_ino != statx.st_ino || statb.st_dev != statx.st_dev) 197 (statb.st_ino == statx.st_ino && statb.st_dev == statx.st_dev))
|
/ast/src/lib/libcs/ |
H A D | cspath.c | 92 if (idevice(&tst) == idevice(st) && ((t = S_ISBLK(tst.st_mode)) || S_ISCHR(tst.st_mode)) && t == blk && (!n || tst.st_dev == st->st_dev && tst.st_ino == st->st_ino)) 194 sfsprintf(state->path, sizeof(state->path), "/dev/ino/%u/%u", st.st_dev, st.st_ino);
|
H A D | msgsend.c | 80 msgputu(&b, e, sp->st_dev);
|
/ast/src/cmd/cs/ |
H A D | dbm.c | 245 if (dp->ref > 0 && dp->ino == st.st_ino && dp->dev == st.st_dev) 260 st.st_dev = 0; 263 dp->dev = st.st_dev;
|
H A D | cat.c | 42 unsigned long dev; /* st_dev */ 114 fid.dev = st.st_dev;
|
/ast/src/cmd/pax/ |
H A D | pax-ar.c | 83 f->st->st_dev = 0;
|
H A D | pax-cpio.c | 373 f->st->st_dev = lst.dev; 442 (long)CPIO_TRUNCATE(f->st->st_dev), 547 f->st->st_dev = makedev(lst.dev_major, lst.dev_minor); 580 (long)major(f->st->st_dev), 581 (long)minor(f->st->st_dev), 629 f->st->st_dev = makedev(lst.dev_major, lst.dev_minor); 733 f->st->st_dev = hdr.dev; 759 hdr.dev = f->st->st_dev;
|
H A D | file.c | 332 vp->dev = st.st_dev; 347 if (vp->ino == st.st_ino && vp->dev == st.st_dev) 412 if (exists && f->st->st_ino == st.st_ino && f->st->st_dev == st.st_dev) 417 if (state.linkf && f->type != X_IFDIR && (state.linkf == pathsetlink || f->st->st_dev == state.dev)) 512 if (exists && (prune(ap, f, &st) || state.update && f->st->st_dev != st.st_dev)) 856 message((-4, "getfile(%s): dev'=%d ino'=%d", f->name, f->st->st_dev, f->st->st_ino)); 921 id.dev = f->st->st_dev; 951 f->st->st_dev [all...] |
H A D | misc.c | 179 d->dev = f->st->st_dev; 205 if (f->type != X_IFREG && d->dev != f->st->st_dev) 225 d->dev = f->st->st_dev; 548 n = major(st->st_dev); 551 n = minor(st->st_dev);
|
/ast/src/lib/libcmd/ |
H A D | cmp.c | 373 else if (s1.st_ino == s2.st_ino && s1.st_dev == s2.st_dev && o1 == o2)
|
H A D | getconf.c | 302 q = !stat(equiv[0].path, &st0) && !stat(equiv[1].path, &st1) && st0.st_ino == st1.st_ino && st0.st_dev == st1.st_dev;
|
H A D | rm.c | 178 v = st.st_nlink <= 2 || st.st_ino == ent->fts_parent->fts_statp->st_ino && st.st_dev == ent->fts_parent->fts_statp->st_dev || strchr(astconf("PATH_ATTRIBUTES", path, NiL), 'l');
|
/ast/src/lib/libpp/ |
H A D | pplib.h | 223 unsigned long st_dev; /* dev */ member in struct:ppfileid 233 #define SAMEID(a,b) ((a)->st_ino==(unsigned long)(b)->st_ino&&(a)->st_dev==(unsigned long)(b)->st_dev) 234 #define SAVEID(a,b) ((a)->st_ino=(unsigned long)(b)->st_ino,(a)->st_dev=(unsigned long)(b)->st_dev)
|