Home
last modified time | relevance | path

Searched refs:statbuf (Results 26 – 50 of 165) sorted by relevance

1234567

/illumos-gate/usr/src/lib/libm/common/m9x/
H A D__fex_sym.c77 struct stat statbuf; in __fex_sym_init() local
88 if (stat("/proc/self/map", &statbuf) < 0 || statbuf.st_size <= 0 || in __fex_sym_init()
89 (pm = (prmap_t*)malloc(statbuf.st_size)) == NULL) in __fex_sym_init()
97 n = read(i, pm, statbuf.st_size); in __fex_sym_init()
99 if (n != statbuf.st_size) in __fex_sym_init()
/illumos-gate/usr/src/cmd/tic/
H A Dtic_main.c212 struct stat64 statbuf; in check_dir() local
218 if (stat64(dir, &statbuf) < 0) { in check_dir()
227 } else if ((statbuf.st_mode & S_IFMT) != S_IFDIR) { in check_dir()
H A Dtic_parse.c541 struct stat64 statbuf; in dump_structure() local
576 if (stat64(filename, &statbuf) >= 0 && statbuf.st_mtime >= start_time) { in dump_structure()
645 if (stat64(linkname, &statbuf) >= 0 && in dump_structure()
646 statbuf.st_mtime >= start_time) { in dump_structure()
842 struct stat64 statbuf; in handle_use() local
855 if ((stat64(filename, &statbuf) < 0) || in handle_use()
856 (part2 == 0 && statbuf.st_mtime < start_time)) { in handle_use()
/illumos-gate/usr/src/cmd/lp/cmd/lpadmin/
H A Dchkopts.c736 struct stat statbuf; local
739 if (lstat(path, &statbuf) == -1) {
747 if (S_ISLNK(statbuf.st_mode) && statbuf.st_uid != 0) {
748 uid_t uid = statbuf.st_uid;
750 if (Stat(path, &statbuf) == -1) {
755 if (statbuf.st_uid != uid) {
763 if ((statbuf.st_mode & S_IFMT) == S_IFDIR) {
765 } else if ((statbuf.st_mode & S_IFMT) == S_IFBLK)
778 if ((statbuf.st_uid && statbuf.st_uid != lp_uid)
779 || (statbuf.st_mode & (S_IWGRP|S_IRGRP|S_IWOTH|S_IROTH)))
/illumos-gate/usr/src/cmd/oamuser/user/
H A Duseradd.c149 struct stat statbuf; /* status buffer for stat */ local
523 if (stat(homedir, &statbuf) == 0) {
527 if (check_perm(statbuf, uid, gid, S_IXOTH) != 0)
775 struct stat statbuf; in valid_input() local
781 if (stat(input, &statbuf) == -1) { in valid_input()
786 if (!S_ISREG(statbuf.st_mode) || in valid_input()
787 (statbuf.st_mode & 0555) != 0555) { in valid_input()
792 if (!S_ISDIR(statbuf.st_mode)) { in valid_input()
H A Duserdel.c73 struct stat statbuf; in main() local
157 if (stat(pstruct->pw_dir, &statbuf)) { in main()
163 if (check_perm(statbuf, pstruct->pw_uid, pstruct->pw_gid, in main()
/illumos-gate/usr/src/cmd/lp/lib/lp/
H A Dtidbit.c245 struct stat statbuf; local
266 (void) Fstat(tfd, &statbuf);
268 if (tfd < 0 || !statbuf.st_size) {
275 if (!(pt->tiebuf = Malloc(statbuf.st_size))) {
280 n = Read(tfd, pt->tiebuf, statbuf.st_size);
/illumos-gate/usr/src/cmd/devinfo/
H A Ddevinfo.c134 struct stat64 statbuf; in partinfo() local
138 i = stat64(device, &statbuf); in partinfo()
141 maj = major(statbuf.st_rdev); in partinfo()
142 min = minor(statbuf.st_rdev); in partinfo()
/illumos-gate/usr/src/cmd/lp/lib/printers/
H A Dprintwheels.c118 struct stat statbuf; local
137 if (Stat(path, &statbuf) == 0) {
138 if (!S_ISDIR(statbuf.st_mode)) {
/illumos-gate/usr/src/lib/libzutil/common/
H A Dzutil_import.c910 struct stat64 statbuf; in zpool_read_label() local
921 if (fstat64(fd, &statbuf) == -1) in zpool_read_label()
1095 struct stat64 statbuf; in zpool_open_func() local
1113 if (fstat64(fd, &statbuf) != 0 || in zpool_open_func()
1114 (!S_ISREG(statbuf.st_mode) && in zpool_open_func()
1115 !S_ISCHR(statbuf.st_mode) && in zpool_open_func()
1116 !S_ISBLK(statbuf.st_mode))) { in zpool_open_func()
1121 if (S_ISREG(statbuf.st_mode) && in zpool_open_func()
1361 struct stat64 statbuf; in zpool_find_import_cached() local
1378 if (fstat64(fd, &statbuf) != 0) { in zpool_find_import_cached()
[all …]
/illumos-gate/usr/src/cmd/ypcmd/
H A Dyp_getalias.c75 struct statvfs statbuf; in sysvconfig() local
93 if (statvfs(YPDBDIR, &statbuf) != 0) { in sysvconfig()
98 if (statbuf.f_namemax == 14) in sysvconfig()
/illumos-gate/usr/src/cmd/passmgmt/
H A Dpassmgmt.c303 struct stat statbuf; in main() local
655 if (stat(PASSWD, &statbuf) < 0) in main()
667 statbuf.st_mode); in main()
678 error = fchown(fd_ptemp, statbuf.st_uid, statbuf.st_gid); in main()
692 if (stat(SHADOW, &statbuf) < 0) { in main()
697 statbuf.st_mode); in main()
706 O_CREAT|O_EXCL|O_WRONLY, statbuf.st_mode); in main()
722 error = fchown(fd_stemp, statbuf.st_uid, statbuf.st_gid); in main()
732 if (stat(USERATTR_FILENAME, &statbuf) < 0) { in main()
737 statbuf.st_mode); in main()
[all …]
/illumos-gate/usr/src/lib/libcurses/screen/
H A Dscr_reset.c81 struct stat statbuf; in scr_reset() local
108 (fstat(cur_term->Filedes, &statbuf) < 0) || in scr_reset()
109 (statbuf.st_mtime != ttytime))) { in scr_reset()
118 statbuf.st_mtime, ttytime); in scr_reset()
/illumos-gate/usr/src/lib/libldap5/sources/ldap/util/
H A Dlog.c102 struct stat statbuf = {0}; in ldaplog() local
128 if ((logsize > 0) && (stat(logfile, &statbuf) == 0 && in ldaplog()
129 statbuf.st_size > logsize)) { in ldaplog()
/illumos-gate/usr/src/lib/pam_modules/authtok_check/
H A Dpacker.c231 struct stat statbuf; in sort_file() local
241 if (fstat(fd, &statbuf) == -1) { in sort_file()
247 if ((buf = malloc(statbuf.st_size + 1)) == NULL) { in sort_file()
252 n = read(fd, buf, statbuf.st_size); in sort_file()
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_reparse.c47 struct stat statbuf; in smb_reparse_stat() local
51 if (lstat(path, &statbuf) != 0) { in smb_reparse_stat()
59 if ((statbuf.st_mode & S_IFMT) != S_IFLNK) { in smb_reparse_stat()
/illumos-gate/usr/src/lib/libc/port/rt/
H A Dsem.c60 struct stat64 statbuf; in sem_open() local
104 if (fstat64(fd, &statbuf) < 0) in sem_open()
118 if (statbuf.st_ino == next->sad_inode && in sem_open()
161 next->sad_inode = statbuf.st_ino; in sem_open()
/illumos-gate/usr/src/cmd/lp/cmd/lpsched/
H A Ddowait.c501 struct stat statbuf; in geterrbuf() local
507 Stat(file, &statbuf) == 0 in geterrbuf()
508 && statbuf.st_size in geterrbuf()
516 if ((buf = Malloc(statbuf.st_size + 1))) in geterrbuf()
517 if ((n = Read(fd, buf, statbuf.st_size)) > 0) { in geterrbuf()
/illumos-gate/usr/src/cmd/bnu/
H A Deio.c132 struct stat statbuf; local
146 fstat(fd1, &statbuf);
153 msglen = statbuf.st_size - startPoint;
363 struct stat statbuf; local
369 fstat(fileno(fp1), &statbuf);
/illumos-gate/usr/src/cmd/format/
H A Dmenu_fdisk.c362 struct stat statbuf; in c_fdisk() local
386 if (stat(pbuf, (struct stat *)&statbuf) == -1 || in c_fdisk()
387 !S_ISCHR(statbuf.st_mode)) { in c_fdisk()
687 struct stat statbuf; local
695 if (stat(buf, &statbuf) == -1 ||
696 !S_ISCHR(statbuf.st_mode) ||
965 struct stat statbuf; local
968 if (stat(buf, &statbuf) == -1 ||
969 !S_ISCHR(statbuf.st_mode) ||
/illumos-gate/usr/src/test/zfs-tests/cmd/getholes/
H A Dgetholes.c120 struct stat statbuf; in main() local
154 if (fstat(fd, &statbuf) != 0) { in main()
158 len = statbuf.st_size; in main()
/illumos-gate/usr/src/lib/libtecla/common/
H A Ddireader.c297 struct stat statbuf; /* The file-statistics return buffer */ in _dr_path_is_dir() local
301 if(stat(pathname, &statbuf) < 0) in _dr_path_is_dir()
306 return S_ISDIR(statbuf.st_mode) != 0; in _dr_path_is_dir()
/illumos-gate/usr/src/cmd/swap/
H A Dswap.c374 struct stat64 statbuf; in list() local
444 if (stat64(fullpath, &statbuf) < 0) in list()
452 if (S_ISBLK(statbuf.st_mode) || in list()
453 S_ISCHR(statbuf.st_mode)) { in list()
456 major(statbuf.st_rdev), in list()
457 minor(statbuf.st_rdev)); in list()
/illumos-gate/usr/src/cmd/srptsvc/
H A Dsrptsvc.c52 struct stat statbuf; in main() local
79 if ((stat("/devices/ib", &statbuf)) != 0) { in main()
/illumos-gate/usr/src/cmd/cmd-inet/lib/ipmgmtd/
H A Dipmgmt_util.c61 struct stat statbuf; in ipmgmt_cpfile() local
78 if (stat(src, &statbuf) != 0) { in ipmgmt_cpfile()

1234567