Searched refs:statbuf (Results 1 - 25 of 168) sorted by relevance

1234567

/illumos-gate/usr/src/cmd/oamuser/lib/
H A Dfile.c32 check_perm( statbuf, uid, gid, perm )
33 struct stat statbuf;
41 if( S_ISDIR( statbuf.st_mode )) {
47 if( (statbuf.st_uid == uid) &&
48 (statbuf.st_mode & (perm << 6)) == (perm << 6) )
51 if( (statbuf.st_gid == gid) &&
52 (statbuf.st_mode & (perm << 3)) == (perm << 3) )
55 if( (statbuf.st_mode & perm) == perm )
/illumos-gate/usr/src/common/ficl/ficlplatform/
H A Dunix.c62 struct stat statbuf; local
64 if (stat(filename, &statbuf) == 0) {
65 *status = statbuf.st_mode;
75 struct stat statbuf; local
80 statbuf.st_size = -1;
81 if (fstat(fileno(ff->f), &statbuf) != 0)
84 return (statbuf.st_size);
/illumos-gate/usr/src/test/zfs-tests/tests/functional/exec/
H A Dmmap_exec.c44 struct stat statbuf; local
59 if (fstat(fd, &statbuf) < 0) {
64 if (mmap(0, statbuf.st_size,
/illumos-gate/usr/src/lib/libpkg/common/
H A Disdir.c94 struct stat statbuf; local
98 if (stat(path, &statbuf) != 0) {
104 if ((statbuf.st_mode & S_IFMT) != S_IFDIR) {
127 struct stat statbuf; local
139 if (stat(file, &statbuf) != 0) {
145 if ((statbuf.st_mode & S_IFMT) == S_IFDIR) {
152 if ((statbuf.st_mode & S_IFMT) != S_IFREG) {
243 struct stat statbuf; local
245 r = lstat(a_path, &statbuf);
250 return (isFstypeRemote(statbuf
268 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...]
/illumos-gate/usr/src/cmd/oamuser/user/
H A Dmovedir.c58 struct stat statbuf; local
85 if (stat(from, &statbuf) == 0) {
86 chmod(to, statbuf.st_mode);
87 times.actime = statbuf.st_atime;
88 times.modtime = statbuf.st_mtime;
/illumos-gate/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)) {
/illumos-gate/usr/src/lib/libcryptoutil/common/
H A Dkeyfile.c50 struct stat statbuf; local
65 if (fstat(fd, &statbuf) == -1) {
71 if (S_ISREG(statbuf.st_mode)) {
73 filesize = statbuf.st_size;
/illumos-gate/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),
/illumos-gate/usr/src/lib/libtecla/common/
H A Dpathutil.c373 struct stat statbuf; /* The file-statistics return buffer */ local
377 if(stat(pathname, &statbuf) < 0)
382 return S_ISDIR(statbuf.st_mode) != 0;
396 struct stat statbuf; /* The file-statistics return buffer */ local
400 if(stat(pathname, &statbuf) < 0)
405 return S_ISREG(statbuf.st_mode) != 0;
419 struct stat statbuf; /* The file-statistics return buffer */ local
423 if(stat(pathname, &statbuf) < 0)
428 return S_ISREG(statbuf.st_mode) != 0 &&
429 (statbuf
537 struct stat statbuf; local
[all...]
/illumos-gate/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) {
/illumos-gate/usr/src/cmd/lp/lib/forms/
H A Dputform.c55 struct stat statbuf; local
74 if (Stat(path, &statbuf) == 0) {
75 if (!S_ISDIR(statbuf.st_mode)) {
/illumos-gate/usr/src/cmd/lp/lib/lp/
H A Dnext.c112 struct stat statbuf; local
116 if (Stat(path, &statbuf) == -1) {
121 return ((statbuf.st_mode & S_IFMT) == what);
/illumos-gate/usr/src/cmd/ttymon/
H A Dtmutil.c60 struct stat statbuf; local
71 if (stat(device,&statbuf) < 0) {
75 if ((statbuf.st_mode & S_IFMT) != S_IFCHR) {
96 struct stat statbuf; local
111 if (stat(tp,&statbuf) < 0) {
115 if (!(statbuf.st_mode & 0111)) {
119 if ((statbuf.st_mode & S_IFMT) != S_IFREG) {
/illumos-gate/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))
/illumos-gate/usr/src/cmd/lp/lib/printers/
H A Dprintwheels.c120 struct stat statbuf; local
139 if (Stat(path, &statbuf) == 0) {
140 if (!S_ISDIR(statbuf.st_mode)) {
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dnlspath_checks.c85 nls_safe_open(const char *path, struct stat64 *statbuf, int *trust, int safe) argument
106 if (fstat64(fd, statbuf) == -1) {
143 if (statbuf->st_uid == 0 || statbuf->st_uid == 2) {
150 if ((statbuf->st_mode & (S_IWOTH)) == 0 &&
151 ((statbuf->st_mode & (S_IWGRP)) == 0 ||
152 (statbuf->st_gid < 4 && statbuf->st_gid != 1))) {
/illumos-gate/usr/src/cmd/cmd-inet/lib/ipmgmtd/
H A Dipmgmt_util.c61 struct stat statbuf; local
78 if (stat(src, &statbuf) != 0) {
/illumos-gate/usr/src/cmd/srptsvc/
H A Dsrptsvc.c52 struct stat statbuf; local
79 if ((stat("/devices/ib", &statbuf)) != 0) {
/illumos-gate/usr/src/cmd/cmd-inet/sbin/dhcpagent/
H A Ddefaults.c165 struct stat statbuf; local
173 if (stat(DHCP_AGENT_DEFAULTS, &statbuf) != 0) {
186 if (statbuf.st_mtime != df_statbuf.st_mtime ||
187 statbuf.st_size != df_statbuf.st_size) {
188 df_statbuf = statbuf;
/illumos-gate/usr/src/cmd/svr4pkg/pkgproto/
H A Dmain.c446 struct stat statbuf; local
451 if (lstat(path, &statbuf)) {
455 if ((statbuf.st_mode & S_IFMT) == S_IFLNK) {
473 if (stat(path, &statbuf))
475 if (statbuf.st_nlink <= 1)
479 if ((statbuf.st_ino == link->ino) &&
480 (statbuf.st_dev == link->dev)) {
501 new->ino = statbuf.st_ino;
502 new->dev = statbuf.st_dev;
/illumos-gate/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) {
/illumos-gate/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)) {
/illumos-gate/usr/src/cmd/ypcmd/
H A Dyp_getalias.c77 struct statvfs statbuf; local
95 if (statvfs(YPDBDIR, &statbuf) != 0) {
99 /* if (strcmp(statbuf.f_basetype,"s5")) (doesn't work in k13) */
100 if (statbuf.f_namemax == 14)
/illumos-gate/usr/src/cmd/tic/
H A Dtic_main.c214 struct stat64 statbuf; local
220 if (stat64(dir, &statbuf) < 0) {
229 } else if ((statbuf.st_mode & S_IFMT) != S_IFDIR) {

Completed in 109 milliseconds

1234567