Home
last modified time | relevance | path

Searched refs:statbuf (Results 51 – 75 of 165) sorted by relevance

1234567

/illumos-gate/usr/src/cmd/saf/
H A Dsacadm.c452 struct stat statbuf; /* file status info */ local
480 if (stat(fname, &statbuf) < 0) {
485 if ((statbuf.st_mode & S_IFMT) != S_IFDIR) {
591 if (stat(command, &statbuf) < 0) {
597 if (!(statbuf.st_mode & 0111)) {
603 if ((statbuf.st_mode & S_IFMT) != S_IFREG) {
972 struct stat statbuf; /* file status info */ local
984 if (fstat(fileno(fp), &statbuf) < 0) {
994 tp1 = calloc(2 * statbuf.st_size, sizeof(char));
H A Dadmutil.c277 struct stat statbuf; /* file status info */ in do_config() local
284 if (stat(script, &statbuf) < 0) { in do_config()
289 if ((statbuf.st_mode & S_IFMT) != S_IFREG) { in do_config()
/illumos-gate/usr/src/cmd/oamuser/user/
H A Dusermod.c156 struct stat statbuf; /* status buffer for stat */ local
502 if (stat(dir, &statbuf) == 0) {
504 if (check_perm(statbuf, pstruct->pw_uid,
536 if (stat(shell, &statbuf) < 0 ||
537 (statbuf.st_mode & S_IFMT) != S_IFREG ||
538 (statbuf.st_mode & 0555) != 0555) {
/illumos-gate/usr/src/lib/libinstzones/common/
H A Dzones_utils.c288 struct stat statbuf; in _z_is_directory() local
297 if (stat(path, &statbuf) != 0) { in _z_is_directory()
303 if ((statbuf.st_mode & S_IFMT) != S_IFDIR) { in _z_is_directory()
/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/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/zpool/
H A Dzpool_vdev.c396 struct stat64 statbuf; in make_leaf_vdev() local
413 if (!wholedisk && (stat64(arg, &statbuf) != 0)) { in make_leaf_vdev()
459 if (wholedisk || S_ISBLK(statbuf.st_mode)) { in make_leaf_vdev()
461 } else if (S_ISREG(statbuf.st_mode)) { in make_leaf_vdev()
510 if (S_ISBLK(statbuf.st_mode) && !wholedisk) { in make_leaf_vdev()
668 struct stat64 statbuf; in get_replication() local
740 err = fstat64(fd, &statbuf); in get_replication()
743 err = stat64(path, &statbuf); in get_replication()
747 statbuf.st_size == 0 || in get_replication()
748 statbuf.st_size == MAXOFFSET_T) in get_replication()
[all …]
/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/lib/libdevinfo/
H A Ddevinfo_dli.c90 struct stat statbuf; in di_dli_open() local
98 if (stat(dlipath_dir, &statbuf) < 0) { in di_dli_open()
/illumos-gate/usr/src/cmd/ypcmd/
H A Dmakedbm.c133 struct stat64 statbuf; local
314 else if (fstat64(fileno(stdin), &statbuf) == -1) {
333 if (fstat64(fileno(outfp), &statbuf) != 0) {
338 inode = statbuf.st_ino;
339 dev = statbuf.st_dev;
/illumos-gate/usr/src/cmd/pcidr/
H A Dpcidr.c437 struct stat statbuf; in find_plugin() local
447 rv = stat(path, &statbuf); in find_plugin()
451 else if ((statbuf.st_mode & S_IFMT) != S_IFREG) in find_plugin()
541 struct stat statbuf; in main() local
598 if (fstat(fileno(stdout), &statbuf) == 0) in main()
/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()
/illumos-gate/usr/src/lib/libsmbfs/smb/
H A Drcfile.c91 struct stat statbuf; in rc_open() local
106 if (fstat(fileno(f), &statbuf) >= 0 && in rc_open()
107 (statbuf.st_mode & 077) != 0) in rc_open()
126 struct stat statbuf; in rc_merge() local
140 if (fstat(fileno(f), &statbuf) >= 0 && in rc_merge()
141 (statbuf.st_mode & 077) != 0) in rc_merge()
/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/lofiadm/
H A Dmain.c1374 struct stat64 statbuf; in lofi_uncompress() local
1391 if (stat64(filename, &statbuf) == -1) in lofi_uncompress()
1393 if (statbuf.st_size == 0) in lofi_uncompress()
1433 (void) fchmod(uncompfd, statbuf.st_mode); in lofi_uncompress()
1435 if (fchown(uncompfd, statbuf.st_uid, statbuf.st_gid) == -1) { in lofi_uncompress()
1498 struct stat64 statbuf; in lofi_compress() local
1557 if (fstat64(uncompfd, &statbuf) == -1) { in lofi_compress()
1563 if (statbuf.st_size == 0) { in lofi_compress()
1595 (void) fchmod(compfd, statbuf.st_mode); in lofi_compress()
1597 if (fchown(compfd, statbuf.st_uid, statbuf.st_gid) == -1) in lofi_compress()
[all …]
/illumos-gate/usr/src/lib/libc/port/rt/
H A Dpos4obj.c60 struct stat64 statbuf; in __open_nc() local
66 if (lstat64(path, &statbuf) == 0) { in __open_nc()
67 if (S_ISLNK(statbuf.st_mode)) { in __open_nc()
/illumos-gate/usr/src/cmd/svr4pkg/libinst/
H A Dcopyf.c440 struct stat statbuf; in openLocal() local
461 n = fstat(fd, &statbuf); in openLocal()
500 n = copyFile(fd, tmpFd, a_path, template, &statbuf, 0L); in openLocal()
H A Dsml.c1775 assert(statbuf != (struct stat *)NULL); in smlSetFileStatInfo()
1802 (unsigned long long)statbuf->st_ino); in smlSetFileStatInfo()
1804 (unsigned long long)statbuf->st_mode); in smlSetFileStatInfo()
1806 (unsigned long long)statbuf->st_mtime); in smlSetFileStatInfo()
1808 (unsigned long long)statbuf->st_ctime); in smlSetFileStatInfo()
1810 (unsigned long long)statbuf->st_size); in smlSetFileStatInfo()
1839 if (statbuf == (struct stat *)NULL) { in smlFstatCompareEq()
1851 "0x%llx", (unsigned long long)statbuf->st_ino) != B_TRUE) { in smlFstatCompareEq()
1856 "0x%llx", (unsigned long long)statbuf->st_mode) != B_TRUE) { in smlFstatCompareEq()
1861 "0x%llx", (unsigned long long)statbuf->st_mtime) != B_TRUE) { in smlFstatCompareEq()
[all …]
/illumos-gate/usr/src/cmd/svr4pkg/pkgcond/
H A Dmain.c3030 struct stat statbuf; in setCmdLinePath() local
3042 if (stat(rp, &statbuf) == 0) { in setCmdLinePath()
3044 if ((statbuf.st_mode & S_IFDIR)) { in setCmdLinePath()
3068 struct stat statbuf; in setRootPath() local
3101 if (stat(rp, &statbuf) != 0) { in setRootPath()
3109 if (!(statbuf.st_mode & S_IFDIR)) { in setRootPath()
3147 struct stat statbuf; in testPath() local
3226 if (statbuf.st_mode & S_IFLNK) { in testPath()
3301 r = fstat(fd, &statbuf); in testPath()
3325 if (statbuf.st_mode & S_IFDIR) { in testPath()
[all …]
/illumos-gate/usr/src/cmd/svr4pkg/pkginstall/
H A Ddockspace.c197 struct stat statbuf; in readmap() local
313 if (stat(tpath, &statbuf)) { in readmap()
336 old_size = nblk(statbuf.st_size, in readmap()
/illumos-gate/usr/src/ucbcmd/vipw/
H A Dvipw.c261 struct stat sbuf, statbuf; in sanity_check() local
354 if (stat(ldir, &statbuf) < 0) { in sanity_check()
360 } else if (!S_ISDIR(statbuf.st_mode)) { in sanity_check()
/illumos-gate/usr/src/cmd/ucodeadm/
H A Ducodeadm.c267 struct stat statbuf; in ucode_should_update_intel() local
274 if (stat(filename, &statbuf) == 0) { in ucode_should_update_intel()
513 struct stat statbuf; in ucode_gen_files_intel() local
517 if (stat(filename, &statbuf) == -1) in ucode_gen_files_intel()
520 if ((statbuf.st_mode & S_IFMT) == S_IFREG) { in ucode_gen_files_intel()
521 if (statbuf.st_nlink == 1) in ucode_gen_files_intel()
/illumos-gate/usr/src/cmd/cmd-crypto/kmfcfg/
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()
/illumos-gate/usr/src/lib/libc/port/gen/
H A Diconv.c281 struct stat64 statbuf; in iconv_search_alias() local
294 if (fstat64(fd, &statbuf) == -1) { in iconv_search_alias()
299 buflen = (size_t)statbuf.st_size; in iconv_search_alias()

1234567