Searched refs:statbuf (Results 1 - 25 of 71) sorted by relevance

123

/freebsd-10.1-release/contrib/opie/libopie/
H A Dlock.c95 struct stat statbuf[2]; local
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[
[all...]
/freebsd-10.1-release/contrib/binutils/binutils/
H A Drename.c99 set_times (const char *destination, const struct stat *statbuf) argument
107 tb.actime = statbuf->st_atime;
108 tb.modtime = statbuf->st_mtime;
114 tb[0] = statbuf->st_atime;
115 tb[1] = statbuf->st_mtime;
120 tv[0].tv_sec = statbuf->st_atime;
122 tv[1].tv_sec = statbuf->st_mtime;
H A Dbucomm.c515 struct stat statbuf;
517 if (stat (file_name, &statbuf) < 0)
525 else if (! S_ISREG (statbuf.st_mode))
528 return statbuf.st_size;
511 struct stat statbuf; local
H A Dstrings.c107 typedef struct stat64 statbuf;
110 typedef struct stat statbuf;
433 statbuf st;
106 typedef struct stat64 statbuf; typedef in typeref:struct:stat64
109 typedef struct stat statbuf; typedef in typeref:struct:stat
/freebsd-10.1-release/usr.sbin/cron/cron/
H A Ddatabase.c46 struct stat statbuf; local
58 if (stat(SPOOL_DIR, &statbuf) < OK) {
75 if (old_db->mtime == TMAX(statbuf.st_mtime, syscron_stat.st_mtime)) {
86 new_db.mtime = TMAX(statbuf.st_mtime, syscron_stat.st_mtime);
121 &statbuf, &new_db, old_db);
196 process_crontab(uname, fname, tabname, statbuf, new_db, old_db)
200 struct stat *statbuf;
222 if (fstat(crontab_fd, statbuf) < OK) {
233 if (u->mtime == statbuf->st_mtime) {
254 u->mtime = statbuf
[all...]
/freebsd-10.1-release/cddl/contrib/opensolaris/cmd/zinject/
H A Dtranslate.c88 struct stat64 *statbuf)
108 if (stat64(fullpath, statbuf) != 0) {
149 object_from_path(const char *dataset, const char *path, struct stat64 *statbuf, argument
169 record->zi_object = statbuf->st_ino;
320 struct stat64 statbuf; local
365 if (parse_pathname(object, dataset, path, &statbuf) != 0)
374 if (object_from_path(dataset, path, &statbuf, record) != 0)
87 parse_pathname(const char *inpath, char *dataset, char *relpath, struct stat64 *statbuf) argument
/freebsd-10.1-release/cddl/contrib/opensolaris/lib/libzfs/common/
H A Dlibzfs_import.c865 struct stat64 statbuf; local
872 if (fstat64(fd, &statbuf) == -1)
874 size = P2ALIGN_TYPED(statbuf.st_size, sizeof (vdev_label_t), uint64_t);
1042 struct stat64 statbuf; local
1058 if (fstat64(fd, &statbuf) != 0 ||
1059 (!S_ISREG(statbuf.st_mode) &&
1060 !S_ISCHR(statbuf.st_mode) &&
1061 !S_ISBLK(statbuf.st_mode))) {
1067 if (S_ISREG(statbuf.st_mode) &&
1068 statbuf
1107 struct stat64 statbuf; local
1366 struct stat64 statbuf; local
[all...]
/freebsd-10.1-release/contrib/binutils/bfd/
H A 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)
H A Dbinary.c64 struct stat statbuf; local
77 if (bfd_stat (abfd, &statbuf) < 0)
89 sec->size = statbuf.st_size;
H A Dsco5-core.c129 struct stat statbuf; local
131 if (bfd_stat (abfd, &statbuf) < 0)
134 coresize = statbuf.st_size;
H A Dppcboot.c151 struct stat statbuf;
167 if (bfd_stat (abfd, &statbuf) < 0)
173 if ((size_t) statbuf.st_size < sizeof (ppcboot_hdr_t))
216 sec->size = statbuf.st_size - sizeof (ppcboot_hdr_t);
148 struct stat statbuf; local
H A Dbfdio.c242 bfd_stat (bfd *abfd, struct stat *statbuf) argument
250 result = abfd->iovec->bstat (abfd, statbuf);
/freebsd-10.1-release/sys/boot/ficl/
H A Dfileaccess.c145 struct stat statbuf; local
154 if (stat(filename, &statbuf) == 0)
161 stackPushINT(pVM->pStack, statbuf.st_mode);
184 struct stat statbuf; local
185 statbuf.st_size = -1;
186 if (fstat(fileno(f), &statbuf) != 0)
188 return statbuf.st_size;
/freebsd-10.1-release/usr.sbin/cron/crontab/
H A Dcrontab.c319 struct stat statbuf, fsbuf; local
369 if (stat(Filename, &statbuf) < 0) {
376 if (statbuf.st_dev != fsbuf.st_dev || statbuf.st_ino != fsbuf.st_ino)
443 if (stat(Filename, &statbuf) < 0) {
447 if (statbuf.st_dev != fsbuf.st_dev || statbuf.st_ino != fsbuf.st_ino)
/freebsd-10.1-release/contrib/ncurses/ncurses/tinfo/
H A Dwrite_entry.c171 struct stat statbuf;
173 if ((rc = stat(path, &statbuf)) < 0) {
177 } else if (!(S_ISDIR(statbuf.st_mode))) {
258 struct stat statbuf;
371 stat(filename, &statbuf) >= 0
372 && statbuf.st_mtime >= start_time) {
380 if (stat(filename, &statbuf) < 0
381 || (start_time = statbuf.st_mtime) == 0) {
409 } else if (stat(linkname, &statbuf) >= 0 &&
410 statbuf
[all...]
/freebsd-10.1-release/cddl/contrib/opensolaris/cmd/zpool/
H A Dzpool_vdev.c421 struct stat64 statbuf; local
437 if (!wholedisk && (stat64(arg, &statbuf) != 0)) {
457 if (!wholedisk && (stat64(path, &statbuf) != 0)) {
483 if (S_ISCHR(statbuf.st_mode)) {
484 statbuf.st_mode &= ~S_IFCHR;
485 statbuf.st_mode |= S_IFBLK;
493 if (wholedisk || S_ISBLK(statbuf.st_mode)) {
495 } else if (S_ISREG(statbuf.st_mode)) {
520 if (S_ISBLK(statbuf.st_mode) && !wholedisk) {
658 struct stat64 statbuf; local
[all...]
/freebsd-10.1-release/contrib/less/
H A Dfilename.c1000 struct stat statbuf; local
1002 r = stat(filename, &statbuf);
1003 isdir = (r >= 0 && S_ISDIR(statbuf.st_mode));
1045 struct stat statbuf; local
1047 r = stat(filename, &statbuf);
1054 } else if (!S_ISREG(statbuf.st_mode))
1077 struct stat statbuf; local
1079 if (fstat(f, &statbuf) >= 0)
1080 return ((POSITION) statbuf.st_size);
H A Dedit.c404 struct stat statbuf; local
405 int r = stat(qopen_filename, &statbuf);
408 curr_ino = statbuf.st_ino;
409 curr_dev = statbuf.st_dev;
/freebsd-10.1-release/contrib/mtree/
H A Dverify.c186 struct stat statbuf; local
188 if (qflag && stat(path, &statbuf) == 0 &&
189 S_ISDIR(statbuf.st_mode))
/freebsd-10.1-release/usr.sbin/ypserv/
H A Dyp_access.c319 struct stat statbuf;
329 if (stat(dompath, &statbuf) < 0 || !S_ISDIR(statbuf.st_mode))
/freebsd-10.1-release/contrib/binutils/gas/
H A Dhash.c444 int statbuf[STATBUFSIZE];
546 hash_say (h, statbuf, STATBUFSIZE);
547 for (ip = statbuf; ip < statbuf + STATBUFSIZE; ip++)
443 int statbuf[STATBUFSIZE]; variable
/freebsd-10.1-release/contrib/llvm/lib/Support/
H A Draw_ostream.cpp582 struct stat statbuf; local
583 if (fstat(FD, &statbuf) != 0)
589 if (S_ISCHR(statbuf.st_mode) && isatty(FD))
592 return statbuf.st_blksize;
/freebsd-10.1-release/usr.bin/fstat/
H A Dfstat.c543 struct stat statbuf; local
546 if (stat(filename, &statbuf)) {
555 cur->ino = statbuf.st_ino;
556 cur->fsid = statbuf.st_dev;
/freebsd-10.1-release/contrib/gdb/gdb/
H A Dstandalone.c191 fstat (int desc, struct stat *statbuf)
198 statbuf->st_size = sourcesize;
189 fstat(int desc, struct stat *statbuf) argument
/freebsd-10.1-release/tools/regression/fsx/
H A Dfsx.c419 struct stat statbuf; local
422 if (fstat(fd, &statbuf)) {
424 statbuf.st_size = -1;
427 if (file_size != statbuf.st_size || file_size != size_by_seek) {
430 (unsigned long long)statbuf.st_size,
440 struct stat statbuf; local
444 fstat(fd, &statbuf);
445 if (statbuf.st_size != (off_t)100000) {

Completed in 353 milliseconds

123