/illumos-gate/usr/src/cmd/acct/ |
H A D | acctdusg.c | 213 struct stat statb; in charge() local 217 if (lstat(n, &statb) == -1) in charge() 223 if (statb.st_nlink > 1) { in charge() 224 switch (add_tnode(&tree, statb.st_dev, statb.st_ino)) { in charge() 240 if (S_ISCHR(statb.st_mode) || S_ISBLK(statb.st_mode)) in charge() 241 statb.st_blocks = 0; in charge() 248 if ((entry = hash_find(statb.st_uid)) == NULL) { in charge() 250 pw = getpwuid(statb.st_uid); in charge() 251 entry = hash_insert(statb.st_uid); in charge() 259 entry->dsk_du += statb.st_blocks; in charge() [all …]
|
/illumos-gate/usr/src/cmd/bart/ |
H A D | create.c | 37 static int eval_file(const char *fname, const struct stat64 *statb, 40 static char *get_acl_string(const char *fname, const struct stat64 *statb, 417 eval_file(const char *fname, const struct stat64 *statb, struct FTW *ftwx) in eval_file() argument 425 switch (statb->st_mode & S_IFMT) { in eval_file() 520 acl_str = get_acl_string(fname, statb, &err_code); in eval_file() 527 (int)statb->st_size, (int)statb->st_mode, acl_str, in eval_file() 528 (int)statb->st_mtime, (int)statb->st_uid, (int)statb->st_gid); in eval_file() 532 (void) printf(" %x\n", (int)statb->st_rdev); in eval_file() 611 get_acl_string(const char *fname, const struct stat64 *statb, int *err_code) in get_acl_string() argument 617 if (S_ISLNK(statb->st_mode)) { in get_acl_string()
|
H A D | rules.c | 622 struct stat64 statb; in add_subtree_rule() local 757 ret = lstat64(current_level->dirname, &statb); in add_subtree_rule()
|
/illumos-gate/usr/src/cmd/bnu/ |
H A D | cntrl.c | 1654 struct stat statb; 1661 if( stat(name, &statb) < 0 ) 1664 if( (statb.st_mode|S_IFMT) == S_IFREG || 1665 (statb.st_mode|S_IFMT) == S_IFEXT || 1666 (statb.st_mode&S_IFMT) == S_IF1EXT ) 1668 if( (statb.st_mode&S_IFMT) == S_IFREG ) 1674 if( ustat(statb.st_dev, &ustatb)<0 )
|
H A D | ct.c | 757 struct stat statb; local 759 if (stat (file, &statb) == -1 && errno == ENOENT)
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/tftp/ |
H A D | tftp.c | 125 struct stat statb; in tftp_sendfile() local 134 tsize_set = ((tsize_opt != 0) && !convert && (fstat(fd, &statb) == 0)); in tftp_sendfile() 136 tsize = statb.st_size; in tftp_sendfile()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ |
H A D | in.rshd.c | 440 struct stat statb; in doit() local 1259 if (stat("/usr/ucb/rdist", &statb) != 0) { in doit()
|
H A D | in.tftpd.c | 781 struct stat statb; in tftp() local 864 if ((fd < 0) || (fstat(fd, &statb) < 0)) in tftp() 867 if (((statb.st_mode & ((readmode) ? S_IROTH : S_IWOTH)) == 0) || in tftp() 868 ((statb.st_mode & S_IFMT) != S_IFREG)) in tftp() 878 tsize = statb.st_size; in tftp()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/inetconv/ |
H A D | inetconv.c | 440 struct stat statb; in valid_inetconfent() local 541 } else if ((stat(iconf->server_program, &statb) == -1) && in valid_inetconfent()
|
/illumos-gate/usr/src/cmd/cpio/ |
H A D | cpio.c | 1046 struct stat statb; in chgreel() local 1049 if (fstat(Archive, &statb) < 0) in chgreel() 1051 if ((statb.st_mode & S_IFMT) != S_IFCHR) { in chgreel()
|
/illumos-gate/usr/src/cmd/cron/ |
H A D | atrm.c | 314 struct stat statb; in powner() local 317 if (stat(file, &statb) < 0) { in powner() 324 printf("%s", getname(statb.st_uid)); in powner()
|
/illumos-gate/usr/src/cmd/csh/ |
H A D | sh.exp.c | 70 struct stat statb; in chk_access() local 81 if (stat((char *)name, &statb) == 0) { in chk_access() 82 ftype = statb.st_mode & S_IFMT; in chk_access() 89 if (statb.st_mode & (S_IEXEC|(S_IEXEC>>3)|(S_IEXEC>>6))) in chk_access()
|
H A D | sh.file.c | 254 struct stat statb; in filetype() local 262 if (stat_(path, &statb) < 0) in filetype() 265 if (lstat_(path, &statb) < 0) in filetype() 268 if ((statb.st_mode & S_IFMT) == S_IFLNK) in filetype() 270 if ((statb.st_mode & S_IFMT) == S_IFDIR) in filetype() 272 if (((statb.st_mode & S_IFMT) == S_IFREG) && in filetype() 273 (statb.st_mode & 011)) in filetype()
|
/illumos-gate/usr/src/cmd/dcs/sparc/sun4u/ |
H A D | dcs.c | 2239 struct stat statb; in is_socket() local 2240 if (fstat(fd, &statb) < 0) { in is_socket() 2243 return (S_ISSOCK(statb.st_mode)); in is_socket()
|
/illumos-gate/usr/src/cmd/filesync/ |
H A D | action.c | 410 struct stat statb; in do_copy() local 787 rc = lstat(dst, &statb); in do_copy() 790 note_info(fp, &statb, srcdst); in do_copy() 945 struct stat statb; in do_rename() local 989 rc = lstat(newname, &statb); in do_rename() 992 note_info(fp, &statb, srcdst); in do_rename() 1236 struct stat statb; in checksparse() local 1243 if (fstat(fd, &statb) < 0) in checksparse() 1255 if (statb.st_size > 512 * statb.st_blocks) in checksparse() 1256 return (statb.st_blksize); in checksparse()
|
H A D | eval.c | 373 struct stat statb; in eval_file() local 388 rc = lstat(name, &statb); in eval_file() 406 note_info(fp, &statb, usingsrc ? OPT_SRC : OPT_DST); in eval_file() 422 if ((statb.st_mode & S_IFMT) != S_IFDIR) in eval_file()
|
/illumos-gate/usr/src/cmd/find/ |
H A D | find.c | 729 struct stat statb; in compile() local 956 l = statb->st_mtime; in execute() 959 t = statb->st_atime; in execute() 962 t = statb->st_ctime; in execute() 965 t = statb->st_mtime; in execute() 970 t = statb->st_mtime; in execute() 973 t = statb->st_atime; in execute() 976 t = statb->st_ctime; in execute() 988 l = (long)statb->st_uid; in execute() 991 l = (long)statb->st_gid; in execute() [all …]
|
/illumos-gate/usr/src/cmd/fm/notify/smtp-notify/common/ |
H A D | smtp-notify.c | 112 struct stat statb; in read_template() local 115 if (stat(template, &statb) != 0) { in read_template() 125 if ((buf = malloc(statb.st_size + 1)) == NULL) { in read_template() 126 nd_error(nhdl, "Failed to allocate %d bytes", statb.st_size); in read_template() 130 if (read(fd, buf, statb.st_size) < 0) { in read_template() 137 buf[statb.st_size] = '\0'; in read_template()
|
/illumos-gate/usr/src/cmd/fs.d/udfs/fsck/ |
H A D | setup.c | 111 struct stat statb; in setup() local 116 if (stat("/", &statb) < 0) in setup() 118 rootdev = statb.st_dev; in setup() 123 if (stat(devstr, &statb) < 0) { in setup() 134 if ((statb.st_mode & S_IFMT) == S_IFDIR) { in setup() 140 if ((statb.st_mode & S_IFMT) == S_IFBLK) { in setup() 141 if (rootdev == statb.st_rdev) in setup() 150 if ((statb.st_mode & S_IFMT) == S_IFDIR) { in setup() 183 ((statb.st_mode & S_IFMT) != S_IFCHR)) { in setup() 216 if (stat(unrawname(blockname), &statb) < 0) { in setup() [all …]
|
/illumos-gate/usr/src/cmd/fs.d/ufs/edquota/ |
H A D | edquota.c | 660 struct stat64 statb; in setupfs() local 672 if (stat64(mntp.mnt_special, &statb) < 0) in setupfs() 674 if ((statb.st_mode & S_IFMT) != S_IFBLK) in setupfs() 676 fsdev = statb.st_rdev; in setupfs() 679 if (stat64(qfilename, &statb) < 0 || statb.st_dev != fsdev) in setupfs()
|
/illumos-gate/usr/src/cmd/fs.d/ufs/fsck/ |
H A D | setup.c | 377 struct stat statb; in derive_devstr() local 379 if (stat(dev, &statb) < 0) { in derive_devstr() 384 mode = statb.st_mode & S_IFMT; in derive_devstr() 448 struct stat statb; in check_mount_state() local 450 if (stat(devstr, &statb) < 0) { in check_mount_state() 454 if (S_ISCHR(statb.st_mode) || S_ISBLK(statb.st_mode)) in check_mount_state()
|
H A D | utilities.c | 1442 struct stat64 statb; in is_errorlocked() local 1451 if (stat64(fs, &statb) < 0) in is_errorlocked() 1454 if (S_ISDIR(statb.st_mode)) { in is_errorlocked() 1456 } else if (S_ISBLK(statb.st_mode) || S_ISCHR(statb.st_mode)) { in is_errorlocked()
|
/illumos-gate/usr/src/cmd/fs.d/ufs/mount/ |
H A D | mount.c | 588 struct stat64 statb; in mountfs() local 592 if (stat64(mnt->mnt_mountp, &statb) != 0) in mountfs() 595 mtdesc.mtd_major = major(statb.st_dev); in mountfs() 596 mtdesc.mtd_minor = minor(statb.st_dev); in mountfs()
|
/illumos-gate/usr/src/cmd/fs.d/ufs/newfs/ |
H A D | newfs.c | 1017 struct stat64 statb; in read_sb() local 1022 if (stat64(fsdev, &statb) < 0) in read_sb()
|
/illumos-gate/usr/src/cmd/fs.d/ufs/quot/ |
H A D | quot.c | 466 struct stat64 statb; in getdev() local 473 if (stat64(*devpp, &statb) < 0) { in getdev() 477 if ((statb.st_mode & S_IFMT) == S_IFCHR) in getdev() 479 if ((statb.st_mode & S_IFMT) == S_IFBLK) { in getdev()
|