/system/extras/ext4_utils/ |
H A D | canned_fs_config.h | 24 unsigned* uid, unsigned* gid, unsigned* mode, uint64_t* capabilities);
|
H A D | canned_fs_config.c | 31 unsigned mode; member in struct:__anon247 60 p->mode = strtol(strtok(NULL, " "), NULL, 8); // mode is in octal 84 unsigned* uid, unsigned* gid, unsigned* mode, uint64_t* capabilities) { 94 *mode = p->mode; 106 if (c_mode != *mode) printf("%s mode 0%o 0%o\n", path, *mode, c_mode); 83 canned_fs_config(const char* path, int dir, unsigned* uid, unsigned* gid, unsigned* mode, uint64_t* capabilities) argument
|
H A D | contents.h | 27 u16 mode; member in struct:dentry 40 int inode_set_permissions(u32 inode_num, u16 mode, u16 uid, u16 gid, u32 mtime);
|
H A D | ext4fixup.c | 520 static int recurse_dir(int fd, struct ext4_inode *inode, char *dirbuf, int dirsize, int mode) argument 531 switch (mode) { 537 critical_error("recurse_dir() called witn unknown mode!\n"); 579 if (((mode == SANITY_CHECK_PASS) || (mode == UPDATE_INODE_NUMS)) && 610 is_dir = is_entry_dir(fd, dirp, mode); 612 ((mode == SANITY_CHECK_PASS) || (mode == MARK_INODE_NUMS) || 613 ((mode == UPDATE_INODE_NUMS) && (dirp->inode & 0x80000000))) ) { 636 recurse_dir(fd, &tmp_inode, tmp_dirbuf, tmp_dirsize, mode); [all...] |
/system/core/toolbox/ |
H A D | mknod.c | 46 mode_t mode = 0660; local 59 mode |= S_IFBLK; 64 mode |= S_IFCHR; 68 mode |= S_IFIFO; 90 if (mknod(path, mode, makedev(major, minor))) {
|
H A D | chmod.c | 13 void recurse_chmod(char* path, int mode) argument 37 if (chmod(subpath, mode) < 0) { 42 recurse_chmod(subpath, mode); 77 int mode = 0; local 81 mode = (mode<<3) | (*s-'0'); 84 fprintf(stderr, "Bad mode\n"); 91 if (chmod(argv[i], mode) < 0) { 96 recurse_chmod(argv[i], mode);
|
H A D | ls.c | 36 static char mode2kind(mode_t mode) argument 38 switch(mode & S_IFMT){ 50 void strmode(mode_t mode, char *out) argument 52 *out++ = mode2kind(mode); 54 *out++ = (mode & 0400) ? 'r' : '-'; 55 *out++ = (mode & 0200) ? 'w' : '-'; 56 if(mode & 04000) { 57 *out++ = (mode & 0100) ? 's' : 'S'; 59 *out++ = (mode & 0100) ? 'x' : '-'; 61 *out++ = (mode 166 char mode[16]; local 240 char mode[16]; local [all...] |
/system/core/include/cutils/ |
H A D | fs.h | 43 * Ensure that directory exists with given mode and owners. 45 extern int fs_prepare_dir(const char* path, mode_t mode, uid_t uid, gid_t gid); 65 extern int fs_mkdirs(const char* path, mode_t mode);
|
/system/extras/tests/cpueater/ |
H A D | daemonize.c | 33 int pid, fd, mode; local 46 mode = O_TRUNC; 64 mode = O_APPEND; 72 if(open(file, O_WRONLY|mode|O_CREAT, 0666) < 0) {
|
/system/core/adb/ |
H A D | file_sync_service.c | 53 unsigned int mode = 0775; local 63 fs_config(name, 1, &uid, &gid, &mode, &cap); 65 ret = adb_mkdir(name, mode); 91 msg.stat.mode = 0; 95 msg.stat.mode = htoll(st.st_mode); 133 msg.dent.mode = htoll(st.st_mode); 150 msg.dent.mode = 0; 180 gid_t gid, mode_t mode, char *buffer, bool do_unlink) 186 fd = adb_open_mode(path, O_WRONLY | O_CREAT | O_EXCL | O_CLOEXEC, mode); 193 fd = adb_open_mode(path, O_WRONLY | O_CREAT | O_EXCL | O_CLOEXEC, mode); 179 handle_send_file(int s, char *path, uid_t uid, gid_t gid, mode_t mode, char *buffer, bool do_unlink) argument 329 unsigned int mode; local [all...] |
H A D | file_sync_client.c | 92 typedef void (*sync_ls_cb)(unsigned mode, unsigned size, unsigned time, const char *name, void *cookie); 122 func(ltohl(msg.dent.mode), 144 unsigned int *mode) 166 *mode = ltohl(msg.stat.mode); 187 unsigned int *mode, unsigned int *size) 198 *mode = ltohl(msg.stat.mode); 204 int sync_readmode(int fd, const char *path, unsigned *mode) argument 225 *mode 143 sync_readtime(int fd, const char *path, unsigned int *timestamp, unsigned int *mode) argument 186 sync_finish_readtime(int fd, unsigned int *timestamp, unsigned int *mode, unsigned int *size) argument 337 sync_send(int fd, const char *lpath, const char *rpath, unsigned mtime, mode_t mode, int show_progress) argument 543 do_sync_ls_cb(unsigned mode, unsigned size, unsigned time, const char *name, void *cookie) argument 573 unsigned int mode; member in struct:copyinfo 719 unsigned int timestamp, mode, size; local 757 unsigned mode; local 822 sync_ls_build_list_cb(unsigned mode, unsigned size, unsigned time, const char *name, void *cookie) argument 883 set_time_and_mode(const char *lpath, unsigned int time, unsigned int mode) argument 954 unsigned mode, time; local [all...] |
H A D | sysdeps.h | 107 static __inline__ int adb_mkdir(const char* path, int mode) argument 115 extern int adb_creat(const char* path, int mode); 143 static __inline__ int adb_open_mode(const char* path, int options, int mode) argument 156 int mode; local 159 mode = va_arg( args, int ); 161 return open(path, options, mode); 335 int mode; local 338 mode = va_arg( args, int ); 340 return TEMP_FAILURE_RETRY( open( path, options, mode ) ); 344 static __inline__ int adb_open_mode( const char* pathname, int options, int mode ) 405 adb_creat(const char* path, int mode) argument 489 adb_mkdir(const char* path, int mode) argument [all...] |
H A D | file_sync_service.h | 57 unsigned mode; member in struct:__anon6::__anon8 63 unsigned mode; member in struct:__anon6::__anon9
|
/system/core/init/ |
H A D | util.h | 34 int mkdir_recursive(const char *pathname, mode_t mode); 42 int make_dir(const char *path, mode_t mode);
|
H A D | builtins.c | 112 static int _chmod(const char *path, mode_t mode) argument 122 ret = fchmod(fd, mode); 310 mode_t mode = 0755; local 313 /* mkdir <path> [mode] [owner] [group] */ 316 mode = strtoul(args[2], 0, 8); 319 ret = make_dir(args[1], mode); 322 ret = _chmod(args[1], mode); 341 if (mode & (S_ISUID | S_ISGID)) { 342 ret = _chmod(args[1], mode); 423 int mode, loo local 828 mode_t mode = 0; local 841 mode_t mode = get_mode(args[1]); local [all...] |
/system/extras/tests/fstest/ |
H A D | perm_checker.c | 200 static void print_new_rule(const char *name, mode_t mode, uid_t uid, gid_t gid) argument 206 printf("%s %4o %4o %s %d %s %d\n", name, mode, mode, pw->pw_name, uid, 211 static int pass_rule(const perm_rule_t *pr, mode_t mode, uid_t uid, gid_t gid) argument 213 if (((pr->min_mode & mode) == pr->min_mode) && 214 ((pr->max_mode | mode) == pr->max_mode) && 223 static int validate_file(const char *name, mode_t mode, uid_t uid, gid_t gid) argument 232 if (!pass_rule(pr, mode, uid, gid)) 245 print_new_rule(name, mode, uid, gid); 255 if (!pass_rule(pr, mode, ui 284 validate_link(const char *name, mode_t mode, uid_t uid, gid_t gid) argument 312 validate_dir(const char *name, mode_t mode, uid_t uid, gid_t gid) argument [all...] |
/system/core/liblog/ |
H A D | log_read_kern.c | 76 static int accessmode(int mode) argument 78 if ((mode & O_ACCMODE) == O_WRONLY) { 81 if ((mode & O_ACCMODE) == O_RDWR) { 88 static int check_allocate_accessible(char **n, const char *b, int mode) argument 101 return access(*n, accessmode(mode)); 137 int mode; member in struct:logger_list 195 static int logger_ioctl(struct logger *logger, int cmd, int mode) argument 204 if (((mode & O_ACCMODE) == O_RDWR) 205 || (((mode ^ logger->top->mode) 290 android_logger_list_alloc(int mode, unsigned int tail, pid_t pid) argument 307 android_logger_list_alloc_time(int mode, log_time start __unused, pid_t pid) argument 369 android_logger_list_open(log_id_t id, int mode, unsigned int tail, pid_t pid) argument [all...] |
H A D | log_read.c | 240 int mode; member in struct:logger_list 466 struct logger_list *android_logger_list_alloc(int mode, argument 478 logger_list->mode = mode; 488 struct logger_list *android_logger_list_alloc_time(int mode, argument 500 logger_list->mode = mode; 546 int mode, 550 struct logger_list *logger_list = android_logger_list_alloc(mode, tail, pid); 581 if (logger_list->mode 545 android_logger_list_open(log_id_t id, int mode, unsigned int tail, pid_t pid) argument [all...] |
/system/core/libcutils/ |
H A D | fs.c | 40 int fs_prepare_dir(const char* path, mode_t mode, uid_t uid, gid_t gid) { argument 57 if (((sb.st_mode & ALL_PERMS) == mode) && (sb.st_uid == uid) && (sb.st_gid == gid)) { 64 if (TEMP_FAILURE_RETRY(mkdir(path, mode)) == -1) { 72 if (TEMP_FAILURE_RETRY(chmod(path, mode)) == -1) { 73 ALOGE("Failed to chmod(%s, %d): %s", path, mode, strerror(errno)); 153 int fs_mkdirs(const char* path, mode_t mode) { argument 186 if (mkdirat(fd, segment, mode) != 0) {
|
/system/media/audio_utils/include/audio_utils/ |
H A D | sndfile.h | 58 SNDFILE *sf_open(const char *path, int mode, SF_INFO *info);
|
/system/core/include/private/ |
H A D | android_filesystem_config.h | 182 unsigned mode; member in struct:fs_path_config 273 unsigned *uid, unsigned *gid, unsigned *mode, uint64_t *capabilities) 300 *mode = (*mode & (~07777)) | pc->mode; 305 path, pc->prefix ? pc->prefix : "", *uid, *gid, *mode); 272 fs_config(const char *path, int dir, unsigned *uid, unsigned *gid, unsigned *mode, uint64_t *capabilities) argument
|
/system/core/adf/libadfhwc/ |
H A D | adfhwc.cpp | 118 const drm_mode_modeinfo &mode, const uint32_t attribute) 122 if (mode.vrefresh) 123 return 1000000000 / mode.vrefresh; 127 return mode.hdisplay; 130 return mode.vdisplay; 133 return dpi(mode.hdisplay, data.width_mm); 136 return dpi(mode.vdisplay, data.height_mm); 117 adf_display_attribute(const adf_interface_data &data, const drm_mode_modeinfo &mode, const uint32_t attribute) argument
|
/system/core/include/log/ |
H A D | logger.h | 157 struct logger_list *android_logger_list_alloc(int mode, 160 struct logger_list *android_logger_list_alloc_time(int mode, 174 int mode,
|
/system/media/audio_utils/ |
H A D | tinysndfile.c | 28 int mode; member in struct:SNDFILE_ 71 handle->mode = SFM_READ; 304 handle->mode = SFM_WRITE; 313 SNDFILE *sf_open(const char *path, int mode, SF_INFO *info) argument 319 switch (mode) { 325 fprintf(stderr, "mode=%d\n", mode); 335 if (handle->mode == SFM_WRITE) { 353 if (handle == NULL || handle->mode != SFM_READ || ptr == NULL || !handle->remaining || 398 if (handle == NULL || handle->mode ! [all...] |
/system/core/sdcard/ |
H A D | sdcard.c | 130 /* Permission mode for a specific node. Controls how file permissions 182 mode_t mode; member in struct:node 423 attr->mode = s->st_mode; 429 /* Filter requested mode based on underlying file, and 432 int filtered_mode = node->mode & (owner_mode | (owner_mode >> 3) | (owner_mode >> 6)); 433 attr->mode = (attr->mode & S_IFMT) | filtered_mode; 436 static int touch(char* path, mode_t mode) { argument 437 int fd = open(path, O_RDWR | O_CREAT | O_EXCL | O_NOFOLLOW, mode); 459 node->mode 554 check_caller_access_to_name(struct fuse* fuse, const struct fuse_in_header *hdr, const struct node* parent_node, const char* name, int mode, bool has_rw) argument 591 check_caller_access_to_node(struct fuse* fuse, const struct fuse_in_header *hdr, const struct node* node, int mode, bool has_rw) argument 1008 __u32 mode = (req->mode & (~0777)) | 0664; local 1039 __u32 mode = (req->mode & (~0777)) | 0775; local [all...] |