/illumos-gate/usr/src/cmd/sendmail/src/ |
H A D | mci.c | 1108 struct stat statbuf; variable 1120 ret = stat(pathname, &statbuf); 1128 if (S_ISDIR(statbuf.st_mode)) 1230 else if (S_ISREG(statbuf.st_mode)) 1391 struct stat statbuf; local 1398 ret = stat(pathname, &statbuf); 1406 if (curtime() - statbuf.st_mtime <= MciInfoTimeout)
|
/illumos-gate/usr/src/lib/libnsl/rpc/ |
H A D | svc_door.c | 168 struct stat statbuf; in make_tmp_dir() local 170 if (stat(RPC_DOOR_DIR, &statbuf) < 0) { in make_tmp_dir() 173 if (stat(RPC_DOOR_DIR, &statbuf) < 0) in make_tmp_dir() 176 return ((statbuf.st_mode & S_IFMT) == S_IFDIR && in make_tmp_dir() 177 (statbuf.st_mode & 01777) == 01777); in make_tmp_dir()
|
/illumos-gate/usr/src/lib/libzfs/common/ |
H A D | libzfs_import.c | 169 struct stat64 statbuf; in zpool_clear_label() local 177 if (fstat64(fd, &statbuf) == -1) in zpool_clear_label() 180 size = P2ALIGN_TYPED(statbuf.st_size, sizeof (vdev_label_t), uint64_t); in zpool_clear_label()
|
/illumos-gate/usr/src/lib/libnwam/common/ |
H A D | libnwam_backend.c | 337 struct stat statbuf; in nwam_backend_init() local 340 if (stat(NWAM_DOOR_DIR, &statbuf) < 0) { in nwam_backend_init() 344 if ((statbuf.st_mode & S_IFMT) != S_IFDIR) in nwam_backend_init()
|
/illumos-gate/usr/src/cmd/utmp_update/ |
H A D | utmp_update.c | 457 struct stat statbuf; in bad_line() local 502 if ((fstat(fd, &statbuf) < 0) || !S_ISCHR(statbuf.st_mode)) { in bad_line()
|
/illumos-gate/usr/src/cmd/dlmgmtd/ |
H A D | dlmgmt_main.c | 181 struct stat statbuf; in dlmgmt_zone_init() local 195 if (stat(tmpfsdir, &statbuf) < 0) { in dlmgmt_zone_init() 198 } else if ((statbuf.st_mode & S_IFMT) != S_IFDIR) { in dlmgmt_zone_init()
|
/illumos-gate/usr/src/cmd/ttymon/ |
H A D | ttymon.c | 565 struct stat statbuf; in mod_ttydefs() local 567 if (stat(TTYDEFS, &statbuf) == -1) { in mod_ttydefs() 571 if ((long)statbuf.st_mtime != Mtime) { in mod_ttydefs() 572 Mtime = (long)statbuf.st_mtime; in mod_ttydefs()
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/support/ |
H A D | plugins.c | 87 struct stat statbuf; in krb5int_open_plugin() local 92 if (stat (filepath, &statbuf) < 0) { in krb5int_open_plugin() 104 if (!err && (statbuf.st_mode & S_IFMT) == S_IFREG) { in krb5int_open_plugin() 133 if (!err && (statbuf.st_mode & S_IFMT) == S_IFDIR) { in krb5int_open_plugin()
|
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/ |
H A D | dfs.c | 1255 struct stat statbuf; in dfs_root_xread() local 1259 if (fstat(xfd, &statbuf) != 0) in dfs_root_xread() 1262 if ((buf = malloc(statbuf.st_size)) == NULL) in dfs_root_xread() 1265 if (read(xfd, buf, statbuf.st_size) == statbuf.st_size) in dfs_root_xread() 1266 status = dfs_root_decode(info, buf, statbuf.st_size, infolvl); in dfs_root_xread() 1775 struct stat statbuf; in dfs_path_isdir() local 1777 if (lstat(path, &statbuf) != 0) in dfs_path_isdir() 1780 return ((statbuf.st_mode & S_IFMT) == S_IFDIR); in dfs_path_isdir()
|
/illumos-gate/usr/src/cmd/sgs/error/common/ |
H A D | errortouch.c | 758 struct stat statbuf; in probethisfile() local 759 if (stat(name, &statbuf) < 0) in probethisfile() 761 if ((statbuf.st_mode & S_IREAD) == 0) in probethisfile() 763 if ((statbuf.st_mode & S_IWRITE) == 0) in probethisfile()
|
/illumos-gate/usr/src/cmd/bnu/ |
H A D | permission.c | 796 struct stat statbuf; local 807 if ( stat(temp, &statbuf) == 0 ) { 816 if ( _dev[i] == statbuf.st_dev 817 && _ino[i] == statbuf.st_ino ) {
|
H A D | uucheck.c | 102 struct stat statbuf; local 137 if (stat(tabptr->value, &statbuf) < 0) {
|
/illumos-gate/usr/src/cmd/cmd-crypto/kmfcfg/ |
H A D | install.c | 51 struct stat statbuf; in kc_install() local 164 if (stat(realpath, &statbuf) != 0) { in kc_install()
|
/illumos-gate/usr/src/cmd/lp/lib/printers/ |
H A D | putprinter.c | 553 struct stat statbuf; in addPrintersPPD() local 581 if (Stat(ppd, &statbuf) == -1) in addPrintersPPD() 600 if (Stat(ppd, &statbuf) == -1) in addPrintersPPD()
|
/illumos-gate/usr/src/lib/libnsl/saf/ |
H A D | doconfig.c | 73 struct stat statbuf; /* place for stat */ in doconfig() local 80 if (stat(script, &statbuf) < 0) in doconfig()
|
/illumos-gate/usr/src/lib/libnsl/ipsec/ |
H A D | algs.c | 597 struct stat statbuf; in _build_internal_algs() local 608 if (stat(INET_IPSECALGSFILE, &statbuf) == -1 || in _build_internal_algs() 609 (statbuf.st_mtime < proto_last_update && protos != NULL)) in _build_internal_algs() 616 rc = fstat(fileno(f), &statbuf); in _build_internal_algs() 622 filetime = statbuf.st_mtime; in _build_internal_algs()
|
/illumos-gate/usr/src/cmd/msgfmt/ |
H A D | gnu_handle.c | 124 struct stat64 statbuf; in check_utf8() local 137 if (fstat64(fd, &statbuf) == -1) { in check_utf8() 141 buflen = (size_t)statbuf.st_size; in check_utf8()
|
H A D | msgfmt.c | 207 struct stat64 statbuf; in read_psffm() local 238 if (fstat64(fd, &statbuf) == -1) { in read_psffm() 242 fsize = (size_t)statbuf.st_size; in read_psffm() 524 if (munmap(addr, statbuf.st_size) == -1) { in read_psffm()
|
/illumos-gate/usr/src/cmd/tabs/ |
H A D | tabs.c | 119 static struct stat statbuf; variable 155 (void) fstat(1, &statbuf); in main() 690 (void) chmod(devtty, statbuf.st_mode); in endup()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/ |
H A D | main.c | 301 struct stat statbuf; local 476 if (fstat(0, &statbuf) >= 0 && S_ISCHR(statbuf.st_mode) 477 && statbuf.st_rdev == devstat.st_rdev) { 491 if (log_to_fd >= 0 && fstat(log_to_fd, &statbuf) >= 0 492 && S_ISCHR(statbuf.st_mode) && statbuf.st_rdev == devstat.st_rdev) 697 if (fstat(ttyfd, &statbuf) < 0 698 || fchmod(ttyfd, statbuf.st_mode & ~(S_IWGRP | S_IWOTH)) < 0) { 701 tty_mode = statbuf.st_mode;
|
/illumos-gate/usr/src/lib/print/libpapi-ipp/common/ |
H A D | ipp-support.c | 520 struct stat statbuf; in ipp_send_request_with_file() local 539 if (stat(file, &statbuf) < 0) { in ipp_send_request_with_file() 545 if (statbuf.st_size == 0) { in ipp_send_request_with_file()
|
/illumos-gate/usr/src/lib/print/libpapi-lpd/common/ |
H A D | lpd-job.c | 517 struct stat statbuf; in lpd_job_add_files() local 528 if (stat(files[i], &statbuf) < 0) { in lpd_job_add_files() 534 if (statbuf.st_size == 0) { in lpd_job_add_files()
|
/illumos-gate/usr/src/cmd/lp/lib/papi/ |
H A D | job.c | 542 struct stat statbuf; in papiJobSubmit() local 567 if (stat(files[file_no], &statbuf) < 0) { in papiJobSubmit() 573 if (statbuf.st_size == 0) { in papiJobSubmit() 660 struct stat statbuf; in papiJobSubmitByReference() local 686 if (stat(files[file_no], &statbuf) < 0) { in papiJobSubmitByReference() 692 if (statbuf.st_size == 0) { in papiJobSubmitByReference()
|
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/hash/ |
H A D | hash.c | 100 struct stat statbuf; variable 149 (stat(file, &statbuf) && (errno == ENOENT))) { 327 struct stat statbuf; local 340 if (stat(file, &statbuf)) 342 hashp->hdr.bsize = statbuf.st_blksize;
|
/illumos-gate/usr/src/lib/libc/port/i18n/ |
H A D | gettext_real.c | 1041 struct stat64 statbuf; in handle_mo() local 1078 fd = nls_safe_open(mp->msgfile, &statbuf, &mp->trusted, !mp->nlsp); in handle_mo() 1079 if ((fd == -1) || (statbuf.st_size > LONG_MAX)) { in handle_mo() 1086 mp->fsz = (size_t)statbuf.st_size; in handle_mo()
|