/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/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 | contents.c | 231 int inode_set_permissions(u32 inode_num, u16 mode, u16 uid, u16 gid, u32 mtime) argument 238 inode->i_mode |= mode;
|
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,
|
/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/vold/ |
H A D | Loop.cpp | 140 mode_t mode = 0660 | S_IFBLK; local 142 if (mknod(filename, mode, dev) < 0) {
|
H A D | Volume.cpp | 196 mode_t mode = 0660 | S_IFBLK; local 198 if (mknod(path, mode, dev) < 0) { 517 if (mount("tmpfs", SEC_STG_SECIMGDIR, "tmpfs", MS_RDONLY, "size=0,mode=000,uid=0,gid=0")) { 671 if (mount("tmpfs", SEC_STG_SECIMGDIR, "tmpfs", MS_RDONLY, "size=0,mode=0,uid=0,gid=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_service.h | 57 unsigned mode; member in struct:__anon274::__anon276 63 unsigned mode; member in struct:__anon274::__anon277
|
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...] |
/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/core/init/ |
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);
|
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 | devices.c | 181 mode_t mode; local 184 mode = get_device_perm(path, &uid, &gid) | (block ? S_IFBLK : S_IFCHR); 192 mknod(path, mode, dev);
|
/system/media/wilhelm/src/android/util/ |
H A D | AacAdtsExtractor.cpp | 263 ReadOptions::SeekMode mode; local 264 if (options && options->getSeekTo(&seekTimeUs, &mode)) {
|
/system/core/nexus/ |
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);
|
H A D | WifiController.cpp | 314 // Switch to scan only mode 419 int WifiController::setBluetoothCoexistenceMode(int mode) { argument 421 int rc = mSupplicant->setBluetoothCoexistenceMode(mode); 423 mBluetoothCoexMode = mode; 513 // Switch handling of scan results back to normal mode
|
/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/bluetooth/bluez-clean-headers/bluetooth/ |
H A D | l2cap.h | 41 uint8_t mode; member in struct:l2cap_options
|
/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
|
/system/core/libpixelflinger/ |
H A D | pixelflinger.cpp | 197 static void ggl_shadeModel(void* con, GGLenum mode) argument 200 switch (mode) {
|