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

123

/freebsd-9.3-release/contrib/cvs/lib/
H A Dmkdir.c44 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)
/freebsd-9.3-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-9.3-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-9.3-release/contrib/gnu-sort/src/
H A Dsystem.h299 # define ST_BLKSIZE(statbuf) DEV_BSIZE
301 # define ST_NBLOCKS(statbuf) \
302 ((statbuf).st_size / ST_NBLOCKSIZE + ((statbuf).st_size % ST_NBLOCKSIZE != 0))
304 # define ST_NBLOCKS(statbuf) \
305 (S_ISREG ((statbuf).st_mode) \
306 || S_ISDIR ((statbuf).st_mode) \
307 ? st_blocks ((statbuf).st_size) : 0)
316 # define ST_BLKSIZE(statbuf) ((0 < (statbuf)
[all...]
/freebsd-9.3-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-9.3-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-9.3-release/cddl/contrib/opensolaris/lib/libzfs/common/
H A Dlibzfs_import.c861 struct stat64 statbuf; local
868 if (fstat64(fd, &statbuf) == -1)
870 size = P2ALIGN_TYPED(statbuf.st_size, sizeof (vdev_label_t), uint64_t);
1038 struct stat64 statbuf; local
1054 if (fstat64(fd, &statbuf) != 0 ||
1055 (!S_ISREG(statbuf.st_mode) &&
1056 !S_ISCHR(statbuf.st_mode) &&
1057 !S_ISBLK(statbuf.st_mode))) {
1063 if (S_ISREG(statbuf.st_mode) &&
1064 statbuf
1103 struct stat64 statbuf; local
1362 struct stat64 statbuf; local
[all...]
/freebsd-9.3-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-9.3-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-9.3-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-9.3-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-9.3-release/cddl/contrib/opensolaris/cmd/zpool/
H A Dzpool_vdev.c420 struct stat64 statbuf; local
436 if (!wholedisk && (stat64(arg, &statbuf) != 0)) {
456 if (!wholedisk && (stat64(path, &statbuf) != 0)) {
482 if (S_ISCHR(statbuf.st_mode)) {
483 statbuf.st_mode &= ~S_IFCHR;
484 statbuf.st_mode |= S_IFBLK;
492 if (wholedisk || S_ISBLK(statbuf.st_mode)) {
494 } else if (S_ISREG(statbuf.st_mode)) {
518 if (S_ISBLK(statbuf.st_mode) && !wholedisk) {
655 struct stat64 statbuf; local
[all...]
/freebsd-9.3-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-9.3-release/contrib/mtree/
H A Dverify.c182 struct stat statbuf; local
184 if (qflag && stat(path, &statbuf) == 0 &&
185 S_ISDIR(statbuf.st_mode))
/freebsd-9.3-release/usr.sbin/ypserv/
H A Dyp_access.c315 struct stat statbuf;
325 if (stat(dompath, &statbuf) < 0 || !S_ISDIR(statbuf.st_mode))
/freebsd-9.3-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-9.3-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-9.3-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;

Completed in 201 milliseconds

123