Searched defs:stbuf (Results 1 - 25 of 126) sorted by relevance

123456

/illumos-gate/usr/src/cmd/mail/
H A Dcksaved.c51 struct stat stbuf; local
61 if ((stat(save, &stbuf) != 0) || (stbuf.st_size == 0))
70 if (stat(mail, &stbuf) != 0) {
H A Dcopyback.c47 struct stat stbuf; local
54 stat(mailfile, &stbuf);
55 mailmode = stbuf.st_mode;
60 if (stbuf.st_size != let[nlet].adr) {
80 let[++nlet].adr = stbuf.st_size;
92 if ((stbuf.st_uid != my_euid) && (stbuf.st_uid != my_uid)) {
170 delempty(stbuf.st_mode, mailfile);
H A Dprintmail.c45 struct stat stbuf; local
52 stbufp = &stbuf;
136 else if ((malf == NULL) || (stbuf.st_size == 0)) {
/illumos-gate/usr/src/lib/libc/port/stdio/
H A D_findbuf.c60 struct stat64 stbuf; /* used to get file system block size */ local
85 if (fstat64(fd, &stbuf) == 0 && stbuf.st_blksize > 0)
86 size = stbuf.st_blksize;
/illumos-gate/usr/src/lib/libgen/common/
H A Dcopylist.c83 struct stat64 stbuf; local
86 if (stat64(filenm, &stbuf) == -1) {
89 *szptr = stbuf.st_size;
91 return (common_copylist(filenm, stbuf.st_size));
99 struct stat64 stbuf; local
102 if (stat64(filenm, &stbuf) == -1) {
106 if (stbuf.st_size > LONG_MAX) {
111 *szptr = (off_t)stbuf.st_size;
113 return (common_copylist(filenm, stbuf.st_size));
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.talkd/
H A Dprocess.c187 struct stat stbuf; local
215 if (fstat(tfd, &stbuf) < 0 ||
216 (stbuf.st_mode&020) == 0) {
H A Dannounce.c127 struct stat stbuf; local
154 if (fstat(fd, &stbuf) < 0 || stbuf.st_uid != p->pw_uid) {
159 if ((stbuf.st_mode&020) == 0) {
/illumos-gate/usr/src/cmd/acct/
H A Daccton.c80 struct stat stbuf; local
81 struct stat *s = &stbuf;
/illumos-gate/usr/src/cmd/lp/lib/msgs/
H A Dmconnect.c69 struct stat stbuf; local
88 Again: if (stat(path, &stbuf) == -1)
90 if ((stbuf.st_mode & S_IFMT) != S_IFIFO) {
/illumos-gate/usr/src/uts/i86pc/os/
H A Dsmb_dev.c66 caddr_t stbuf, bios, p, q; local
102 stbuf = smb_alloc(ep->smbe_stlen);
103 bcopy(bios, stbuf, ep->smbe_stlen);
105 shp = smbios_bufopen(ep, stbuf, ep->smbe_stlen, version, flags, &err);
108 smb_free(stbuf, ep->smbe_stlen);
/illumos-gate/usr/src/lib/libgss/
H A Dg_utils.c66 struct stat stbuf; local
70 if (stat(QOP_NUM_FILE, &stbuf) != 0 || stbuf.st_mtime < last) {
76 last = stbuf.st_mtime;
/illumos-gate/usr/src/cmd/streams/log/
H A Dstrclean.c60 struct stat stbuf; local
102 if ((stat(logname, &stbuf) < 0) || !(stbuf.st_mode & DIRECTORY)) {
/illumos-gate/usr/src/cmd/tcpd/
H A Dscaffold.c195 struct stat stbuf; local
210 (void) check_path(buf[0] ? buf : "/", &stbuf);
/illumos-gate/usr/src/lib/libsmbios/common/
H A Dsmb_lib.c57 void *stbuf; local
70 if ((stbuf = smb_alloc(ep->smbe_stlen)) == NULL)
73 if ((n = pread64(fd, stbuf, ep->smbe_stlen,
75 smb_free(stbuf, ep->smbe_stlen);
79 shp = smbios_bufopen(ep, stbuf, ep->smbe_stlen, version, flags, errp);
84 smb_free(stbuf, ep->smbe_stlen);
95 void *stbuf, *bios, *p, *q; local
130 if ((stbuf = smb_alloc(ep->smbe_stlen)) == NULL) {
135 bcopy((char *)bios + pgoff, stbuf, ep->smbe_stlen);
137 shp = smbios_bufopen(ep, stbuf, e
[all...]
/illumos-gate/usr/src/lib/libm/common/m9x/
H A D__fex_sym.c68 static char *stbuf = NULL; /* symbol and string table buffer */ variable
69 static int stbufsize = 0; /* size of stbuf */
70 static int stoffset; /* offset of string table in stbuf */
71 static int nsyms; /* number of symbols in stbuf */
179 if (stbuf)
180 free(stbuf);
182 if ((stbuf = (char*)malloc(size)) == NULL)
192 read(fd, stbuf, sh[i].sh_size) != sh[i].sh_size ||
195 read(fd, stbuf + sh[i].sh_size, sh[sh[i].sh_link].sh_size) !=
272 s = (Elf_Sym*)stbuf;
[all...]
/illumos-gate/usr/src/lib/cfgadm_plugins/fp/common/
H A Dcfga_rep.c228 struct stat stbuf; local
266 if (fstat(fd, &stbuf) == -1) {
272 filesize = size = stbuf.st_size;
/illumos-gate/usr/src/cmd/picl/plugins/common/piclevent/
H A Dpiclevent.c184 struct stat stbuf; local
195 if (stat(PICLEVENT_DOOR, &stbuf) < 0) {
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/
H A Dtrace.c85 struct stat stbuf; local
89 if (stat(file, &stbuf) >= 0 && (stbuf.st_mode & S_IFMT) != S_IFREG)
/illumos-gate/usr/src/cmd/sendmail/libsmutil/
H A Dsafefile.c59 struct stat stbuf; local
205 if (stat(dir, &stbuf) >= 0)
210 if (stbuf.st_uid == uid)
213 else if (uid == 0 && stbuf.st_uid == TrustedUid)
219 if (stbuf.st_gid == gid)
225 gr->gr_gid == stbuf.st_gid) ||
226 (gr = getgrgid(stbuf.st_gid)) != NULL))
240 if ((stbuf.st_mode & md) != md)
247 dir, (int) stbuf.st_uid,
248 (unsigned long) stbuf
410 struct stat stbuf; local
[all...]
/illumos-gate/usr/src/cmd/bnu/
H A Danlwrk.c85 struct stat stbuf; local
108 (void) fstat(fileno(fp), &stbuf); local
109 Nstat.t_qtime = stbuf.st_mtime;
/illumos-gate/usr/src/cmd/boot/fiocompress/
H A Dfiocompress.c130 struct stat stbuf; local
141 if (fstat(fd, &stbuf) == -1) {
146 srclen = stbuf.st_size;
/illumos-gate/usr/src/cmd/chgrp/
H A Dchgrp.c66 static struct stat stbuf; variable in typeref:struct:stat
236 if (lstat(argv[c], &stbuf) < 0) {
240 if (rflag && ((stbuf.st_mode & S_IFMT) == S_IFLNK)) {
318 } else if (rflag && ((stbuf.st_mode & S_IFMT) == S_IFDIR)) {
323 if (add_tnode(&tree, stbuf.st_dev,
324 stbuf.st_ino) == 1) {
329 stbuf.st_mode & ~S_IFMT);
348 if ((stbuf.st_mode & S_IFMT) == S_IFDIR) {
350 stbuf.st_mode & ~S_IFMT);
/illumos-gate/usr/src/cmd/chown/
H A Dchown.c61 static struct stat stbuf; variable in typeref:struct:stat
267 if (lstat(argv[c], &stbuf) < 0) {
271 if (rflag && ((stbuf.st_mode & S_IFMT) == S_IFLNK)) {
336 } else if (rflag && ((stbuf.st_mode & S_IFMT) == S_IFDIR)) {
341 if (add_tnode(&tree, stbuf.st_dev,
342 stbuf.st_ino) == 1) {
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/
H A Dnfs_resolve.c76 struct stat stbuf; local
80 if (stat(nconf->nc_device, &stbuf) < 0) {
107 k->knc_rdev = stbuf.st_rdev;
/illumos-gate/usr/src/cmd/keyserv/
H A Dupdate.c87 struct stat stbuf; local
95 if (stat(MAKE, &stbuf) < 0)

Completed in 141 milliseconds

123456