Home
last modified time | relevance | path

Searched refs:statbuf (Results 1 – 25 of 77) sorted by relevance

1234

/freebsd-10-stable/contrib/opie/libopie/
Dlock.c95 struct stat statbuf[2]; variable
118 if (lstat(__opie_lockfilename, &statbuf[0]) < 0)
121 if (statbuf[0].st_uid) {
128 if (!S_ISDIR(statbuf[0].st_mode)) {
135 if ((statbuf[0].st_mode & 0777) != 00700) {
147 if (!lstat(__opie_lockfilename, &statbuf[0]))
148 if (!S_ISREG(statbuf[0].st_mode))
152 if (lstat(__opie_lockfilename, &statbuf[1]) < 0)
154 if (statbuf[0].st_ino != statbuf[1].st_ino)
156 if (statbuf[0].st_mode != statbuf[1].st_mode)
[all …]
/freebsd-10-stable/contrib/binutils/binutils/
Drename.c99 set_times (const char *destination, const struct stat *statbuf) in set_times() argument
107 tb.actime = statbuf->st_atime; in set_times()
108 tb.modtime = statbuf->st_mtime; in set_times()
114 tb[0] = statbuf->st_atime; in set_times()
115 tb[1] = statbuf->st_mtime; in set_times()
120 tv[0].tv_sec = statbuf->st_atime; in set_times()
122 tv[1].tv_sec = statbuf->st_mtime; in set_times()
Dbucomm.c511 struct stat statbuf; in get_file_size() local
513 if (stat (file_name, &statbuf) < 0) in get_file_size()
521 else if (! S_ISREG (statbuf.st_mode)) in get_file_size()
524 return statbuf.st_size; in get_file_size()
/freebsd-10-stable/usr.sbin/cron/cron/
Ddatabase.c46 struct stat statbuf; local
67 if (stat(SPOOL_DIR, &statbuf) < OK) {
77 maxmtime = TMAX(statbuf.st_mtime, syscron_stat.st_mtime);
164 &statbuf, &new_db, old_db);
239 process_crontab(uname, fname, tabname, statbuf, new_db, old_db) in process_crontab() argument
243 struct stat *statbuf;
265 if (fstat(crontab_fd, statbuf) < OK) {
276 if (u->mtime == statbuf->st_mtime) {
297 u->mtime = statbuf->st_mtime;
/freebsd-10-stable/cddl/contrib/opensolaris/cmd/zinject/
Dtranslate.c88 struct stat64 *statbuf) in parse_pathname() argument
108 if (stat64(fullpath, statbuf) != 0) { in parse_pathname()
149 object_from_path(const char *dataset, const char *path, struct stat64 *statbuf, in object_from_path() argument
169 record->zi_object = statbuf->st_ino; in object_from_path()
320 struct stat64 statbuf; in translate_record() local
365 if (parse_pathname(object, dataset, path, &statbuf) != 0) in translate_record()
374 if (object_from_path(dataset, path, &statbuf, record) != 0) in translate_record()
/freebsd-10-stable/cddl/contrib/opensolaris/lib/libzfs/common/
Dlibzfs_import.c872 struct stat64 statbuf; in zpool_read_label() local
879 if (fstat64(fd, &statbuf) == -1) in zpool_read_label()
881 size = P2ALIGN_TYPED(statbuf.st_size, sizeof (vdev_label_t), uint64_t); in zpool_read_label()
1050 struct stat64 statbuf; in zpool_open_func() local
1066 if (fstat64(fd, &statbuf) != 0 || in zpool_open_func()
1067 (!S_ISREG(statbuf.st_mode) && in zpool_open_func()
1068 !S_ISCHR(statbuf.st_mode) && in zpool_open_func()
1069 !S_ISBLK(statbuf.st_mode))) { in zpool_open_func()
1075 if (S_ISREG(statbuf.st_mode) && in zpool_open_func()
1076 statbuf.st_size < SPA_MINDEVSIZE) { in zpool_open_func()
[all …]
/freebsd-10-stable/contrib/ncurses/ncurses/tinfo/
Dwrite_entry.c171 struct stat statbuf; in make_db_root()
173 if ((rc = stat(path, &statbuf)) < 0) { in make_db_root()
177 } else if (!(S_ISDIR(statbuf.st_mode))) { in make_db_root()
258 struct stat statbuf; in _nc_write_entry()
371 stat(filename, &statbuf) >= 0 in _nc_write_entry()
372 && statbuf.st_mtime >= start_time) { in _nc_write_entry()
380 if (stat(filename, &statbuf) < 0 in _nc_write_entry()
381 || (start_time = statbuf.st_mtime) == 0) { in _nc_write_entry()
409 } else if (stat(linkname, &statbuf) >= 0 && in _nc_write_entry()
410 statbuf.st_mtime < start_time) { in _nc_write_entry()
/freebsd-10-stable/cddl/contrib/opensolaris/cmd/zpool/
Dzpool_vdev.c420 struct stat64 statbuf; in make_leaf_vdev() local
436 if (!wholedisk && (stat64(arg, &statbuf) != 0)) { in make_leaf_vdev()
456 if (!wholedisk && (stat64(path, &statbuf) != 0)) { in make_leaf_vdev()
482 if (S_ISCHR(statbuf.st_mode)) { in make_leaf_vdev()
483 statbuf.st_mode &= ~S_IFCHR; in make_leaf_vdev()
484 statbuf.st_mode |= S_IFBLK; in make_leaf_vdev()
492 if (wholedisk || S_ISBLK(statbuf.st_mode)) { in make_leaf_vdev()
494 } else if (S_ISREG(statbuf.st_mode)) { in make_leaf_vdev()
519 if (S_ISBLK(statbuf.st_mode) && !wholedisk) { in make_leaf_vdev()
658 struct stat64 statbuf; in get_replication() local
[all …]
/freebsd-10-stable/sys/boot/ficl/
Dfileaccess.c145 struct stat statbuf; in ficlFileStatus() local
154 if (stat(filename, &statbuf) == 0) in ficlFileStatus()
161 stackPushINT(pVM->pStack, statbuf.st_mode); in ficlFileStatus()
184 struct stat statbuf; in fileSize() local
185 statbuf.st_size = -1; in fileSize()
186 if (fstat(fileno(f), &statbuf) != 0) in fileSize()
188 return statbuf.st_size; in fileSize()
/freebsd-10-stable/contrib/less/
Dfilename.c990 struct stat statbuf; local
992 r = stat(filename, &statbuf);
993 isdir = (r >= 0 && S_ISDIR(statbuf.st_mode));
1033 struct stat statbuf; local
1035 r = stat(filename, &statbuf);
1042 } else if (!S_ISREG(statbuf.st_mode))
1064 struct stat statbuf; local
1066 if (fstat(f, &statbuf) >= 0)
1067 return ((POSITION) statbuf.st_size);
Dedit.c454 struct stat statbuf; local
455 int r = stat(open_filename, &statbuf);
458 curr_ino = statbuf.st_ino;
459 curr_dev = statbuf.st_dev;
/freebsd-10-stable/usr.sbin/cron/crontab/
Dcrontab.c324 struct stat statbuf, fsbuf; local
374 if (stat(Filename, &statbuf) < 0) {
381 if (statbuf.st_dev != fsbuf.st_dev || statbuf.st_ino != fsbuf.st_ino)
448 if (stat(Filename, &statbuf) < 0) {
452 if (statbuf.st_dev != fsbuf.st_dev || statbuf.st_ino != fsbuf.st_ino)
/freebsd-10-stable/contrib/binutils/bfd/
Dtrad-core.c112 struct stat statbuf; local
114 if (bfd_stat (abfd, &statbuf) < 0)
122 > (ufile_ptr) statbuf.st_size)
134 < (ufile_ptr) statbuf.st_size)
Dbinary.c64 struct stat statbuf; in binary_object_p() local
77 if (bfd_stat (abfd, &statbuf) < 0) in binary_object_p()
89 sec->size = statbuf.st_size; in binary_object_p()
Dsco5-core.c129 struct stat statbuf; local
131 if (bfd_stat (abfd, &statbuf) < 0)
134 coresize = statbuf.st_size;
Drs6000-core.c311 struct stat statbuf; in rs6000coff_core_p() local
369 if (bfd_stat (abfd, &statbuf) < 0) in rs6000coff_core_p()
408 if (c_stack + (file_ptr) c_size != statbuf.st_size) in rs6000coff_core_p()
417 c_loader >= statbuf.st_size || in rs6000coff_core_p()
Dppcboot.c148 struct stat statbuf; local
164 if (bfd_stat (abfd, &statbuf) < 0)
170 if ((size_t) statbuf.st_size < sizeof (ppcboot_hdr_t))
213 sec->size = statbuf.st_size - sizeof (ppcboot_hdr_t);
/freebsd-10-stable/usr.sbin/ypserv/
Dyp_access.c319 struct stat statbuf; local
329 if (stat(dompath, &statbuf) < 0 || !S_ISDIR(statbuf.st_mode))
/freebsd-10-stable/tools/regression/fsx/
Dfsx.c419 struct stat statbuf; in check_size() local
422 if (fstat(fd, &statbuf)) { in check_size()
424 statbuf.st_size = -1; in check_size()
427 if (file_size != statbuf.st_size || file_size != size_by_seek) { in check_size()
430 (unsigned long long)statbuf.st_size, in check_size()
440 struct stat statbuf; in check_trunc_hack() local
444 fstat(fd, &statbuf); in check_trunc_hack()
445 if (statbuf.st_size != (off_t)100000) { in check_trunc_hack()
/freebsd-10-stable/contrib/mtree/
Dverify.c186 struct stat statbuf; in miss() local
188 if (qflag && stat(path, &statbuf) == 0 && in miss()
189 S_ISDIR(statbuf.st_mode)) in miss()
/freebsd-10-stable/contrib/binutils/gas/
Dhash.c443 int statbuf[STATBUFSIZE]; variable
545 hash_say (h, statbuf, STATBUFSIZE); in main()
546 for (ip = statbuf; ip < statbuf + STATBUFSIZE; ip++) in main()
/freebsd-10-stable/usr.bin/fstat/
Dfstat.c543 struct stat statbuf; in getfname() local
546 if (stat(filename, &statbuf)) { in getfname()
555 cur->ino = statbuf.st_ino; in getfname()
556 cur->fsid = statbuf.st_dev; in getfname()
/freebsd-10-stable/contrib/file/
DMAINT32 (handles statbuf modes for DEV)
33 (handles statbuf modes for executable &c.
/freebsd-10-stable/contrib/llvm/lib/Support/
Draw_ostream.cpp582 struct stat statbuf; in preferred_buffer_size() local
583 if (fstat(FD, &statbuf) != 0) in preferred_buffer_size()
589 if (S_ISCHR(statbuf.st_mode) && isatty(FD)) in preferred_buffer_size()
592 return statbuf.st_blksize; in preferred_buffer_size()
/freebsd-10-stable/contrib/sendmail/src/
Dmci.c1136 struct stat statbuf; variable
1148 ret = stat(pathname, &statbuf);
1156 if (S_ISDIR(statbuf.st_mode))
1258 else if (S_ISREG(statbuf.st_mode))
1419 struct stat statbuf; local
1426 ret = stat(pathname, &statbuf);
1434 if (curtime() - statbuf.st_mtime <= MciInfoTimeout)

1234