Home
last modified time | relevance | path

Searched refs:statbuf (Results 101 – 125 of 165) sorted by relevance

1234567

/illumos-gate/usr/src/lib/print/libpapi-ipp/common/
H A Djob.c207 struct stat statbuf; in internal_job_submit() local
253 if (stat(files[i], &statbuf) < 0) { in internal_job_submit()
261 if (statbuf.st_size == 0) { in internal_job_submit()
/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/allocate/
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()
H A Dallocate.c264 struct stat statbuf; in main() local
274 system_labeled = is_system_labeled_debug(&statbuf); in main()
/illumos-gate/usr/src/lib/libsqlite/src/
H A Dos.c300 struct stat statbuf; in findLockInfo() local
303 rc = fstat(fd, &statbuf); in findLockInfo()
306 key1.dev = statbuf.st_dev; in findLockInfo()
307 key1.ino = statbuf.st_ino; in findLockInfo()
310 key2.dev = statbuf.st_dev; in findLockInfo()
311 key2.ino = statbuf.st_ino; in findLockInfo()
/illumos-gate/usr/src/cmd/rmformat/
H A Drmf_misc.c1430 struct stat statbuf; in lookup_device() local
1438 if ((stat(supplied, &statbuf) == 0) && S_ISCHR(statbuf.st_mode) && in lookup_device()
1562 struct stat statbuf; in vol_name_to_dev_node() local
1573 if (stat(p1, &statbuf) < 0) { in vol_name_to_dev_node()
1577 if (S_ISDIR(statbuf.st_mode)) { in vol_name_to_dev_node()
/illumos-gate/usr/src/cmd/luxadm/
H A Dfcalupdate.c840 struct stat statbuf; in getsocpath() local
845 if (lstat(devpath, &statbuf) < 0) { in getsocpath()
851 if (S_ISDIR(statbuf.st_mode) == 0) in getsocpath()
H A Dadm.c171 struct stat statbuf; in adm_fcode() local
215 if (lstat(dir, &statbuf) < 0) { in adm_fcode()
221 if (S_ISDIR(statbuf.st_mode) == 0) { in adm_fcode()
H A Dqlgcupdate.c626 struct stat statbuf; in q_getdevctlpath() local
633 if (lstat(devpath, &statbuf) < 0) { in q_getdevctlpath()
651 if (S_ISDIR(statbuf.st_mode) == 0) { in q_getdevctlpath()
/illumos-gate/usr/src/cmd/svr4pkg/pkgremove/
H A Dmain.c1089 struct stat statbuf; in issymlink() local
1095 if (lstat(path, &statbuf) != 0) { in issymlink()
1103 if ((statbuf.st_mode & S_IFMT) == S_IFLNK) { in issymlink()
/illumos-gate/usr/src/cmd/sgs/elfedit/common/
H A Dsys.c503 struct stat statbuf; in cmd_load() local
517 if ((stat(*argv, &statbuf) == 0) && in cmd_load()
518 (statbuf.st_mode & S_IFDIR)) { in cmd_load()
H A Delfedit.c2560 struct stat statbuf; in create_outfile() local
2607 if (stat(outfile, &statbuf) == -1) { in create_outfile()
2613 if ((statbuf.st_mode & S_IWUSR) == 0) { in create_outfile()
2615 statbuf.st_mode |= S_IWUSR; in create_outfile()
2616 statbuf.st_mode &= 07777; /* Only keep the permission bits */ in create_outfile()
2617 if (chmod(outfile, statbuf.st_mode) == -1) { in create_outfile()
/illumos-gate/usr/src/lib/brand/solaris10/s10_brand/common/
H A Ds10_brand.c292 struct stat statbuf; in mntfs_ioctl() local
302 fdes, NULL, &statbuf, 0)) != 0) in mntfs_ioctl()
304 if (strcmp(statbuf.st_fstype, MNTTYPE_MNTFS) != 0) in mntfs_ioctl()
580 struct stat statbuf; in ctfs_ioctl() local
583 fdes, NULL, &statbuf, 0)) != 0) in ctfs_ioctl()
585 if (strcmp(statbuf.st_fstype, MNTTYPE_CTFS) != 0) in ctfs_ioctl()
/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/lib/fm/libfmd_log/common/
H A Dfmd_log.c286 struct stat statbuf; in fmd_log_load_xrdir() local
303 stat(path, &statbuf) != -1 && in fmd_log_load_xrdir()
304 (statbuf.st_mode & S_IFMT) == S_IFREG && in fmd_log_load_xrdir()
/illumos-gate/usr/src/cmd/fmthard/
H A Dfmthard.c143 struct stat statbuf; in main() local
208 if (stat(argv[optind], (struct stat *)&statbuf) == -1) { in main()
215 if ((statbuf.st_mode & S_IFMT) != S_IFCHR) { in main()
/illumos-gate/usr/src/lib/libresolv2/common/dst/
H A Ddst_api.c99 struct stat statbuf; in dst_init() local
105 } else if (stat(s, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode)) { in dst_init()
/illumos-gate/usr/src/lib/cfgadm_plugins/pci/common/
H A Dcfga.c275 struct stat statbuf; in get_occupants() local
284 if (fstat(fd, &statbuf) == -1) { in get_occupants()
291 devt = statbuf.st_rdev; in get_occupants()
869 struct stat statbuf; in prt_led_mode() local
887 if (fstat(fd, &statbuf) == -1) { in prt_led_mode()
/illumos-gate/usr/src/cmd/halt/
H A Dhalt.c608 struct stat64 statbuf; in validate_disk() local
628 if (lstat64(mountpoint, &statbuf) != 0) { in validate_disk()
653 if (stat64(kernpath, &statbuf) == 0) in validate_disk()
664 if (stat64(kernpath, &statbuf) != 0) { in validate_disk()
/illumos-gate/usr/src/cmd/filesync/
H A Daction.c1074 struct stat statbuf; /* info on source file */ in copy() local
1123 ret = fstat(ifd, &statbuf); in copy()
1126 if (length < statbuf.st_blocks) { in copy()
/illumos-gate/usr/src/cmd/sendmail/src/
H A Dutil.c2414 struct stat statbuf; local
2417 if (lstat(pathname, &statbuf) < 0)
2419 if (stat(pathname, &statbuf) < 0)
2428 if (!S_ISDIR(statbuf.st_mode))
2435 if (bitset(S_IWGRP|S_IWOTH, statbuf.st_mode))
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/
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/svr4pkg/hdrs/
H A Dlibinst.h515 boolean_t smlFstatCompareEq(struct stat *statbuf,
554 struct stat *statbuf, char *path);
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/
H A Dpiclfrudr.c2023 struct stat statbuf; in create_sys_controller_pathname() local
2066 if (stat(namebuf, &statbuf) < 0) in create_sys_controller_pathname()
2068 if (!S_ISCHR(statbuf.st_mode)) in create_sys_controller_pathname()
2092 struct stat statbuf; in create_bezel_leds_pathname() local
2123 if (stat(namebuf, &statbuf) < 0) in create_bezel_leds_pathname()
2125 if (!S_ISCHR(statbuf.st_mode)) in create_bezel_leds_pathname()
/illumos-gate/usr/src/cmd/power/
H A Dpowerd.c1004 struct stat statbuf; in poweroff() local
1016 if (stat("/dev/console", &statbuf) == -1 || in poweroff()
1017 (pwd = getpwuid(statbuf.st_uid)) == NULL) { in poweroff()

1234567