Home | History | Annotate | Download | only in rosh

Lines Matching defs:st_mode

578 int rosh_ls_de_size_mode(const char *filestr, struct dirent *de, mode_t * st_mode)
611 *st_mode = fdstat.st_mode;
734 /* Converts data in the "other" place of st_mode to a ls-style string
735 * st_mode Mode in other to analyze
738 void rosh_st_mode_am2str(mode_t st_mode, char *st_mode_str)
740 st_mode_str[0] = ((st_mode & S_IROTH) ? 'r' : '-');
741 st_mode_str[1] = ((st_mode & S_IWOTH) ? 'w' : '-');
742 st_mode_str[2] = ((st_mode & S_IXOTH) ? 'x' : '-');
745 /* Converts st_mode to an ls-style string
746 * st_mode mode to convert
749 void rosh_st_mode2str(mode_t st_mode, char *st_mode_str)
751 st_mode_str[0] = rosh_d_type2char_lspre(IFTODT(st_mode));
752 rosh_st_mode_am2str((st_mode & S_IRWXU) >> 6, st_mode_str + 1);
753 rosh_st_mode_am2str((st_mode & S_IRWXG) >> 3, st_mode_str + 4);
754 rosh_st_mode_am2str(st_mode & S_IRWXO, st_mode_str + 7);
766 mode_t st_mode;
768 st_mode = 0;
773 de_size = rosh_ls_de_size_mode(filestr, de, &st_mode);
774 rosh_st_mode2str(st_mode, st_mode_str);
775 ROSH_DEBUG2("%04X ", st_mode);
829 fdstat.st_mode = 0;
838 if (S_ISDIR(fdstat.st_mode)) {
849 de.d_type = (IFTODT(fdstat.st_mode));
851 if (S_ISREG(fdstat.st_mode)) {
996 if (S_ISREG(fdstat.st_mode)) {