Home
last modified time | relevance | path

Searched refs:statb (Results 1 – 25 of 96) sorted by last modified time

1234

/illumos-gate/usr/src/lib/libc/port/rt/
H A Dmqueue.c939 struct stat64 statb; in mq_notify() local
995 if (fstat64(port, &statb) != 0 || in mq_notify()
996 !S_ISPORT(statb.st_mode)) { in mq_notify()
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dndbm.c163 struct stat64 statb; in dbm_open() local
202 (void) fstat64(db->dbm_dirf, &statb); in dbm_open()
203 db->dbm_maxbno = statb.st_size * BYTESIZ-1; in dbm_open()
497 struct stat64 statb; in dbm_slow_nextkey() local
501 if (dbm_error(db) || fstat64(db->dbm_pagf, &statb) < 0) in dbm_slow_nextkey()
503 statb.st_size /= PBLKSIZ; in dbm_slow_nextkey()
531 if (++db->dbm_blkptr >= statb.st_size) in dbm_slow_nextkey()
H A Dremove.c39 struct stat64 statb; in remove() local
46 if (lstat64(filename, &statb) != 0) in remove()
48 if ((statb.st_mode & S_IFMT) != S_IFDIR) in remove()
H A Dposix_fadvise.c48 struct stat64 statb; in posix_fadvise() local
63 if (fstat64(fd, &statb) != 0) in posix_fadvise()
65 if (S_ISFIFO(statb.st_mode)) in posix_fadvise()
75 struct stat64 statb; in posix_fadvise64() local
90 if (fstat64(fd, &statb) != 0) in posix_fadvise64()
92 if (S_ISFIFO(statb.st_mode)) in posix_fadvise64()
H A Dposix_fallocate.c39 struct stat64 statb; in fallocate_errno() local
42 if (fstat64(fd, &statb) != 0) /* can't happen? */ in fallocate_errno()
44 else if (S_ISFIFO(statb.st_mode)) /* pipe or FIFO */ in fallocate_errno()
46 else if (!S_ISREG(statb.st_mode)) /* not a regular file */ in fallocate_errno()
H A Dnftw.c173 struct stat statb; in walk() local
293 statb.st_dev != vp->cur_mount) in walk()
321 statb2.st_ino != statb.st_ino || in walk()
351 if (sp->dev == statb.st_dev && in walk()
352 sp->inode == statb.st_ino) { in walk()
363 this.dev = statb.st_dev; in walk()
364 this.inode = statb.st_ino; in walk()
462 statb.st_dev != last->dev) in walk()
472 ((*vp->statf)(".", &statb, in walk()
498 struct stat statb; in nftw() local
[all …]
/illumos-gate/usr/src/cmd/fm/notify/smtp-notify/common/
H A Dsmtp-notify.c112 struct stat statb; in read_template() local
115 if (stat(template, &statb) != 0) { in read_template()
125 if ((buf = malloc(statb.st_size + 1)) == NULL) { in read_template()
126 nd_error(nhdl, "Failed to allocate %d bytes", statb.st_size); in read_template()
130 if (read(fd, buf, statb.st_size) < 0) { in read_template()
137 buf[statb.st_size] = '\0'; in read_template()
/illumos-gate/usr/src/cmd/sh/
H A Dtest.c154 struct stat statb; in e3() local
157 (statb.st_mode & S_IFMT) != S_IFDIR); in e3()
225 struct stat statb; in ftype() local
227 if (stat((char *)f, &statb) < 0) in ftype()
229 if ((statb.st_mode & field) == field) in ftype()
237 struct stat statb; in filtyp() local
240 if ((*statf)(f, &statb) < 0) in filtyp()
242 if ((statb.st_mode & S_IFMT) == field) in filtyp()
252 struct stat statb; in fsizep() local
254 if (stat((char *)f, &statb) < 0) in fsizep()
[all …]
H A Dhashserv.c459 struct stat statb; in chk_access() local
466 ftype = statb.st_mode & S_IFMT; in chk_access()
467 if (stat((char *)name, &statb) == 0) { in chk_access()
468 ftype = statb.st_mode & S_IFMT; in chk_access()
477 if (statb.st_mode & (S_IEXEC|(S_IEXEC>>3)|(S_IEXEC>>6))) in chk_access()
/illumos-gate/usr/src/cmd/bnu/
H A Dcntrl.c1654 struct stat statb;
1661 if( stat(name, &statb) < 0 )
1664 if( (statb.st_mode|S_IFMT) == S_IFREG ||
1665 (statb.st_mode|S_IFMT) == S_IFEXT ||
1666 (statb.st_mode&S_IFMT) == S_IF1EXT )
1668 if( (statb.st_mode&S_IFMT) == S_IFREG )
1674 if( ustat(statb.st_dev, &ustatb)<0 )
H A Dct.c757 struct stat statb; local
759 if (stat (file, &statb) == -1 && errno == ENOENT)
/illumos-gate/usr/src/uts/common/c2/
H A Daudit_event.c1202 long statb; in aui_fstatat() member
/illumos-gate/usr/src/cmd/cpio/
H A Dcpio.c1046 struct stat statb; in chgreel() local
1049 if (fstat(Archive, &statb) < 0) in chgreel()
1051 if ((statb.st_mode & S_IFMT) != S_IFCHR) { in chgreel()
/illumos-gate/usr/src/cmd/truss/
H A Dstat.c63 Pread(Proc, &statb, sizeof (statb), offset) == sizeof (statb)) { in show_stat32()
67 statb.st_dev, in show_stat32()
68 statb.st_ino, in show_stat32()
69 statb.st_mode, in show_stat32()
71 statb.st_uid, in show_stat32()
72 statb.st_gid); in show_stat32()
108 Pread(Proc, &statb, sizeof (statb), offset) == sizeof (statb)) { in show_stat64_32()
112 statb.st_dev, in show_stat64_32()
116 statb.st_uid, in show_stat64_32()
151 Pread(Proc, &statb, sizeof (statb), offset) == sizeof (statb)) { in show_stat64()
[all …]
H A Dfcall.c232 struct stat statb; in establish_stacks() local
239 fstat(mapfd, &statb) != 0 || in establish_stacks()
240 statb.st_size < sizeof (prmap_t) || in establish_stacks()
241 (Pmap = my_malloc(statb.st_size, NULL)) == NULL || in establish_stacks()
242 (nmap = pread(mapfd, Pmap, statb.st_size, 0L)) <= 0 || in establish_stacks()
762 struct stat statb; in find_lwp_stack() local
773 fstat(mapfd, &statb) != 0 || in find_lwp_stack()
774 statb.st_size < sizeof (prmap_t) || in find_lwp_stack()
775 (Pmap = my_malloc(statb.st_size, NULL)) == NULL || in find_lwp_stack()
776 (nmap = pread(mapfd, Pmap, statb.st_size, 0L)) <= 0 || in find_lwp_stack()
/illumos-gate/usr/src/lib/libproc/common/
H A Dproc_get_info.c108 struct stat statb; in proc_get_priv() local
114 if (fstat(fd, &statb) != 0 || in proc_get_priv()
115 (rv = malloc(statb.st_size)) == NULL || in proc_get_priv()
116 read(fd, rv, statb.st_size) != statb.st_size) { in proc_get_priv()
137 struct stat statb; in proc_get_ldt() local
148 if (fstat(fd, &statb) == 0) in proc_get_ldt()
149 nldt = statb.st_size / sizeof (struct ssd); in proc_get_ldt()
H A DPservice.c176 struct stat statb; in ps_lgetxregsize() local
205 if (stat(fname, &statb) != 0) in ps_lgetxregsize()
208 if (statb.st_size > INT_MAX) in ps_lgetxregsize()
211 *xrsize = (int)statb.st_size; in ps_lgetxregsize()
H A DPcontrol.c110 struct stat statb; in Pread_maps_live() local
117 fstat(mapfd, &statb) != 0 || in Pread_maps_live()
118 statb.st_size < sizeof (prmap_t) || in Pread_maps_live()
119 (Pmap = malloc(statb.st_size)) == NULL || in Pread_maps_live()
120 (nmap = pread(mapfd, Pmap, statb.st_size, 0L)) <= 0 || in Pread_maps_live()
143 struct stat statb; in Pread_aux_live() local
155 if (fstat(fd, &statb) == 0 && in Pread_aux_live()
156 statb.st_size >= sizeof (auxv_t) && in Pread_aux_live()
158 if ((naux = read(fd, auxv, statb.st_size)) < 0 || in Pread_aux_live()
2891 struct stat64 statb; in read_lfile() local
[all …]
H A DPisprocdir.c39 struct stat statb; in Pisprocdir() local
54 return (stat(path, &statb) == 0 && in Pisprocdir()
56 (statb.st_mode & S_IFMT) == S_IFDIR && in Pisprocdir()
57 statb.st_ino == 2 && in Pisprocdir()
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/
H A Dkdb_db2.c826 struct stat statb; in destroy_file_suffix() local
844 if (fstat(fd, &statb) == -1) { in destroy_file_suffix()
859 while (pos < statb.st_size) { in destroy_file_suffix()
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/rcache/
H A Drc_io.c561 struct stat statb; in krb5_rc_io_size() local
563 if (fstat(d->fd, &statb) == 0) in krb5_rc_io_size()
564 return statb.st_size; in krb5_rc_io_size()
/illumos-gate/usr/src/cmd/sendmail/src/
H A Dqueue.c5935 struct stat statb; local
5943 if (lstat(name, &statb) < 0)
5945 if (stat(name, &statb) < 0)
5954 if (S_ISLNK(statb.st_mode))
5961 if (stat(name, &statb) < 0)
5971 if (!S_ISDIR(statb.st_mode))
/illumos-gate/usr/src/cmd/rcm_daemon/common/
H A Dip_rcm.c2444 struct stat statb; in isgrouped() local
2450 if (stat(cfgfile, &statb) != 0) { in isgrouped()
2462 if (statb.st_size <= 1) { in isgrouped()
2475 if ((buf = malloc(statb.st_size)) == NULL) { in isgrouped()
2482 while (fgets(buf, statb.st_size, fp) != NULL) { in isgrouped()
2514 struct stat statb; in if_config_inst() local
2524 if (fstat(fileno(hfp), &statb) != 0) { in if_config_inst()
2548 if (statb.st_size <= 1) { in if_config_inst()
2584 fgets(buf, statb.st_size, hfp) != NULL && in if_config_inst()
2585 fgets(buf, statb.st_size, hfp) == NULL) { in if_config_inst()
[all …]
/illumos-gate/usr/src/ucbcmd/test/
H A Dtest.c153 struct stat statb; in e3() local
241 struct stat statb; in ftype() local
243 if (stat(f, &statb) < 0) in ftype()
245 if ((statb.st_mode & field) == field) in ftype()
253 struct stat statb; in filtyp() local
256 if (lstat(f, &statb) < 0) in filtyp()
259 if (stat(f, &statb) < 0) in filtyp()
262 if ((statb.st_mode & S_IFMT) == field) in filtyp()
271 struct stat statb; in fsizep() local
273 if (stat(f, &statb) < 0) in fsizep()
[all …]
/illumos-gate/usr/src/lib/watchmalloc/common/
H A Dmalloc.c1364 struct stat statb; in nowatch() local
1370 else if (fstat(ctlfd, &statb) != 0 || in nowatch()
1371 statb.st_dev != ctlstatb.st_dev || in nowatch()
1372 statb.st_ino != ctlstatb.st_ino) { in nowatch()

1234