/illumos-gate/usr/src/lib/libtnfctl/ |
H A D | prb_findexec.c | 54 struct stat stat_buf; local 69 if (stat(fname, &stat_buf) != -1) {
|
/illumos-gate/usr/src/cmd/power/ |
H A D | sys-suspend.c | 452 struct stat stat_buf; local 458 if ((stat("/usr/dt/bin/dtgreet", &stat_buf) == 0) && 459 (stat_buf.st_mode & S_IXUSR)) { 490 struct stat stat_buf; local 520 if (stat(filepath, &stat_buf) == 0) 538 if (stat(filepath, &stat_buf) == -1) 540 if (stat_buf.st_uid != uid) 542 if (stat_buf.st_ctime > latest) { 544 latest = stat_buf.st_ctime;
|
H A D | powerd.c | 532 struct stat stat_buf; local 554 if (stat(asinfo.idlecheck_path, &stat_buf) != 0) { 557 } else if (!(stat_buf.st_mode & S_IXUSR)) {
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/ctime/ |
H A D | ctime_001_pos.c | 73 struct stat stat_buf; local 79 if (stat(pfile, &stat_buf) == -1) { 85 *ptr = stat_buf.st_atime; 88 *ptr = stat_buf.st_ctime; 91 *ptr = stat_buf.st_mtime;
|
/illumos-gate/usr/src/cmd/pwck/ |
H A D | pwck.c | 75 struct stat stat_buf; local 95 if (fstat(fileno(fptr), &stat_buf) < 0) { 102 if (stat_buf.st_size == 0) {
|
/illumos-gate/usr/src/cmd/ndmpd/ndmp/ |
H A D | ndmpd_config.c | 539 struct statvfs64 stat_buf; local 599 if (statvfs64(fs->mnt_mountp, &stat_buf) < 0) { 608 long_long_to_quad((u_longlong_t)stat_buf.f_frsize * 609 (u_longlong_t)stat_buf.f_blocks); 611 long_long_to_quad((u_longlong_t)stat_buf.f_frsize * 612 (u_longlong_t)(stat_buf.f_blocks-stat_buf.f_bfree)); 615 long_long_to_quad((u_longlong_t)stat_buf.f_frsize * 616 (u_longlong_t)stat_buf.f_bfree); 618 long_long_to_quad((u_longlong_t)stat_buf [all...] |
/illumos-gate/usr/src/cmd/allocate/ |
H A D | allocate3.c | 1010 struct stat stat_buf; local 1053 if (stat(fname, &stat_buf) != 0) { 1081 if (!(optflag & FORCE) && stat_buf.st_uid != uid && 1082 DEV_ALLOCATED(stat_buf)) { 1086 if (!DEV_ALLOCATED(stat_buf)) { 1087 if (DEV_ERRORED(stat_buf)) { 1098 if ((*lock_fd = lock_dev(fname, &stat_buf)) == -1) { 1130 nuid = (stat_buf.st_uid == uid) ? uid : stat_buf.st_uid; 1160 struct stat stat_buf; local [all...] |
/illumos-gate/usr/src/cmd/vscan/vscand/ |
H A D | vs_main.c | 444 struct stat stat_buf; local 450 if (fstat(fd, &stat_buf) != 0) { 453 if ((stat_buf.st_mode & S_IAMB) != access_mode) { 458 if ((stat_buf.st_uid != uid) || 459 (stat_buf.st_gid != gid)) {
|
/illumos-gate/usr/src/cmd/devctl/ |
H A D | devctl.c | 188 struct stat stat_buf; local 249 if (lstat(orig_path, &stat_buf) == 0) { 250 if (S_ISLNK(stat_buf.st_mode)) {
|
/illumos-gate/usr/src/cmd/fm/modules/sun4v/etm/ |
H A D | etm_xport_api_dd.c | 262 struct stat stat_buf; /* file stat struct */ local 275 if (fstat(fd, &stat_buf) < 0) { 279 if (stat_buf.st_size > 0) { 281 stat_buf.st_size); 408 struct stat stat_buf; /* buffer for stat() results */ local 421 if (stat(_addr->fn, &stat_buf) < 0) { 717 struct stat stat_buf; /* file stat struct */ local 748 if (stat(fn, &stat_buf) < 0) { 755 if (!S_ISCHR(stat_buf.st_mode) && use_vldc == 0) {
|
/illumos-gate/usr/src/lib/libfsmgt/common/ |
H A D | nfs_mntinfo.c | 322 struct stat stat_buf; local 329 if ((stat(fsmnt_list->mountp, &stat_buf) == 0)) { 330 mrp->nml_fsid = stat_buf.st_dev;
|
/illumos-gate/usr/src/cmd/bart/ |
H A D | create.c | 289 struct stat64 stat_buf; local 292 ret = lstat64(input_fname, &stat_buf); 297 ret = eval_file(input_fname, &stat_buf, NULL);
|
/illumos-gate/usr/src/cmd/rmvolmgr/ |
H A D | vold.c | 1006 struct stat stat_buf; local 1008 if (lstat(dir, &stat_buf) < 0) { 1014 if (!(S_ISDIR(stat_buf.st_mode))) {
|
/illumos-gate/usr/src/cmd/fs.d/ufs/ff/ |
H A D | ff.c | 765 struct stat64 stat_buf; local 767 if (stat64(file, &stat_buf) < 0) { 771 return (stat_buf.st_mtime);
|
/illumos-gate/usr/src/cmd/sysdef/ |
H A D | sysdef.c | 584 struct stat stat_buf; local 593 if (stat(curr, &stat_buf) == -1) { 605 inodes[i] = stat_buf.st_ino;
|
/illumos-gate/usr/src/cmd/sgs/libld/common/ |
H A D | map_core.c | 2271 struct stat stat_buf; /* stat of mapfile */ local 2280 if (stat(mapfile, &stat_buf) == -1) { 2286 if (S_ISDIR(stat_buf.st_mode)) { 2313 } else if (!S_ISREG(stat_buf.st_mode)) { 2332 mf = libld_malloc(sizeof (*mf) + name_len + stat_buf.st_size + 1); 2339 if (read(mapfile_fd, mf->mf_text, stat_buf.st_size) != 2340 stat_buf.st_size) { 2348 mf->mf_text[stat_buf.st_size] = '\0';
|
/illumos-gate/usr/src/lib/libdevinfo/ |
H A D | devinfo_devperm.c | 432 struct stat stat_buf; local 453 if (stat(path, &stat_buf) == -1) { 469 if (!S_ISDIR(stat_buf.st_mode)) { 480 if (is_login_user(stat_buf.st_uid)) {
|
H A D | devfsinfo.c | 993 struct stat stat_buf; local 1001 if (stat(path, &stat_buf) == 0) { 1043 if (stat(path, &stat_buf) == 0) {
|
/illumos-gate/usr/src/cmd/rmformat/ |
H A D | rmf_misc.c | 232 struct stat stat_buf; local 278 ret_val = stat(tmp_path_name, &stat_buf); 587 struct stat stat_buf; local 609 ret_val = stat(tmp_path_name, &stat_buf); 614 if (S_ISDIR(stat_buf.st_mode)) {
|
/illumos-gate/usr/src/lib/storage/liba5k/common/ |
H A D | lhot.c | 128 struct stat stat_buf; local 268 if (stat(dev_path, &stat_buf) == -1) {
|
/illumos-gate/usr/src/cmd/auditreduce/ |
H A D | option.c | 869 struct stat stat_buf; local 877 if (stat(fname, &stat_buf)) { 880 if (!S_ISREG(stat_buf.st_mode))
|
/illumos-gate/usr/src/lib/libbsm/common/ |
H A D | adt.c | 887 struct stat stat_buf; local 911 if (stat(ttyname, &stat_buf) < 0) { 915 p_term->at_port = stat_buf.st_rdev;
|
/illumos-gate/usr/src/cmd/fs.d/nfs/nfslog/ |
H A D | nfslog_elf.c | 1563 struct stat stat_buf; local 1607 if (stat(elfpath, &stat_buf) == -1) { 1620 if (stat_buf.st_size == 0) {
|
/illumos-gate/usr/src/cmd/zoneadmd/ |
H A D | vplat.c | 3874 struct stat stat_buf; local 3925 if ((stat(autofs_fstab.zone_fs_dir, &stat_buf) == -1) || 3926 strcmp(stat_buf.st_fstype, MNTTYPE_AUTOFS) != 0) { 3987 if ((stat(lower_fstab.zone_fs_dir, &stat_buf) == -1) || 3988 strcmp(stat_buf.st_fstype, MNTTYPE_LOFS) != 0) { 4029 if ((stat(lower_fstab.zone_fs_dir, &stat_buf) == -1) || 4030 strcmp(stat_buf.st_fstype, MNTTYPE_LOFS) != 0) {
|
/illumos-gate/usr/src/cmd/init/ |
H A D | init.c | 2226 struct stat stat_buf; local 2237 if ((stat(INITPIPE, &stat_buf) == 0) && 2238 ((stat_buf.st_mode & (S_IFMT|S_IRUSR)) == (S_IFIFO|S_IRUSR)))
|