| /openbsd-src/usr.sbin/cron/ |
| H A D | database.c | 50 struct stat statbuf, syscron_stat; in load_database() local 61 if (stat(_PATH_CRON_SPOOL, &statbuf) == -1) { in load_database() 74 HASH(statbuf.st_mtim.tv_sec, syscron_stat.st_mtim.tv_sec); in load_database() 76 HASH(statbuf.st_mtim.tv_nsec, syscron_stat.st_mtim.tv_nsec); in load_database() 129 &statbuf, new_db, old_db); in load_database() 170 struct stat *statbuf, cron_db *new_db, cron_db *old_db) in process_crontab() argument 199 if (fstat(fileno(crontab_fp), statbuf) == -1) { in process_crontab() 203 if (!S_ISREG(statbuf->st_mode)) { in process_crontab() 210 if ((statbuf->st_mode & tabmask) != tabperm) { in process_crontab() 214 if (statbuf->st_uid != 0 && (pw == NULL || in process_crontab() [all …]
|
| H A D | crontab.c | 262 struct stat statbuf, xstatbuf; in edit_cmd() local 276 if (fstat(fileno(f), &statbuf) == -1) { in edit_cmd() 280 ts[0] = statbuf.st_atim; in edit_cmd() 281 ts[1] = statbuf.st_mtim; in edit_cmd() 332 if (fstat(t, &statbuf) == -1) { in edit_cmd() 336 if (timespeccmp(&ts[1], &statbuf.st_mtim, ==)) { in edit_cmd() 338 statbuf.st_ino != xstatbuf.st_ino) { in edit_cmd()
|
| /openbsd-src/usr.bin/rdistd/ |
| H A D | filesys.c | 53 find_file(char *pathname, struct stat *statbuf, int *isvalid) in find_file() argument 72 if (statbuf) in find_file() 73 statbuf = &filestat; in find_file() 133 if (statbuf) in find_file() 134 bcopy(&filestat, statbuf, sizeof(filestat)); in find_file() 284 getmntpt(char *pathname, struct stat *statbuf, int *isvalid) in getmntpt() argument 295 if (statbuf) in getmntpt() 296 pstat = statbuf; in getmntpt() 334 is_nfs_mounted(char *path, struct stat *statbuf, int *isvalid) in is_nfs_mounted() argument 338 if ((mnt = getmntpt(path, statbuf, isvalid)) == NULL) in is_nfs_mounted() [all …]
|
| /openbsd-src/gnu/usr.sbin/mkhybrid/src/ |
| H A D | tree.c | 1033 struct stat statbuf, lstatbuf; local 1043 status = stat_filter(whole_path, &statbuf); 1058 root_statbuf = statbuf; /* Save this for later on */ 1063 statbuf = root_statbuf; 1081 statbuf.st_size = 0; 1082 STAT_INODE(statbuf) = UNCACHED_INODE; 1083 statbuf.st_dev = (dev_t) UNCACHED_DEVICE; 1084 statbuf.st_mode = (statbuf.st_mode & ~S_IFMT) | S_IFREG; 1111 && S_ISDIR(statbuf.st_mode) ) 1116 if(find_directory_hash(statbuf.st_dev, STAT_INODE(statbuf))) [all …]
|
| /openbsd-src/gnu/usr.bin/cvs/lib/ |
| H A D | mkdir.c | 44 struct stat statbuf; local 46 if (stat (dpath, &statbuf) == 0) 93 struct stat statbuf; local 95 if (stat (dpath, &statbuf) != 0) 98 if ((statbuf.st_mode & S_IFMT) != S_IFDIR)
|
| /openbsd-src/gnu/usr.bin/binutils/binutils/ |
| H A D | rename.c | 96 set_times (const char *destination, const struct stat *statbuf) in set_times() argument 104 tb.actime = statbuf->st_atime; in set_times() 105 tb.modtime = statbuf->st_mtime; in set_times() 111 tb[0] = statbuf->st_atime; in set_times() 112 tb[1] = statbuf->st_mtime; in set_times() 117 tv[0].tv_sec = statbuf->st_atime; in set_times() 119 tv[1].tv_sec = statbuf->st_mtime; in set_times()
|
| /openbsd-src/gnu/usr.bin/binutils-2.17/binutils/ |
| H A D | rename.c | 98 set_times (const char *destination, const struct stat *statbuf) in set_times() argument 106 tb.actime = statbuf->st_atime; in set_times() 107 tb.modtime = statbuf->st_mtime; in set_times() 113 tb[0] = statbuf->st_atime; in set_times() 114 tb[1] = statbuf->st_mtime; in set_times() 119 tv[0].tv_sec = statbuf->st_atime; in set_times() 121 tv[1].tv_sec = statbuf->st_mtime; in set_times()
|
| /openbsd-src/gnu/usr.bin/binutils-2.17/bfd/ |
| H A D | aix5ppc-core.c | 52 struct stat statbuf; in xcoff64_core_p() local 68 if (bfd_stat (abfd, &statbuf) < 0) in xcoff64_core_p() 87 || ((CHECK_FILE_OFFSET (statbuf, core.c_fdsinfox))) in xcoff64_core_p() 88 || ((CHECK_FILE_OFFSET (statbuf, core.c_loader))) in xcoff64_core_p() 89 || ((CHECK_FILE_OFFSET (statbuf, core.c_loader + core.c_lsize))) in xcoff64_core_p() 90 || ((CHECK_FILE_OFFSET (statbuf, core.c_thr))) in xcoff64_core_p() 91 || ((CHECK_FILE_OFFSET (statbuf, core.c_segregion))) in xcoff64_core_p() 92 || ((CHECK_FILE_OFFSET (statbuf, core.c_stack))) in xcoff64_core_p() 93 || ((CHECK_FILE_OFFSET (statbuf, core.c_stack + core.c_size))) in xcoff64_core_p() 94 || ((CHECK_FILE_OFFSET (statbuf, core.c_data))) in xcoff64_core_p() [all …]
|
| H A D | hppabsd-core.c | 139 struct stat statbuf; local 141 if (bfd_stat (abfd, &statbuf) < 0) 144 if (NBPG * (UPAGES + u.u_dsize + u.u_ssize) > statbuf.st_size) 149 if (clicksz * (UPAGES + u.u_dsize + u.u_ssize) < statbuf.st_size)
|
| H A D | trad-core.c | 111 struct stat statbuf; local 113 if (bfd_stat (abfd, &statbuf) < 0) 121 > (unsigned long) statbuf.st_size) 133 < (unsigned long) statbuf.st_size)
|
| /openbsd-src/gnu/usr.bin/binutils/bfd/ |
| H A D | aix5ppc-core.c | 57 struct stat statbuf; local 73 if (bfd_stat (abfd, &statbuf) < 0) 92 || ((CHECK_FILE_OFFSET (statbuf, core.c_fdsinfox))) 93 || ((CHECK_FILE_OFFSET (statbuf, core.c_loader))) 94 || ((CHECK_FILE_OFFSET (statbuf, core.c_loader + core.c_lsize))) 95 || ((CHECK_FILE_OFFSET (statbuf, core.c_thr))) 96 || ((CHECK_FILE_OFFSET (statbuf, core.c_segregion))) 97 || ((CHECK_FILE_OFFSET (statbuf, core.c_stack))) 98 || ((CHECK_FILE_OFFSET (statbuf, core.c_stack + core.c_size))) 99 || ((CHECK_FILE_OFFSET (statbuf, core.c_data))) [all …]
|
| H A D | hppabsd-core.c | 141 struct stat statbuf; local 142 if (stream == NULL || fstat (fileno (stream), &statbuf) < 0) 147 if (NBPG * (UPAGES + u.u_dsize + u.u_ssize) > statbuf.st_size) 152 if (clicksz * (UPAGES + u.u_dsize + u.u_ssize) < statbuf.st_size)
|
| H A D | trad-core.c | 113 struct stat statbuf; local 116 if (fstat (fileno (stream), &statbuf) < 0) 126 > (unsigned long) statbuf.st_size) 138 < (unsigned long) statbuf.st_size)
|
| /openbsd-src/usr.bin/less/ |
| H A D | filename.c | 449 struct stat statbuf; in is_dir() local 453 r = stat(filename, &statbuf); in is_dir() 454 isdir = (r >= 0 && S_ISDIR(statbuf.st_mode)); in is_dir() 474 struct stat statbuf; in bad_file() local 476 r = stat(filename, &statbuf); in bad_file() 481 } else if (!S_ISREG(statbuf.st_mode)) { in bad_file() 496 struct stat statbuf; in filesize() local 498 if (fstat(f, &statbuf) >= 0) in filesize() 499 return (statbuf.st_size); in filesize()
|
| /openbsd-src/gnu/usr.bin/perl/dist/PathTools/ |
| H A D | Cwd.xs | 318 Stat_t statbuf; in Perl_getcwd_sv() 326 if (PerlLIO_lstat(".", &statbuf) < 0) { in Perl_getcwd_sv() 330 orig_cdev = statbuf.st_dev; in Perl_getcwd_sv() 331 orig_cino = statbuf.st_ino; in Perl_getcwd_sv() 342 if (PerlLIO_stat(".", &statbuf) < 0) { in Perl_getcwd_sv() 346 cdev = statbuf.st_dev; in Perl_getcwd_sv() 347 cino = statbuf.st_ino; in Perl_getcwd_sv() 367 if (PerlLIO_lstat(dp->d_name, &statbuf) < 0) { in Perl_getcwd_sv() 371 tdev = statbuf.st_dev; in Perl_getcwd_sv() 372 tino = statbuf in Perl_getcwd_sv() 319 Stat_t statbuf; Perl_getcwd_sv() local [all...] |
| /openbsd-src/sys/arch/alpha/stand/ |
| H A D | installboot.c | 242 struct stat statbuf; in loadprotoblocks() local 252 if (fstat(fd, &statbuf) != 0) { in loadprotoblocks() 257 sz = roundup(statbuf.st_size, DEV_BSIZE); in loadprotoblocks() 263 if (read(fd, bp, statbuf.st_size) != statbuf.st_size) { in loadprotoblocks() 321 struct stat statbuf; in loadblocknums() local 373 if (fstat(fd, &statbuf) != 0) in loadblocknums() 385 blk = fsbtodb(fs, ino_to_fsba(fs, statbuf.st_ino)); in loadblocknums() 389 statbuf.st_ino); in loadblocknums() 393 statbuf.st_ino); in loadblocknums()
|
| /openbsd-src/regress/lib/libpthread/stdio/ |
| H A D | stdio.c | 51 struct stat statbuf; in test_1() local 55 CHECKe(stat(fullname, &statbuf)); in test_1() 63 ASSERT(ftell(fp) == statbuf.st_size); in test_1()
|
| /openbsd-src/lib/libskey/ |
| H A D | skeylogin.c | 97 struct stat statbuf; in skeygetent() local 103 if (stat(_PATH_SKEYDIR, &statbuf) != 0) in skeygetent() 105 if ((statbuf.st_mode & ALLPERMS) == 0) { in skeygetent() 126 if (flock(fd, LOCK_EX) != 0 || fstat(fd, &statbuf) != 0) { in skeygetent() 130 if (statbuf.st_size == 0) in skeygetent() 134 if ((statbuf.st_mode & ALLPERMS) != (S_IRUSR | S_IWUSR) || in skeygetent() 135 !S_ISREG(statbuf.st_mode) || statbuf.st_nlink != 1 || in skeygetent()
|
| /openbsd-src/gnu/llvm/compiler-rt/include/sanitizer/ |
| H A D | linux_syscall_hooks.h | 477 #define __sanitizer_syscall_pre_stat(filename, statbuf) \ argument 478 __sanitizer_syscall_pre_impl_stat((long)(filename), (long)(statbuf)) 479 #define __sanitizer_syscall_post_stat(res, filename, statbuf) \ argument 480 __sanitizer_syscall_post_impl_stat(res, (long)(filename), (long)(statbuf)) 499 #define __sanitizer_syscall_pre_lstat(filename, statbuf) \ argument 500 __sanitizer_syscall_pre_impl_lstat((long)(filename), (long)(statbuf)) 501 #define __sanitizer_syscall_post_lstat(res, filename, statbuf) \ argument 502 __sanitizer_syscall_post_impl_lstat(res, (long)(filename), (long)(statbuf)) 503 #define __sanitizer_syscall_pre_fstat(fd, statbuf) \ argument 504 __sanitizer_syscall_pre_impl_fstat((long)(fd), (long)(statbuf)) [all …]
|
| /openbsd-src/lib/libcurses/tinfo/ |
| H A D | write_entry.c | 201 struct stat statbuf; in make_db_root() 203 if ((rc = stat(path, &statbuf)) == -1) { in make_db_root() 211 } else if (!(S_ISDIR(statbuf.st_mode))) { in make_db_root() 299 struct stat statbuf; in _nc_write_entry() 436 stat(filename, &statbuf) >= 0 in _nc_write_entry() 437 && statbuf.st_mtime >= start_time) { in _nc_write_entry() 445 if (statbuf.st_nlink > 1) { in _nc_write_entry() 460 if (stat(filename, &statbuf) == -1 in _nc_write_entry() 461 || (start_time = statbuf.st_mtime) == 0) { in _nc_write_entry() 492 else if (stat(linkname, &statbuf) >= 0 && in _nc_write_entry() [all …]
|
| /openbsd-src/gnu/usr.bin/perl/ |
| H A D | doio.c | 993 Stat_t statbuf; in S_openn_cleanup() 997 Zero(&statbuf, 1, Stat_t); in S_openn_cleanup() 1035 if (PerlLIO_fstat(fd,&statbuf) < 0) { in S_openn_cleanup() 1040 if (S_ISSOCK(statbuf.st_mode)) in S_openn_cleanup() 1044 !(statbuf.st_mode & S_IFMT) in S_openn_cleanup() 1140 || (IoTYPE(io) == IoTYPE_WRONLY && fd >= 0 && S_ISCHR(statbuf.st_mode)) ) { in S_openn_cleanup() 1154 *statbufp = statbuf; in S_openn_cleanup() 1454 Stat_t statbuf; in Perl_nextargv() 1459 if (do_open_raw(gv, PL_oldname, oldlen, O_RDONLY, 0, &statbuf)) { in Perl_nextargv() 1480 filedev = statbuf in Perl_nextargv() 989 Stat_t statbuf; S_openn_cleanup() local 1411 Stat_t statbuf; Perl_nextargv() local 1539 Stat_t statbuf; Perl_nextargv() local 1594 Stat_t statbuf; S_dir_unchanged() local 2780 Stat_t statbuf; Perl_apply() local [all...] |
| /openbsd-src/usr.bin/mg/ |
| H A D | fileio.c | 531 struct stat statbuf; in make_file_list() local 533 if (fstatat(dirfd(dirp), dent->d_name, &statbuf, 0) < 0) in make_file_list() 535 if (S_ISDIR(statbuf.st_mode)) in make_file_list() 566 struct stat statbuf; in fisdir() local 568 if (stat(fname, &statbuf) != 0) in fisdir() 571 if (S_ISDIR(statbuf.st_mode)) in fisdir() 706 struct stat statbuf; in expandtilde() local 714 if (fn[0] != '~' || stat(fn, &statbuf) == 0) { in expandtilde()
|
| H A D | file.c | 199 struct stat statbuf; in readin() local 252 if (stat(dp, &statbuf) == -1 && errno == ENOENT) { in readin() 508 struct stat statbuf; in filewrite() local 527 if (stat(adjfname, &statbuf) == 0) { in filewrite() 528 if (S_ISDIR(statbuf.st_mode)) { in filewrite() 664 struct stat statbuf; in writeout() local 669 if (stat(fn, &statbuf) == -1 && errno == ENOENT) { in writeout()
|
| /openbsd-src/gnu/gcc/gcc/config/alpha/ |
| H A D | vms-ld.c | 242 struct stat statbuf; in is_regular_file() local 244 ret = stat (name, &statbuf); in is_regular_file() 245 return !ret && S_ISREG (statbuf.st_mode); in is_regular_file() 482 struct stat statbuf; in main() local 486 if (stat (&argv[i][1], &statbuf)) in main() 493 buff = xmalloc (statbuf.st_size + 1); in main() 495 fgets (buff, statbuf.st_size + 1, atfile); in main()
|
| /openbsd-src/gnu/usr.bin/gcc/gcc/config/alpha/ |
| H A D | vms-ld.c | 245 struct stat statbuf; local 247 ret = stat (name, &statbuf); 248 return !ret && S_ISREG (statbuf.st_mode); 491 struct stat statbuf; local 495 if (stat (&argv[i][1], &statbuf)) 502 buff = xmalloc (statbuf.st_size + 1); 504 fgets (buff, statbuf.st_size + 1, atfile);
|