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

12

/illumos-gate/usr/src/lib/libtnfctl/
H A Dprb_findexec.c54 struct stat stat_buf; local
69 if (stat(fname, &stat_buf) != -1) {
/illumos-gate/usr/src/cmd/power/
H A Dsys-suspend.c452 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 Dpowerd.c532 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 Dctime_001_pos.c73 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 Dpwck.c75 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 Dndmpd_config.c539 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 Dallocate3.c1010 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 Dvs_main.c444 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 Ddevctl.c188 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 Detm_xport_api_dd.c262 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 Dnfs_mntinfo.c322 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 Dcreate.c289 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 Dvold.c1006 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 Dff.c765 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 Dsysdef.c584 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 Dmap_core.c2271 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 Ddevinfo_devperm.c432 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 Ddevfsinfo.c993 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 Drmf_misc.c232 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 Dlhot.c128 struct stat stat_buf; local
268 if (stat(dev_path, &stat_buf) == -1) {
/illumos-gate/usr/src/cmd/auditreduce/
H A Doption.c869 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 Dadt.c887 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 Dnfslog_elf.c1563 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 Dvplat.c3874 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 Dinit.c2226 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)))

Completed in 233 milliseconds

12