/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 | 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 | 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 | 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...] |
/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/cmd/mail/ |
H A D | islocal.c | 42 struct stat statb; local 47 if (stat(fname, &statb) == 0) { 48 *puid = statb.st_uid;
|
H A D | main.c | 47 struct stat statb; local
|
/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/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/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/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/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);
|
/illumos-gate/usr/src/lib/libbc/libc/stdio/4.2/ |
H A D | flsbuf.c | 230 struct stat statb; local 243 if (fstat(fno, &statb) < 0) 246 if ((size = statb.st_blksize) <= 0)
|
/illumos-gate/usr/src/lib/libbc/libc/stdio/sys5/ |
H A D | flsbuf.c | 235 struct stat statb; local 248 if (fstat(fno, &statb) < 0) 251 if ((size = statb.st_blksize) <= 0)
|
/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/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/vroot/ |
H A D | lock.cc | 92 struct stat statb; local 120 r = lstat(lockname, &statb);
|
/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/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/lvm/libpreen/common/ |
H A D | mdpreen.c | 151 struct stat statb; local 166 if (stat(uname, &statb) != 0) 179 if (major(statb.st_rdev) != md_major) {
|
/illumos-gate/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);
|
/illumos-gate/usr/src/cmd/ptools/pmap/ |
H A D | pmap_common.c | 70 struct stat statb; local 102 if (stat(path, &statb) == 0) { 103 dev_t dev = statb.st_dev; 104 ino_t ino = statb.st_ino;
|