/illumos-gate/usr/src/lib/libm/common/m9x/ |
H A D | __fex_sym.c | 77 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 D | tic_main.c | 212 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 D | tic_parse.c | 541 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 D | chkopts.c | 736 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 D | useradd.c | 149 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 D | userdel.c | 73 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 D | tidbit.c | 245 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 D | devinfo.c | 134 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 D | printwheels.c | 118 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 D | zutil_import.c | 910 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 D | yp_getalias.c | 75 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 D | passmgmt.c | 303 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 D | scr_reset.c | 81 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 D | log.c | 102 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 D | packer.c | 231 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 D | smb_reparse.c | 47 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 D | sem.c | 60 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 D | dowait.c | 501 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 D | eio.c | 132 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 D | menu_fdisk.c | 362 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 D | getholes.c | 120 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 D | direader.c | 297 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 D | swap.c | 374 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 D | srptsvc.c | 52 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 D | ipmgmt_util.c | 61 struct stat statbuf; in ipmgmt_cpfile() local 78 if (stat(src, &statbuf) != 0) { in ipmgmt_cpfile()
|