/original-bsd/usr.sbin/amd/amd/ |
H A D | info_ndbm.c | 59 struct stat stb; local 61 error = fstat(dbm_pagfno(db), &stb); 62 if (!error && *tp < stb.st_mtime) { 63 *tp = stb.st_mtime; 84 struct stat stb; local 86 if (fstat(dbm_pagfno(db), &stb) < 0) 89 *tp = stb.st_mtime;
|
H A D | mount_fs.c | 96 struct stat stb; local 148 if (lstat(mnt->mnt_dir, &stb) == 0) { 151 if (sizeof(stb.st_dev) == 2) { 154 MNTINFO_PREF, (u_long) stb.st_dev & 0xffff); 158 MNTINFO_PREF, (u_long) stb.st_dev);
|
H A D | sfs_ops.c | 91 struct stat stb; local 104 if (lstat(ln, &stb) < 0)
|
H A D | util.c | 528 struct stat stb; local 577 return stat(path, &stb) == 0 && 578 (stb.st_mode & S_IFMT) == S_IFDIR ? 0 : error_so_far; 595 struct stat stb; local 601 if (stat(xdp, &stb) == 0 && (stb.st_mode & 0200) == 0) {
|
/original-bsd/usr.bin/rdist/ |
H A D | server.c | 279 struct stat stb; local 298 if ((stb.st_mode & S_IFMT) == S_IFREG && stb.st_nlink > 1) 393 stb.st_mode & 07777, stb.st_size, stb.st_mtime, 446 stb.st_mode & 07777, stb.st_size, stb.st_mtime, 630 struct stat stb; local 646 (void) sprintf(buf, "Y%qd %ld\n", stb.st_size, stb.st_mtime); 671 struct stat stb; local 920 struct stat stb; local 978 struct stat stb; local 1070 struct stat stb; local [all …]
|
H A D | docmd.c | 322 struct stat stb; local 331 if (stat(stamp, &stb) < 0) { 336 printf("%s: %ld\n", stamp, stb.st_mtime); 339 lastmod = stb.st_mtime; 380 struct stat stb; local 408 switch (stb.st_mode & S_IFMT) { 413 rcmptime(&stb); 421 if (stb.st_mtime > lastmod) 476 struct stat stb; local 494 if (fstat(fd, &stb) < 0) { [all …]
|
H A D | expand.c | 235 struct stat stb; local 241 if (!expany || stat(path, &stb) >= 0) { 271 struct stat stb; local 281 if (fstat(dirp->dd_fd, &stb) < 0) 283 if (!ISDIR(stb.st_mode)) { 413 struct stat stb; local 480 if (stat(path, &stb) == 0 && ISDIR(stb.st_mode))
|
/original-bsd/bin/rcp/ |
H A D | util.c | 48 struct stat stb; local 50 if (!stat(cp, &stb)) { 51 if (S_ISDIR(stb.st_mode)) 113 struct stat stb; local 116 if (fstat(fd, &stb) < 0) { 120 size = roundup(stb.st_blksize, blksize);
|
H A D | rcp.c | 368 struct stat stb; local 379 if (fstat(fd, &stb)) { 388 rsource(name, &stb); 406 stb.st_mtimespec.ts_sec, stb.st_atimespec.ts_sec); 413 stb.st_mode & MODEMASK, stb.st_size, last); 425 if (i + amt > stb.st_size) 426 amt = stb.st_size - i; 508 struct stat stb; local 533 if (stat(targ, &stb) == 0 && S_ISDIR(stb.st_mode)) 627 exists = stat(np, &stb) == 0; [all …]
|
/original-bsd/lib/libc/gen/ |
H A D | scandir.c | 45 struct stat stb; local 51 if (fstat(dirp->dd_fd, &stb) < 0) 58 arraysz = (stb.st_size / 24); 82 if (fstat(dirp->dd_fd, &stb) < 0) 84 arraysz = stb.st_size / 12;
|
/original-bsd/usr.sbin/lpr/lpd/ |
H A D | printjob.c | 111 struct stat stb; in printjob() local 142 if (stat(LO, &stb) == 0 && (stb.st_mode & 0100)) in printjob() 206 if (stb.st_mode & 0100) in printjob() 489 struct stat stb; local 498 if ((stb.st_mode & S_IFMT) == S_IFLNK && fstat(fi, &stb) == 0 && 499 (stb.st_dev != fdev || stb.st_ino != fino)) 801 struct stat stb; local 812 if ((stb.st_mode & S_IFMT) == S_IFLNK && fstat(f, &stb) == 0 && 813 (stb.st_dev != fdev || stb.st_ino != fino)) 1007 struct stat stb; local [all …]
|
H A D | recvjob.c | 59 struct stat stb; in recvjob() local 87 if (stat(LO, &stb) == 0) { in recvjob() 88 if (stb.st_mode & 010) { in recvjob() 93 } else if (stat(SD, &stb) < 0) in recvjob()
|
/original-bsd/usr.sbin/lpr/common_source/ |
H A D | aux.c | 301 struct stat stb; local 313 if (stat(".", &stb) < 0) { 317 ddev = find_dev(stb.st_dev, S_IFBLK); 344 struct stat stb; local 359 if (stat(devname, &stb)) 361 if ((stb.st_mode & S_IFMT) != type) 363 if (dev == stb.st_rdev) {
|
/original-bsd/sys/miscfs/fdesc/ |
H A D | fdesc_vnops.c | 307 struct stat stb; local 330 vap->va_mode = stb.st_mode; 331 vap->va_nlink = stb.st_nlink; 332 vap->va_uid = stb.st_uid; 333 vap->va_gid = stb.st_gid; 334 vap->va_fsid = stb.st_dev; 335 vap->va_fileid = stb.st_ino; 336 vap->va_size = stb.st_size; 341 vap->va_gen = stb.st_gen; 343 vap->va_rdev = stb.st_rdev; [all …]
|
/original-bsd/old/vpr/vtools/ |
H A D | rotprt.c | 28 struct stat stb; local 44 fstat(0, &stb); 45 size = stb.st_size - tell(0);
|
H A D | rotate.c | 28 struct stat stb; local 52 fstat(0, &stb); 53 size = stb.st_size - tell(0);
|
/original-bsd/usr.bin/ftp/ |
H A D | ruserpass.c | 59 struct stat stb; local 122 fstat(fileno(cfile), &stb) >= 0 && 123 (stb.st_mode & 077) != 0) { 134 if (fstat(fileno(cfile), &stb) >= 0 135 && (stb.st_mode & 077) != 0) {
|
/original-bsd/old/prmail/ |
H A D | prmail.c | 58 struct stat stb; local 61 if (stat(user, &stb) < 0) {
|
/original-bsd/usr.bin/make/ |
H A D | dir.c | 645 struct stat stb; /* Buffer for stat, if necessary */ local 796 if (stat (file, &stb) == 0) { 823 printf("Caching %s for %s\n", Targ_FmtTime(stb.st_mtime), 828 Hash_SetValue(entry, (long)stb.st_mtime); 900 } else if (stat (name, &stb) == 0) { 903 printf("Caching %s for %s\n", Targ_FmtTime(stb.st_mtime), 906 Hash_SetValue(entry, (long)stb.st_mtime); 964 stb.st_mtime = (time_t)(long)Hash_GetValue(entry); 966 } else if (stat (fullName, &stb) < 0) { 972 stb.st_mtime = 0; [all …]
|
/original-bsd/usr.bin/pascal/src/ |
H A D | subr.c | 49 struct stat stb; local 51 stat(filename, &stb); 52 tvec = stb.st_mtime;
|
/original-bsd/usr.sbin/rwhod/ |
H A D | rwhod.c | 243 struct stat stb; local 252 (void) fstat(utmpf, &stb); 253 if ((stb.st_mtime != utmptime) || (stb.st_size > utmpsize)) { 254 utmptime = stb.st_mtime; 255 if (stb.st_size > utmpsize) { 256 utmpsize = stb.st_size + 10 * sizeof(struct utmp); 268 cc = read(utmpf, (char *)utmp, stb.st_size); 301 if (stat(we->we_utmp.out_line, &stb) >= 0) 302 we->we_idle = htonl(now - stb.st_atime);
|
/original-bsd/bin/csh/ |
H A D | exp.c | 473 struct stat stb; local 484 if (isa(**vp, ANYOP) && stat(short2str(**vp), &stb)) 508 cp[1] == 'l' ? lstat(short2str(ep), &stb) : 510 stat(short2str(ep), &stb)) { 517 i = S_ISREG(stb.st_mode); 521 i = S_ISDIR(stb.st_mode); 526 i = S_ISFIFO(stb.st_mode); 534 i = S_ISLNK(stb.st_mode); 542 i = S_ISSOCK(stb.st_mode); 549 i = stb.st_size == 0; [all …]
|
H A D | csh.c | 681 struct stat stb; local 683 if (fstat(unit, &stb) < 0) { 1140 struct stat stb; in mailchk() local 1155 if (stat(short2str(*vp), &stb) < 0) in mailchk() 1157 new = stb.st_mtime > time0.tv_sec; in mailchk() 1158 if (stb.st_size == 0 || stb.st_atime > stb.st_mtime || in mailchk() 1159 (stb.st_atime < chktim && stb.st_mtime < chktim) || in mailchk() 1302 struct stat stb; in defaultpath() local 1307 if (stat(ptr = a, &stb) == 0 && (stb.st_mode & S_IFMT) == S_IFDIR) \ in defaultpath()
|
/original-bsd/lib/libc/sparc/string/ |
H A D | bzero.s | 57 stb %g0, [%o0 + %o1] ! addr[len] = 0; 69 stb %g0, [%o0] ! *addr = 0; 116 stb %g0, [%o0] ! *addr = 0;
|
/original-bsd/sys/sparc/sparc/ |
H A D | bsd_audiointr.s | 103 stb %l6, [R_cb + %l7] ! store sample in buffer 124 stb %l6, [%l7 + %lo(INTREG_ADDR)] ! set software interrupt 155 stb %l6, [R_amd + AMD_BBTB] ! output sample to device 171 stb %l6, [%l7 + %lo(INTREG_ADDR)]
|