/osnet-11/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 | 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 | 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 | getusershell.c | 138 struct stat statb; local 160 if ((fstat(fileno(fp), &statb) == -1) || (statb.st_size > LONG_MAX) || 161 ((strings = malloc((size_t)statb.st_size + 1)) == NULL)) { 165 shells = calloc((size_t)statb.st_size / 3, sizeof (char *));
|
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 | getmntent.c | 61 ((mgetp->xx == NULL) || (stat64(mgetp->xx, &statb) == -1) ||\ 62 ((statb.st_mode & S_IFMT) != typem) ||\ 63 (statb.st_rdev != typer)) 112 struct stat64 statb; local 119 stat64(mrefp->mnt_special, &statb) == 0 && 120 ((bmode = (statb.st_mode & S_IFMT)) == S_IFBLK || 123 brdev = statb.st_rdev;
|
/osnet-11/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 | 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);
|
H A D | Pservice.c | 170 struct stat statb; local 200 if (stat(fname, &statb) != 0) 203 *xrsize = (int)statb.st_size; 275 struct stat statb; local 299 if (stat(fname, &statb) != 0) 302 *cxrsize = (int)statb.st_size;
|
H A D | Pzone.c | 326 struct stat64 statb; local 353 if (stat64(MNTTAB, &statb) == 0 && 354 (statb.st_mtim.tv_sec != lofs_mstat.st_mtim.tv_sec || 355 statb.st_mtim.tv_nsec != lofs_mstat.st_mtim.tv_nsec || 356 statb.st_ctim.tv_sec != lofs_mstat.st_ctim.tv_sec || 357 statb.st_ctim.tv_nsec != lofs_mstat.st_ctim.tv_nsec)) { 358 lofs_mstat = statb;
|
/osnet-11/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));
|
/osnet-11/usr/src/lib/libshell/common/sh/ |
H A D | shcomp.c | 112 struct stat statb; local 115 if(fstat(sffileno(out),&statb) >=0) 116 chmod(cp,(statb.st_mode&~S_IFMT)|S_IXUSR|S_IXGRP|S_IXOTH);
|
H A D | main.c | 147 struct stat statb; local 205 || !fstat(0, &statb) && REMOTE(statb.st_mode) 292 if(fstat(fdin,&statb)<0) 318 if((fdin=sh_open(name,O_RDONLY,0))>=0 &&(fstat(fdin,&statb)<0 || S_ISDIR(statb.st_mode))) 646 struct stat statb; local 666 if(stat(cp,&statb) >= 0 && statb.st_mtime >= mailtime 667 && statb [all...] |
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...] |
/osnet-11/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);
|
H A D | who.c | 169 struct stat statb; local 177 r = stat(line,&statb); 183 state = (statb.st_mode&S_IWOTH)?'+':'-'; 192 if(r>=0 && statb.st_atime<t)
|
/osnet-11/usr/src/lib/libpkg/common/ |
H A D | isdir.c | 171 struct stat statb; local 184 if (fstat(fd, &statb) == -1) { 190 if (S_ISREG(statb.st_mode)) { /* Must be a file */
|
/osnet-11/usr/src/lib/efcode/fcdriver/ |
H A D | load_node.c | 70 struct stat statb; local 156 struct stat statb; local 169 if (fstat(fd, &statb) != 0 || read(fd, header, sizeof (header)) < 0) { 175 status = check_fcode_header(path, header, statb.st_size);
|
/osnet-11/usr/src/lib/lvm/libpreen/common/ |
H A D | mdpreen.c | 147 struct stat statb; local 163 if (stat(uname, &statb) != 0) 175 if (major(statb.st_rdev) != md_major) {
|
/osnet-11/usr/src/lib/libnsl/yp/ |
H A D | dbm.c | 57 struct stat statb; local 88 (void) fstat(dirf, &statb); 89 maxbno = statb.st_size*BYTESIZ-1;
|
/osnet-11/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...] |
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/krb5/rcache/ |
H A D | rc_io.c | 589 struct stat statb; local 591 if (fstat(d->fd, &statb) == 0) 592 return statb.st_size;
|
/osnet-11/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)> 558 struct stat statb; local 646 struct stat statb; local [all...] |
/osnet-11/usr/src/lib/libpctx/common/ |
H A D | libpctx.c | 404 struct stat statb; local 425 fstat(fd, &statb) != 0) { 431 prh = malloc(statb.st_size); 432 if (read(fd, prh, statb.st_size) <
|