Lines Matching defs:stat

244 static int s_stat(const char *, struct stat *);
329 struct stat tx_stat;
461 struct stat sb;
481 struct stat sb;
2822 struct stat sb;
2924 * stat() the console device newdev->ldev_console
2933 if (stat(newdev->ldev_console, &sb) == -1) {
2977 struct stat sb;
3016 * would cause stat of physical path to fail. In this case,
3019 if ((stat(phy_path, &sb) == -1) || (sb.st_rdev != dev)) {
3684 struct stat sb;
3686 if (stat(instfilename, &sb) == -1 && errno == ENOENT)
3732 struct stat sb;
3753 if (stat(new_inst_file, &sb) == 0) {
3789 if (stat(old_inst_file, &sb) == 0) {
3854 if (stat(new_inst_file, &sb) == 0) {
3859 if (stat(old_inst_file, &sb) == 0) {
4482 /* We *don't* want a stat of the /devices node */
4496 struct stat sb;
4565 struct stat sb;
4630 rv = (stat(ptr - strlen(DEVICES), &sb) == -1);
5229 * link, and then stat and return it. This is valid for the same reason
5235 get_stat_info(char *namebuf, struct stat *sb)
5672 struct stat sb;
5841 devfsadm_copy_file(const char *file, const struct stat *stat,
5844 struct stat sp;
5860 if (((stat->st_mode & S_IFMT) == S_IFBLK) ||
5861 ((stat->st_mode & S_IFMT) == S_IFCHR)) {
5862 if (translate_major(stat->st_rdev, &newdev) ==
5866 if (mknod(newfile, stat->st_mode, newdev) == -1) {
5870 } else if ((stat->st_mode & S_IFMT) == S_IFDIR) {
5871 if (mknod(newfile, stat->st_mode, 0) == -1) {
5875 } else if ((stat->st_mode & S_IFMT) == S_IFLNK) {
5893 (void) lchown(newfile, stat->st_uid, stat->st_gid);
6040 struct stat current_sb;
6041 static struct stat cached_sb;
6046 if (stat(enumerate_file, &current_sb) == -1) {
6089 (void) stat(enumerate_file, &cached_sb);
6156 static struct stat cached_sb;
6157 struct stat current_sb;
6164 (void) stat(devlinktab_file, &current_sb);
6193 (void) stat(devlinktab_file, &cached_sb);
7304 static struct stat cached_sb;
7305 struct stat current_sb;
7307 (void) stat(MINOR_PERM_FILE, &current_sb);
7322 (void) stat(MINOR_PERM_FILE, &cached_sb);
7369 static struct stat cached_sb;
7370 struct stat current_sb;
7384 if (stat(LDEV_FILE, &current_sb) == 0 &&
7411 if (stat(LDEV_FILE, &cached_sb) != 0) {
7582 static struct stat cached_sb;
7583 struct stat current_sb;
7585 (void) stat(ALIASFILE, &current_sb);
7607 (void) stat(ALIASFILE, &cached_sb);
7688 s_stat(const char *path, struct stat *sbufp)
7692 if ((rv = stat(path, sbufp)) == -1) {