/titanic_50/usr/src/cmd/oamuser/lib/ |
H A D | file.c | 32 check_perm( statbuf, uid, gid, perm ) in check_perm() argument 33 struct stat statbuf; in check_perm() 41 if( S_ISDIR( statbuf.st_mode )) { 47 if( (statbuf.st_uid == uid) && 48 (statbuf.st_mode & (perm << 6)) == (perm << 6) ) 51 if( (statbuf.st_gid == gid) && 52 (statbuf.st_mode & (perm << 3)) == (perm << 3) ) 55 if( (statbuf.st_mode & perm) == perm )
|
/titanic_50/usr/src/lib/libpkg/common/ |
H A D | isdir.c | 94 struct stat statbuf; in isdir() local 98 if (stat(path, &statbuf) != 0) { in isdir() 104 if ((statbuf.st_mode & S_IFMT) != S_IFDIR) { in isdir() 127 struct stat statbuf; in isfile() local 139 if (stat(file, &statbuf) != 0) { in isfile() 145 if ((statbuf.st_mode & S_IFMT) == S_IFDIR) { in isfile() 152 if ((statbuf.st_mode & S_IFMT) != S_IFREG) { in isfile() 243 struct stat statbuf; in isPathRemote() local 245 r = lstat(a_path, &statbuf); in isPathRemote() 250 return (isFstypeRemote(statbuf.st_fstype)); in isPathRemote() [all …]
|
H A D | vfpops.c | 158 struct stat statbuf; in vfpOpen() local 218 if (fstat(fileno(fp), &statbuf) != 0) { in vfpOpen() 241 if ((S_ISREG(statbuf.st_mode)) && (!(a_flags & VFP_NOMMAP)) && in vfpOpen() 242 ((a_flags & VFP_NOMALLOC) || statbuf.st_size > MIN_MMAP_SIZE)) { in vfpOpen() 246 vfp->_vfpMapSize = statbuf.st_size; in vfpOpen() 256 vfp->_vfpSize = (statbuf.st_size + pagesize + in vfpOpen() 257 (pagesize-(statbuf.st_size % pagesize))); in vfpOpen() 305 vfp->_vfpSize = statbuf.st_size+pagesize; in vfpOpen() 320 if (statbuf.st_size != 0) { in vfpOpen() 322 statbuf.st_size); in vfpOpen() [all …]
|
/titanic_50/usr/src/lib/libtecla/common/ |
H A D | pathutil.c | 373 struct stat statbuf; /* The file-statistics return buffer */ in _pu_path_is_dir() local 377 if(stat(pathname, &statbuf) < 0) in _pu_path_is_dir() 382 return S_ISDIR(statbuf.st_mode) != 0; in _pu_path_is_dir() 396 struct stat statbuf; /* The file-statistics return buffer */ in _pu_path_is_file() local 400 if(stat(pathname, &statbuf) < 0) in _pu_path_is_file() 405 return S_ISREG(statbuf.st_mode) != 0; in _pu_path_is_file() 419 struct stat statbuf; /* The file-statistics return buffer */ in _pu_path_is_exe() local 423 if(stat(pathname, &statbuf) < 0) in _pu_path_is_exe() 428 return S_ISREG(statbuf.st_mode) != 0 && in _pu_path_is_exe() 429 (statbuf.st_mode & (S_IXOTH | S_IXGRP | S_IXUSR)) && in _pu_path_is_exe() [all …]
|
/titanic_50/usr/src/cmd/oamuser/user/ |
H A D | movedir.c | 58 struct stat statbuf; in move_dir() local 85 if (stat(from, &statbuf) == 0) { in move_dir() 86 chmod(to, statbuf.st_mode); in move_dir() 87 times.actime = statbuf.st_atime; in move_dir() 88 times.modtime = statbuf.st_mtime; in move_dir()
|
/titanic_50/usr/src/cmd/ttymon/ |
H A D | tmutil.c | 60 struct stat statbuf; in check_device() local 71 if (stat(device,&statbuf) < 0) { in check_device() 75 if ((statbuf.st_mode & S_IFMT) != S_IFCHR) { in check_device() 96 struct stat statbuf; in check_cmd() local 111 if (stat(tp,&statbuf) < 0) { in check_cmd() 115 if (!(statbuf.st_mode & 0111)) { in check_cmd() 119 if ((statbuf.st_mode & S_IFMT) != S_IFREG) { in check_cmd()
|
/titanic_50/usr/src/test/zfs-tests/tests/functional/exec/ |
H A D | mmap_exec.c | 44 struct stat statbuf; in main() local 59 if (fstat(fd, &statbuf) < 0) { in main() 64 if (mmap(0, statbuf.st_size, in main()
|
/titanic_50/usr/src/lib/libcurses/screen/ |
H A D | scr_ll_dump.c | 55 struct stat statbuf; in scr_ll_dump() local 62 statbuf.st_mtime = 0; in scr_ll_dump() 64 (void) stat(thistty, &statbuf); in scr_ll_dump() 66 if (fwrite((char *) &(statbuf.st_mtime), sizeof (time_t), in scr_ll_dump()
|
/titanic_50/usr/src/lib/brand/solaris10/s10_replacefile/ |
H A D | s10_replacefile.c | 80 struct stat statbuf; in main() local 109 if (stat(argv[4], &statbuf) == 0 && (statbuf.st_mode & S_IFREG)) { in main()
|
/titanic_50/usr/src/lib/libcryptoutil/common/ |
H A D | keyfile.c | 50 struct stat statbuf; in pkcs11_read_data() local 65 if (fstat(fd, &statbuf) == -1) { in pkcs11_read_data() 71 if (S_ISREG(statbuf.st_mode)) { in pkcs11_read_data() 73 filesize = statbuf.st_size; in pkcs11_read_data()
|
/titanic_50/usr/src/lib/libc/port/gen/ |
H A D | nlspath_checks.c | 85 nls_safe_open(const char *path, struct stat64 *statbuf, int *trust, int safe) in nls_safe_open() argument 106 if (fstat64(fd, statbuf) == -1) { in nls_safe_open() 143 if (statbuf->st_uid == 0 || statbuf->st_uid == 2) { in nls_safe_open() 150 if ((statbuf->st_mode & (S_IWOTH)) == 0 && in nls_safe_open() 151 ((statbuf->st_mode & (S_IWGRP)) == 0 || in nls_safe_open() 152 (statbuf->st_gid < 4 && statbuf->st_gid != 1))) { in nls_safe_open()
|
H A D | catopen.c | 283 struct stat64 statbuf; in file_open() local 289 fd = nls_safe_open(name, &statbuf, &trust, safe); in file_open() 295 addr = mmap(0, (size_t)statbuf.st_size, PROT_READ, MAP_SHARED, fd, 0); in file_open() 305 (void) munmap(addr, (size_t)statbuf.st_size); in file_open() 312 (void) munmap(addr, statbuf.st_size); in file_open() 316 tmp_catd->__size = (int)statbuf.st_size; in file_open()
|
/titanic_50/usr/src/cmd/svr4pkg/pkgproto/ |
H A D | main.c | 446 struct stat statbuf; in findlink() local 451 if (lstat(path, &statbuf)) { in findlink() 455 if ((statbuf.st_mode & S_IFMT) == S_IFLNK) { in findlink() 473 if (stat(path, &statbuf)) in findlink() 475 if (statbuf.st_nlink <= 1) in findlink() 479 if ((statbuf.st_ino == link->ino) && in findlink() 480 (statbuf.st_dev == link->dev)) { in findlink() 501 new->ino = statbuf.st_ino; in findlink() 502 new->dev = statbuf.st_dev; in findlink()
|
/titanic_50/usr/src/lib/libsec/common/ |
H A D | aclutils.c | 109 struct stat64 statbuf; in cacl_get() local 171 stat_error = stat64(fname, &statbuf); in cacl_get() 175 stat_error = fstat64(fd, &statbuf); in cacl_get() 190 (S_ISDIR(statbuf.st_mode) ? ACL_IS_DIR : 0); in cacl_get() 251 struct stat64 statbuf; in cacl_set() local 257 stat_error = stat64(acl_inp->file, &statbuf); in cacl_set() 262 stat_error = fstat64(acl_inp->fd, &statbuf); in cacl_set() 279 isdir = S_ISDIR(statbuf.st_mode); in cacl_set() 282 statbuf.st_uid, statbuf.st_gid)) != 0) { in cacl_set() 397 struct stat64 statbuf; in acl_strip() local [all …]
|
/titanic_50/usr/src/cmd/zinject/ |
H A D | translate.c | 90 struct stat64 *statbuf) in parse_pathname() argument 112 if (stat64(fullpath, statbuf) != 0) { in parse_pathname() 125 if (makedev(mp.mnt_major, mp.mnt_minor) == statbuf->st_dev) { in parse_pathname() 166 object_from_path(const char *dataset, const char *path, struct stat64 *statbuf, in object_from_path() argument 186 record->zi_object = statbuf->st_ino; in object_from_path() 337 struct stat64 statbuf; in translate_record() local 382 if (parse_pathname(object, dataset, path, &statbuf) != 0) in translate_record() 391 if (object_from_path(dataset, path, &statbuf, record) != 0) in translate_record()
|
/titanic_50/usr/src/cmd/cmd-inet/sbin/dhcpagent/ |
H A D | defaults.c | 165 struct stat statbuf; in df_get_string() local 173 if (stat(DHCP_AGENT_DEFAULTS, &statbuf) != 0) { in df_get_string() 186 if (statbuf.st_mtime != df_statbuf.st_mtime || in df_get_string() 187 statbuf.st_size != df_statbuf.st_size) { in df_get_string() 188 df_statbuf = statbuf; in df_get_string()
|
/titanic_50/usr/src/cmd/lp/lib/lp/ |
H A D | next.c | 112 struct stat statbuf; local 116 if (Stat(path, &statbuf) == -1) { 121 return ((statbuf.st_mode & S_IFMT) == what);
|
/titanic_50/usr/src/lib/libresolv2/common/bsd/ |
H A D | writev.c | 23 struct stat statbuf; in __writev() local 25 if (fstat(fd, &statbuf) < 0) in __writev() 31 if (statbuf.st_mode & S_IFSOCK) { in __writev()
|
/titanic_50/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | dnsglue.c | 83 struct __res_state statbuf; in krb5int_dns_init() local 108 memset(&statbuf, 0, sizeof(statbuf)); in krb5int_dns_init() 109 ret = res_ninit(&statbuf); in krb5int_dns_init() 128 len = res_nsearch(&statbuf, host, ds->nclass, ds->ntype, in krb5int_dns_init() 159 res_ndestroy(&statbuf); in krb5int_dns_init()
|
/titanic_50/usr/src/cmd/svr4pkg/pkgmk/ |
H A D | mkpkgmap.c | 364 struct stat statbuf; in findfile() local 401 if (stat(temp, &statbuf) || in findfile() 402 !(statbuf.st_mode & S_IFREG)) { in findfile() 415 if ((stat(host, &statbuf) == 0) && in findfile() 416 (statbuf.st_mode & S_IFREG)) { in findfile() 430 if ((stat(host, &statbuf) == 0) && in findfile() 431 (statbuf.st_mode & S_IFREG)) { in findfile() 438 if ((stat(host, &statbuf) == 0) && (statbuf.st_mode & S_IFREG)) in findfile() 807 struct stat statbuf; in srchroot() local 818 if (stat(copy, &statbuf) || !(statbuf.st_mode & S_IFREG)) { in srchroot()
|
/titanic_50/usr/src/cmd/lp/lib/forms/ |
H A D | putform.c | 55 struct stat statbuf; in putform() local 74 if (Stat(path, &statbuf) == 0) { in putform() 75 if (!S_ISDIR(statbuf.st_mode)) { in putform()
|
/titanic_50/usr/src/lib/libzfs/common/ |
H A D | libzfs_import.c | 869 struct stat64 statbuf; in zpool_read_label() local 876 if (fstat64(fd, &statbuf) == -1) in zpool_read_label() 878 size = P2ALIGN_TYPED(statbuf.st_size, sizeof (vdev_label_t), uint64_t); in zpool_read_label() 1040 struct stat64 statbuf; in zpool_open_func() local 1056 if (fstat64(fd, &statbuf) != 0 || in zpool_open_func() 1057 (!S_ISREG(statbuf.st_mode) && in zpool_open_func() 1058 !S_ISCHR(statbuf.st_mode) && in zpool_open_func() 1059 !S_ISBLK(statbuf.st_mode))) { in zpool_open_func() 1064 if (S_ISREG(statbuf.st_mode) && in zpool_open_func() 1065 statbuf.st_size < SPA_MINDEVSIZE) { in zpool_open_func() [all …]
|
/titanic_50/usr/src/lib/libc/port/stdio/ |
H A D | tempnam.c | 59 struct stat64 statbuf; in tempnam() local 66 if (stat64(dir, &statbuf) == 0 && S_ISDIR(statbuf.st_mode)) in tempnam()
|
/titanic_50/usr/src/lib/libnsl/rpc/ |
H A D | rpc_generic.c | 421 struct stat statbuf; in __rpcfd_to_nconf() local 427 if (fstat(fd, &statbuf) == -1) in __rpcfd_to_nconf() 430 fdmajor = major(statbuf.st_rdev); in __rpcfd_to_nconf() 462 if (!stat(nconf->nc_device, &statbuf)) { in __rpcfd_to_nconf() 463 if (fdmajor == major(statbuf.st_rdev)) in __rpcfd_to_nconf() 465 if (fdmajor == minor(statbuf.st_rdev)) in __rpcfd_to_nconf()
|
/titanic_50/usr/src/lib/libm/common/m9x/ |
H A D | __fex_sym.c | 77 struct stat statbuf; in __fex_sym_init() local 88 if (stat("/proc/self/map", &statbuf) < 0 || statbuf.st_size <= 0 || in __fex_sym_init() 89 (pm = (prmap_t*)malloc(statbuf.st_size)) == NULL) in __fex_sym_init() 97 n = read(i, pm, statbuf.st_size); in __fex_sym_init() 99 if (n != statbuf.st_size) in __fex_sym_init()
|