HomeSort by: relevance | last modified time | path
    Searched refs:statbuf (Results 1 - 24 of 24) sorted by relevancy

  /src/sbin/mount_umap/
mount_umap.c 103 struct stat statbuf; local
156 if (fstat(fileno(fp), &statbuf))
158 if (statbuf.st_mode & S_IWGRP || statbuf.st_mode & S_IWOTH) {
159 strmode(statbuf.st_mode, buf);
163 if (statbuf.st_uid != ROOTUSER)
204 if (fstat(fileno(gfp), &statbuf))
206 if (statbuf.st_mode & S_IWGRP || statbuf.st_mode & S_IWOTH) {
207 strmode(statbuf.st_mode, buf)
    [all...]
  /src/bin/pax/
ftree.c 413 struct stat statbuf; local
447 Mftent.fts_statp = &statbuf;
451 if (lstat(Mftent.fts_path, &statbuf) == -1) {
456 memset(&statbuf, 0, sizeof(statbuf));
457 statbuf.st_dev = MFTENT_DUMMY_DEV;
458 statbuf.st_ino = ftnode->lineno;
459 statbuf.st_size = 0;
467 statbuf.st_mode = nodetoino(ftnode->type);
471 statbuf.st_mtime = starttime
    [all...]
  /src/tests/fs/lfs/
t_orphan.c 70 struct stat statbuf; local
111 rump_sys_fstat(fd, &statbuf);
112 fprintf(stderr, "Inode is => %d <=\n", (int)statbuf.st_ino);
115 fwrite(&statbuf.st_ino, sizeof(ino_t), 1, fp);
123 if (statbuf.st_size != FILE_SIZE)
125 if (statbuf.st_nlink <= 0)
127 if (statbuf.st_blocks <= 0)
util.c 64 struct stat statbuf; local
70 if (rump_sys_stat(filename, &statbuf) < 0)
73 size = statbuf.st_size;
101 struct stat statbuf; local
104 if (rump_sys_stat(filename, &statbuf) < 0) {
108 if (size != statbuf.st_size) {
110 filename, size, (int)statbuf.st_size);
t_fcntl.c 202 struct stat statbuf; local
212 if (rump_sys_stat(UNCHANGED_CONTROL, &statbuf) != 0)
214 ino = statbuf.st_ino;
327 struct statvfs statbuf; local
333 rump_sys_fstatvfs1(fd, &statbuf, ST_WAIT);
334 target = 7 * statbuf.f_blocks / 8;
342 rump_sys_fstatvfs1(fd, &statbuf, ST_WAIT);
343 if (statbuf.f_bfree < target)
346 (long)statbuf.f_bfree, (long)target);
  /src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/
sanitizer_common_syscalls.inc 822 PRE_SYSCALL(stat)(const void *filename, void *statbuf) {
828 POST_SYSCALL(stat)(long res, const void *filename, void *statbuf) {
830 if (statbuf) POST_WRITE(statbuf, struct___old_kernel_stat_sz);
874 PRE_SYSCALL(lstat)(const void *filename, void *statbuf) {
880 POST_SYSCALL(lstat)(long res, const void *filename, void *statbuf) {
882 if (statbuf) POST_WRITE(statbuf, struct___old_kernel_stat_sz);
886 PRE_SYSCALL(fstat)(long fd, void *statbuf) {}
888 POST_SYSCALL(fstat)(long res, long fd, void *statbuf) {
    [all...]
  /src/usr.bin/tail/
forward.c 92 struct stat statbuf; local
244 stat(fname, &statbuf) != -1) {
245 if (statbuf.st_ino != sbp->st_ino ||
246 statbuf.st_dev != sbp->st_dev ||
247 statbuf.st_rdev != sbp->st_rdev ||
248 statbuf.st_nlink == 0) {
254 *sbp = statbuf;
  /src/distrib/utils/more/
os.c 261 struct stat statbuf; local
263 if (stat(filename, &statbuf) < 0) {
268 if ((statbuf.st_mode & S_IFMT) == S_IFDIR) {
  /src/sys/arch/mvme68k/stand/installboot/
installboot.c 241 struct stat statbuf; local
273 if (fstat(fd, &statbuf) != 0)
293 blk = FFS_FSBTODB(fs, ino_to_fsba(fs, statbuf.st_ino));
295 ip = (struct ufs1_dinode *)(buf) + ino_to_fsbo(fs, statbuf.st_ino);
  /src/sys/external/bsd/compiler_rt/dist/include/sanitizer/
linux_syscall_hooks.h 478 #define __sanitizer_syscall_pre_stat(filename, statbuf) \
479 __sanitizer_syscall_pre_impl_stat((long)(filename), (long)(statbuf))
480 #define __sanitizer_syscall_post_stat(res, filename, statbuf) \
481 __sanitizer_syscall_post_impl_stat(res, (long)(filename), (long)(statbuf))
500 #define __sanitizer_syscall_pre_lstat(filename, statbuf) \
501 __sanitizer_syscall_pre_impl_lstat((long)(filename), (long)(statbuf))
502 #define __sanitizer_syscall_post_lstat(res, filename, statbuf) \
503 __sanitizer_syscall_post_impl_lstat(res, (long)(filename), (long)(statbuf))
504 #define __sanitizer_syscall_pre_fstat(fd, statbuf) \
505 __sanitizer_syscall_pre_impl_fstat((long)(fd), (long)(statbuf))
    [all...]
  /src/usr.sbin/mtree/
verify.c 195 struct stat statbuf; local
197 if (qflag && stat(path, &statbuf) == 0 &&
198 S_ISDIR(statbuf.st_mode))
  /src/bin/csh/
dir.c 854 struct stat statbuf; local
860 stat(short2str(p1), &statbuf) != -1) {
861 home_dev = statbuf.st_dev;
862 home_ino = statbuf.st_ino;
869 for (sp = NULL; *p2 && stat(short2str(p2), &statbuf) != -1;) {
870 if (statbuf.st_dev == home_dev &&
871 statbuf.st_ino == home_ino) {
  /src/games/larn/
diag.c 183 struct stat statbuf; local
229 if (fstat(io_outfd, &statbuf) < 0)
232 lprint((long) statbuf.st_ino); /* inode # */
  /src/lib/libc/net/
nsdispatch.c 491 struct stat statbuf; local
495 if (stat(_PATH_NS_CONF, &statbuf) == -1) {
505 if (statbuf.st_mtime <= _nsconfmod) {
545 _nsconfmod = statbuf.st_mtime;
  /src/usr.sbin/rpc.pcnfsd/
pcnfsd_print.c 91 struct stat statbuf; variable in typeref:struct:stat
172 if (stat(sp_name, &statbuf) || !S_ISDIR(statbuf.st_mode))
188 if (stat(pathname, &statbuf) || !S_ISDIR(statbuf.st_mode)) {
235 if (stat(pathname, &statbuf)) {
244 if (stat(pathname, &statbuf)) {
263 if (statbuf.st_size == 0) {
290 if (!stat(new_pathname, &statbuf)) {
  /src/lib/libc/db/hash/
hash.c 102 struct stat statbuf; local
126 (stat(file, &statbuf) && (errno == ENOENT))) {
132 if ((hashp->fp = __dbopen(file, flags, mode, &statbuf)) == -1)
134 new_table |= statbuf.st_size == 0;
281 struct stat statbuf; local
299 if (stat(file, &statbuf))
301 hashp->BSIZE = MIN(statbuf.st_blksize, MAX_BSIZE);
  /src/lib/libskey/
skeylogin.c 105 struct stat statbuf; local
109 if (stat(_PATH_SKEYKEYS, &statbuf) == 0 &&
111 if ((statbuf.st_mode & 0007777) != 0600)
  /src/usr.bin/error/
touch.c 814 struct stat statbuf; local
816 if (stat(name, &statbuf) < 0)
818 if ((statbuf.st_mode & S_IREAD) == 0)
820 if ((statbuf.st_mode & S_IWRITE) == 0)
  /src/lib/libresolv/
dst_api.c 107 struct stat statbuf; local
113 } else if (stat(s, &statbuf) != 0 ||
114 !S_ISDIR(statbuf.st_mode)) {
  /src/usr.bin/patch/
patch.c 374 struct stat statbuf; local
391 stat(realout, &statbuf) == 0 &&
392 statbuf.st_size == 0) {
  /src/usr.bin/at/
at.c 177 struct stat statbuf; local
242 if (stat(atfile, &statbuf) == -1)
  /src/usr.bin/fstat/
fstat.c 1367 struct stat statbuf; local
1370 if (stat(filename, &statbuf)) {
1380 cur->ino = statbuf.st_ino;
1381 cur->fsid = statbuf.st_dev & 0xffff;
  /src/usr.bin/pr/
pr.c 1304 struct stat statbuf; local
1389 if (fstat(fileno(inf), &statbuf) < 0) {
1397 timeptr = localtime(&(statbuf.st_mtime));
  /src/sys/arch/arm/xscale/
ixp425_if_npe.c 526 void *statbuf; local
573 &statbuf, BUS_DMA_NOWAIT);
580 sc->sc_stats = (void *)statbuf;

Completed in 36 milliseconds