/system/core/toolbox/ |
D | ls.c | 27 static char mode2kind(unsigned mode) in mode2kind() argument 29 switch(mode & S_IFMT){ in mode2kind() 41 static void mode2str(unsigned mode, char *out) in mode2str() argument 43 *out++ = mode2kind(mode); in mode2str() 45 *out++ = (mode & 0400) ? 'r' : '-'; in mode2str() 46 *out++ = (mode & 0200) ? 'w' : '-'; in mode2str() 47 if(mode & 04000) { in mode2str() 48 *out++ = (mode & 0100) ? 's' : 'S'; in mode2str() 50 *out++ = (mode & 0100) ? 'x' : '-'; in mode2str() 52 *out++ = (mode & 040) ? 'r' : '-'; in mode2str() [all …]
|
D | setconsole.c | 35 int mode = -1; in setconsole_main() local 51 if(mode == KD_TEXT) { in setconsole_main() 55 mode = KD_GRAPHICS; in setconsole_main() 58 if(mode == KD_GRAPHICS) { in setconsole_main() 62 mode = KD_TEXT; in setconsole_main() 97 if(mode == -1 && new_vc == 0 && close_vc == 0 && switch_vc == -1 && printvc == 0) { in setconsole_main() 157 if (mode != -1) { in setconsole_main() 158 if (ioctl(fd, KDSETMODE, (void*)mode) < 0) { in setconsole_main() 159 fprintf(stderr, "KDSETMODE %d failed\n", mode); in setconsole_main()
|
D | chmod.c | 20 int mode = 0; in chmod_main() local 24 mode = (mode<<3) | (*s-'0'); in chmod_main() 33 if (chmod(argv[i], mode) < 0) { in chmod_main()
|
/system/core/adb/ |
D | file_sync_client.c | 75 typedef void (*sync_ls_cb)(unsigned mode, unsigned size, unsigned time, const char *name, void *coo… 105 func(ltohl(msg.dent.mode), in sync_ls() 168 unsigned int *mode, unsigned int *size) in sync_finish_readtime() argument 179 *mode = ltohl(msg.stat.mode); in sync_finish_readtime() 185 int sync_readmode(int fd, const char *path, unsigned *mode) in sync_readmode() argument 206 *mode = ltohl(msg.stat.mode); in sync_readmode() 298 unsigned mtime, mode_t mode, int verifyApk) in sync_send() argument 310 snprintf(tmp, sizeof(tmp), ",%d", mode); in sync_send() 382 } else if (S_ISREG(mode)) in sync_send() 385 else if (S_ISLNK(mode)) in sync_send() [all …]
|
D | file_sync_service.c | 64 msg.stat.mode = 0; in do_stat() 68 msg.stat.mode = htoll(st.st_mode); in do_stat() 106 msg.dent.mode = htoll(st.st_mode); in do_list() 122 msg.dent.mode = 0; in do_list() 151 static int handle_send_file(int s, char *path, mode_t mode, char *buffer) in handle_send_file() argument 157 fd = adb_open_mode(path, O_WRONLY | O_CREAT | O_EXCL, mode); in handle_send_file() 160 fd = adb_open_mode(path, O_WRONLY | O_CREAT | O_EXCL, mode); in handle_send_file() 163 fd = adb_open_mode(path, O_WRONLY, mode); in handle_send_file() 277 mode_t mode; local 284 mode = strtoul(tmp + 1, NULL, 0); [all …]
|
D | sysdeps.h | 104 static __inline__ int adb_mkdir(const char* path, int mode) in adb_mkdir() argument 112 extern int adb_creat(const char* path, int mode); 140 static __inline__ int adb_open_mode(const char* path, int options, int mode) in adb_open_mode() argument 153 int mode; in unix_open() local 156 mode = va_arg( args, int ); in unix_open() 158 return open(path, options, mode); in unix_open() 305 int mode; in unix_open() local 308 mode = va_arg( args, int ); in unix_open() 310 return open(path, options, mode); in unix_open() 314 static __inline__ int adb_open_mode( const char* pathname, int options, int mode ) in adb_open_mode() argument [all …]
|
D | file_sync_service.h | 57 unsigned mode; member 63 unsigned mode; member
|
/system/extras/tests/fstest/ |
D | perm_checker.c | 200 static void print_new_rule(const char *name, mode_t mode, uid_t uid, gid_t gid) in print_new_rule() argument 206 printf("%s %4o %4o %s %d %s %d\n", name, mode, mode, pw->pw_name, uid, in print_new_rule() 211 static int pass_rule(const perm_rule_t *pr, mode_t mode, uid_t uid, gid_t gid) in pass_rule() argument 213 if (((pr->min_mode & mode) == pr->min_mode) && in pass_rule() 214 ((pr->max_mode | mode) == pr->max_mode) && in pass_rule() 223 static int validate_file(const char *name, mode_t mode, uid_t uid, gid_t gid) in validate_file() argument 232 if (!pass_rule(pr, mode, uid, gid)) in validate_file() 245 print_new_rule(name, mode, uid, gid); in validate_file() 255 if (!pass_rule(pr, mode, uid, gid)) in validate_file() 266 if (!pass_rule(pr, mode, uid, gid)) in validate_file() [all …]
|
D | README | 37 <min_mode> is a numeric mode mask, and a mode will match it if and only if 38 (min_mode & mode) == min_mode. 40 <max_mode> is a numeric mode mask, and a mode will match it if and only if 41 (max_mode | mode) == max_mode.
|
/system/core/sh/ |
D | jobs.c | 288 set_curjob(struct job *jp, int mode) in set_curjob() argument 308 switch (mode) { in set_curjob() 382 showjob(struct output *out, struct job *jp, int mode) in showjob() argument 391 if (mode & SHOW_PGID) { in showjob() 402 if (mode & SHOW_PID) in showjob() 403 mode |= SHOW_MULTILINE; in showjob() 405 if ((procno > 1 && !(mode & SHOW_MULTILINE)) in showjob() 406 || (mode & SHOW_SIGNALLED)) { in showjob() 414 mode |= SHOW_MULTILINE; in showjob() 415 if (st1 == -1 || !(mode & SHOW_SIGNALLED) || WIFEXITED(st1)) in showjob() [all …]
|
D | eval.c | 685 int mode; in evalcommand() local 837 mode = cmd->ncmd.backgnd; in evalcommand() 839 mode = FORK_NOJOB; in evalcommand() 879 forkchild(jp, cmd, mode, vforked); in evalcommand() 893 forkparent(jp, cmd, mode, pid); in evalcommand() 899 if (forkshell(jp, cmd, mode) != 0) in evalcommand() 979 mode = (cmdentry.u.bltin == execcmd) ? 0 : REDIR_PUSH; in evalcommand() 984 mode |= REDIR_BACKQ; in evalcommand() 1003 redirect(cmd->ncmd.redirect, mode); in evalcommand() 1071 if (mode == FORK_FG) { /* argument to fork */ in evalcommand() [all …]
|
/system/core/init/ |
D | builtins.c | 229 mode_t mode = 0755; in do_mkdir() local 234 mode = strtoul(args[2], 0, 8); in do_mkdir() 237 if (mkdir(args[1], mode)) { in do_mkdir() 320 int mode, loop, fd; in do_mount() local 323 mode = (flags & MS_RDONLY) ? O_RDONLY : O_RDWR; in do_mount() 324 fd = open(source + 5, mode); in do_mount() 331 loop = open(tmp, mode); in do_mount() 533 mode_t mode = 0; in get_mode() local 536 mode = (mode<<3) | (*s-'0'); in get_mode() 542 return mode; in get_mode() [all …]
|
/system/extras/tests/cpueater/ |
D | daemonize.c | 33 int pid, fd, mode; in main() local 46 mode = O_TRUNC; in main() 64 mode = O_APPEND; in main() 72 if(open(file, O_WRONLY|mode|O_CREAT, 0666) < 0) { in main()
|
/system/core/include/private/ |
D | android_filesystem_config.h | 123 unsigned mode; member 204 unsigned *uid, unsigned *gid, unsigned *mode) in fs_config() argument 227 *mode = (*mode & (~07777)) | pc->mode; in fs_config() 231 path, pc->prefix ? pc->prefix : "", *uid, *gid, *mode); in fs_config()
|
/system/extras/ext4_utils/ |
D | make_ext4fs.c | 57 .mode = S_IRWXU, in build_default_directory_structure() 65 inode_set_permissions(inode, dentries.mode, in build_default_directory_structure() 115 dentries[i].mode = stat.st_mode & (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO); in build_directory_structure() 119 unsigned int mode = 0; in build_directory_structure() local 123 fs_config(dentries[i].path, dir, &uid, &gid, &mode); in build_directory_structure() 124 dentries[i].mode = mode; in build_directory_structure() 173 ret = inode_set_permissions(entry_inode, dentries[i].mode, in build_directory_structure()
|
D | contents.h | 27 u16 mode; member 38 int inode_set_permissions(u32 inode_num, u16 mode, u16 uid, u16 gid, u32 mtime);
|
/system/wlan/ti/sta_dk_4_0_4_32/common/src/TNETW_Driver/TNETWIF/ELP_Controller/ |
D | ElpCtrl.c | 72 elpCtrl_Mode_e mode; member 206 pElpCtrl->mode = ELPCTRL_MODE_KEEP_AWAKE; in elpCtrl_Configure() 408 if (pElpCtrl->state == ELPS_AWAKE && pElpCtrl->mode == ELPCTRL_MODE_NORMAL) in elpCtrl_Sleep() 484 int elpCtrl_Mode (TI_HANDLE hElpCtrl, elpCtrl_Mode_e mode) in elpCtrl_Mode() argument 488 pElpCtrl->mode = mode; in elpCtrl_Mode() 579 pElpCtrl->mode = ELPCTRL_MODE_KEEP_AWAKE; in elpCtrl_Stop()
|
/system/media/opensles/libopensles/ |
D | IMetadataTraversal.c | 22 static SLresult IMetadataTraversal_SetMode(SLMetadataTraversalItf self, SLuint32 mode) in IMetadataTraversal_SetMode() argument 26 switch (mode) { in IMetadataTraversal_SetMode() 32 this->mMode = mode; in IMetadataTraversal_SetMode()
|
/system/wlan/ti/wilink_6_1/wpa_supplicant_lib/ |
D | driver_ti.c | 375 static int wpa_driver_tista_config_power_management(void *priv, TPowerMgr_PowerMode *mode, u8 is_se… in wpa_driver_tista_config_power_management() argument 381 if((mode->PowerMode) < POWER_MODE_MAX) in wpa_driver_tista_config_power_management() 384 mode, sizeof(TPowerMgr_PowerMode), NULL, 0)) in wpa_driver_tista_config_power_management() 399 mode, sizeof(TPowerMgr_PowerMode))) in wpa_driver_tista_config_power_management() 410 static int wpa_driver_tista_enable_bt_coe(void *priv, u32 mode) in wpa_driver_tista_enable_bt_coe() argument 413 u32 mode_set = mode; in wpa_driver_tista_enable_bt_coe() 444 static int wpa_driver_tista_get_bt_coe_status(void *priv, u32 *mode) in wpa_driver_tista_get_bt_coe_status() argument 455 *mode = mode_get; in wpa_driver_tista_get_bt_coe_status() 456 wpa_printf(MSG_DEBUG, "wpa_driver_tista_get_bt_coe_status mode %d success", *mode); in wpa_driver_tista_get_bt_coe_status() 723 u32 mode; in wpa_driver_tista_driver_cmd() local [all …]
|
/system/core/sdcard/ |
D | sdcard.c | 155 attr->mode = s->st_mode; in attr_from_stat() 162 if (attr->mode & 0100) { in attr_from_stat() 163 attr->mode = (attr->mode & (~0777)) | 0775; in attr_from_stat() 165 attr->mode = (attr->mode & (~0777)) | 0664; in attr_from_stat() 463 req->mode = (req->mode & (~0777)) | 0664; in handle_fuse_request() 464 res = mknod(path, req->mode, req->rdev); /* XXX perm?*/ in handle_fuse_request() 478 TRACE("MKDIR %s @ %llx 0%o\n", name, hdr->nodeid, req->mode); in handle_fuse_request() 481 req->mode = (req->mode & (~0777)) | 0775; in handle_fuse_request() 482 res = mkdir(path, req->mode); in handle_fuse_request()
|
D | fuse.h | 96 __u32 mode; member 311 __u32 mode; member 318 __u32 mode; member 342 __u32 mode; member 356 __u32 mode; member
|
/system/wlan/ti/wilink_6_1/Test/ |
D | scrDbg.c | 244 void changeMode( TI_HANDLE hScr, EScrModeId mode ) in changeMode() argument 246 scr_setMode( hScr, mode ); in changeMode() 248 modeDesc[ mode ])); in changeMode()
|
/system/core/nexus/ |
D | Supplicant.h | 69 int setApScanMode(int mode); 72 int setBluetoothCoexistenceMode(int mode);
|
/system/wlan/ti/wilink_6_1/config/ |
D | tiwlan.ini | 5 dot11NetworkType = 3 #2 - A only mode, 3 - B/G mode, 4 - A/G Dual mode 30 AutoPowerModeDozeTh = 4 #packets per seconds - threshold for entering ELP in Auto mode (def… 179 WiFiWmmPS = 0 # Use 1 on WiFi test in order to configure PS to work in WMM mode 218 TXBiPFEMAutoDetect = 0 # Unit: Options (0: Manual Mode; 1: Automatic mode), Format: Unsign… 221 DC2DCMode = 0 # Unit: Options (0: btSPI is not used; 1: mux DC2DC mode to BT_FUNC…
|
/system/wlan/ti/sta_dk_4_0_4_32/config/ |
D | tiwlan.ini | 3 dot11NetworkType = 3 # 2 - A only mode, 3 - B/G mode, 4 - A/G Dual mode 97 AutoPowerModeDozeTh = 8 # packets per seconds - threshold for entering ELP in Auto mode 200 WiFiWmmPS = 0 # Use 1 on WiFi test in order to configure PS to work in WMM mode
|