/illumos-gate/usr/src/lib/libgen/common/ |
H A D | copylist.c | 83 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/mail/ |
H A D | copyback.c | 47 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 D | cksaved.c | 51 struct stat stbuf; local 61 if ((stat(save, &stbuf) != 0) || (stbuf.st_size == 0)) 70 if (stat(mail, &stbuf) != 0) {
|
/illumos-gate/usr/src/lib/libc/port/stdio/ |
H A D | _findbuf.c | 60 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/uts/i86pc/os/ |
H A D | smb_dev.c | 66 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/libsmbios/common/ |
H A D | smb_lib.c | 57 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/cmd/sendmail/libsmutil/ |
H A D | safefile.c | 59 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/oamuser/user/ |
H A D | homedir.c | 74 struct stat stbuf; local 90 if ((stat(pdir, &stbuf) != 0) || !S_ISDIR(stbuf.st_mode)) { 95 if ((strcmp(stbuf.st_fstype, MNTTYPE_ZFS) == 0) && 103 if ((dataset = get_mnt_special(pdir, stbuf.st_fstype)) 217 struct stat stbuf; local 225 if ((stat(dir, &stbuf) != 0) || !S_ISDIR(stbuf.st_mode)) 228 if ((strcmp(stbuf.st_fstype, MNTTYPE_ZFS) == 0) && 238 if ((nm = get_mnt_special(dir, stbuf [all...] |
/illumos-gate/usr/src/cmd/streams/log/ |
H A D | strclean.c | 60 struct stat stbuf; local 102 if ((stat(logname, &stbuf) < 0) || !(stbuf.st_mode & DIRECTORY)) {
|
/illumos-gate/usr/src/cmd/vi/port/ |
H A D | expreserve.c | 100 struct stat64 stbuf; local 149 if (stat64((char *)filname, &stbuf)) 151 if (!ISREG(stbuf)) 182 struct stat64 stbuf; local 221 struct stat64 stbuf; local 223 if (stat64((char *)name, &stbuf) == 0) 224 if (stbuf.st_size == 0) 281 if (lstat64((char *)savdir, &stbuf) < 0 || !S_ISDIR(stbuf.st_mode)) {
|
/illumos-gate/usr/src/cmd/bnu/ |
H A D | security.c | 346 struct stat stbuf; local 350 if (stat(srcfile, &stbuf)) 352 sprintf(size,"%ld",stbuf.st_size); 368 struct stat stbuf; local 372 if (stat(srcfile, &stbuf)) 374 (void) guinfo(stbuf.st_uid,user); 390 struct stat stbuf; local 395 if (stat(srcfile, &stbuf)) 397 tp = localtime(&stbuf.st_mtime);
|
H A D | cntrl.c | 250 struct stat stbuf; local 357 if (Restart && !(fstat(fileno(fp), &stbuf))) { 358 (void) sprintf(fsize, "0x%lx", stbuf.st_size); 364 if (((stbuf.st_size-1)/512 + 1) > RemUlimit) { 451 if ((! stat(Dfile, &stbuf)) && 452 ((stbuf.st_mode != (DFILEMODE|S_IFREG)) || 453 ((stbuf.st_gid != UUCPGID) || 454 (stbuf.st_uid != UUCPUID)))) { 458 CDEBUG(1, "Failed: bad dest file owner/perms 0%o; fail\n", stbuf.st_mode); 482 if (fstat (fileno(fp), &stbuf)) { [all...] |
/illumos-gate/usr/src/cmd/chgrp/ |
H A D | chgrp.c | 66 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/lp/cmd/lpsched/ |
H A D | lpfsck.c | 57 struct stat stbuf; local 126 if (Lstat(Lp_Temp, &stbuf) == 0) 127 switch (stbuf.st_mode & S_IFMT) { 233 struct stat stbuf; local 241 exist = (stat(path, &stbuf) == 0); 256 if (exist && !S_ISDIR(stbuf.st_mode)) { 269 if (exist && !S_ISREG(stbuf.st_mode)) { 286 !S_ISREG(stbuf.st_mode) && !S_ISFIFO(stbuf.st_mode)) {
|
/illumos-gate/usr/src/cmd/acct/ |
H A D | accton.c | 80 struct stat stbuf; local 81 struct stat *s = &stbuf;
|
/illumos-gate/usr/src/cmd/lp/lib/msgs/ |
H A D | mconnect.c | 69 struct stat stbuf; local 88 Again: if (stat(path, &stbuf) == -1) 90 if ((stbuf.st_mode & S_IFMT) != S_IFIFO) {
|
/illumos-gate/usr/src/lib/libm/common/m9x/ |
H A D | __fex_sym.c | 68 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/cmd/power/ |
H A D | conf.c | 332 struct stat stbuf; local 335 if (stat(orig_conf, &stbuf) == 0 && stbuf.st_size) 433 struct stat stbuf; local 472 if (stat(name = default_conf, &stbuf) == -1) 474 else if (chmod(name = tmp_conf, stbuf.st_mode) == -1) 476 else if (chown(tmp_conf, stbuf.st_uid, stbuf.st_gid) == -1)
|
H A D | parse.c | 127 struct stat stbuf; local 142 if (stat("/dev/console", &stbuf) == -1) 145 cons_perm = (ruid == stbuf.st_uid); 218 struct stat stbuf; local 226 else if (fstat(fd, &stbuf) == -1) 228 size = (size_t)stbuf.st_size; 229 def_src = (stbuf.st_ino == def_info.st_ino && 230 stbuf.st_dev == def_info.st_dev);
|
/illumos-gate/usr/src/cmd/chown/ |
H A D | chown.c | 61 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/ucbcmd/touch/ |
H A D | touch.c | 43 struct stat stbuf; variable in typeref:struct:stat 203 if (stat(filename, &stbuf)) { 224 if (stat(filename, &stbuf)) { 236 timestruc_to_timeval(&stbuf.st_mtim, times + 1); 238 timestruc_to_timeval(&stbuf.st_atim, times); 262 return (oldtouch(filename, &stbuf));
|
/illumos-gate/usr/src/cmd/sgs/ar/common/ |
H A D | cmd.c | 95 struct stat stbuf; local 118 f = stats(gfile, &stbuf); /* gfile is set by match */ 132 stbuf.st_mtime <= fileptr->ar_date) { 140 movefil(fileptr, &stbuf); 554 struct stat stbuf; local 563 f = stats(cmd_info->namv[i], &stbuf); 596 movefil(fileptr, &stbuf); 619 movefil(ARFILE *fileptr, struct stat *stbuf) argument 621 fileptr->ar_size = stbuf->st_size; 622 fileptr->ar_date = stbuf 647 stats(char *file, struct stat *stbuf) argument [all...] |
/illumos-gate/usr/src/cmd/sgs/librtld_db/demo/common/ |
H A D | maps.c | 152 struct stat stbuf; local 156 if (fstat(ph->pp_mapfd, &stbuf) == -1) 159 ptr = malloc(stbuf.st_size); 160 if (pread(ph->pp_mapfd, ptr, stbuf.st_size, 0) == -1) 171 (uintptr_t)mapptr < ((uintptr_t)ptr + stbuf.st_size); 212 struct stat stbuf; local 215 if (fstat(procp->pp_mapfd, &stbuf) == -1) 218 ptr = malloc(stbuf.st_size); 219 if (pread(procp->pp_mapfd, ptr, stbuf.st_size, 0) == -1) 223 (uintptr_t)mapptr < ((uintptr_t)ptr + stbuf [all...] |
/illumos-gate/usr/src/cmd/mailx/ |
H A D | lex.c | 75 struct stat stbuf; local 82 if (stat(name, &stbuf) < 0 && errno == EOVERFLOW) { 106 fstat(fileno(ibuf), &stbuf); local 107 if (stbuf.st_size == 0L || (stbuf.st_mode&S_IFMT) != S_IFREG) { 111 if (stbuf.st_size == 0L) 182 fstat(fileno(ibuf), &stbuf); local 183 utimep->actime = stbuf.st_atime; 184 utimep->modtime = stbuf.st_mtime; 974 struct stat stbuf; local [all...] |
/illumos-gate/usr/src/cmd/cron/ |
H A D | atq.c | 225 struct stat stbuf; /* buffer for file stats */ local 235 if ((stat(queue[i]->d_name, &stbuf)) < 0) { 242 if (*ptr == stbuf.st_uid) 264 struct stat stbuf; /* buffer for file stats */ local 288 if ((stat(queue[i]->d_name, &stbuf)) < 0) { 301 if (*ptr == stbuf.st_uid) 310 printf("%-10s ", getname(stbuf.st_uid));
|