/system/extras/tests/cpueater/ |
D | daemonize.c | 43 close(0); open("/dev/null", 0); in main() 72 if(open(file, O_WRONLY|mode|O_CREAT, 0666) < 0) { in main() 78 if(open("/dev/null", O_WRONLY) < 0) { in main()
|
D | cpueater.c | 51 open("/dev/null", 0); in main() 53 if(open("/dev/null", O_WRONLY) < 0) { in main()
|
/system/vold/ |
D | Loop.cpp | 50 if ((fd = open(filename, O_RDWR)) < 0) { in dumpState() 94 if ((fd = open(filename, O_RDWR)) < 0) { in lookupActive() 151 if ((fd = open(filename, O_RDWR)) < 0) { in create() 179 if ((file_fd = open(loopFile, O_RDWR)) < 0) { in create() 214 device_fd = open(loopDevice, O_RDONLY); in destroyByDevice() 256 if ((fd = open(loopDevice, O_RDONLY)) < 0) { in lookupInfo()
|
D | Devmapper.cpp | 58 if ((fd = open("/dev/device-mapper", O_RDWR)) < 0) { in dumpState() 141 if ((fd = open("/dev/device-mapper", O_RDWR)) < 0) { in lookupActive() 175 if ((fd = open("/dev/device-mapper", O_RDWR)) < 0) { in create() 272 if ((fd = open("/dev/device-mapper", O_RDWR)) < 0) { in destroy()
|
/system/core/init/ |
D | bootchart.c | 69 int fd = open(filename, O_RDONLY); in proc_read() 90 buff->fd = open(path, O_WRONLY|O_CREAT|O_TRUNC, 0755); in file_buff_open() 174 logfd = open(logfile,O_WRONLY|O_CREAT|O_TRUNC,0755); in open_log_file() 190 fd = open("/proc/uptime",O_RDONLY); in do_log_uptime() 222 fd = open(procfile,O_RDONLY); in do_log_file() 266 fd = open(filename,O_RDONLY); in do_log_procs() 342 int fd = open( LOG_ACCT, O_WRONLY|O_CREAT|O_TRUNC,0644); in bootchart_init()
|
D | logo.c | 56 fb->fd = open("/dev/graphics/fb0", O_RDWR); in fb_open() 95 fd = open("/dev/tty0", O_RDWR | O_SYNC); in vt_set_mode() 116 fd = open(fn, O_RDONLY); in load_565rle_image()
|
D | builtins.c | 60 fd = open(path, O_WRONLY|O_CREAT|O_NOFOLLOW, 0600); in write_file() 83 fd = open(path, O_RDONLY | O_NOFOLLOW); in _open() 85 fd = open(path, O_WRONLY | O_NOFOLLOW); in _open() 157 fd = open("/dev/tty0", O_RDWR | O_SYNC); in setkey() 412 fd = open(source + 5, mode); in do_mount() 419 loop = open(tmp, mode); in do_mount() 716 if ((fd1 = open(args[1], O_RDONLY)) < 0) in do_copy() 719 if ((fd2 = open(args[2], O_WRONLY|O_CREAT|O_TRUNC, 0660)) < 0) in do_copy()
|
D | util.c | 150 fd = open(fn, O_RDONLY); in read_file() 202 fd = open("/proc/mtd", O_RDONLY); in find_mtd_partitions() 383 fd = open(name, O_RDWR); in open_devnull_stdio() 409 fd = open("/proc/cpuinfo", O_RDONLY); in get_hardware_name() 450 fd = open("/proc/cmdline", O_RDONLY); in import_kernel_cmdline()
|
/system/core/adb/ |
D | sysdeps.h | 151 return open(path, options); in unix_open() 160 return open(path, options, mode); in unix_open() 163 #define open ___xxx_unix_open macro 328 return TEMP_FAILURE_RETRY( open(path, options) ); in unix_open() 337 return TEMP_FAILURE_RETRY( open( path, options, mode ) ); in unix_open() 343 return TEMP_FAILURE_RETRY( open( pathname, options, mode ) ); in adb_open_mode() 349 int fd = TEMP_FAILURE_RETRY( open( pathname, options ) ); in adb_open() 355 #undef open 356 #define open ___xxx_open macro
|
D | transport_local.c | 197 #undef open 199 #define open adb_open macro 202 #undef open 204 #define open ___xxx_open macro
|
/system/core/libsparse/ |
D | simg2img.c | 51 out = open(argv[argc - 1], O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0664); in main() 61 in = open(argv[i], O_RDONLY | O_BINARY); in main()
|
D | img2simg.c | 73 in = open(argv[1], O_RDONLY | O_BINARY); in main() 83 out = open(argv[2], O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0664); in main()
|
D | simg2simg.c | 61 in = open(argv[1], O_RDONLY | O_BINARY); in main() 98 out = open(filename, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0664); in main()
|
/system/extras/sound/ |
D | playwav.c | 46 afd = open("/dev/msm_pcm_out", O_RDWR); in pcm_play() 156 fd = open(fn, O_RDONLY); in wav_play() 215 fd = open(fn, O_CREAT | O_RDWR, 0666); in wav_rec() 222 afd = open("/dev/msm_pcm_in", O_RDWR); in wav_rec() 301 fd = open(fn, O_RDONLY); in mp3_play() 307 afd = open("/dev/msm_mp3", O_RDWR); in mp3_play()
|
/system/core/libdiskconfig/ |
D | diskutils.c | 44 if ((src_fd = open(src, O_RDONLY)) < 0) { in write_raw_image() 50 if ((dst_fd = open(dst, O_RDWR)) < 0) { in write_raw_image()
|
/system/core/libcutils/ |
D | qtaguid.c | 49 resTrackFd = TEMP_FAILURE_RETRY(open("/dev/xt_qtaguid", O_RDONLY)); in qtaguid_resTrack() 65 fd = TEMP_FAILURE_RETRY(open(CTRL_PROCPATH, O_WRONLY)); in write_ctrl() 87 param_fd = TEMP_FAILURE_RETRY(open(param_path, O_WRONLY)); in write_param()
|
D | sched_policy.c | 128 system_cgroup_fd = open(filename, O_WRONLY | O_CLOEXEC); in __initialize() 135 fg_cgroup_fd = open(filename, O_WRONLY | O_CLOEXEC); in __initialize() 141 bg_cgroup_fd = open(filename, O_WRONLY | O_CLOEXEC); in __initialize() 280 fd = open(statfile, O_RDONLY); in set_sched_policy()
|
/system/core/libsuspend/ |
D | autosuspend_earlysuspend.c | 52 int fd = open(EARLYSUSPEND_WAIT_FOR_FB_WAKE, O_RDONLY, 0); in wait_for_fb_wake() 67 int fd = open(EARLYSUSPEND_WAIT_FOR_FB_SLEEP, O_RDONLY, 0); in wait_for_fb_sleep() 203 sPowerStatefd = open(EARLYSUSPEND_SYS_POWER_STATE, O_RDWR); in autosuspend_earlysuspend_init()
|
/system/core/toolbox/ |
D | cmp.c | 50 fd1 = open(argv[optind], O_RDONLY); in cmp_main() 56 fd2 = open(argv[optind+1], O_RDONLY); in cmp_main()
|
D | alarm.c | 64 afd = open("/dev/alarm", O_RDWR); in alarm_main() 159 nfd = open("/sys/android_power/acquire_full_wake_lock", O_RDWR); in alarm_main() 163 nfd = open("/sys/android_power/release_wake_lock", O_RDWR); in alarm_main()
|
D | setconsole.c | 104 fd = open(ttydev, O_RDWR | O_SYNC); in setconsole_main() 147 fd = open(ttydev, O_RDWR | O_SYNC); in setconsole_main()
|
D | date.c | 37 fd = open("/dev/alarm", O_RDWR); in settime() 118 fd = open("/dev/alarm", O_RDWR); in date_main()
|
/system/core/sh/ |
D | redir.c | 196 if ((f = open(fname, O_RDONLY|eflags)) < 0) in openredirect() 203 if ((f = open(fname, O_RDWR|O_CREAT|O_TRUNC, 0666)) < 0) in openredirect() 212 if ((f = open(fname, oflags, 0666)) < 0) in openredirect() 217 if ((f = open(fname, O_WRONLY|O_CREAT|O_APPEND, 0666)) < 0) in openredirect()
|
/system/extras/kexec_tools/ |
D | kexecload.c | 118 atag_file = open(argv[0], O_RDONLY); in main() 119 zimage_file = open(argv[1], O_RDONLY); in main()
|
/system/extras/libpagemap/ |
D | pm_kernel.c | 39 ker->kpagecount_fd = open("/proc/kpagecount", O_RDONLY); in pm_kernel_create() 46 ker->kpageflags_fd = open("/proc/kpageflags", O_RDONLY); in pm_kernel_create()
|