Home
last modified time | relevance | path

Searched refs:open (Results 1 – 25 of 156) sorted by relevance

1234567

/system/extras/tests/cpueater/
Ddaemonize.c43 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()
Dcpueater.c51 open("/dev/null", 0); in main()
53 if(open("/dev/null", O_WRONLY) < 0) { in main()
/system/vold/
DLoop.cpp50 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()
255 if ((fd = open(file, O_RDWR)) < 0) { in resizeImageFile()
284 if ((fd = open(loopDevice, O_RDONLY)) < 0) { in lookupInfo()
DDevmapper.cpp58 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/
Dbootchart.c69 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()
Dbuiltins.c59 fd = open(path, O_WRONLY|O_CREAT|O_NOFOLLOW, 0600); in write_file()
82 fd = open(path, O_RDONLY | O_NOFOLLOW); in _open()
84 fd = open(path, O_WRONLY | O_NOFOLLOW); in _open()
156 fd = open("/dev/tty0", O_RDWR | O_SYNC); in setkey()
427 fd = open(source + 5, mode); in do_mount()
434 loop = open(tmp, mode); in do_mount()
479 int fd = open("/cache/recovery/command", O_RDWR|O_CREAT|O_TRUNC, 0600); in wipe_data_via_recovery()
766 if ((fd1 = open(args[1], O_RDONLY)) < 0) in do_copy()
769 if ((fd2 = open(args[2], O_WRONLY|O_CREAT|O_TRUNC, 0660)) < 0) in do_copy()
Dutil.c158 fd = open(fn, O_RDONLY); in read_file()
210 fd = open("/proc/mtd", O_RDONLY); in find_mtd_partitions()
391 fd = open(name, O_RDWR); in open_devnull_stdio()
419 fd = open(cpuinfo, O_RDONLY); in get_hardware_name()
482 fd = open("/proc/cmdline", O_RDONLY); in import_kernel_cmdline()
/system/core/adb/
Dsysdeps.h152 return open(path, options); in unix_open()
161 return open(path, options, mode); in unix_open()
164 #define open ___xxx_unix_open macro
331 return TEMP_FAILURE_RETRY( open(path, options) ); in unix_open()
340 return TEMP_FAILURE_RETRY( open( path, options, mode ) ); in unix_open()
346 return TEMP_FAILURE_RETRY( open( pathname, options, mode ) ); in adb_open_mode()
352 int fd = TEMP_FAILURE_RETRY( open( pathname, options ) ); in adb_open()
358 #undef open
359 #define open ___xxx_open macro
/system/core/libsparse/
Dappend2simg.c79 output = open(output_path, O_RDWR | O_BINARY); in main()
91 input = open(input_path, O_RDONLY | O_BINARY); in main()
114 tmp_fd = open(tmp_path, O_WRONLY | O_CREAT | O_BINARY, 0664); in main()
Dsimg2img.c51 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()
Dimg2simg.c72 in = open(argv[1], O_RDONLY | O_BINARY); in main()
82 out = open(argv[2], O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0664); in main()
Dsimg2simg.c61 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/
Dplaywav.c46 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/libcutils/
Dqtaguid.c50 resTrackFd = TEMP_FAILURE_RETRY(open("/dev/xt_qtaguid", O_RDONLY)); in qtaguid_resTrack()
66 fd = TEMP_FAILURE_RETRY(open(CTRL_PROCPATH, O_WRONLY)); in write_ctrl()
88 param_fd = TEMP_FAILURE_RETRY(open(param_path, O_WRONLY)); in write_param()
Dsched_policy.c128 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/libdiskconfig/
Ddiskutils.c45 if ((src_fd = open(src, O_RDONLY)) < 0) { in write_raw_image()
51 if ((dst_fd = open(dst, O_RDWR)) < 0) { in write_raw_image()
/system/core/libsuspend/
Dautosuspend_earlysuspend.c52 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()
198 sPowerStatefd = open(EARLYSUSPEND_SYS_POWER_STATE, O_RDWR); in autosuspend_earlysuspend_init()
/system/core/libbacktrace/
DGetPss.cpp51 int pagecount_fd = open("/proc/kpagecount", O_RDONLY); in GetPssBytes()
54 int pagemap_fd = open("/proc/self/pagemap", O_RDONLY); in GetPssBytes()
/system/core/toolbox/
Dcmp.c50 fd1 = open(argv[optind], O_RDONLY); in cmp_main()
56 fd2 = open(argv[optind+1], O_RDONLY); in cmp_main()
Dalarm.c64 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()
Dps.c64 fd = open(cmdline, O_RDONLY); in ps_line()
75 fd = open(statline, O_RDONLY); in ps_line()
152 fd = open(macline, O_RDONLY); in ps_line()
195 fd = open(exeline, O_RDONLY); in print_exe_abi()
/system/core/toolbox/upstream-netbsd/bin/dd/
Ddd_hostops.c43 .op_open = open,
/system/extras/kexec_tools/
Dkexecload.c118 atag_file = open(argv[0], O_RDONLY); in main()
119 zimage_file = open(argv[1], O_RDONLY); in main()
/system/extras/tests/fstest/
Drecovery_test.cpp56 int write_fd = open(test_file_, O_CREAT | O_WRONLY, 0666); in verify_write()
64 int read_fd = open(test_file_, O_RDONLY); in verify_read()
241 blk_fd_ = open(blk_path_, O_RDWR); in getCacheBlkFd()
/system/extras/libpagemap/
Dpm_kernel.c39 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()

1234567