Lines Matching refs:open
2 * Copyright (C) 2008 The Android Open Source Project
59 printf("Failed to open /proc (%s)\n", strerror(errno));
76 if ((fd = open(cmdpath, O_RDONLY)) < 0) {
106 printf("Failed to open %s (%s)\n", taskpath, strerror(errno));
127 if ((fd = open(commpath, O_RDONLY)) < 0) {
158 if ((fd = open(path, O_RDONLY)) < 0) {
159 printf("Failed to open '%s' (%s)\n", path, strerror(errno));
215 int fd = open(path, O_RDONLY);
389 int fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
482 int fd = open(traces_path, O_CREAT | O_WRONLY | O_TRUNC | O_NOFOLLOW, 0666); /* -rw-rw-rw- */
532 int fd = open(path, O_RDONLY);