Searched refs:mode (Results 1 - 25 of 70) sorted by relevance

123

/system/core/toolbox/
H A Dchmod.c20 int mode = 0; local
24 mode = (mode<<3) | (*s-'0');
27 fprintf(stderr, "Bad mode\n");
33 if (chmod(argv[i], mode) < 0) {
H A Dls.c27 static char mode2kind(unsigned mode) argument
29 switch(mode & S_IFMT){
41 static void mode2str(unsigned mode, char *out) argument
43 *out++ = mode2kind(mode);
45 *out++ = (mode & 0400) ? 'r' : '-';
46 *out++ = (mode & 0200) ? 'w' : '-';
47 if(mode & 04000) {
48 *out++ = (mode & 0100) ? 's' : 'S';
50 *out++ = (mode & 0100) ? 'x' : '-';
52 *out++ = (mode
140 char mode[16]; local
[all...]
H A Dsetconsole.c35 int mode = -1; local
51 if(mode == KD_TEXT) {
55 mode = KD_GRAPHICS;
58 if(mode == KD_GRAPHICS) {
62 mode = KD_TEXT;
83 " -g Switch to graphics mode\n"
84 " -t Switch to text mode\n"
97 if(mode == -1 && new_vc == 0 && close_vc == 0 && switch_vc == -1 && printvc == 0) {
157 if (mode != -1) {
158 if (ioctl(fd, KDSETMODE, (void*)mode) <
[all...]
/system/extras/ext4_utils/
H A Dcontents.h27 u16 mode; member in struct:dentry
38 int inode_set_permissions(u32 inode_num, u16 mode, u16 uid, u16 gid, u32 mtime);
H A Dmake_ext4fs.c57 .mode = S_IRWXU,
65 inode_set_permissions(inode, dentries.mode,
115 dentries[i].mode = stat.st_mode & (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO);
119 unsigned int mode = 0; local
123 fs_config(dentries[i].path, dir, &uid, &gid, &mode);
124 dentries[i].mode = mode;
173 ret = inode_set_permissions(entry_inode, dentries[i].mode,
/system/extras/tests/cpueater/
H A Ddaemonize.c33 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 Dfile_sync_service.c64 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);
277 mode_t mode; local
284 mode
[all...]
H A Dfile_sync_client.c75 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
707 unsigned int timestamp, mode, size; local
744 unsigned mode; local
809 sync_ls_build_list_cb(unsigned mode, unsigned size, unsigned time, const char *name, void *cookie) argument
944 unsigned mode; local
[all...]
H A Dsysdeps.h104 static __inline__ int adb_mkdir(const char* path, int mode) 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) argument
153 int mode; local
156 mode = va_arg( args, int );
158 return open(path, options, mode);
305 int mode; local
308 mode = va_arg( args, int );
310 return open(path, options, mode);
314 static __inline__ int adb_open_mode( const char* pathname, int options, int mode )
375 adb_creat(const char* path, int mode) argument
453 adb_mkdir(const char* path, int mode) argument
[all...]
H A Dfile_sync_service.h57 unsigned mode; member in struct:__anon17::__anon19
63 unsigned mode; member in struct:__anon17::__anon20
/system/extras/tests/fstest/
H A Dperm_checker.c200 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 Djobs.c288 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 Deval.c685 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 Dandroid_filesystem_config.h123 unsigned mode; member in struct:fs_path_config
204 unsigned *uid, unsigned *gid, unsigned *mode)
227 *mode = (*mode & (~07777)) | pc->mode;
231 path, pc->prefix ? pc->prefix : "", *uid, *gid, *mode);
203 fs_config(const char *path, int dir, unsigned *uid, unsigned *gid, unsigned *mode) argument
/system/media/opensles/libopensles/
H A DIMetadataTraversal.c22 static SLresult IMetadataTraversal_SetMode(SLMetadataTraversalItf self, SLuint32 mode) argument
26 switch (mode) {
32 this->mMode = mode;
/system/core/init/
H A Dutil.h34 int mkdir_recursive(const char *pathname, mode_t mode);
H A Dbuiltins.c229 mode_t mode = 0755; local
231 /* mkdir <path> [mode] [owner] [group] */
234 mode = strtoul(args[2], 0, 8);
237 if (mkdir(args[1], mode)) {
320 int mode, loop, fd; local
323 mode = (flags & MS_RDONLY) ? O_RDONLY : O_RDWR;
324 fd = open(source + 5, mode);
331 loop = open(tmp, mode);
533 mode_t mode = 0; local
536 mode
546 mode_t mode = get_mode(args[1]); local
[all...]
/system/wlan/ti/wilink_6_1/Test/
H A DscrDbg.h149 * \brief Change the SCR mode.\n
153 * \param mode - the mode to change to.\n
155 void changeMode( TI_HANDLE hScr, EScrModeId mode );
H A DscrDbg.c178 WLAN_OS_REPORT(("1707 - Change SCR mode\n"));
238 * \brief Change the SCR mode.\n
242 * \param mode - the mode to change to.\n
244 void changeMode( TI_HANDLE hScr, EScrModeId mode )
246 scr_setMode( hScr, mode );
247 WLAN_OS_REPORT(("SCR mode was changed to %s\n",
248 modeDesc[ mode ]));
264 WLAN_OS_REPORT( ("SCR current group:%s, mode: %s, serving channel owner:%s, periodic scan owner: %s "
/system/core/nexus/
H A DSupplicant.h69 int setApScanMode(int mode);
72 int setBluetoothCoexistenceMode(int mode);
/system/wlan/ti/sta_dk_4_0_4_32/common/src/TNETW_Driver/TNETWIF/ELP_Controller/
H A DElpCtrl.c72 elpCtrl_Mode_e mode; member in struct:_elpCtrl_t
206 pElpCtrl->mode = ELPCTRL_MODE_KEEP_AWAKE;
408 if (pElpCtrl->state == ELPS_AWAKE && pElpCtrl->mode == ELPCTRL_MODE_NORMAL)
484 int elpCtrl_Mode (TI_HANDLE hElpCtrl, elpCtrl_Mode_e mode) argument
488 pElpCtrl->mode = mode;
579 pElpCtrl->mode = ELPCTRL_MODE_KEEP_AWAKE;
/system/wlan/ti/wilink_6_1/wpa_supplicant_lib/
H A Ddriver_ti.c375 static int wpa_driver_tista_config_power_management(void *priv, TPowerMgr_PowerMode *mode, u8 is_set) argument
379 if(is_set) /* set power mode */
381 if((mode->PowerMode) < POWER_MODE_MAX)
384 mode, sizeof(TPowerMgr_PowerMode), NULL, 0))
386 wpa_printf(MSG_ERROR, "ERROR - Failed to set power mode");
396 else /* get power mode */
399 mode, sizeof(TPowerMgr_PowerMode)))
401 wpa_printf(MSG_ERROR, "ERROR - Failed to get power mode");
410 static int wpa_driver_tista_enable_bt_coe(void *priv, u32 mode) argument
413 u32 mode_set = mode;
444 wpa_driver_tista_get_bt_coe_status(void *priv, u32 *mode) argument
723 u32 mode; local
736 u32 mode; local
746 u32 mode; local
1244 wpa_driver_tista_set_mode(void *priv, int mode) argument
[all...]
/system/core/sdcard/
H A Dfuse.h96 __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 Dsdcard.c155 attr->mode = s->st_mode;
162 if (attr->mode & 0100) {
163 attr->mode = (attr->mode & (~0777)) | 0775;
165 attr->mode = (attr->mode & (~0777)) | 0664;
463 req->mode = (req->mode & (~0777)) | 0664;
464 res = mknod(path, req->mode, req->rdev); /* XXX perm?*/
478 TRACE("MKDIR %s @ %llx 0%o\n", name, hdr->nodeid, req->mode);
[all...]
/system/wlan/ti/sta_dk_4_0_4_32/common/src/BusAccess/Export_Inc/
H A DwhalBus_Api.h140 int whalBus_TNETWIF_ElpCtrl_SetMode(TI_HANDLE hWhalBus, elpCtrl_Mode_e mode);

Completed in 695 milliseconds

123