/ast/src/lib/libast/comp/ |
H A D | lstat.c | 34 lstat(const char* path, struct stat* st) 36 return(stat(path, st));
|
H A D | ftw.h | 55 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 D | ftw.c | 30 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 D | gross.c | 35 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 D | nftw.c | 31 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 D | rmdir.c | 39 struct stat st; 44 if (stat(path, &st) < 0) return(-1);
|
H A D | statvfs.c | 67 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 D | pathstat.c | 29 * 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 D | pathshell.c | 32 #include <sys/stat.h> 58 struct stat st; 66 if (stat(sh, &st)) 84 if (stat(s, &st))
|
/ast/src/cmd/ss/ |
H A D | ss.c | 86 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 D | ls.h | 80 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 D | glob.h | 35 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 D | mamstate.c | 37 #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 D | mamstate.c | 36 #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 D | ispreroot.c | 48 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 D | getpreroot.c | 72 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 D | stat3d.c | 28 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 D | lstat3d.c | 30 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 D | vcs_3d.h | 74 extern int vcs_checkout(const char*, struct stat*); 75 extern int vcs_real(const char*, struct stat*);
|
H A D | fchdir3d.c | 32 struct stat st;
|
/ast/src/lib/libast/string/ |
H A D | fmtfs.c | 28 * 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 D | leaks.sh | 69 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 D | vcs_marker.c | 29 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 D | vcs_tag.c | 56 struct stat* sp; 65 tp->stat = *sp; 66 tp->stat.st_ctime = cs.time;
|
/ast/src/cmd/coshell/ |
H A D | schedule.c | 46 #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...] |