/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/libcutils/ |
H A D | load_file.c | 29 fd = open(fn, O_RDONLY);
|
H A D | qtaguid.c | 38 * Once the device is open, this process will have its socket tags tracked. 40 * A process can only open /dev/xt_qtaguid once. 42 * Failure to open it will be visible when socket tagging will be attempted. 49 resTrackFd = TEMP_FAILURE_RETRY(open("/dev/xt_qtaguid", O_RDONLY)); 65 fd = TEMP_FAILURE_RETRY(open(CTRL_PROCPATH, O_WRONLY)); 87 param_fd = TEMP_FAILURE_RETRY(open(param_path, O_WRONLY));
|
H A D | klog.c | 39 klog_fd = open(name, O_WRONLY);
|
H A D | partition_utils.c | 44 if ((fd = open(source, O_RDONLY)) < 0) {
|
H A D | process_name.c | 80 int fd = open(PROCESS_NAME_DEVICE, O_RDWR);
|
/system/core/libdiskconfig/ |
H A D | diskutils.c | 44 if ((src_fd = open(src, O_RDONLY)) < 0) { 45 ALOGE("Could not open %s for reading (errno=%d).", src, errno); 50 if ((dst_fd = open(dst, O_RDWR)) < 0) { 51 ALOGE("Could not open '%s' for read/write (errno=%d).", dst, errno);
|
/system/core/libsparse/ |
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 | img2simg.c | 73 in = open(argv[1], O_RDONLY | O_BINARY); 75 fprintf(stderr, "Cannot open input file %s\n", argv[1]); 83 out = open(argv[2], O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0664); 85 fprintf(stderr, "Cannot open output file %s\n", argv[2]);
|
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/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);
|
H A D | logo.c | 56 fb->fd = open("/dev/graphics/fb0", O_RDWR); 95 fd = open("/dev/tty0", O_RDWR | O_SYNC); 116 fd = open(fn, O_RDONLY); 118 ERROR("cannot open '%s'\n", fn);
|
/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);
|
H A D | date.c | 37 fd = open("/dev/alarm", O_RDWR); 118 fd = open("/dev/alarm", O_RDWR);
|
H A D | setconsole.c | 104 fd = open(ttydev, O_RDWR | O_SYNC); 106 fprintf(stderr, "cannot open %s\n", ttydev); 147 fd = open(ttydev, O_RDWR | O_SYNC); 149 fprintf(stderr, "cannot open %s\n", ttydev);
|
/system/extras/tests/ext4/ |
H A D | rand_emmc_perf.c | 86 if ((fd = open(argv[optind + 1], O_RDWR | o_sync)) < 0) { 87 fprintf(stderr, "Cannot open block device %s\n", argv[optind + 1]); 91 fd2 = open("/dev/urandom", O_RDONLY); 93 fprintf(stderr, "Cannot open /dev/urandom\n");
|
/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/adb/ |
H A D | sysdeps.h | 151 return open(path, options); 160 return open(path, options, mode); 163 #define open ___xxx_unix_open macro 313 return open(path, options); 322 return open(path, options, mode); 328 return open( pathname, options, mode ); 334 int fd = open( pathname, options ); 340 #undef open macro 341 #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); 203 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/core/logwrapper/ |
H A D | logwrapper.c | 148 parent_ptty = open("/dev/ptmx", O_RDWR); 162 child_ptty = open(child_devname, O_RDWR);
|