Searched defs:statbuf (Results 1 - 25 of 61) sorted by relevance

123

/osnet-11/usr/src/lib/brand/solaris10/s10_replacefile/
H A Ds10_replacefile.c80 struct stat statbuf; local
109 if (stat(argv[4], &statbuf) == 0 && (statbuf.st_mode & S_IFREG)) {
/osnet-11/usr/src/lib/libshadowfs/common/
H A Dshadow_control.c35 struct stat64 statbuf; local
39 if (stat64(path, &statbuf) != 0)
42 if (S_ISDIR(statbuf.st_mode)) {
/osnet-11/usr/src/lib/libcurses/screen/
H A Dscr_ll_dump.c55 struct stat statbuf; local
62 statbuf.st_mtime = 0;
64 (void) stat(thistty, &statbuf);
66 if (fwrite((char *) &(statbuf.st_mtime), sizeof (time_t),
H A Dscr_reset.c83 struct stat statbuf; local
110 (fstat(cur_term->Filedes, &statbuf) < 0) ||
111 (statbuf.st_mtime != ttytime))) {
118 "statbuf.st_mtime = %d, "
120 statbuf.st_mtime, ttytime);
/osnet-11/usr/src/lib/libresolv2/common/bsd/
H A Dwritev.c23 struct stat statbuf; local
25 if (fstat(fd, &statbuf) < 0)
31 if (statbuf.st_mode & S_IFSOCK) {
/osnet-11/usr/src/lib/libcryptoutil/common/
H A Dkeyfile.c49 struct stat statbuf; local
64 if (fstat(fd, &statbuf) == -1) {
70 if (S_ISREG(statbuf.st_mode)) {
72 filesize = statbuf.st_size;
/osnet-11/usr/src/lib/libc/port/stdio/
H A Dtempnam.c59 struct stat64 statbuf; local
66 if (stat64(dir, &statbuf) == 0 && S_ISDIR(statbuf.st_mode))
/osnet-11/usr/src/lib/libntsvcs/common/
H A Dsmb_reparse.c50 struct stat statbuf; local
54 if (lstat(path, &statbuf) != 0) {
62 if ((statbuf.st_mode & S_IFMT) != S_IFLNK) {
/osnet-11/usr/src/lib/libdevinfo/
H A Ddevinfo_dli.c92 struct stat statbuf; local
100 if (stat(dlipath_dir, &statbuf) < 0) {
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/krb5/keytab/
H A Dktfns.c111 struct stat statbuf; local
120 ret = stat(++cp, &statbuf);
124 *size = statbuf.st_size;
/osnet-11/usr/src/lib/lvm/libmeta/common/
H A Dmeta_tab.c257 struct stat statbuf; local
268 if (fstat(fd, &statbuf) != 0) {
276 tabp->total = statbuf.st_size + 2; /* terminating "\n\0" */
282 while (sofar < statbuf.st_size) {
H A Dmeta_systemfile.c356 struct stat statbuf; local
370 if (stat(cname, &statbuf) != 0) {
374 if ((statbuf.st_mode & S_IFMT) != S_IFREG) {
/osnet-11/usr/src/lib/libldap4/util/
H A Dlog.c104 struct stat statbuf = {0}; local
130 if ((logsize > 0) && (stat(logfile, &statbuf) == 0 &&
131 statbuf.st_size > logsize)) {
/osnet-11/usr/src/lib/libldap5/sources/ldap/util/
H A Dlog.c104 struct stat statbuf = {0}; local
130 if ((logsize > 0) && (stat(logfile, &statbuf) == 0 &&
131 statbuf.st_size > logsize)) {
/osnet-11/usr/src/lib/libpkg/common/
H A Disdir.c92 struct stat statbuf; local
96 if (stat(path, &statbuf) != 0) {
102 if ((statbuf.st_mode & S_IFMT) != S_IFDIR) {
125 struct stat statbuf; local
137 if (stat(file, &statbuf) != 0) {
143 if ((statbuf.st_mode & S_IFMT) == S_IFDIR) {
150 if ((statbuf.st_mode & S_IFMT) != S_IFREG) {
241 struct stat statbuf; local
243 r = lstat(a_path, &statbuf);
248 return (isFstypeRemote(statbuf
266 struct stat statbuf; local
[all...]
H A Dvfpops.c158 struct stat statbuf; local
218 if (fstat(fileno(fp), &statbuf) != 0) {
241 if ((S_ISREG(statbuf.st_mode)) && (!(a_flags & VFP_NOMMAP)) &&
242 ((a_flags & VFP_NOMALLOC) || statbuf.st_size > MIN_MMAP_SIZE)) {
246 vfp->_vfpMapSize = statbuf.st_size;
256 vfp->_vfpSize = (statbuf.st_size + pagesize +
257 (pagesize-(statbuf.st_size % pagesize)));
305 vfp->_vfpSize = statbuf.st_size+pagesize;
320 if (statbuf.st_size != 0) {
322 statbuf
820 struct stat statbuf; /* stat(2) info for backing store */ local
986 struct stat statbuf; /* stat(2) info on backing store */ local
[all...]
/osnet-11/usr/src/lib/libinstzones/common/
H A Dzones_utils.c288 struct stat statbuf; local
297 if (stat(path, &statbuf) != 0) {
303 if ((statbuf.st_mode & S_IFMT) != S_IFDIR) {
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Ddnsglue.c84 struct __res_state statbuf; local
109 memset(&statbuf, 0, sizeof(statbuf));
110 ret = res_ninit(&statbuf);
129 len = res_nsearch(&statbuf, host, ds->nclass, ds->ntype,
160 res_ndestroy(&statbuf);
/osnet-11/usr/src/lib/libc/port/rt/
H A Dsem.c59 struct stat64 statbuf; local
103 if (fstat64(fd, &statbuf) < 0)
117 if (statbuf.st_ino == next->sad_inode &&
159 next->sad_inode = statbuf.st_ino;
/osnet-11/usr/src/lib/libxcurses/src/tic/
H A Dticmain.c125 struct stat statbuf; local
147 if (stat(dir, &statbuf) < 0) {
152 } else if ((statbuf.st_mode & S_IFMT) != S_IFDIR) {
/osnet-11/usr/src/lib/libshadowtest/common/
H A Dlibshadowtest.c69 struct stat64 statbuf; local
85 if (fstat64(fd, &statbuf) != 0) {
91 if (statbuf.st_size < sizeof (vfs_shadow_header_t)) {
112 retlen = statbuf.st_size - sizeof (header);
/osnet-11/usr/src/lib/libnetcfg/common/
H A Dlibnetcfg_zio.c207 struct stat statbuf; local
241 if (stat(filename, &statbuf) == -1) {
/osnet-11/usr/src/lib/libnsl/rpc/
H A Drpc_generic.c421 struct stat statbuf; local
427 if (fstat(fd, &statbuf) == -1)
430 fdmajor = major(statbuf.st_rdev);
462 if (!stat(nconf->nc_device, &statbuf)) {
463 if (fdmajor == major(statbuf.st_rdev))
465 if (fdmajor == minor(statbuf.st_rdev))
/osnet-11/usr/src/lib/krb5/plugins/kdb/db2/libdb2/hash/
H A Dhash.c109 struct stat statbuf; local
144 (stat(file, &statbuf) && (errno == ENOENT))) {
323 struct stat statbuf; local
338 if (stat(file, &statbuf))
340 hashp->hdr.bsize = statbuf.st_blksize;
/osnet-11/usr/src/lib/libc/port/gen/
H A Dcatopen.c391 struct stat64 statbuf; local
397 fd = nls_safe_open(name, &statbuf, &trust, safe);
403 addr = mmap(0, (size_t)statbuf.st_size, PROT_READ, MAP_SHARED, fd, 0);
413 (void) munmap(addr, (size_t)statbuf.st_size);
420 (void) munmap(addr, statbuf.st_size);
424 tmp_catd->__size = (int)statbuf.st_size;

Completed in 148 milliseconds

123