Home
last modified time | relevance | path

Searched refs:statbuf (Results 1 – 25 of 165) sorted by path

1234567

/illumos-gate/usr/src/cmd/addbadsec/
H A Daddbadsec.c88 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 Dallocate.c264 struct stat statbuf; in main() local
274 system_labeled = is_system_labeled_debug(&statbuf); in main()
H A Dallocate3.c132 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 Daudit.c362 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 Deio.c132 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 Dpermission.c796 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 Duucheck.c102 struct stat statbuf; local
137 if (stat(tabptr->value, &statbuf) < 0) {
/illumos-gate/usr/src/cmd/boot/bootadm/
H A Dbootadm.c1086 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 Dinstallboot.c1954 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 Dinstallboot.c454 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 Ddevice.c410 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 Dadm_uef.c714 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 Dinstall.c51 struct stat statbuf; in kc_install() local
164 if (stat(realpath, &statbuf) != 0) { in kc_install()
H A Dlist.c180 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 Dipmgmt_main.c352 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 Dipmgmt_util.c61 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 Ddefaults.c170 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 Dmain.c301 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 Doptions.c1660 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 Dnwamcfg.c4258 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 Dcompress.c333 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 Dcpio.c112 #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 Ddevinfo.c134 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 Ddiffh.c290 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 Ddiskscan.c72 struct stat statbuf; in main() local
117 if (stat(device, &statbuf)) { in main()
123 if ((statbuf.st_mode & S_IFMT) != S_IFCHR) { in main()

1234567