Searched refs:statb (Results 1 - 25 of 107) sorted by relevance

12345

/illumos-gate/usr/src/cmd/truss/
H A Dstat.c65 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 Dremove.c41 struct stat64 statb; local
48 if (lstat64(filename, &statb) != 0)
50 if ((statb.st_mode & S_IFMT) != S_IFDIR)
H A Dposix_fadvise.c51 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 Dgetvfsent.c59 (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 Dgetauxv.c62 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 Dposix_fallocate.c41 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 Dgetusershell.c125 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 Dnftw.c175 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 Dxstat.c43 _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 Dislocal.c42 struct stat statb; local
47 if (stat(fname, &statb) == 0) {
48 *puid = statb.st_uid;
/illumos-gate/usr/src/lib/libproc/common/
H A DPisprocdir.c41 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 Dproc_get_info.c107 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 Dsuid_exec.c95 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 Dacctdusg.c213 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 Dtest.c156 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 Ddeviceid.c53 struct stat statb; local
56 if (fstat(fd, &statb) != 0)
60 if (!S_ISCHR(statb.st_mode) && !S_ISBLK(statb.st_mode))
64 dev = statb.st_rdev;
93 struct stat statb; local
95 if (fstat(fd, &statb) != 0)
99 if (!S_ISCHR(statb.st_mode) && !S_ISBLK(statb.st_mode))
102 spectype = statb
158 struct stat statb; local
[all...]
/illumos-gate/usr/src/lib/libshell/common/bltins/
H A Dtest.c312 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)>
556 struct stat statb; local
644 struct stat statb; local
[all...]
/illumos-gate/usr/src/ucbcmd/test/
H A Dtest.c155 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 Dgetusershell.c70 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 Dlock.c94 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 Dlock.c81 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 Dwc.c97 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 Dftw.c41 return (*ftw_userf)(ftw->path, &ftw->statb, n);
/illumos-gate/usr/src/cmd/mailx/
H A Dedit.c103 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 Dcreate.c37 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...]

Completed in 255 milliseconds

12345