| /onnv/onnv-gate/usr/src/cmd/truss/ |
| xstat.c | 74 struct o_stat statb; local 78 Pread(Proc, &statb, sizeof (statb), offset) == sizeof (statb)) { 82 statb.st_dev & 0xffff, 83 statb.st_ino, 84 statb.st_mode, 85 statb.st_nlink % 0xffff, 86 statb.st_uid, 87 statb.st_gid) 174 struct stat32 statb; local 219 struct stat64_32 statb; local 264 struct stat64 statb; local [all...] |
| /onnv/onnv-gate/usr/src/lib/libc/port/gen/ |
| remove.c | 41 struct stat64 statb; local 48 if (lstat64(filename, &statb) != 0) 50 if ((statb.st_mode & S_IFMT) != S_IFDIR)
|
| posix_fadvise.c | 51 struct stat64 statb; local 66 if (fstat64(fd, &statb) != 0) 68 if (S_ISFIFO(statb.st_mode)) 79 struct stat64 statb; local 94 if (fstat64(fd, &statb) != 0) 96 if (S_ISFIFO(statb.st_mode))
|
| getvfsent.c | 62 (vgetp->xx == NULL || stat64(vgetp->xx, &statb) == -1 ||\ 63 (statb.st_mode & S_IFMT) != typem ||\ 64 statb.st_rdev != typer) 77 struct stat64 statb; local 80 if (special && stat64(special, &statb) == 0 && 81 ((bmode = (statb.st_mode & S_IFMT)) == S_IFBLK || 84 brdev = statb.st_rdev; 94 stat64(vgetp->vfs_special, &statb) == -1 || 95 (statb.st_mode & S_IFMT) != bmode || 96 statb.st_rdev != brdev))) 117 struct stat64 statb; local [all...] |
| getauxv.c | 62 struct stat statb; local 67 fstat(fd, &statb) != -1) 69 statb.st_size + sizeof (auxv_t)); 72 i = read(fd, buf, statb.st_size);
|
| posix_fallocate.c | 41 struct stat64 statb; local 44 if (fstat64(fd, &statb) != 0) /* can't happen? */ 46 else if (S_ISFIFO(statb.st_mode)) /* pipe or FIFO */ 48 else if (!S_ISREG(statb.st_mode)) /* not a regular file */
|
| getusershell.c | 119 struct stat statb; local 141 if ((fstat(fileno(fp), &statb) == -1) || (statb.st_size > LONG_MAX) || 142 ((strings = malloc((size_t)statb.st_size + 1)) == NULL)) { 146 shells = calloc((size_t)statb.st_size / 3, sizeof (char *));
|
| nftw.c | 175 struct stat statb; local 216 if ((*vp->statf)(comp, &statb, last, _AT_TRIGGER) >= 0) { 217 if ((statb.st_mode & S_IFMT) == S_IFDIR) { 237 } else if ((statb.st_mode & S_IFMT) == S_IFLNK) { 263 (cdlstat(comp, &statb, last, 0) >= 0) && 264 ((statb.st_mode & S_IFMT) == S_IFLNK)) || 266 (nocdlstat(comp, &statb, last, 0) >= 0) && 267 ((statb.st_mode & S_IFMT) == S_IFLNK))) { 295 statb.st_dev != vp->cur_mount) 304 rc = (*fn)(vp->tmppath, &statb, type, &vp->state) 500 struct stat statb; local [all...] |
| /onnv/onnv-gate/usr/src/cmd/mail/ |
| islocal.c | 42 struct stat statb; local 47 if (stat(fname, &statb) == 0) { 48 *puid = statb.st_uid;
|
| /onnv/onnv-gate/usr/src/lib/libproc/common/ |
| Pisprocdir.c | 41 struct stat statb; local 52 * We can't compare the statb.st_fstype string to "proc" because 56 return (stat(path, &statb) == 0 && 58 (statb.st_mode & S_IFMT) == S_IFDIR && 59 statb.st_ino == 2 &&
|
| proc_get_info.c | 78 struct stat statb; local 84 if (fstat(fd, &statb) != 0 || 85 (rv = malloc(statb.st_size)) == NULL || 86 read(fd, rv, statb.st_size) != statb.st_size) { 107 struct stat statb; local 118 if (fstat(fd, &statb) == 0) 119 nldt = statb.st_size / sizeof (struct ssd);
|
| /onnv/onnv-gate/usr/src/lib/libshell/common/sh/ |
| suid_exec.c | 95 static struct stat statb; variable in typeref:struct:stat 130 if(fstat(FDVERIFY,&statb) < 0 || statb.st_uid != 0 || 131 (statb.st_mode & ~S_IFMT) != SPECIAL || close(FDVERIFY)<0) 138 if(stat(tmpname,&statb) < 0 || statb.st_nlink != 1 || 139 !S_ISREG(statb.st_mode)) 142 ((statb.st_mode & S_ISUID) == 0 || statb.st_uid != euserid)) 165 if(fstat(FDIN,&statb) < 0 || (statb.st_mode & ~S_IFMT) != SPECIAL 295 struct stat statb; local [all...] |
| /onnv/onnv-gate/usr/src/cmd/acct/ |
| acctdusg.c | 213 struct stat statb; local 217 if (lstat(n, &statb) == -1) 223 if (statb.st_nlink > 1) { 224 switch (add_tnode(&tree, statb.st_dev, statb.st_ino)) { 240 if (S_ISCHR(statb.st_mode) || S_ISBLK(statb.st_mode)) 241 statb.st_blocks = 0; 248 if ((entry = hash_find(statb.st_uid)) == NULL) { 250 pw = getpwuid(statb.st_uid) [all...] |
| /onnv/onnv-gate/usr/src/cmd/sh/ |
| test.c | 156 struct stat statb; local 158 return(stat((char *)nxtarg(0), &statb) >= 0 && 159 (statb.st_mode & S_IFMT) != S_IFDIR); 227 struct stat statb; local 229 if (stat((char *)f, &statb) < 0) 231 if ((statb.st_mode & field) == field) 239 struct stat statb; local 242 if ((*statf)(f, &statb) < 0) 244 if ((statb.st_mode & S_IFMT) == field) 254 struct stat statb; local [all...] |
| /onnv/onnv-gate/usr/src/lib/libdevid/ |
| deviceid.c | 52 struct stat statb; local 55 if (fstat(fd, &statb) != 0) 59 if (!S_ISCHR(statb.st_mode) && !S_ISBLK(statb.st_mode)) 63 dev = statb.st_rdev; 92 struct stat statb; local 94 if (fstat(fd, &statb) != 0) 98 if (!S_ISCHR(statb.st_mode) && !S_ISBLK(statb.st_mode)) 101 spectype = statb.st_mode & S_IFMT 134 struct stat statb; local [all...] |
| /onnv/onnv-gate/usr/src/lib/libshell/common/bltins/ |
| test.c | 312 struct stat statb; local 326 if(stat(arg,&statb)<0 || !S_ISREG(statb.st_mode)) 340 return(test_stat(arg,&statb)>=0 && S_ISDIR(statb.st_mode)); 342 return(test_stat(arg,&statb)>=0 && S_ISCHR(statb.st_mode)); 344 return(test_stat(arg,&statb)>=0 && S_ISBLK(statb.st_mode)); 346 return(test_stat(arg,&statb)>=0 && S_ISREG(statb.st_mode)) 555 struct stat statb; local 643 struct stat statb; local [all...] |
| /onnv/onnv-gate/usr/src/ucbcmd/test/ |
| test.c | 155 struct stat statb; local 157 return (stat(nxtarg(0), &statb) >= 0 && 158 (statb.st_mode & S_IFMT) != S_IFDIR); 243 struct stat statb; local 245 if (stat(f, &statb) < 0) 247 if ((statb.st_mode & field) == field) 255 struct stat statb; local 258 if (lstat(f, &statb) < 0) 261 if (stat(f, &statb) < 0) 264 if ((statb.st_mode & S_IFMT) == field 273 struct stat statb; local [all...] |
| /onnv/onnv-gate/usr/src/lib/libbc/libc/gen/common/ |
| getusershell.c | 70 struct stat statb; local 80 if (fstat(fileno(fp), &statb) == -1) { 84 if ((strings = malloc((unsigned)statb.st_size + 1)) == NULL) { 88 shells = (char **)calloc((unsigned)statb.st_size / 3, sizeof (char *));
|
| /onnv/onnv-gate/usr/src/cmd/bart/ |
| create.c | 38 static int eval_file(const char *fname, const struct stat64 *statb); 40 static char *get_acl_string(const char *fname, const struct stat64 *statb, 409 eval_file(const char *fname, const struct stat64 *statb) 417 switch (statb->st_mode & S_IFMT) { 509 acl_str = get_acl_string(fname, statb, &err_code); 516 (int)statb->st_size, (int)statb->st_mode, acl_str, 517 (int)statb->st_mtime, (int)statb->st_uid, (int)statb->st_gid) [all...] |
| /onnv/onnv-gate/usr/src/cmd/ptools/pfiles/ |
| pfiles.c | 199 struct stat64 statb; local 236 if (pr_fstat64(Pr, fd, &statb) == -1) { 244 switch (statb.st_mode & S_IFMT) { 245 case S_IFCHR: s = "S_IFCHR"; rdev = statb.st_rdev; break; 246 case S_IFBLK: s = "S_IFBLK"; rdev = statb.st_rdev; break; 257 (int)statb.st_mode & S_IFMT); 262 (int)statb.st_mode & ~S_IFMT); 264 if (major(statb.st_dev) != (major_t)NODEV && 265 minor(statb.st_dev) != (minor_t)NODEV) 267 (ulong_t)major(statb.st_dev) [all...] |
| /onnv/onnv-gate/usr/src/cmd/sgs/libldmake/common/ |
| lock.c | 94 struct stat statb; local 115 r = lstat(lockname, &statb); 151 if (statb.st_mtime + timeout < fs_statb.st_mtime) {
|
| /onnv/onnv-gate/usr/src/cmd/fmli/sys/ |
| test.c | 268 struct stat statb; local 270 if (stat(f, &statb) < 0) 272 if ((statb.st_mode & field) == field) 282 struct stat statb; local 284 if (stat(f, &statb) < 0) 286 if ((statb.st_mode & S_IFMT) == field) 298 struct stat statb; local 300 if (stat(f, &statb) < 0) 302 return(statb.st_size > 0);
|
| /onnv/onnv-gate/usr/src/lib/libast/common/comp/ |
| ftw.c | 41 return (*ftw_userf)(ftw->path, &ftw->statb, n);
|
| /onnv/onnv-gate/usr/src/lib/libcmd/common/ |
| wc.c | 97 struct stat statb; local 165 if (!(mode&(WC_WORDS|WC_LINES|WC_MBYTE|WC_LONGEST)) && fstat(sffileno(fp),&statb)>=0 166 && S_ISREG(statb.st_mode)) 168 wp->chars = statb.st_size - lseek(sffileno(fp),0L,1);
|
| /onnv/onnv-gate/usr/src/cmd/mailx/ |
| edit.c | 103 struct stat statb; local 167 if (stat(tempZedit, &statb) < 0) 170 modtime = statb.st_mtime; 205 if (stat(tempZedit, &statb) < 0) { 209 if (modtime == statb.st_mtime) {
|