Lines Matching refs:unix_mode
279 if (mkdir(name.c_str(), entry.unix_mode) == -1) { in ExtractOne()
291 int fd = open(name.c_str(), O_CREAT | O_WRONLY | O_CLOEXEC | O_EXCL, entry.unix_mode); in ExtractOne()
296 fd = open(name.c_str(), O_WRONLY | O_CREAT | O_CLOEXEC | O_TRUNC, entry.unix_mode); in ExtractOne()
352 mode[0] = S_ISDIR(entry.unix_mode) ? 'd' : (S_ISREG(entry.unix_mode) ? '-' : '?'); in InfoOne()
353 mode[1] = entry.unix_mode & S_IRUSR ? 'r' : '-'; in InfoOne()
354 mode[2] = entry.unix_mode & S_IWUSR ? 'w' : '-'; in InfoOne()
355 mode[3] = entry.unix_mode & S_IXUSR ? 'x' : '-'; in InfoOne()
356 mode[4] = entry.unix_mode & S_IRGRP ? 'r' : '-'; in InfoOne()
357 mode[5] = entry.unix_mode & S_IWGRP ? 'w' : '-'; in InfoOne()
358 mode[6] = entry.unix_mode & S_IXGRP ? 'x' : '-'; in InfoOne()
359 mode[7] = entry.unix_mode & S_IROTH ? 'r' : '-'; in InfoOne()
360 mode[8] = entry.unix_mode & S_IWOTH ? 'w' : '-'; in InfoOne()
361 mode[9] = entry.unix_mode & S_IXOTH ? 'x' : '-'; in InfoOne()