/illumos-gate/usr/src/cmd/power/ |
H A D | sys-suspend.c | 454 struct stat stat_buf; in refresh_dt() local 460 if ((stat("/usr/dt/bin/dtgreet", &stat_buf) == 0) && in refresh_dt() 461 (stat_buf.st_mode & S_IXUSR)) { in refresh_dt() 492 struct stat stat_buf; in get_xauthority() local 522 if (stat(filepath, &stat_buf) == 0) { in get_xauthority() 542 if (stat(filepath, &stat_buf) == -1) in get_xauthority() 544 if (stat_buf.st_uid != uid) in get_xauthority() 546 if (stat_buf.st_ctime > latest) { in get_xauthority() 549 latest = stat_buf.st_ctime; in get_xauthority()
|
H A D | powerd.c | 532 struct stat stat_buf; in work_handler() local 554 if (stat(asinfo.idlecheck_path, &stat_buf) != 0) { in work_handler() 557 } else if (!(stat_buf.st_mode & S_IXUSR)) { in work_handler()
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/ctime/ |
H A D | ctime_001_pos.c | 76 struct stat stat_buf; in get_file_time() local 82 if (stat(pfile, &stat_buf) == -1) { in get_file_time() 88 *ptr = stat_buf.st_atime; in get_file_time() 91 *ptr = stat_buf.st_ctime; in get_file_time() 94 *ptr = stat_buf.st_mtime; in get_file_time()
|
/illumos-gate/usr/src/cmd/ndmpd/ndmp/ |
H A D | ndmpd_config.c | 539 struct statvfs64 stat_buf; in ndmpd_config_get_fs_info_v3() local 599 if (statvfs64(fs->mnt_mountp, &stat_buf) < 0) { in ndmpd_config_get_fs_info_v3() 608 long_long_to_quad((u_longlong_t)stat_buf.f_frsize * in ndmpd_config_get_fs_info_v3() 609 (u_longlong_t)stat_buf.f_blocks); in ndmpd_config_get_fs_info_v3() 611 long_long_to_quad((u_longlong_t)stat_buf.f_frsize * in ndmpd_config_get_fs_info_v3() 612 (u_longlong_t)(stat_buf.f_blocks-stat_buf.f_bfree)); in ndmpd_config_get_fs_info_v3() 615 long_long_to_quad((u_longlong_t)stat_buf.f_frsize * in ndmpd_config_get_fs_info_v3() 616 (u_longlong_t)stat_buf.f_bfree); in ndmpd_config_get_fs_info_v3() 618 long_long_to_quad((u_longlong_t)stat_buf.f_files); in ndmpd_config_get_fs_info_v3() 620 long_long_to_quad((u_longlong_t)(stat_buf.f_files - in ndmpd_config_get_fs_info_v3() [all …]
|
/illumos-gate/usr/src/cmd/pwck/ |
H A D | pwck.c | 75 struct stat stat_buf; in main() local 95 if (fstat(fileno(fptr), &stat_buf) < 0) { in main() 102 if (stat_buf.st_size == 0) { in main()
|
/illumos-gate/usr/src/cmd/allocate/ |
H A D | allocate3.c | 1009 struct stat stat_buf; in _deallocate_dev() local 1052 if (stat(fname, &stat_buf) != 0) { in _deallocate_dev() 1080 if (!(optflag & FORCE) && stat_buf.st_uid != uid && in _deallocate_dev() 1081 DEV_ALLOCATED(stat_buf)) { in _deallocate_dev() 1085 if (!DEV_ALLOCATED(stat_buf)) { in _deallocate_dev() 1086 if (DEV_ERRORED(stat_buf)) { in _deallocate_dev() 1097 if ((*lock_fd = lock_dev(fname, &stat_buf)) == -1) { in _deallocate_dev() 1129 nuid = (stat_buf.st_uid == uid) ? uid : stat_buf.st_uid; in _deallocate_dev() 1159 struct stat stat_buf; in _allocate_dev() local 1199 if (stat(fname, &stat_buf) != 0) { in _allocate_dev() [all …]
|
/illumos-gate/usr/src/cmd/vscan/vscand/ |
H A D | vs_main.c | 444 struct stat stat_buf; in vscand_init_file() local 450 if (fstat(fd, &stat_buf) != 0) { in vscand_init_file() 453 if ((stat_buf.st_mode & S_IAMB) != access_mode) { in vscand_init_file() 458 if ((stat_buf.st_uid != uid) || in vscand_init_file() 459 (stat_buf.st_gid != gid)) { in vscand_init_file()
|
/illumos-gate/usr/src/cmd/devctl/ |
H A D | devctl.c | 188 struct stat stat_buf; in main() local 249 if (lstat(orig_path, &stat_buf) == 0) { in main() 250 if (S_ISLNK(stat_buf.st_mode)) { in main()
|
/illumos-gate/usr/src/cmd/bart/ |
H A D | create.c | 289 struct stat64 stat_buf; in create_manifest_filelist() local 292 ret = lstat64(input_fname, &stat_buf); in create_manifest_filelist() 297 ret = eval_file(input_fname, &stat_buf, NULL); in create_manifest_filelist()
|
/illumos-gate/usr/src/lib/libfsmgt/common/ |
H A D | nfs_mntinfo.c | 320 struct stat stat_buf; in get_mount_data() local 327 if ((stat(fsmnt_list->mountp, &stat_buf) == 0)) { in get_mount_data() 328 mrp->nml_fsid = stat_buf.st_dev; in get_mount_data()
|
/illumos-gate/usr/src/cmd/sgs/libld/common/ |
H A D | map_core.c | 2298 struct stat stat_buf; /* stat of mapfile */ in ld_map_parse() local 2307 if (stat(mapfile, &stat_buf) == -1) { in ld_map_parse() 2313 if (S_ISDIR(stat_buf.st_mode)) { in ld_map_parse() 2340 } else if (!S_ISREG(stat_buf.st_mode)) { in ld_map_parse() 2359 mf = libld_malloc(sizeof (*mf) + name_len + stat_buf.st_size + 1); in ld_map_parse() 2366 if (read(mapfile_fd, mf->mf_text, stat_buf.st_size) != in ld_map_parse() 2367 stat_buf.st_size) { in ld_map_parse() 2375 mf->mf_text[stat_buf.st_size] = '\0'; in ld_map_parse()
|
/illumos-gate/usr/src/lib/libdevinfo/ |
H A D | devinfo_devperm.c | 432 struct stat stat_buf; in dir_dev_acc() local 453 if (stat(path, &stat_buf) == -1) { in dir_dev_acc() 469 if (!S_ISDIR(stat_buf.st_mode)) { in dir_dev_acc() 480 if (is_login_user(stat_buf.st_uid)) { in dir_dev_acc()
|
H A D | devfsinfo.c | 993 struct stat stat_buf; in process_minor_name() local 1001 if (stat(path, &stat_buf) == 0) { in process_minor_name() 1043 if (stat(path, &stat_buf) == 0) { in process_minor_name()
|
/illumos-gate/usr/src/cmd/sysdef/ |
H A D | sysdef.c | 582 struct stat stat_buf; in modules() local 591 if (stat(curr, &stat_buf) == -1) { in modules() 603 inodes[i] = stat_buf.st_ino; in modules()
|
/illumos-gate/usr/src/cmd/rmvolmgr/ |
H A D | vold.c | 1006 struct stat stat_buf; in pushdir() local 1008 if (lstat(dir, &stat_buf) < 0) { in pushdir() 1014 if (!(S_ISDIR(stat_buf.st_mode))) { in pushdir()
|
/illumos-gate/usr/src/cmd/fs.d/ufs/ff/ |
H A D | ff.c | 763 struct stat64 stat_buf; in mod_time() local 765 if (stat64(file, &stat_buf) < 0) { in mod_time() 769 return (stat_buf.st_mtime); in mod_time()
|
/illumos-gate/usr/src/cmd/rmformat/ |
H A D | rmf_misc.c | 232 struct stat stat_buf; in check_and_unmount_vold() local 278 ret_val = stat(tmp_path_name, &stat_buf); in check_and_unmount_vold() 587 struct stat stat_buf; in my_open() local 609 ret_val = stat(tmp_path_name, &stat_buf); in my_open() 614 if (S_ISDIR(stat_buf.st_mode)) { in my_open()
|
/illumos-gate/usr/src/cmd/auditreduce/ |
H A D | option.c | 869 struct stat stat_buf; in proc_file() local 877 if (stat(fname, &stat_buf)) { in proc_file() 880 if (!S_ISREG(stat_buf.st_mode)) in proc_file()
|
/illumos-gate/usr/src/lib/storage/liba5k/common/ |
H A D | lhot.c | 128 struct stat stat_buf; in l_make_node() local 268 if (stat(dev_path, &stat_buf) == -1) { in l_make_node()
|
H A D | mon.c | 3272 struct stat stat_buf; in l_get_node_status() local 3403 if (stat(temp_path, &stat_buf) == -1) { in l_get_node_status() 3516 if (stat(temp_path, &stat_buf) == -1) { in l_get_node_status()
|
/illumos-gate/usr/src/cmd/fs.d/nfs/nfslog/ |
H A D | nfslog_elf.c | 1561 struct stat stat_buf; in nfslog_open_elf_file() local 1605 if (stat(elfpath, &stat_buf) == -1) { in nfslog_open_elf_file() 1618 if (stat_buf.st_size == 0) { in nfslog_open_elf_file()
|
/illumos-gate/usr/src/lib/libbsm/common/ |
H A D | adt.c | 929 struct stat stat_buf; in adt_load_ttyname() local 953 if (stat(ttyname, &stat_buf) < 0) { in adt_load_ttyname() 957 p_term->at_port = stat_buf.st_rdev; in adt_load_ttyname()
|
/illumos-gate/usr/src/cmd/zoneadmd/ |
H A D | vplat.c | 3984 struct stat stat_buf; in tsol_mounts() local 4035 if ((stat(autofs_fstab.zone_fs_dir, &stat_buf) == -1) || in tsol_mounts() 4036 strcmp(stat_buf.st_fstype, MNTTYPE_AUTOFS) != 0) { in tsol_mounts() 4097 if ((stat(lower_fstab.zone_fs_dir, &stat_buf) == -1) || in tsol_mounts() 4098 strcmp(stat_buf.st_fstype, MNTTYPE_LOFS) != 0) { in tsol_mounts() 4139 if ((stat(lower_fstab.zone_fs_dir, &stat_buf) == -1) || in tsol_mounts() 4140 strcmp(stat_buf.st_fstype, MNTTYPE_LOFS) != 0) { in tsol_mounts()
|
/illumos-gate/usr/src/cmd/init/ |
H A D | init.c | 2188 struct stat stat_buf; in setup_pipe() local 2199 if ((stat(INITPIPE, &stat_buf) == 0) && in setup_pipe() 2200 ((stat_buf.st_mode & (S_IFMT|S_IRUSR)) == (S_IFIFO|S_IRUSR))) in setup_pipe()
|
/illumos-gate/usr/src/lib/mpapi/libmpapi/common/ |
H A D | mpapi.c | 179 struct stat stat_buf; in InitLibrary() local 256 if (stat(path, &stat_buf) != -1) { in InitLibrary()
|