Home
last modified time | relevance | path

Searched refs:statbuf (Results 76 – 100 of 165) sorted by relevance

1234567

/illumos-gate/usr/src/cmd/sendmail/src/
H A Dmci.c1108 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 Dsvc_door.c168 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 Dlibzfs_import.c169 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 Dlibnwam_backend.c337 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 Dutmp_update.c457 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 Ddlmgmt_main.c181 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 Dttymon.c565 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 Dplugins.c87 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 Ddfs.c1255 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 Derrortouch.c758 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 Dpermission.c796 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 Duucheck.c102 struct stat statbuf; local
137 if (stat(tabptr->value, &statbuf) < 0) {
/illumos-gate/usr/src/cmd/cmd-crypto/kmfcfg/
H A Dinstall.c51 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 Dputprinter.c553 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 Ddoconfig.c73 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 Dalgs.c597 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 Dgnu_handle.c124 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 Dmsgfmt.c207 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 Dtabs.c119 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 Dmain.c301 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 Dipp-support.c520 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 Dlpd-job.c517 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 Djob.c542 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 Dhash.c100 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 Dgettext_real.c1041 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()

1234567