/illumos-gate/usr/src/cmd/addbadsec/ |
H A D | addbadsec.c | 88 struct stat statbuf; in main() local 135 if (stat(devname, &statbuf)) { in main() 141 if ((statbuf.st_mode & S_IFMT) != S_IFCHR) { in main() 147 minor_val = minor(statbuf.st_rdev); in main()
|
/illumos-gate/usr/src/cmd/allocate/ |
H A D | allocate.c | 264 struct stat statbuf; in main() local 274 system_labeled = is_system_labeled_debug(&statbuf); in main()
|
H A D | allocate3.c | 132 struct stat statbuf; in _is_local() local 134 if (stat(LOCALDEVICE, &statbuf) == 0 && in _is_local() 135 statbuf.st_uid == uid) in _is_local() 642 lock_dev(char *file, struct stat *statbuf) in lock_dev() argument 657 if (statbuf) { in lock_dev() 658 offset = statbuf->st_rdev; in lock_dev()
|
/illumos-gate/usr/src/cmd/audit/ |
H A D | audit.c | 362 struct stat statbuf; in validate_path() local 368 if (stat(dir_path, &statbuf) == -1) { in validate_path() 371 } else if (statbuf.st_mode & S_IFDIR) { in validate_path()
|
/illumos-gate/usr/src/cmd/bnu/ |
H A D | eio.c | 132 struct stat statbuf; local 146 fstat(fd1, &statbuf); 153 msglen = statbuf.st_size - startPoint; 363 struct stat statbuf; local 369 fstat(fileno(fp1), &statbuf);
|
H A D | permission.c | 796 struct stat statbuf; local 807 if ( stat(temp, &statbuf) == 0 ) { 816 if ( _dev[i] == statbuf.st_dev 817 && _ino[i] == statbuf.st_ino ) {
|
H A D | uucheck.c | 102 struct stat statbuf; local 137 if (stat(tabptr->value, &statbuf) < 0) {
|
/illumos-gate/usr/src/cmd/boot/bootadm/ |
H A D | bootadm.c | 1086 struct stat statbuf = {0}; in install_bootloader() local 1107 if (stat(bam_root, &statbuf) != 0) { in install_bootloader() 1119 if (mnt.mnt_major == major(statbuf.st_dev) && in install_bootloader() 1120 mnt.mnt_minor == minor(statbuf.st_dev)) { in install_bootloader()
|
/illumos-gate/usr/src/cmd/boot/installboot/i386/ |
H A D | installboot.c | 1954 struct stat statbuf = {0}; in open_device() local 1968 if (fstat(fd, &statbuf) != 0) { in open_device() 1975 if (S_ISCHR(statbuf.st_mode) == 0) { in open_device()
|
/illumos-gate/usr/src/cmd/boot/installboot/sparc/ |
H A D | installboot.c | 454 struct stat statbuf; in open_device() local 463 if (fstat(device->fd, &statbuf) != 0) { in open_device() 470 if (S_ISCHR(statbuf.st_mode) == 0) { in open_device()
|
/illumos-gate/usr/src/cmd/cdrw/ |
H A D | device.c | 410 struct stat statbuf; in vol_name_to_dev_node() local 421 if (stat(p1, &statbuf) < 0) { in vol_name_to_dev_node() 425 if (S_ISDIR(statbuf.st_mode)) { in vol_name_to_dev_node() 451 struct stat statbuf; in lookup_device() local 456 if ((stat(supplied, &statbuf) == 0) && S_ISCHR(statbuf.st_mode) && in lookup_device()
|
/illumos-gate/usr/src/cmd/cmd-crypto/cryptoadm/ |
H A D | adm_uef.c | 714 struct stat statbuf; in install_uef_lib() local 761 if (stat(libpath, &statbuf) != 0) { in install_uef_lib()
|
/illumos-gate/usr/src/cmd/cmd-crypto/kmfcfg/ |
H A D | install.c | 51 struct stat statbuf; in kc_install() local 164 if (stat(realpath, &statbuf) != 0) { in kc_install()
|
H A D | list.c | 180 struct stat statbuf; in show_plugin() local 193 if (stat(LIB_NSS_PATH, &statbuf) == 0 && in show_plugin() 194 stat(LIB_NSPR_PATH, &statbuf) == 0) { in show_plugin()
|
/illumos-gate/usr/src/cmd/cmd-inet/lib/ipmgmtd/ |
H A D | ipmgmt_main.c | 352 struct stat statbuf; in ipmgmt_init_privileges() local 356 if (stat(IPADM_TMPFS_DIR, &statbuf) < 0) { in ipmgmt_init_privileges() 362 if ((statbuf.st_mode & S_IFMT) != S_IFDIR) { in ipmgmt_init_privileges()
|
H A D | ipmgmt_util.c | 61 struct stat statbuf; in ipmgmt_cpfile() local 78 if (stat(src, &statbuf) != 0) { in ipmgmt_cpfile()
|
/illumos-gate/usr/src/cmd/cmd-inet/sbin/dhcpagent/ |
H A D | defaults.c | 170 struct stat statbuf; in df_get_string() local 178 if (stat(DHCP_AGENT_DEFAULTS, &statbuf) != 0) { in df_get_string() 191 if (statbuf.st_mtime != df_statbuf.st_mtime || in df_get_string() 192 statbuf.st_size != df_statbuf.st_size) { in df_get_string() 193 df_statbuf = statbuf; in df_get_string()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/ |
H A D | main.c | 301 struct stat statbuf; local 476 if (fstat(0, &statbuf) >= 0 && S_ISCHR(statbuf.st_mode) 477 && statbuf.st_rdev == devstat.st_rdev) { 491 if (log_to_fd >= 0 && fstat(log_to_fd, &statbuf) >= 0 492 && S_ISCHR(statbuf.st_mode) && statbuf.st_rdev == devstat.st_rdev) 697 if (fstat(ttyfd, &statbuf) < 0 698 || fchmod(ttyfd, statbuf.st_mode & ~(S_IWGRP | S_IWOTH)) < 0) { 701 tty_mode = statbuf.st_mode;
|
H A D | options.c | 1660 struct stat statbuf; local 1675 if (stat(cp, &statbuf) < 0) { 1682 if (!S_ISCHR(statbuf.st_mode)) { 1702 devstat = statbuf;
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/nwamcfg/ |
H A D | nwamcfg.c | 4258 struct stat statbuf; in cmd_file() local 4272 if ((err = fstat(fileno(infile), &statbuf)) != 0) { in cmd_file() 4278 if (!S_ISREG(statbuf.st_mode)) { in cmd_file()
|
/illumos-gate/usr/src/cmd/compress/ |
H A D | compress.c | 333 struct stat statbuf; in main() local 595 if (stat(*fileptr, &statbuf) < 0) { in main() 700 if (stat(*fileptr, &statbuf) < 0) { in main() 712 fsize = (off_t)statbuf.st_size; in main() 891 copystat(*fileptr, &statbuf, ofname); in main()
|
/illumos-gate/usr/src/cmd/cpio/ |
H A D | cpio.c | 112 #define LSTAT(dir, path, statbuf) fstatat(dir, \ argument 114 path : Gen.g_attrnam_p), statbuf, AT_SYMLINK_NOFOLLOW) 115 #define STAT(dir, path, statbuf) fstatat(dir, \ argument 117 path : Gen.g_attrnam_p), statbuf, 0)
|
/illumos-gate/usr/src/cmd/devinfo/ |
H A D | devinfo.c | 134 struct stat64 statbuf; in partinfo() local 138 i = stat64(device, &statbuf); in partinfo() 141 maj = major(statbuf.st_rdev); in partinfo() 142 min = minor(statbuf.st_rdev); in partinfo()
|
/illumos-gate/usr/src/cmd/diff/ |
H A D | diffh.c | 290 struct stat statbuf; in dopen() local 296 if (fstat(fileno(stdin), &statbuf) == -1) in dopen() 302 if (stat(f1, &statbuf) == -1) in dopen() 304 if ((statbuf.st_mode & S_IFMT) == S_IFDIR) { in dopen()
|
/illumos-gate/usr/src/cmd/diskscan/ |
H A D | diskscan.c | 72 struct stat statbuf; in main() local 117 if (stat(device, &statbuf)) { in main() 123 if ((statbuf.st_mode & S_IFMT) != S_IFCHR) { in main()
|