/illumos-gate/usr/src/cmd/truss/ |
H A D | stat.c | 65 struct stat32 statb; local 69 Pread(Proc, &statb, sizeof (statb), offset) == sizeof (statb)) { 73 statb.st_dev, 74 statb.st_ino, 75 statb.st_mode, 76 statb.st_nlink, 77 statb.st_uid, 78 statb 110 struct stat64_32 statb; local 155 struct stat64 statb; local [all...] |
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | remove.c | 41 struct stat64 statb; local 48 if (lstat64(filename, &statb) != 0) 50 if ((statb.st_mode & S_IFMT) != S_IFDIR)
|
H A D | 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))
|
H A D | getvfsent.c | 59 (vgetp->xx == NULL || stat64(vgetp->xx, &statb) == -1 ||\ 60 (statb.st_mode & S_IFMT) != typem ||\ 61 statb.st_rdev != typer) 74 struct stat64 statb; local 77 if (special && stat64(special, &statb) == 0 && 78 ((bmode = (statb.st_mode & S_IFMT)) == S_IFBLK || 81 brdev = statb.st_rdev; 91 stat64(vgetp->vfs_special, &statb) == -1 || 92 (statb.st_mode & S_IFMT) != bmode || 93 statb 114 struct stat64 statb; local [all...] |
H A D | 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);
|
H A D | 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 */
|
H A D | getusershell.c | 125 struct stat statb; local 147 if ((fstat(fileno(fp), &statb) == -1) || (statb.st_size > LONG_MAX) || 148 ((strings = malloc((size_t)statb.st_size + 1)) == NULL)) { 152 shells = calloc((size_t)statb.st_size / 3, sizeof (char *));
|
H A D | 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, typ 500 struct stat statb; local [all...] |
/illumos-gate/usr/src/lib/libc/i386/sys/ |
H A D | xstat.c | 43 _xstat(int version, const char *path, struct stat *statb) argument 49 return (stat(path, statb)); 53 _lxstat(int version, const char *path, struct stat *statb) argument 59 return (lstat(path, statb)); 63 _fxstat(int version, int fd, struct stat *statb) argument 69 return (fstat(fd, statb));
|
/illumos-gate/usr/src/cmd/mail/ |
H A D | islocal.c | 42 struct stat statb; local 47 if (stat(fname, &statb) == 0) { 48 *puid = statb.st_uid;
|
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | 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 &&
|
H A D | proc_get_info.c | 107 struct stat statb; local 113 if (fstat(fd, &statb) != 0 || 114 (rv = malloc(statb.st_size)) == NULL || 115 read(fd, rv, statb.st_size) != statb.st_size) { 136 struct stat statb; local 147 if (fstat(fd, &statb) == 0) 148 nldt = statb.st_size / sizeof (struct ssd);
|
/illumos-gate/usr/src/lib/libshell/common/sh/ |
H A D | 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) < 295 struct stat statb; local [all...] |
/illumos-gate/usr/src/cmd/acct/ |
H A D | 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 [all...] |
/illumos-gate/usr/src/cmd/sh/ |
H A D | 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...] |
/illumos-gate/usr/src/lib/libdevid/ |
H A D | 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 134 struct stat statb; local [all...] |
/illumos-gate/usr/src/lib/libshell/common/bltins/ |
H A D | 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)> 555 struct stat statb; local 643 struct stat statb; local [all...] |
/illumos-gate/usr/src/ucbcmd/test/ |
H A D | 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 273 struct stat statb; local [all...] |
/illumos-gate/usr/src/lib/libbc/libc/gen/common/ |
H A D | 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 *));
|
/illumos-gate/usr/src/cmd/sgs/libldmake/common/ |
H A D | lock.c | 94 struct stat statb; local 115 r = lstat(lockname, &statb); 151 if (statb.st_mtime + timeout < fs_statb.st_mtime) {
|
/illumos-gate/usr/src/cmd/make/lib/makestate/ |
H A D | lock.c | 81 struct stat statb; local 101 r = lstat(lockname, &statb); 134 if (statb.st_mtime + timeout < fs_statb.st_mtime) {
|
/illumos-gate/usr/src/lib/libcmd/common/ |
H A D | 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);
|
/illumos-gate/usr/src/lib/libast/common/comp/ |
H A D | ftw.c | 41 return (*ftw_userf)(ftw->path, &ftw->statb, n);
|
/illumos-gate/usr/src/cmd/mailx/ |
H A D | 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) {
|
/illumos-gate/usr/src/cmd/bart/ |
H A D | create.c | 37 static int eval_file(const char *fname, const struct stat64 *statb, 40 static char *get_acl_string(const char *fname, const struct stat64 *statb, 417 eval_file(const char *fname, const struct stat64 *statb, struct FTW *ftwx) argument 425 switch (statb->st_mode & S_IFMT) { 520 acl_str = get_acl_string(fname, statb, &err_code); 527 (int)statb->st_size, (int)statb->st_mode, acl_str, 528 (int)statb->st_mtime, (int)statb->st_uid, (int)statb 611 get_acl_string(const char *fname, const struct stat64 *statb, int *err_code) argument [all...] |