| /plan9/sys/src/ape/cmd/diff/ |
| H A D | diff.c | 45 static char const *filetype PARAMS((struct stat const *)); 160 if (f.desc < 0 || fstat (f.desc, &f.stat) != 0) 796 struct stat const *st; in filetype() 909 inf[i].stat = inf[0].stat; 915 stat_result = fstat (STDIN_FILENO, &inf[i].stat); 916 if (stat_result == 0 && S_ISREG (inf[i].stat.st_mode)) 923 if (pos <= inf[i].stat.st_size) 924 inf[i].stat.st_size -= pos; 926 inf[i].stat.st_size = 0; 928 time (&inf[i].stat.st_mtime); [all …]
|
| /plan9/sys/src/cmd/gs/src/ |
| H A D | gdevn533.c | 85 if(status.stat[0] & (ST0_CALL | ST0_REPRINT_REQ | ST0_WAIT | ST0_PAUSE)) in analyze_error() 87 if(status.stat[1] & ST1_NO_CARTRIGE)/* mispelled? */ in analyze_error() 89 else if(status.stat[1] & ST1_NO_PAPER) in analyze_error() 91 else if(status.stat[1] & ST1_JAM) in analyze_error() 93 else if(status.stat[1] & ST1_OPEN) in analyze_error() 95 else if(status.stat[1] & ST1_TEST) in analyze_error() 101 if(status.stat[2] & ST2_FIXER) in analyze_error() 103 else if(status.stat[2] & ST2_SCANNER) in analyze_error() 105 else if(status.stat[2] & ST2_MOTOR) in analyze_error() 107 else if(status.stat[5] & ST5_NO_TONER) in analyze_error()
|
| H A D | gsimpath.c | 54 status stat; in gs_imagepath() local 55 status *out = &stat; in gs_imagepath() 59 stat.pgs = pgs; in gs_imagepath() 60 stat.data = data; in gs_imagepath() 61 stat.width = width; in gs_imagepath() 62 stat.height = height; in gs_imagepath() 63 stat.raster = (width + 7) / 8; in gs_imagepath() 72 stat.count = 0; in gs_imagepath() 73 stat.dx = stat.dy = 0; in gs_imagepath()
|
| H A D | zusparam.c | 156 gs_memory_gc_status_t stat; in current_MaxGlobalVM() local 158 gs_memory_gc_status(iimemory_global, &stat); in current_MaxGlobalVM() 159 return stat.max_vm; in current_MaxGlobalVM() 164 gs_memory_gc_status_t stat; in set_MaxGlobalVM() local 166 gs_memory_gc_status(iimemory_global, &stat); in set_MaxGlobalVM() 167 stat.max_vm = max(val, 0); in set_MaxGlobalVM() 168 gs_memory_set_gc_status(iimemory_global, &stat); in set_MaxGlobalVM() 362 gs_memory_gc_status_t stat; in current_MaxLocalVM() local 364 gs_memory_gc_status(iimemory_local, &stat); in current_MaxLocalVM() 365 return stat.max_vm; in current_MaxLocalVM() [all …]
|
| H A D | gp_mktmp.c | 26 struct stat fst; in mktemp() 34 while (stat(fname, &fst) == 0) { in mktemp()
|
| /plan9/386/bin/auth/ |
| H A D | status | 3 stat=`{cat status} 11 switch($stat){ 15 echo user $1: plan 9 key status is $stat and $exp 20 stat=`{cat status} 28 switch($stat){ 32 echo user $1: network key status is $stat and $exp
|
| /plan9/sys/src/cmd/auth/ |
| H A D | status | 3 stat=`{cat status} 11 switch($stat){ 15 echo user $1: plan 9 key status is $stat and $exp 20 stat=`{cat status} 28 switch($stat){ 32 echo user $1: network key status is $stat and $exp
|
| /plan9/sys/include/ape/sys/ |
| H A D | stat.h | 13 struct stat { struct 69 extern int stat(const char *, struct stat *); 70 extern int fstat(int, struct stat *); 75 extern int lstat(char *, struct stat *);
|
| /plan9/acme/bin/source/acd/ |
| H A D | mmc.c | 234 playstatus(Drive *d, Cdstatus *stat) in playstatus() argument 250 stat->state = Splaying; in playstatus() 253 stat->state = Spaused; in playstatus() 256 stat->state = Scompleted; in playstatus() 259 stat->state = Serror; in playstatus() 264 stat->state = Sunknown; in playstatus() 268 stat->track = resp[6]; in playstatus() 269 stat->index = resp[7]; in playstatus() 270 stat->abs = rdmsf(resp+9); in playstatus() 271 stat->rel = rdmsf(resp+13); in playstatus()
|
| /plan9/sys/man/5/ |
| H A D | INDEX | 13 stat stat 14 wstat stat
|
| /plan9/sys/src/cmd/ |
| H A D | mv.c | 59 int stat; in mv() local 67 stat = mv1(from, dirb, todir, toelem); in mv() 69 return stat; in mv() 75 int fdf, fdt, i, j, stat; in mv1() local 150 stat = copy1(fdf, fdt, fromname, toname); in mv1() 153 if(stat >= 0){ in mv1() 160 stat = -1; in mv1() 164 return stat; in mv1()
|
| /plan9/sys/src/9/pc/ |
| H A D | devfloppy.c | 618 for(i = 0; i < sizeof(fl.stat); i++){ in floppyresult() 636 fl.stat[i] = inb(Pfdata); in floppyresult() 638 fl.nstat = sizeof(fl.stat); in floppyresult() 730 if((fl.stat[0] & (Codemask|Seekend)) != Seekend){ in floppyrecal() 735 dp->cyl = fl.stat[1]; in floppyrecal() 814 if((fl.stat[0] & (Codemask|Seekend)) != Seekend){ in floppyseek() 898 if((fl.stat[0] & Codemask)!=0 || fl.stat[1] || fl.stat[2]){ in floppyxfer() 899 DPRINT("xfer: failed %ux %ux %ux\n", fl.stat[0], in floppyxfer() 900 fl.stat[1], fl.stat[2]); in floppyxfer() 902 if((fl.stat[0]&Codemask)==Cmdexec && fl.stat[1]==Overrun){ in floppyxfer() [all …]
|
| /plan9/sys/src/ape/cmd/pdksh/ |
| H A D | mail.c | 43 struct stat stbuf; in mcheck() 59 if (mbp->mb_path && stat(mbp->mb_path, &stbuf) == 0 in mcheck() 92 struct stat stbuf; 101 if (p && stat(p, &stbuf) == 0 && S_ISREG(stbuf.st_mode)) 167 struct stat stbuf; 174 if (stat(mbp->mb_path, &stbuf) == 0 && S_ISREG(stbuf.st_mode))
|
| H A D | c_test.c | 88 static int test_stat ARGS((const char *path, struct stat *statb)); 218 struct stat b1, b2; 254 return stat(opnd1, &b1) == 0; 305 return stat(p, &b1) == 0 && S_ISCDF(b1.st_mode); 394 return stat(opnd1, &b1) == 0 395 && (((s2 = stat(opnd2, &b2)) == 0 404 return stat(opnd2, &b2) == 0 405 && (((s1 = stat(opnd1, &b1)) == 0 409 return stat (opnd1, &b1) == 0 && stat (opnd2, &b2) == 0 421 struct stat *statb; [all …]
|
| /plan9/sys/src/9/boot/ |
| H A D | bootcache.c | 13 if(stat("/boot/cfs", statbuf, sizeof statbuf) < 0) in cache() 25 else if(stat(argv[i], statbuf, sizeof statbuf) >= 0){ in cache() 46 if(stat(partition, statbuf, sizeof statbuf) < 0) in cache() 51 if(stat(partition, statbuf, sizeof statbuf) < 0) in cache()
|
| /plan9/sys/src/cmd/unix/drawterm/kern/ |
| H A D | devfs-posix.c | 43 static Qid fsqid(char*, struct stat *); 79 struct stat stbuf; in fsattach() 83 if(stat(base, &stbuf) < 0) in fsattach() 116 struct stat stbuf; in fswalk1() 124 if(stat(path, &stbuf) < 0) in fswalk1() 176 struct stat stbuf; in fsstat() 183 if(stat(path, &stbuf) < 0) in fsstat() 261 struct stat stbuf; in fscreate() 303 if(stat(path, &stbuf) < 0) in fscreate() 414 struct stat stbuf; in fswstat() [all …]
|
| H A D | devfs-win32.c | 58 static Qid fsqid(char*, struct stat *); 96 struct stat stbuf; in fsattach() 100 if(stat(base, &stbuf) < 0) in fsattach() 133 struct stat stbuf; in fswalk1() 141 if(stat(path, &stbuf) < 0) in fswalk1() 193 struct stat stbuf; in fsstat() 200 if(stat(path, &stbuf) < 0) in fsstat() 278 struct stat stbuf; in fscreate() 320 if(stat(path, &stbuf) < 0) in fscreate() 431 struct stat stbuf; in fswstat() [all …]
|
| /plan9/sys/src/ape/lib/bsd/ |
| H A D | lstat.c | 6 lstat(char *name, struct stat *ans) in lstat() 8 return stat(name, ans); in lstat()
|
| H A D | mktemp.c | 15 struct stat stbuf; in mktemp() 27 if (stat(template, &stbuf) < 0) in mktemp()
|
| /plan9/sys/src/ape/lib/ap/plan9/ |
| H A D | stat.c | 9 stat(const char *path, struct stat *buf) in stat() function
|
| H A D | _fcall.c | 112 STRING(stat, sizeof(f->stat)); in convS2M() 202 STRING(stat, sizeof(f->stat)); in convS2M() 322 STRING(stat, sizeof(f->stat)); in convM2S() 412 STRING(stat, sizeof(f->stat)); in convM2S()
|
| H A D | mkdir.c | 13 struct stat st; in mkdir() 15 if(stat(name, &st)==0) { in mkdir()
|
| /plan9/sys/src/cmd/disk/kfs/ |
| H A D | con.c | 210 char stat[DIRREC]; in cmd_rename() local 255 if(err = con_stat(FID2, stat)){ in cmd_rename() 259 convM2D9p1(stat, &d); in cmd_rename() 283 else if(err = con_stat(FID2, stat)) in cmd_rename() 286 convM2D9p1(stat, &d); in cmd_rename() 288 convD2M9p1(&d, stat); in cmd_rename() 289 if(err = con_wstat(FID2, stat)) in cmd_rename() 358 char stat[DIRREC]; in adduser() local 410 i = con_stat(FID2, stat); in adduser() 415 i = con_write(FID2, msg, statlen(stat), c); in adduser()
|
| /plan9/sys/src/games/mp3enc/ |
| H A D | lametime.c | 84 struct stat sb; in lame_get_file_size() 86 if ( 0 == stat ( filename, &sb ) ) in lame_get_file_size()
|
| /plan9/sys/src/cmd/postscript/common/ |
| H A D | tempnam.c | 17 struct stat stb; in tempnam() 36 } while (stat(tnm, &stb) >= 0 && seq < 256); in tempnam()
|