/original-bsd/usr.bin/f77/libU77/ |
H A D | fstat_.c | 29 long fstat_(lunit, stbuf) in fstat_() argument 30 long *lunit, *stbuf; in fstat_() 40 *stbuf++ = statb.st_dev; 41 *stbuf++ = statb.st_ino; 42 *stbuf++ = statb.st_mode; 43 *stbuf++ = statb.st_nlink; 44 *stbuf++ = statb.st_uid; 45 *stbuf++ = statb.st_gid; 46 *stbuf++ = statb.st_rdev; 47 *stbuf++ = statb.st_size; [all …]
|
H A D | stat_.c | 40 *stbuf++ = statb.st_dev; 41 *stbuf++ = statb.st_ino; 42 *stbuf++ = statb.st_mode; 43 *stbuf++ = statb.st_nlink; 44 *stbuf++ = statb.st_uid; 45 *stbuf++ = statb.st_gid; 46 *stbuf++ = statb.st_rdev; 47 *stbuf++ = statb.st_size; 48 *stbuf++ = statb.st_atime; 49 *stbuf++ = statb.st_mtime; [all …]
|
H A D | lstat_.c | 41 *stbuf++ = statb.st_dev; 42 *stbuf++ = statb.st_ino; 43 *stbuf++ = statb.st_mode; 44 *stbuf++ = statb.st_nlink; 45 *stbuf++ = statb.st_uid; 46 *stbuf++ = statb.st_gid; 47 *stbuf++ = statb.st_rdev; 48 *stbuf++ = statb.st_size; 49 *stbuf++ = statb.st_atime; 50 *stbuf++ = statb.st_mtime; [all …]
|
/original-bsd/old/cu/ |
H A D | cu.c | 120 struct sgttyb stbuf; local 187 stbuf.sg_ispeed = speed; 188 stbuf.sg_ospeed = speed; 191 stbuf.sg_flags |= RAW; 216 stbuf.sg_ispeed = 0; 217 stbuf.sg_ospeed = 0; 235 struct sgttyb stbuf; local 296 stbuf.sg_flags &= ~ECHO; 683 struct sgttyb stbuf; in mode() local 686 tkill = stbuf.sg_kill; in mode() [all …]
|
/original-bsd/old/tar/ |
H A D | tar.c | 74 struct stat stbuf; variable 422 sp = &stbuf; in getdir() 513 stbuf.st_size = 0; 514 tomodes(&stbuf); 555 tomodes(&stbuf); 590 tomodes(&stbuf); 723 chown(dblock.dbuf.name, stbuf.st_uid, stbuf.st_gid); 758 chown(dblock.dbuf.name, stbuf.st_uid, stbuf.st_gid); 804 longt(&stbuf); 918 chown(name, stbuf.st_uid, stbuf.st_gid); [all …]
|
/original-bsd/usr.sbin/lpr/lpc/ |
H A D | cmds.c | 105 struct stat stbuf; local 119 if (stat(line, &stbuf) >= 0) { 377 struct stat stbuf; in enablepr() local 389 if (stat(line, &stbuf) >= 0) { in enablepr() 444 struct stat stbuf; in disablepr() local 455 if (stat(line, &stbuf) >= 0) { in disablepr() 522 struct stat stbuf; local 682 struct stat stbuf; local 751 struct stat stbuf; in prstat() local 855 struct stat stbuf; in stoppr() local [all …]
|
/original-bsd/usr.bin/at/atrm/ |
H A D | atrm.c | 64 struct stat *stbuf[MAXENTRIES]; /* array of pointers to stat structs */ local 150 stbuf[i] = statptr; 164 (int)stbuf[i]->st_ino, NULL); 192 if (stbuf[i]->st_ino == 0) 206 if (stbuf[i]->st_ino != jobno) 216 (int)stbuf[i]->st_ino, owner); 217 stbuf[i]->st_ino = 0; 220 stbuf[i]->st_ino);
|
/original-bsd/old/vpr/ |
H A D | vpq.c | 14 struct stat stbuf; variable 99 if (stat(dirp->d_name, &stbuf) < 0) 132 if (stat(line+1, &stbuf) < 0) 133 stbuf.st_size = 0; 135 &(dirp->d_name[3]), stbuf.st_size, line+1);
|
/original-bsd/usr.bin/uucp/uucp/ |
H A D | uucp.c | 230 struct stat stbuf, stbuf1; local 258 if (stat(subfile(file1), &stbuf) != 0) { 265 && stbuf.st_ino == stbuf1.st_ino 266 && stbuf.st_dev == stbuf1.st_dev) { 276 if ((stbuf.st_mode & ANYREAD) == 0) { 278 file1, (int)stbuf.st_mode); 283 file2, (int)stbuf.st_mode); 327 if (stat(subfile(file1), &stbuf) != 0) { 336 if ((stbuf.st_mode & ANYREAD) == 0) { 338 file1, (int)stbuf.st_mode); [all …]
|
/original-bsd/lib/libc/gen/ |
H A D | genbuildname.c | 27 struct stat stbuf; local 33 (stat(objdir, &stbuf) < 0 || 34 (stbuf.st_mode & S_IFMT) != S_IFDIR)) {
|
/original-bsd/usr.bin/uucp/libuu/ |
H A D | uucpname.c | 48 struct stat stbuf; local 49 stbuf.st_uid = 0; /* In case the stat fails */ 50 stbuf.st_gid = 0; 51 stat(UUCICO, &stbuf); /* Assume uucico is correctly owned */ 52 setgid(stbuf.st_gid); 53 setuid(stbuf.st_uid);
|
/original-bsd/lib/libc/stdio/ |
H A D | filbuf.c | 20 struct stat stbuf; local 37 if (fstat(fileno(iop), &stbuf) < 0 || stbuf.st_blksize <= NULL) 40 size = stbuf.st_blksize;
|
/original-bsd/usr.bin/uucp/uuclean/ |
H A D | uuclean.c | 58 struct stat stbuf; local 109 if (stat(dentp->d_name, &stbuf) == -1) { 115 if ((stbuf.st_mode & S_IFMT) == S_IFDIR) 117 if ((ptime - stbuf.st_mtime) < nomtime) 124 sdmail(dentp->d_name, stbuf.st_uid);
|
/original-bsd/old/sdb/ |
H A D | main.c | 45 struct stat stbuf; local 76 if (stat(symfil, &stbuf) == -1) { 80 symtime = stbuf.st_mtime; 81 if (stat(corfil, &stbuf) != -1) { 82 if (symtime > stbuf.st_mtime)
|
/original-bsd/usr.bin/uucp/uusend/ |
H A D | uusend.c | 70 struct stat stbuf; variable 177 fstat(fileno(in), &stbuf); 178 mode = stbuf.st_mode & 0777; 251 if (stat(destname, &stbuf) == 0 && 252 (stbuf.st_mode & S_IFMT) == S_IFDIR && 273 if (stat(destname, &stbuf) == -1) {
|
/original-bsd/sbin/badsect/ |
H A D | badsect.c | 67 struct stat stbuf, devstat; local 76 if (chdir(argv[1]) < 0 || stat(".", &stbuf) < 0) { 91 if (stbuf.st_dev == devstat.st_rdev && 98 stbuf.st_rdev, argv[1]);
|
/original-bsd/usr.sbin/sendmail/src/ |
H A D | util.c | 441 struct stat stbuf; local 448 st = &stbuf; 457 if (stat(fn, &stbuf) < 0) 468 if (stbuf.st_uid == uid && 469 bitset(S_IXUSR, stbuf.st_mode)) 471 if (stbuf.st_gid == gid && 526 if (stat(fn, &stbuf) >= 0) 529 if (stbuf.st_uid != uid) 531 if ((stbuf.st_mode & md) != md) 537 fn, stbuf.st_uid, stbuf.st_mode, [all …]
|
/original-bsd/usr.sbin/chown/ |
H A D | chgrp.c | 25 struct stat stbuf; variable 87 if (lstat(argv[c], &stbuf)) { 91 if (uid && uid != stbuf.st_uid) { 95 if (rflag && ((stbuf.st_mode & S_IFMT) == S_IFDIR)) {
|
/original-bsd/usr.sbin/lpr/common_source/ |
H A D | common.c | 198 struct stat stbuf; variable 204 if (fstat(dirp->dd_fd, &stbuf) < 0) 211 arraysz = (stbuf.st_size / 24); 220 if (stat(d->d_name, &stbuf) < 0) 225 q->q_time = stbuf.st_mtime;
|
/original-bsd/games/adventure/ |
H A D | okplay.c | 36 int stbuf[30]; local 45 return(stat(np,stbuf) == 0);
|
/original-bsd/libexec/talkd/ |
H A D | announce.c | 44 struct stat stbuf; local 48 if (stat(full_tty, &stbuf) < 0 || (stbuf.st_mode&020) == 0)
|
/original-bsd/libexec/tftpd/ |
H A D | tftpd.c | 308 struct stat stbuf; local 336 if (stat(filename, &stbuf) < 0) 338 if ((stbuf.st_mode & S_IFMT) != S_IFREG) 341 if ((stbuf.st_mode & S_IROTH) == 0) 344 if ((stbuf.st_mode & S_IWOTH) == 0) 367 if (stat(pathname, &stbuf) == 0 && 368 (stbuf.st_mode & S_IFMT) == S_IFREG) { 369 if ((stbuf.st_mode & S_IROTH) != 0) {
|
/original-bsd/usr.bin/ex/ |
H A D | ex_io.c | 377 struct stat stbuf; local 402 if (fstat(io, &stbuf)) 404 switch (stbuf.st_mode & S_IFMT) { 412 if (samei(&stbuf, _PATH_DEVNULL)) 471 if ((stbuf.st_mode & 0222) == 0 || access(file, 2) < 0) { 635 struct stat stbuf; local 665 nonexist = stat(file, &stbuf); 692 if ((stbuf.st_mode & S_IFMT) == S_IFCHR) { 693 if (samei(&stbuf, _PATH_DEVNULL)) 695 if (samei(&stbuf, _PATH_TTY)) [all …]
|
/original-bsd/local/sccscmds/sccscmds.2/com/ |
H A D | dohist.c | 154 static char stbuf[STBUFSZ]; local 158 p = &stbuf[stind]; 159 if (&p[n] >= &stbuf[STBUFSZ])
|
/original-bsd/local/sccscmds/sccscmds.ok/com/ |
H A D | dohist.c | 154 static char stbuf[STBUFSZ]; local 158 p = &stbuf[stind]; 159 if (&p[n] >= &stbuf[STBUFSZ])
|