/system/core/toolbox/ |
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 | setconsole.c | 37 int mode = -1; local 53 if(mode == KD_TEXT) { 57 mode = KD_GRAPHICS; 60 if(mode == KD_GRAPHICS) { 64 mode = KD_TEXT; 85 " -g Switch to graphics mode\n" 86 " -t Switch to text mode\n" 99 if(mode == -1 && new_vc == 0 && close_vc == 0 && switch_vc == -1 && printvc == 0) { 159 if (mode != -1) { 160 if (ioctl(fd, KDSETMODE, (void*)mode) < [all...] |
H A D | ls.c | 32 static char mode2kind(unsigned mode) argument 34 switch(mode & S_IFMT){ 46 static void mode2str(unsigned mode, char *out) argument 48 *out++ = mode2kind(mode); 50 *out++ = (mode & 0400) ? 'r' : '-'; 51 *out++ = (mode & 0200) ? 'w' : '-'; 52 if(mode & 04000) { 53 *out++ = (mode & 0100) ? 's' : 'S'; 55 *out++ = (mode & 0100) ? 'x' : '-'; 57 *out++ = (mode 165 char mode[16]; local [all...] |
/system/extras/ext4_utils/ |
H A D | contents.h | 27 u16 mode; member in struct:dentry 38 int inode_set_permissions(u32 inode_num, u16 mode, u16 uid, u16 gid, u32 mtime);
|
H A D | make_ext4fs.c | 56 .mode = S_IRWXU, 64 inode_set_permissions(inode, dentries.mode, 114 dentries[i].mode = stat.st_mode & (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO); 118 unsigned int mode = 0; local 122 fs_config(dentries[i].path, dir, &uid, &gid, &mode); 123 dentries[i].mode = mode; 172 ret = inode_set_permissions(entry_inode, dentries[i].mode,
|
H A D | ext4fixup.c | 618 static int recurse_dir(int fd, struct ext4_inode *inode, char *dirbuf, int dirsize, int mode) argument 629 switch (mode) { 635 critical_error("recurse_dir() called witn unknown mode!\n"); 677 if (((mode == SANITY_CHECK_PASS) || (mode == UPDATE_INODE_NUMS)) && 708 is_dir = is_entry_dir(fd, dirp, mode); 710 ((mode == SANITY_CHECK_PASS) || (mode == MARK_INODE_NUMS) || 711 ((mode == UPDATE_INODE_NUMS) && (dirp->inode & 0x80000000))) ) { 734 recurse_dir(fd, &tmp_inode, tmp_dirbuf, tmp_dirsize, mode); [all...] |
H A D | contents.c | 231 int inode_set_permissions(u32 inode_num, u16 mode, u16 uid, u16 gid, u32 mtime) argument 238 inode->i_mode |= 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 | 64 msg.stat.mode = 0; 68 msg.stat.mode = htoll(st.st_mode); 106 msg.dent.mode = htoll(st.st_mode); 122 msg.dent.mode = 0; 151 static int handle_send_file(int s, char *path, mode_t mode, char *buffer) argument 157 fd = adb_open_mode(path, O_WRONLY | O_CREAT | O_EXCL, mode); 160 fd = adb_open_mode(path, O_WRONLY | O_CREAT | O_EXCL, mode); 163 fd = adb_open_mode(path, O_WRONLY, mode); 279 mode_t mode; local 286 mode [all...] |
H A D | file_sync_client.c | 75 typedef void (*sync_ls_cb)(unsigned mode, unsigned size, unsigned time, const char *name, void *cookie); 105 func(ltohl(msg.dent.mode), 168 unsigned int *mode, unsigned int *size) 179 *mode = ltohl(msg.stat.mode); 185 int sync_readmode(int fd, const char *path, unsigned *mode) argument 206 *mode = ltohl(msg.stat.mode); 298 unsigned mtime, mode_t mode, int verifyApk) 310 snprintf(tmp, sizeof(tmp), ",%d", mode); 167 sync_finish_readtime(int fd, unsigned int *timestamp, unsigned int *mode, unsigned int *size) argument 297 sync_send(int fd, const char *lpath, const char *rpath, unsigned mtime, mode_t mode, int verifyApk) argument 535 do_sync_ls_cb(unsigned mode, unsigned size, unsigned time, const char *name, void *cookie) argument 565 unsigned int mode; member in struct:copyinfo 708 unsigned int timestamp, mode, size; local 745 unsigned mode; local 810 sync_ls_build_list_cb(unsigned mode, unsigned size, unsigned time, const char *name, void *cookie) argument 945 unsigned mode; local [all...] |
H A D | sysdeps.h | 105 static __inline__ int adb_mkdir(const char* path, int mode) argument 113 extern int adb_creat(const char* path, int mode); 141 static __inline__ int adb_open_mode(const char* path, int options, int mode) argument 154 int mode; local 157 mode = va_arg( args, int ); 159 return open(path, options, mode); 313 int mode; local 316 mode = va_arg( args, int ); 318 return open(path, options, mode); 322 static __inline__ int adb_open_mode( const char* pathname, int options, int mode ) 383 adb_creat(const char* path, int mode) argument 467 adb_mkdir(const char* path, int mode) argument [all...] |
H A D | file_sync_service.h | 57 unsigned mode; member in struct:__anon274::__anon276 63 unsigned mode; member in struct:__anon274::__anon277
|
/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/sh/ |
H A D | jobs.c | 288 set_curjob(struct job *jp, int mode) argument 308 switch (mode) { 382 showjob(struct output *out, struct job *jp, int mode) argument 391 if (mode & SHOW_PGID) { 402 if (mode & SHOW_PID) 403 mode |= SHOW_MULTILINE; 405 if ((procno > 1 && !(mode & SHOW_MULTILINE)) 406 || (mode & SHOW_SIGNALLED)) { 414 mode |= SHOW_MULTILINE; 415 if (st1 == -1 || !(mode 503 int mode, m; local 534 showjobs(struct output *out, int mode) argument 847 forkshell(struct job *jp, union node *n, int mode) argument 867 forkparent(struct job *jp, union node *n, int mode, pid_t pid) argument 896 forkchild(struct job *jp, union node *n, int mode, int vforked) argument 1094 int mode = 0; local [all...] |
H A D | eval.c | 685 int mode; local 837 mode = cmd->ncmd.backgnd; 839 mode = FORK_NOJOB; 879 forkchild(jp, cmd, mode, vforked); 893 forkparent(jp, cmd, mode, pid); 899 if (forkshell(jp, cmd, mode) != 0) 979 mode = (cmdentry.u.bltin == execcmd) ? 0 : REDIR_PUSH; 984 mode |= REDIR_BACKQ; 1003 redirect(cmd->ncmd.redirect, mode); 1071 if (mode [all...] |
/system/core/include/private/ |
H A D | android_filesystem_config.h | 136 unsigned mode; member in struct:fs_path_config 224 unsigned *uid, unsigned *gid, unsigned *mode) 247 *mode = (*mode & (~07777)) | pc->mode; 251 path, pc->prefix ? pc->prefix : "", *uid, *gid, *mode); 223 fs_config(const char *path, int dir, unsigned *uid, unsigned *gid, unsigned *mode) argument
|
/system/media/wilhelm/src/itf/ |
H A D | IMetadataTraversal.c | 22 static SLresult IMetadataTraversal_SetMode(SLMetadataTraversalItf self, SLuint32 mode) argument 26 switch (mode) { 32 thiz->mMode = mode;
|
/system/core/init/ |
H A D | util.h | 34 int mkdir_recursive(const char *pathname, mode_t mode);
|
H A D | builtins.c | 231 mode_t mode = 0755; local 234 /* mkdir <path> [mode] [owner] [group] */ 237 mode = strtoul(args[2], 0, 8); 240 ret = mkdir(args[1], mode); 243 ret = chmod(args[1], mode); 329 int mode, loop, fd; local 332 mode = (flags & MS_RDONLY) ? O_RDONLY : O_RDWR; 333 fd = open(source + 5, mode); 340 loop = open(tmp, mode); 644 mode_t mode local 657 mode_t mode = get_mode(args[1]); local [all...] |
H A D | util.c | 114 INFO("Created socket '%s' with mode '%o', user '%d', group '%d'\n", 248 int mkdir_recursive(const char *pathname, mode_t mode) argument 271 ret = mkdir(buf, mode); 276 ret = mkdir(pathname, mode);
|
/system/core/nexus/ |
H A D | Supplicant.h | 69 int setApScanMode(int mode); 72 int setBluetoothCoexistenceMode(int mode);
|
H A D | Supplicant.cpp | 283 LOGW("triggerScan(%d): Error setting scan mode (%s)", active, 608 int Supplicant::setBluetoothCoexistenceMode(int mode) { argument 611 sprintf(req, "DRIVER BTCOEXMODE %d", mode); 621 int Supplicant::setApScanMode(int mode) { argument 624 // LOGD("setApScanMode(%d)", mode); 625 sprintf(req, "AP_SCAN %d", mode);
|
/system/core/sdcard/ |
H A D | fuse.h | 96 __u32 mode; member in struct:fuse_attr 154 * FUSE_DONT_MASK: don't apply umask to file mode on create operations 311 __u32 mode; member in struct:fuse_mknod_in 318 __u32 mode; member in struct:fuse_mkdir_in 342 __u32 mode; member in struct:fuse_setattr_in 356 __u32 mode; member in struct:fuse_create_in
|
H A D | sdcard.c | 206 attr->mode = s->st_mode; 213 if (attr->mode & 0100) { 214 attr->mode = (attr->mode & (~0777)) | 0775; 216 attr->mode = (attr->mode & (~0777)) | 0664; 643 req->mode = (req->mode & (~0777)) | 0664; 644 res = mknod(path, req->mode, req->rdev); /* XXX perm?*/ 659 TRACE("MKDIR %s @ %llx 0%o\n", name, hdr->nodeid, req->mode); [all...] |
/system/core/include/system/ |
H A D | window.h | 530 * native-window size. They will be scaled according to the scaling mode 592 * native_window_set_scaling_mode(..., int mode) 593 * All buffers queued after this call will be associated with the scaling mode 598 int mode) 601 mode); 596 native_window_set_scaling_mode( struct ANativeWindow* window, int mode) argument
|