/illumos-gate/usr/src/cmd/rmformat/ |
H A D | rmf_misc.c | 493 struct stat stbuf; in check_and_unmount_floppy() local 538 if (fstat(mfd, &stbuf) < 0 || !S_ISCHR(stbuf.st_mode)) { in check_and_unmount_floppy() 1874 struct stat stbuf; in get_physical_name() local 1909 if (stat(s, &stbuf) == -1) { in get_physical_name() 1912 if (lstat(s, &stbuf) == -1) { in get_physical_name() 1923 if (!S_ISLNK(stbuf.st_mode)) { in get_physical_name()
|
/illumos-gate/usr/src/cmd/krb5/slave/ |
H A D | kprop.c | 553 struct stat stbuf, stbuf_ok; local 578 if (fstat(fd, &stbuf)) { 597 if (stbuf.st_mtime > stbuf_ok.st_mtime) { 602 *size = stbuf.st_size;
|
/illumos-gate/usr/src/cmd/fs.d/autofs/ |
H A D | automount.c | 91 struct stat stbuf; in main() local 284 if (lstat(dir->dir_name, &stbuf) == 0) { in main() 285 if ((stbuf.st_mode & S_IFMT) != S_IFDIR) { in main()
|
/illumos-gate/usr/src/cmd/dladm/ |
H A D | dladm.c | 8979 struct stat stbuf; in altroot_cmd() local 8989 if (stat(path, &stbuf) < 0) { in altroot_cmd()
|
/illumos-gate/usr/src/cmd/boot/fiocompress/ |
H A D | fiocompress.c | 130 struct stat stbuf; in setup_infile() local 141 if (fstat(fd, &stbuf) == -1) { in setup_infile() 146 srclen = stbuf.st_size; in setup_infile()
|
/illumos-gate/usr/src/cmd/bnu/ |
H A D | uustat.c | 1112 struct stat stbuf; local 1117 if (stat(fullname, &stbuf) != -1) { 1118 return ((int)((ptime - stbuf.st_mtime)/_sec_per_day));
|
H A D | cntrl.c | 248 struct stat stbuf; in cntrl() local 449 if ((! stat(Dfile, &stbuf)) && in cntrl() 451 ((stbuf.st_gid != UUCPGID) || in cntrl() 482 stbuf.st_size = 0L; in cntrl() 491 startp = stbuf.st_size - (stbuf.st_size % BUFSIZ); in cntrl() 663 if (stbuf.st_size < 0) in cntrl() 811 if ((! stat(Dfile, &stbuf)) && in cntrl() 813 ((stbuf.st_gid != UUCPGID) || in cntrl() 845 startp = stbuf.st_size - (stbuf.st_size % BUFSIZ); in cntrl() 1267 if (stbuf.st_size < 0) in cntrl() [all …]
|
H A D | anlwrk.c | 83 struct stat stbuf; in anlwrk() local 106 (void) fstat(fileno(fp), &stbuf); in anlwrk() 107 Nstat.t_qtime = stbuf.st_mtime; in anlwrk()
|
H A D | uux.c | 100 struct stat stbuf; local 645 if (uidstat(rest, &stbuf) != 0) { 651 if ( !(stbuf.st_mode & ANYREAD) 652 && !(stbuf.st_uid == Uid && stbuf.st_mode & 0400) 653 && !(stbuf.st_gid ==getgid() && stbuf.st_mode & 0040) 663 if (cflag || !(stbuf.st_mode & ANYREAD)) {
|
H A D | uucp.c | 486 struct stat stbuf, stbuf1; local 616 if (uidstat(file1, &stbuf) != 0) { 621 if ((stbuf.st_mode & S_IFMT) == S_IFDIR) { 630 file1, stbuf.st_mode&0777); 651 (long) stbuf.st_mode & LEGALMODE, Nuser, Sfile);
|
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);
|
/illumos-gate/usr/src/cmd/format/ |
H A D | startup.c | 320 struct stat stbuf; in sup_init() local 383 if (stat(fname, &stbuf) == -1) { in sup_init() 387 if (S_ISDIR(stbuf.st_mode)) { in sup_init() 1612 struct stat stbuf; in add_device_to_disklist() local 1632 if (fstat(search_file, &stbuf) == -1 || !S_ISCHR(stbuf.st_mode)) { in add_device_to_disklist() 2736 struct stat stbuf; in get_physical_name() local 2771 if (stat(s, &stbuf) == -1) { in get_physical_name() 2774 if (lstat(s, &stbuf) == -1) { in get_physical_name() 2785 if (!S_ISLNK(stbuf.st_mode)) { in get_physical_name()
|
/illumos-gate/usr/src/lib/mpapi/libmpapi/common/ |
H A D | mpapi.c | 3461 struct stat stbuf; in MP_RegisterPlugin() local 3467 if (stat(pFileName, &stbuf) != 0) { in MP_RegisterPlugin() 3506 if (fstat(mpconf, &stbuf) == -1) { in MP_RegisterPlugin() 3510 if ((new_file_flag) || (stbuf.st_size == 0)) { in MP_RegisterPlugin() 3530 if (search_line(mpconf_buf, stbuf.st_size, in MP_RegisterPlugin() 3533 munmap((void *)mpconf_buf, stbuf.st_size); in MP_RegisterPlugin() 3536 munmap((void *)mpconf_buf, stbuf.st_size); in MP_RegisterPlugin() 3582 struct stat stbuf; in MP_DeregisterPlugin() local 3615 if (fstat(mpconf, &stbuf) == -1) { in MP_DeregisterPlugin() 3619 if (stbuf.st_size == 0) { in MP_DeregisterPlugin() [all …]
|
/illumos-gate/usr/src/cmd/vi/port/ |
H A D | exrecover.c | 611 struct stat64 stbuf; in scrapbad() local 616 (void)fstat64(tfile, &stbuf); in scrapbad() 617 size = (off_t)stbuf.st_size; in scrapbad()
|
/illumos-gate/usr/src/cmd/vgrind/ |
H A D | vfontedpr.c | 136 struct stat stbuf; in main() local 372 fstat(fileno(in), &stbuf); in main() 373 cp = ctime(&stbuf.st_mtime); in main()
|
/illumos-gate/usr/src/cmd/troff/ |
H A D | n1.c | 455 struct stat stbuf; local 458 stat(ttyp, &stbuf); 459 mode = stbuf.st_mode;
|
/illumos-gate/usr/src/cmd/tcpd/ |
H A D | scaffold.c | 195 struct stat stbuf; local 210 (void) check_path(buf[0] ? buf : "/", &stbuf);
|
/illumos-gate/usr/src/cmd/sendmail/src/ |
H A D | queue.c | 548 struct stat stbuf; local 565 if (fstat(dfd, &stbuf) < 0) 569 e->e_dfdev = stbuf.st_dev; 570 e->e_dfino = ST_INODE(stbuf);
|
/illumos-gate/usr/src/cmd/more/ |
H A D | more.c | 457 struct stat stbuf; in checkf() local 461 if (stat (fs, &stbuf) == -1) { in checkf() 468 if ((stbuf.st_mode & S_IFMT) == S_IFDIR) { in checkf() 484 if ((file_size = (off_t)stbuf.st_size) == 0) in checkf()
|
/illumos-gate/usr/src/cmd/lp/cmd/lpsched/ |
H A D | files.c | 46 struct stat stbuf; in chfiles() local 78 if (Stat(file, &stbuf) == -1) in chfiles() 81 switch (stbuf.st_mode & S_IFMT) { in chfiles() 95 stbuf.st_size = 1; in chfiles() 105 total += stbuf.st_size; in chfiles()
|
/illumos-gate/usr/src/cmd/ldap/common/ |
H A D | ldapmodify.c | 333 struct stat stbuf; in process() local 334 if ( stat( rejfile, &stbuf ) < 0 ) { in process()
|
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | Pcore.c | 2335 struct stat64 stbuf; local 2406 if (fstat64(P->asfd, &stbuf) == -1) { 2426 core_info->core_size = stbuf.st_size;
|
/illumos-gate/usr/src/ucbcmd/touch/ |
H A D | touch.c | 39 struct stat stbuf; variable 199 if (stat(filename, &stbuf)) { 220 if (stat(filename, &stbuf)) { 232 timestruc_to_timeval(&stbuf.st_mtim, times + 1); 234 timestruc_to_timeval(&stbuf.st_atim, times); 258 return (oldtouch(filename, &stbuf));
|
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_pwdutil.c | 475 struct stat64 stbuf; in smb_pwd_update() local 491 if (stat64(SMB_PASSWD, &stbuf) < 0) { in smb_pwd_update() 922 struct stat64 stbuf; in smb_lucache_update() local 951 if (stat64(SMB_PASSWD, &stbuf) < 0) { in smb_lucache_update() 961 if (stbuf.st_size == 0) { in smb_lucache_update() 969 if ((smb_uch.uc_timestamp.tv_sec == stbuf.st_mtim.tv_sec) && in smb_lucache_update() 970 (smb_uch.uc_timestamp.tv_nsec == stbuf.st_mtim.tv_nsec)) { in smb_lucache_update() 983 if ((rc == SMB_PWE_SUCCESS) && (stat64(SMB_PASSWD, &stbuf) == 0)) in smb_lucache_update() 984 smb_uch.uc_timestamp = stbuf.st_mtim; in smb_lucache_update()
|
/illumos-gate/usr/src/lib/libnsl/rpc/ |
H A D | key_call.c | 975 struct stat stbuf; in set_rdev() local 978 fstat(fd, &stbuf) == -1) { in set_rdev() 984 kcp->rdev = stbuf.st_rdev; in set_rdev() 990 struct stat stbuf; in check_rdev() local 995 if (fstat(kcp->fd, &stbuf) == -1) { in check_rdev() 1003 if (kcp->rdev != stbuf.st_rdev) { in check_rdev() 1006 kcp->fd, kcp->rdev, stbuf.st_rdev); in check_rdev()
|