/system/extras/tests/cpueater/ |
H A D | cpueater.c | 51 open("/dev/null", 0); 53 if(open("/dev/null", O_WRONLY) < 0) {
|
H A D | daemonize.c | 43 close(0); open("/dev/null", 0); 72 if(open(file, O_WRONLY|mode|O_CREAT, 0666) < 0) { 78 if(open("/dev/null", O_WRONLY) < 0) {
|
/system/core/toolbox/upstream-netbsd/bin/dd/ |
H A D | dd_hostops.c | 43 .op_open = open,
|
/system/core/libcutils/ |
H A D | load_file.c | 29 fd = open(fn, O_RDONLY);
|
H A D | qtaguid.c | 39 * Once the device is open, this process will have its socket tags tracked. 41 * A process can only open /dev/xt_qtaguid once. 43 * Failure to open it will be visible when socket tagging will be attempted. 50 resTrackFd = TEMP_FAILURE_RETRY(open("/dev/xt_qtaguid", O_RDONLY)); 66 fd = TEMP_FAILURE_RETRY(open(CTRL_PROCPATH, O_WRONLY)); 88 param_fd = TEMP_FAILURE_RETRY(open(param_path, O_WRONLY));
|
H A D | partition_utils.c | 45 if ((fd = open(source, O_RDONLY)) < 0) {
|
H A D | process_name.c | 87 int fd = open(PROCESS_NAME_DEVICE, O_RDWR);
|
/system/core/libdiskconfig/ |
H A D | diskutils.c | 45 if ((src_fd = open(src, O_RDONLY)) < 0) { 46 ALOGE("Could not open %s for reading (errno=%d).", src, errno); 51 if ((dst_fd = open(dst, O_RDWR)) < 0) { 52 ALOGE("Could not open '%s' for read/write (errno=%d).", dst, errno);
|
/system/core/libsparse/ |
H A D | img2simg.c | 72 in = open(argv[1], O_RDONLY | O_BINARY); 74 fprintf(stderr, "Cannot open input file %s\n", argv[1]); 82 out = open(argv[2], O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0664); 84 fprintf(stderr, "Cannot open output file %s\n", argv[2]);
|
H A D | simg2img.c | 51 out = open(argv[argc - 1], O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0664); 53 fprintf(stderr, "Cannot open output file %s\n", argv[argc - 1]); 61 in = open(argv[i], O_RDONLY | O_BINARY); 63 fprintf(stderr, "Cannot open input file %s\n", argv[i]);
|
H A D | append2simg.c | 79 output = open(output_path, O_RDWR | O_BINARY); 81 fprintf(stderr, "Couldn't open output file (%s)\n", strerror(errno)); 91 input = open(input_path, O_RDONLY | O_BINARY); 93 fprintf(stderr, "Couldn't open input file (%s)\n", strerror(errno)); 114 tmp_fd = open(tmp_path, O_WRONLY | O_CREAT | O_BINARY, 0664); 116 fprintf(stderr, "Couldn't open temporary file (%s)\n", strerror(errno));
|
H A D | simg2simg.c | 61 in = open(argv[1], O_RDONLY | O_BINARY); 63 fprintf(stderr, "Cannot open input file %s\n", argv[1]); 98 out = open(filename, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0664); 100 fprintf(stderr, "Cannot open output file %s\n", argv[2]);
|
/system/vold/ |
H A D | Loop.cpp | 50 if ((fd = open(filename, O_RDWR)) < 0) { 52 SLOGE("Unable to open %s (%s)", filename, strerror(errno)); 94 if ((fd = open(filename, O_RDWR)) < 0) { 96 SLOGE("Unable to open %s (%s)", filename, strerror(errno)); 151 if ((fd = open(filename, O_RDWR)) < 0) { 152 SLOGE("Unable to open %s (%s)", filename, strerror(errno)); 179 if ((file_fd = open(loopFile, O_RDWR)) < 0) { 180 SLOGE("Unable to open %s (%s)", loopFile, strerror(errno)); 214 device_fd = open(loopDevice, O_RDONLY); 216 SLOGE("Failed to open loo [all...] |
/system/core/fastbootd/commands/ |
H A D | flash.h | 44 return open(path, O_RDWR);
|
/system/core/init/ |
H A D | watchdogd.c | 50 fd = open(DEV_NAME, O_RDWR); 52 ERROR("watchdogd: Failed to open %s: %s\n", DEV_NAME, strerror(errno));
|
H A D | bootchart.c | 69 int fd = open(filename, O_RDONLY); 90 buff->fd = open(path, O_WRONLY|O_CREAT|O_TRUNC, 0755); 174 logfd = open(logfile,O_WRONLY|O_CREAT|O_TRUNC,0755); 190 fd = open("/proc/uptime",O_RDONLY); 222 fd = open(procfile,O_RDONLY); 266 fd = open(filename,O_RDONLY); 342 int fd = open( LOG_ACCT, O_WRONLY|O_CREAT|O_TRUNC,0644);
|
/system/core/toolbox/ |
H A D | smd.c | 21 fd = open(devname, O_WRONLY); 23 fprintf(stderr,"failed to open smd0 - %s\n",
|
H A D | cmp.c | 50 fd1 = open(argv[optind], O_RDONLY); 52 fprintf(stderr, "could not open %s, %s\n", argv[optind], strerror(errno)); 56 fd2 = open(argv[optind+1], O_RDONLY); 58 fprintf(stderr, "could not open %s, %s\n", argv[optind+1], strerror(errno));
|
H A D | alarm.c | 64 afd = open("/dev/alarm", O_RDWR); 66 fprintf(stderr, "Unable to open rtc: %s\n", strerror(errno)); 159 nfd = open("/sys/android_power/acquire_full_wake_lock", O_RDWR); 163 nfd = open("/sys/android_power/release_wake_lock", O_RDWR);
|
/system/core/libbacktrace/ |
H A D | GetPss.cpp | 51 int pagecount_fd = open("/proc/kpagecount", O_RDONLY); 54 int pagemap_fd = open("/proc/self/pagemap", O_RDONLY);
|
/system/core/adb/ |
H A D | sysdeps.h | 152 return open(path, options); 161 return open(path, options, mode); 164 #define open ___xxx_unix_open macro 331 return TEMP_FAILURE_RETRY( open(path, options) ); 340 return TEMP_FAILURE_RETRY( open( path, options, mode ) ); 346 return TEMP_FAILURE_RETRY( open( pathname, options, mode ) ); 352 int fd = TEMP_FAILURE_RETRY( open( pathname, options ) ); 358 #undef open macro 359 #define open ___xxx_open macro
|
/system/core/libsuspend/ |
H A D | autosuspend_earlysuspend.c | 52 int fd = open(EARLYSUSPEND_WAIT_FOR_FB_WAKE, O_RDONLY, 0); 67 int fd = open(EARLYSUSPEND_WAIT_FOR_FB_SLEEP, O_RDONLY, 0); 198 sPowerStatefd = open(EARLYSUSPEND_SYS_POWER_STATE, O_RDWR);
|
/system/extras/sound/ |
H A D | playwav.c | 46 afd = open("/dev/msm_pcm_out", O_RDWR); 48 perror("pcm_play: cannot open audio device"); 156 fd = open(fn, O_RDONLY); 158 fprintf(stderr, "playwav: cannot open '%s'\n", fn); 215 fd = open(fn, O_CREAT | O_RDWR, 0666); 217 perror("cannot open output file"); 222 afd = open("/dev/msm_pcm_in", O_RDWR); 224 perror("cannot open msm_pcm_in"); 301 fd = open(fn, O_RDONLY); 303 perror("cannot open mp [all...] |
/system/extras/kexec_tools/ |
H A D | kexecload.c | 118 atag_file = open(argv[0], O_RDONLY); 119 zimage_file = open(argv[1], O_RDONLY);
|
/system/extras/libpagemap/ |
H A D | pm_kernel.c | 39 ker->kpagecount_fd = open("/proc/kpagecount", O_RDONLY); 46 ker->kpageflags_fd = open("/proc/kpageflags", O_RDONLY);
|