Home
last modified time | relevance | path

Searched refs:stat_buf (Results 1 – 25 of 28) sorted by relevance

12

/titanic_44/usr/src/cmd/power/
H A Dsys-suspend.c452 struct stat stat_buf; in refresh_dt() local
458 if ((stat("/usr/dt/bin/dtgreet", &stat_buf) == 0) && in refresh_dt()
459 (stat_buf.st_mode & S_IXUSR)) { in refresh_dt()
490 struct stat stat_buf; in get_xauthority() local
520 if (stat(filepath, &stat_buf) == 0) in get_xauthority()
538 if (stat(filepath, &stat_buf) == -1) in get_xauthority()
540 if (stat_buf.st_uid != uid) in get_xauthority()
542 if (stat_buf.st_ctime > latest) { in get_xauthority()
544 latest = stat_buf.st_ctime; in get_xauthority()
H A Dpowerd.c523 struct stat stat_buf; in work_handler() local
545 if (stat(asinfo.idlecheck_path, &stat_buf) != 0) { in work_handler()
548 } else if (!(stat_buf.st_mode & S_IXUSR)) { in work_handler()
/titanic_44/usr/src/test/zfs-tests/tests/functional/ctime/
H A Dctime_001_pos.c73 struct stat stat_buf; in get_file_time() local
79 if (stat(pfile, &stat_buf) == -1) { in get_file_time()
85 *ptr = stat_buf.st_atime; in get_file_time()
88 *ptr = stat_buf.st_ctime; in get_file_time()
91 *ptr = stat_buf.st_mtime; in get_file_time()
/titanic_44/usr/src/cmd/ndmpd/ndmp/
H A Dndmpd_config.c539 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 …]
/titanic_44/usr/src/lib/libtnfctl/
H A Dprb_findexec.c54 struct stat stat_buf; in find_executable() local
69 if (stat(fname, &stat_buf) != -1) { in find_executable()
/titanic_44/usr/src/cmd/pwck/
H A Dpwck.c75 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()
/titanic_44/usr/src/cmd/fm/modules/sun4v/etm/
H A Detm_xport_api_dd.c262 struct stat stat_buf; /* file stat struct */ in etm_fake_ioctl() local
275 if (fstat(fd, &stat_buf) < 0) { in etm_fake_ioctl()
279 if (stat_buf.st_size > 0) { in etm_fake_ioctl()
281 stat_buf.st_size); in etm_fake_ioctl()
408 struct stat stat_buf; /* buffer for stat() results */ in etm_xport_valid_addr() local
421 if (stat(_addr->fn, &stat_buf) < 0) { in etm_xport_valid_addr()
717 struct stat stat_buf; /* file stat struct */ in etm_xport_init() local
748 if (stat(fn, &stat_buf) < 0) { in etm_xport_init()
755 if (!S_ISCHR(stat_buf.st_mode) && use_vldc == 0) { in etm_xport_init()
/titanic_44/usr/src/cmd/allocate/
H A Dallocate3.c1010 struct stat stat_buf; in _deallocate_dev() local
1053 if (stat(fname, &stat_buf) != 0) { in _deallocate_dev()
1081 if (!(optflag & FORCE) && stat_buf.st_uid != uid && in _deallocate_dev()
1082 DEV_ALLOCATED(stat_buf)) { in _deallocate_dev()
1086 if (!DEV_ALLOCATED(stat_buf)) { in _deallocate_dev()
1087 if (DEV_ERRORED(stat_buf)) { in _deallocate_dev()
1098 if ((*lock_fd = lock_dev(fname, &stat_buf)) == -1) { in _deallocate_dev()
1130 nuid = (stat_buf.st_uid == uid) ? uid : stat_buf.st_uid; in _deallocate_dev()
1160 struct stat stat_buf; in _allocate_dev() local
1200 if (stat(fname, &stat_buf) != 0) { in _allocate_dev()
[all …]
/titanic_44/usr/src/cmd/vscan/vscand/
H A Dvs_main.c444 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()
/titanic_44/usr/src/cmd/devctl/
H A Ddevctl.c188 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()
/titanic_44/usr/src/cmd/bart/
H A Dcreate.c289 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()
/titanic_44/usr/src/lib/libfsmgt/common/
H A Dnfs_mntinfo.c322 struct stat stat_buf; in get_mount_data() local
329 if ((stat(fsmnt_list->mountp, &stat_buf) == 0)) { in get_mount_data()
330 mrp->nml_fsid = stat_buf.st_dev; in get_mount_data()
/titanic_44/usr/src/lib/libdevinfo/
H A Ddevinfo_devperm.c432 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 Ddevfsinfo.c993 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()
/titanic_44/usr/src/cmd/sgs/libld/common/
H A Dmap_core.c2271 struct stat stat_buf; /* stat of mapfile */ in ld_map_parse() local
2280 if (stat(mapfile, &stat_buf) == -1) { in ld_map_parse()
2286 if (S_ISDIR(stat_buf.st_mode)) { in ld_map_parse()
2313 } else if (!S_ISREG(stat_buf.st_mode)) { in ld_map_parse()
2332 mf = libld_malloc(sizeof (*mf) + name_len + stat_buf.st_size + 1); in ld_map_parse()
2339 if (read(mapfile_fd, mf->mf_text, stat_buf.st_size) != in ld_map_parse()
2340 stat_buf.st_size) { in ld_map_parse()
2348 mf->mf_text[stat_buf.st_size] = '\0'; in ld_map_parse()
/titanic_44/usr/src/cmd/sysdef/
H A Dsysdef.c584 struct stat stat_buf; in modules() local
593 if (stat(curr, &stat_buf) == -1) { in modules()
605 inodes[i] = stat_buf.st_ino; in modules()
/titanic_44/usr/src/cmd/rmvolmgr/
H A Dvold.c1006 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()
/titanic_44/usr/src/cmd/fs.d/ufs/ff/
H A Dff.c765 struct stat64 stat_buf; in mod_time() local
767 if (stat64(file, &stat_buf) < 0) { in mod_time()
771 return (stat_buf.st_mtime); in mod_time()
/titanic_44/usr/src/cmd/auditreduce/
H A Doption.c869 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()
/titanic_44/usr/src/cmd/rmformat/
H A Drmf_misc.c232 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()
/titanic_44/usr/src/lib/storage/liba5k/common/
H A Dlhot.c128 struct stat stat_buf; in l_make_node() local
268 if (stat(dev_path, &stat_buf) == -1) { in l_make_node()
/titanic_44/usr/src/cmd/fs.d/nfs/nfslog/
H A Dnfslog_elf.c1563 struct stat stat_buf; in nfslog_open_elf_file() local
1607 if (stat(elfpath, &stat_buf) == -1) { in nfslog_open_elf_file()
1620 if (stat_buf.st_size == 0) { in nfslog_open_elf_file()
/titanic_44/usr/src/lib/libbsm/common/
H A Dadt.c887 struct stat stat_buf; in adt_load_ttyname() local
911 if (stat(ttyname, &stat_buf) < 0) { in adt_load_ttyname()
915 p_term->at_port = stat_buf.st_rdev; in adt_load_ttyname()
/titanic_44/usr/src/cmd/zoneadmd/
H A Dvplat.c3872 struct stat stat_buf; in tsol_mounts() local
3923 if ((stat(autofs_fstab.zone_fs_dir, &stat_buf) == -1) || in tsol_mounts()
3924 strcmp(stat_buf.st_fstype, MNTTYPE_AUTOFS) != 0) { in tsol_mounts()
3985 if ((stat(lower_fstab.zone_fs_dir, &stat_buf) == -1) || in tsol_mounts()
3986 strcmp(stat_buf.st_fstype, MNTTYPE_LOFS) != 0) { in tsol_mounts()
4027 if ((stat(lower_fstab.zone_fs_dir, &stat_buf) == -1) || in tsol_mounts()
4028 strcmp(stat_buf.st_fstype, MNTTYPE_LOFS) != 0) { in tsol_mounts()
/titanic_44/usr/src/cmd/init/
H A Dinit.c2226 struct stat stat_buf; in setup_pipe() local
2237 if ((stat(INITPIPE, &stat_buf) == 0) && in setup_pipe()
2238 ((stat_buf.st_mode & (S_IFMT|S_IRUSR)) == (S_IFIFO|S_IRUSR))) in setup_pipe()

12