/titanic_50/usr/src/lib/libgen/common/ |
H A D | copylist.c | 83 struct stat64 stbuf; in copylist64() local 86 if (stat64(filenm, &stbuf) == -1) { in copylist64() 89 *szptr = stbuf.st_size; in copylist64() 91 return (common_copylist(filenm, stbuf.st_size)); in copylist64() 99 struct stat64 stbuf; in copylist() local 102 if (stat64(filenm, &stbuf) == -1) { in copylist() 106 if (stbuf.st_size > LONG_MAX) { in copylist() 111 *szptr = (off_t)stbuf.st_size; in copylist() 113 return (common_copylist(filenm, stbuf.st_size)); in copylist()
|
/titanic_50/usr/src/cmd/sendmail/libsmutil/ |
H A D | safefile.c | 59 struct stat stbuf; variable 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.st_mode, [all …]
|
/titanic_50/usr/src/cmd/bnu/ |
H A D | cntrl.c | 250 struct stat stbuf; in cntrl() local 357 if (Restart && !(fstat(fileno(fp), &stbuf))) { in cntrl() 358 (void) sprintf(fsize, "0x%lx", stbuf.st_size); in cntrl() 364 if (((stbuf.st_size-1)/512 + 1) > RemUlimit) { in cntrl() 451 if ((! stat(Dfile, &stbuf)) && in cntrl() 452 ((stbuf.st_mode != (DFILEMODE|S_IFREG)) || in cntrl() 453 ((stbuf.st_gid != UUCPGID) || in cntrl() 454 (stbuf.st_uid != UUCPUID)))) { in cntrl() 458 CDEBUG(1, "Failed: bad dest file owner/perms 0%o; fail\n", stbuf.st_mode); in cntrl() 482 if (fstat (fileno(fp), &stbuf)) { in cntrl() [all …]
|
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);
|
/titanic_50/usr/src/cmd/mail/ |
H A D | copyback.c | 47 struct stat stbuf; in copyback() local 54 stat(mailfile, &stbuf); in copyback() 55 mailmode = stbuf.st_mode; in copyback() 60 if (stbuf.st_size != let[nlet].adr) { in copyback() 80 let[++nlet].adr = stbuf.st_size; in copyback() 92 if ((stbuf.st_uid != my_euid) && (stbuf.st_uid != my_uid)) { in copyback() 170 delempty(stbuf.st_mode, mailfile); in copyback()
|
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) {
|
/titanic_50/usr/src/cmd/oamuser/user/ |
H A D | homedir.c | 74 struct stat stbuf; in create_home() local 90 if ((stat(pdir, &stbuf) != 0) || !S_ISDIR(stbuf.st_mode)) { in create_home() 95 if ((strcmp(stbuf.st_fstype, MNTTYPE_ZFS) == 0) && in create_home() 103 if ((dataset = get_mnt_special(pdir, stbuf.st_fstype)) in create_home() 217 struct stat stbuf; in rm_homedir() local 225 if ((stat(dir, &stbuf) != 0) || !S_ISDIR(stbuf.st_mode)) in rm_homedir() 228 if ((strcmp(stbuf.st_fstype, MNTTYPE_ZFS) == 0) && in rm_homedir() 238 if ((nm = get_mnt_special(dir, stbuf.st_fstype)) != NULL) { in rm_homedir()
|
/titanic_50/usr/src/lib/libsmbios/common/ |
H A D | smb_lib.c | 60 void *stbuf; in smb_fileopen() local 87 stbuf = smb_alloc(smbe_stlen); in smb_fileopen() 89 if (stbuf == NULL) in smb_fileopen() 92 if ((n = pread64(fd, stbuf, smbe_stlen, smbe_staddr)) != smbe_stlen) { in smb_fileopen() 93 smb_free(stbuf, smbe_stlen); in smb_fileopen() 97 shp = smbios_bufopen(ep, stbuf, smbe_stlen, version, flags, errp); in smb_fileopen() 102 smb_free(stbuf, smbe_stlen); in smb_fileopen() 114 void *stbuf, *bios, *p, *q; in smb_biosopen() local 220 if ((stbuf = smb_alloc(smbe_stlen)) == NULL) { in smb_biosopen() 225 bcopy((char *)bios + pgoff, stbuf, smbe_stlen); in smb_biosopen() [all …]
|
/titanic_50/usr/src/cmd/lp/cmd/lpsched/ |
H A D | lpfsck.c | 57 struct stat stbuf; in lpfsck() local 126 if (Lstat(Lp_Temp, &stbuf) == 0) in lpfsck() 127 switch (stbuf.st_mode & S_IFMT) { in lpfsck() 233 struct stat stbuf; in proto() local 241 exist = (stat(path, &stbuf) == 0); in proto() 256 if (exist && !S_ISDIR(stbuf.st_mode)) { in proto() 269 if (exist && !S_ISREG(stbuf.st_mode)) { in proto() 286 !S_ISREG(stbuf.st_mode) && !S_ISFIFO(stbuf.st_mode)) { in proto()
|
/titanic_50/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; in copyout() local 221 struct stat64 stbuf; in copyout() local 223 if (stat64((char *)name, &stbuf) == 0) in copyout() 224 if (stbuf.st_size == 0) in copyout() 281 if (lstat64((char *)savdir, &stbuf) < 0 || !S_ISDIR(stbuf.st_mode)) { in copyout()
|
/titanic_50/usr/src/cmd/chgrp/ |
H A D | chgrp.c | 66 static struct stat stbuf; variable 236 if (lstat(argv[c], &stbuf) < 0) { in main() 240 if (rflag && ((stbuf.st_mode & S_IFMT) == S_IFLNK)) { in main() 318 } else if (rflag && ((stbuf.st_mode & S_IFMT) == S_IFDIR)) { in main() 323 if (add_tnode(&tree, stbuf.st_dev, in main() 324 stbuf.st_ino) == 1) { in main() 329 stbuf.st_mode & ~S_IFMT); in main() 348 if ((stbuf.st_mode & S_IFMT) == S_IFDIR) { in main() 350 stbuf.st_mode & ~S_IFMT); in main()
|
/titanic_50/usr/src/lib/libc/port/stdio/ |
H A D | _findbuf.c | 60 struct stat64 stbuf; /* used to get file system block size */ in _findbuf() local 85 if (fstat64(fd, &stbuf) == 0 && stbuf.st_blksize > 0) in _findbuf() 86 size = stbuf.st_blksize; in _findbuf()
|
/titanic_50/usr/src/cmd/sgs/ar/common/ |
H A D | cmd.c | 95 struct stat stbuf; in rcmd() local 118 f = stats(gfile, &stbuf); /* gfile is set by match */ in rcmd() 132 stbuf.st_mtime <= fileptr->ar_date) { in rcmd() 140 movefil(fileptr, &stbuf); in rcmd() 554 struct stat stbuf; in cleanup() local 563 f = stats(cmd_info->namv[i], &stbuf); in cleanup() 596 movefil(fileptr, &stbuf); in cleanup() 619 movefil(ARFILE *fileptr, struct stat *stbuf) in movefil() argument 621 fileptr->ar_size = stbuf->st_size; in movefil() 622 fileptr->ar_date = stbuf->st_mtime; in movefil() [all …]
|
/titanic_50/usr/src/cmd/tar/ |
H A D | tar.c | 557 static struct stat stbuf; variable 1104 (void) fstat(mt, &stbuf); in main() 1105 mt_ino = stbuf.st_ino; in main() 1106 mt_dev = stbuf.st_dev; in main() 1107 mt_devtype = stbuf.st_mode & S_IFMT; in main() 1290 setbytes_to_skip(&stbuf, ret); in dorep() 1331 (void) fstat(fileno(tfile), &stbuf); in dorep() 1332 high = stbuf.st_size; in dorep() 1516 sp = &stbuf; in getdir() 1696 blocks = TBLOCKS(stbuf.st_size); in passtape() [all …]
|
/titanic_50/usr/src/lib/libm/common/m9x/ |
H A D | __fex_sym.c | 68 static char *stbuf = NULL; /* symbol and string table buffer */ variable 179 if (stbuf) in __fex_read_syms() 180 free(stbuf); in __fex_read_syms() 182 if ((stbuf = (char*)malloc(size)) == NULL) in __fex_read_syms() 192 read(fd, stbuf, sh[i].sh_size) != sh[i].sh_size || in __fex_read_syms() 195 read(fd, stbuf + sh[i].sh_size, sh[sh[i].sh_link].sh_size) != in __fex_read_syms() 272 s = (Elf_Sym*)stbuf; in __fex_sym() 303 *name = stbuf + stoffset + nm; in __fex_sym()
|
/titanic_50/usr/src/cmd/mailx/ |
H A D | lex.c | 75 struct stat stbuf; in setfile() local 82 if (stat(name, &stbuf) < 0 && errno == EOVERFLOW) { in setfile() 106 fstat(fileno(ibuf), &stbuf); in setfile() 107 if (stbuf.st_size == 0L || (stbuf.st_mode&S_IFMT) != S_IFREG) { in setfile() 111 if (stbuf.st_size == 0L) in setfile() 182 fstat(fileno(ibuf), &stbuf); in setfile() 183 utimep->actime = stbuf.st_atime; in setfile() 184 utimep->modtime = stbuf.st_mtime; in setfile() 974 struct stat stbuf; in inc() local 982 (fstat(fileno(ibuf), &stbuf) < 0) || stbuf.st_size == 0L || in inc() [all …]
|
/titanic_50/usr/src/cmd/power/ |
H A D | parse.c | 127 struct stat stbuf; in lookup_perms() local 142 if (stat("/dev/console", &stbuf) == -1) in lookup_perms() 145 cons_perm = (ruid == stbuf.st_uid); in lookup_perms() 218 struct stat stbuf; in get_conf_data() local 226 else if (fstat(fd, &stbuf) == -1) in get_conf_data() 228 size = (size_t)stbuf.st_size; in get_conf_data() 229 def_src = (stbuf.st_ino == def_info.st_ino && in get_conf_data() 230 stbuf.st_dev == def_info.st_dev); in get_conf_data()
|
H A D | conf.c | 332 struct stat stbuf; in save_orig() local 335 if (stat(orig_conf, &stbuf) == 0 && stbuf.st_size) in save_orig() 433 struct stat stbuf; in write_conf() local 472 if (stat(name = default_conf, &stbuf) == -1) in write_conf() 474 else if (chmod(name = tmp_conf, stbuf.st_mode) == -1) in write_conf() 476 else if (chown(tmp_conf, stbuf.st_uid, stbuf.st_gid) == -1) in write_conf()
|
/titanic_50/usr/src/cmd/sgs/librtld_db/demo/common/ |
H A D | maps.c | 152 struct stat stbuf; in display_maps() local 156 if (fstat(ph->pp_mapfd, &stbuf) == -1) in display_maps() 159 ptr = malloc(stbuf.st_size); in display_maps() 160 if (pread(ph->pp_mapfd, ptr, stbuf.st_size, 0) == -1) in display_maps() 171 (uintptr_t)mapptr < ((uintptr_t)ptr + stbuf.st_size); in display_maps() 212 struct stat stbuf; in load_map() local 215 if (fstat(procp->pp_mapfd, &stbuf) == -1) in load_map() 218 ptr = malloc(stbuf.st_size); in load_map() 219 if (pread(procp->pp_mapfd, ptr, stbuf.st_size, 0) == -1) in load_map() 223 (uintptr_t)mapptr < ((uintptr_t)ptr + stbuf.st_size); in load_map()
|
/titanic_50/usr/src/ucbcmd/touch/ |
H A D | touch.c | 43 struct stat stbuf; variable 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));
|
/titanic_50/usr/src/cmd/cron/ |
H A D | atq.c | 225 struct stat stbuf; /* buffer for file stats */ in countfiles() local 235 if ((stat(queue[i]->d_name, &stbuf)) < 0) { in countfiles() 242 if (*ptr == stbuf.st_uid) in countfiles() 264 struct stat stbuf; /* buffer for file stats */ in printqueue() local 288 if ((stat(queue[i]->d_name, &stbuf)) < 0) { in printqueue() 301 if (*ptr == stbuf.st_uid) in printqueue() 310 printf("%-10s ", getname(stbuf.st_uid)); in printqueue()
|
/titanic_50/usr/src/cmd/svc/startd/ |
H A D | utmpx.c | 359 struct stat stbuf; in utmpx_write_boottime() local 372 if (stat(WTMPX_FILE, &stbuf) == 0 && stbuf.st_size != 0) { in utmpx_write_boottime() 373 tstamp = (stbuf.st_atime >= stbuf.st_mtime) ? in utmpx_write_boottime() 374 stbuf.st_atime : stbuf.st_mtime; in utmpx_write_boottime()
|
/titanic_50/usr/src/cmd/chown/ |
H A D | chown.c | 61 static struct stat stbuf; variable 267 if (lstat(argv[c], &stbuf) < 0) { in main() 271 if (rflag && ((stbuf.st_mode & S_IFMT) == S_IFLNK)) { in main() 336 } else if (rflag && ((stbuf.st_mode & S_IFMT) == S_IFDIR)) { in main() 341 if (add_tnode(&tree, stbuf.st_dev, in main() 342 stbuf.st_ino) == 1) { in main()
|
/titanic_50/usr/src/uts/i86pc/os/ |
H A D | smb_dev.c | 67 caddr_t stbuf, bios, p, q; in smbios_open() local 190 stbuf = smb_alloc(smbe_stlen); in smbios_open() 191 bcopy(bios, stbuf, smbe_stlen); in smbios_open() 193 shp = smbios_bufopen(ep, stbuf, smbe_stlen, version, flags, &err); in smbios_open() 196 smb_free(stbuf, smbe_stlen); in smbios_open()
|
/titanic_50/usr/src/cmd/cmd-inet/usr.bin/ftp/ |
H A D | auth.c | 88 char stbuf[FTPBUFSIZ]; in do_auth() local 123 (void) snprintf(stbuf, FTPBUFSIZ, "%s@%s", in do_auth() 127 "Trying to authenticate to <%s>\n", stbuf); in do_auth() 129 send_tok.value = stbuf; in do_auth() 130 send_tok.length = strlen(stbuf) + 1; in do_auth() 136 (void) fprintf(stderr, "name parsed <%s>\n", stbuf); in do_auth()
|