Searched refs:stat (Results 1 - 25 of 219) sorted by relevance

123456789

/ast/src/lib/libast/comp/
H A Dlstat.c34 lstat(const char* path, struct stat* st)
36 return(stat(path, st));
H A Dftw.h55 extern int ftw(const char*, int(*)(const char*, const struct stat*, int), int);
56 extern int nftw(const char*, int(*)(const char*, const struct stat*, int, struct FTW*), int, int);
H A Dftw.c30 static int (*ftw_userf)(const char*, const struct stat*, int);
45 ftw(const char* path, int(*userf)(const char*, const struct stat*, int), int depth) argument
H A Dgross.c35 extern int fstat(int fd, struct stat* st)
44 extern int lstat(const char* path, struct stat* st)
53 extern int stat(const char* path, struct stat* st) function
H A Dnftw.c31 static int (*nftw_userf)(const char*, const struct stat*, int, struct FTW*);
38 struct stat st;
42 else if ((n & FTW_SL) && (!(nftw_flags & FTW_PHYSICAL) || stat(ftw->path, &st)))
53 nftw(const char* path, int(*userf)(const char*, const struct stat*, int, struct FTW*), int depth, int flags) argument
H A Drmdir.c39 struct stat st;
44 if (stat(path, &st) < 0) return(-1);
H A Dstatvfs.c67 us2v(register struct statfs* ufs, register struct stat* st, register struct statvfs* vfs)
92 struct stat st;
104 struct stat st;
106 if (STATFS(path, &ufs) || stat(path, &st))
119 s2v(register struct stat* st, register struct statvfs* vfs)
142 struct stat st;
153 struct stat st;
155 if (stat(path, &st))
/ast/src/lib/libast/path/
H A Dpathstat.c29 * physical stat if logical fails
33 pathstat(const char* path, struct stat* st)
39 if (!stat(path, st)) return(0);
43 return(stat(path, st));
H A Dpathshell.c32 #include <sys/stat.h>
58 struct stat st;
66 if (stat(sh, &st))
84 if (stat(s, &st))
/ast/src/cmd/ss/
H A Dss.c86 CSSTAT stat; member in struct:__anon219
125 else if (csstat(sp->name, &sp->stat))
145 if (n = (a->stat.pctusr + a->stat.pctsys) - (b->stat.pctusr + b->stat.pctsys))
149 if (a->stat.idle < b->stat.idle)
151 if (a->stat.idle > b->stat
[all...]
/ast/src/lib/libast/include/
H A Dls.h80 extern off_t _iblocks(struct stat*);
81 extern char* fmtdev(struct stat*);
82 extern char* fmtfs(struct stat*);
83 extern char* fmtls(char*, const char*, struct stat*, const char*, const char*, int);
84 extern int pathstat(const char*, struct stat*);
H A Dglob.h35 struct stat;
74 /* gnu extensions -- but how do you synthesize dirent and stat? */
79 int (*gl_stat)(const char*, struct stat*);
80 int (*gl_lstat)(const char*, struct stat*);
/ast/src/cmd/ksh93/
H A Dmamstate.c37 #include <sys/stat.h>
46 struct stat st;
49 if (!(s = *++argv) || stat(s, &st))
57 if (!stat(s, &st))
68 if (!stat(buf, &st))
/ast/src/cmd/mam/
H A Dmamstate.c36 #include <sys/stat.h>
44 struct stat st;
53 if (stat(s, &st))
55 fprintf(stderr, "%s: %s: cannot stat\n", id, s);
62 if (!stat(s, &st))
67 if (!stat(s, &st))
/ast/src/lib/libast/preroot/
H A Dispreroot.c48 struct stat ast;
49 struct stat bst;
52 i = !stat(a, &ast) && !stat(b, &bst) && ast.st_dev == bst.st_dev && ast.st_ino == bst.st_ino;
H A Dgetpreroot.c72 struct stat* cur;
73 struct stat* par;
74 struct stat* tmp;
75 struct stat curst;
76 struct stat parst;
77 struct stat tstst;
83 if (stat(PR_REAL, cur) || stat("/", par) || cur->st_dev == par->st_dev && cur->st_ino == par->st_ino) ERROR(ENOTDIR);
106 if (stat(dots, par)) ERROR(errno);
145 if (stat(dot
[all...]
/ast/src/cmd/3d/
H A Dstat3d.c28 int stat3d(const char* path, struct stat* st)
31 int _stat(path, st) char* path; struct stat* st; { return stat(path, st); }
33 int stat(path, st) char* path; struct stat* st;
41 struct stat* so;
42 struct stat sc;
111 struct stat ss;
H A Dlstat3d.c30 int lstat3d(const char* path, struct stat* st)
33 int _lstat(path, st) char* path; struct stat* st; { return lstat(path, st); }
35 int lstat(path, st) char* path; struct stat* st;
43 struct stat* so;
44 struct stat sc;
95 struct stat ss;
H A Dvcs_3d.h74 extern int vcs_checkout(const char*, struct stat*);
75 extern int vcs_real(const char*, struct stat*);
H A Dfchdir3d.c32 struct stat st;
/ast/src/lib/libast/string/
H A Dfmtfs.c28 * return fs type string given stat
40 fmtfs(struct stat* st)
57 fmtfs(struct stat* st)
63 struct stat rt;
80 while ((mnt = mntread(mp)) && (stat(mnt->dir, &rt) || rt.st_dev != st->st_dev));
/ast/src/cmd/ksh93/tests/
H A Dleaks.sh69 read -C stat <<< "$data"
73 done | while read -u$n -C stat
79 read -C stat <<< "$data"
82 do read -C stat <<< "$data"
/ast/src/cmd/cs/vcs_src/
H A Dvcs_marker.c29 register struct stat* st;
61 if (dump->stat.st_ino != st->st_ino)
69 tp->stat.st_mtime = expire;
109 if (!r || r->tag->stat.st_ctime < ep->tag->stat.st_ctime)
116 if (!r || r->tag->stat.st_ctime < ep->tag->stat.st_ctime)
142 if (!r || r->tag->stat.st_ctime < ep->tag->stat.st_ctime)
H A Dvcs_tag.c56 struct stat* sp;
65 tp->stat = *sp;
66 tp->stat.st_ctime = cs.time;
/ast/src/cmd/coshell/
H A Dschedule.c46 #define RNK(p,a) (((p)->mode&SHELL_DISABLE)?INT_MAX:((p)->flags&IGN)?(INT_MAX/2):((((p)->stat.load/(p)->scale)+((p)->running*BIAS+CPU((p)->cpu,(a)->bias)))*(p)->bias*(((p)==state.home&&(p)->cpu==1)?400:100)/(p)->rating))
249 ap->stat.up = -LOST;
254 if (ap != state.shell && (ap->override || !IDLE(ap->stat.idle, ap->idle) && (!ap->bypass || !(bypass = miscmatch(ap, ap->bypass)))))
281 if (v < sv && ap->running < (state.perhost ? state.perhost : ap->cpu * state.percpu) && (!state.maxload || (ap->stat.load / ap->scale) < state.maxload) && (!sp || bypass || IDLE(ap->stat.idle, ap->idle) || !IDLE(sp->stat.idle, sp->idle)))
287 else if (!ap->fd && (!mp || ap->rank < mp->rank) && (IDLE(ap->stat.idle, ap->idle) || ap->home || ap->bypass && miscmatch(ap, ap->bypass) || ((a->set | op) & (SETMISC|DEF|NEW|SET)) == SETMISC)) mp = ap;
315 if (sp->override || !IDLE(sp->stat.idle, sp->idle)) sp->mode |= SHELL_OVERRIDE;
388 if (sp != state.shell && (sp->override || !IDLE(sp->stat.idle, sp->idle)))
409 if (a->global.set & SETIDLE) sp->stat
[all...]

Completed in 297 milliseconds

123456789