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

1234567

/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/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/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);
/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/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/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/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/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/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/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/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;
H A Duserdel.c73 struct stat statbuf; local
157 if (stat(pstruct->pw_dir, &statbuf)) {
163 if (check_perm(statbuf, pstruct->pw_uid, pstruct->pw_gid,
/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/lib/smbsrv/libsmb/common/
H A Dsmb_reparse.c47 struct stat statbuf; local
51 if (lstat(path, &statbuf) != 0) {
59 if ((statbuf.st_mode & S_IFMT) != S_IFLNK) {
/illumos-gate/usr/src/lib/libtecla/common/
H A Ddireader.c299 struct stat statbuf; /* The file-statistics return buffer */ local
303 if(stat(pathname, &statbuf) < 0)
308 return S_ISDIR(statbuf.st_mode) != 0;
/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/cmd/lpsched/
H A Ddowait.c503 struct stat statbuf; local
509 Stat(file, &statbuf) == 0
510 && statbuf.st_size
518 if ((buf = Malloc(statbuf.st_size + 1)))
519 if ((n = Read(fd, buf, statbuf.st_size)) > 0) {
/illumos-gate/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) {
/illumos-gate/usr/src/lib/libdevinfo/
H A Ddevinfo_dli.c92 struct stat statbuf; local
100 if (stat(dlipath_dir, &statbuf) < 0) {
/illumos-gate/usr/src/cmd/saf/
H A Dadmutil.c280 struct stat statbuf; /* file status info */ local
287 if (stat(script, &statbuf) < 0) {
292 if ((statbuf.st_mode & S_IFMT) != S_IFREG) {
/illumos-gate/usr/src/cmd/cmd-crypto/kmfcfg/
H A Dinstall.c53 struct stat statbuf; local
166 if (stat(realpath, &statbuf) != 0) {
H A Dlist.c180 struct stat statbuf; local
193 if (stat(LIB_NSS_PATH, &statbuf) == 0 &&
194 stat(LIB_NSPR_PATH, &statbuf) == 0) {
/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 73 milliseconds

1234567