/external/chromium_org/third_party/mesa/src/src/gbm/main/ |
H A D | backend.c | 105 _gbm_create_device(int fd) argument 117 dev = backend->create_device(fd); 124 dev = backend->create_device(fd);
|
/external/chromium_org/third_party/skia/src/core/ |
H A D | SkUtilsArm.cpp | 59 int fd = TEMP_FAILURE_RETRY(open("/proc/cpuinfo", O_RDONLY)); local 60 if (fd < 0) { 69 int size = TEMP_FAILURE_RETRY(read(fd, buffer+1, sizeof(buffer)-2)); 70 close(fd);
|
/external/chromium_org/tools/android/common/ |
H A D | daemon.cc | 26 void CloseFileDescriptor(int fd) { argument 28 close(fd);
|
/external/chromium_org/tools/relocation_packer/src/ |
H A D | elf_file.h | 31 // int fd = open(..., O_RDWR); 32 // ElfFile elf_file(fd); 38 // close(fd); 72 explicit ElfFile(int fd) argument 73 : fd_(fd), is_padding_relocations_(false), elf_(NULL), 97 // |fd| is an open file descriptor for the shared object.
|
H A D | main.cc | 149 const int fd = open(file, O_RDWR); local 150 if (fd == -1) { 158 relocation_packer::ElfFile elf_file(fd); 167 close(fd);
|
/external/e2fsprogs/lib/blkid/ |
H A D | save.c | 64 int fd, ret = 0; local 97 fd = mkstemp(tmp); 98 if (fd >= 0) { 99 file = fdopen(fd, "w"); 102 fchmod(fd, 0644);
|
/external/e2fsprogs/lib/et/ |
H A D | com_err.c | 34 int do_cr = 1, fd = fileno(stderr); local 47 if (!isatty(fd)) 53 if ((tcgetattr(fd, &t)) == 0 &&
|
/external/e2fsprogs/lib/ss/ |
H A D | list_rqs.c | 35 int fd; local 46 fd = ss_pager_create(); 47 if (fd < 0) { 52 output = fdopen(fd, "w");
|
H A D | pager.c | 107 int fd; local 108 fd = open("/dev/tty", O_WRONLY, 0); 109 return fd; 113 static int write_all(int fd, char *buf, size_t count) argument 119 ret = write(fd, buf, count);
|
/external/e2fsprogs/misc/ |
H A D | e2label.c | 52 int fd; local 54 fd = open(dev, mode); 55 if (fd < 0) { 60 if (lseek(fd, 1024, SEEK_SET) != 1024) { 65 if (read(fd, (char *) &sb, sizeof(sb)) != sizeof(sb)) { 75 return fd; 90 int fd; local 92 fd = open_e2fs(dev, O_RDWR); 97 if (lseek(fd, 1024, SEEK_SET) != 1024) { 102 if (write(fd, (cha [all...] |
/external/elfutils/0.153/libdwfl/ |
H A D | dwfl_build_id_find_elf.c | 95 int fd = -1; local 97 while (fd < 0 && (dir = strsep (&path, ":")) != NULL) 112 fd = TEMP_FAILURE_RETRY (open64 (name, O_RDONLY)); 113 if (fd >= 0) 135 if (fd < 0 && errno == ENOENT) 138 return fd; 149 int fd = __libdwfl_open_by_build_id (mod, false, file_name); local 150 if (fd >= 0) 152 Dwfl_Error error = __libdw_open_file (&fd, elfp, true, false); 159 return fd; [all...] |
/external/iproute2/ip/ |
H A D | tunnel.c | 69 int fd; local 74 fd = socket(preferred_family, SOCK_DGRAM, 0); 75 err = ioctl(fd, SIOCGETTUNNEL, &ifr); 80 close(fd); 87 int fd; local 95 fd = socket(preferred_family, SOCK_DGRAM, 0); 96 err = ioctl(fd, cmd, &ifr); 100 close(fd); 107 int fd; local 116 fd 129 int fd; local [all...] |
/external/iproute2/tc/ |
H A D | em_nbyte.c | 28 static void nbyte_print_usage(FILE *fd) argument 30 fprintf(fd, 107 static int nbyte_print_eopt(FILE *fd, struct tcf_ematch_hdr *hdr, void *data, argument 127 fprintf(fd, "%02x ", needle[i]); 129 fprintf(fd, "\""); 131 fprintf(fd, "%c", isprint(needle[i]) ? needle[i] : '.'); 132 fprintf(fd, "\" at %d layer %d", nb->off, nb->layer);
|
H A D | em_u32.c | 27 static void u32_print_usage(FILE *fd) argument 29 fprintf(fd, 152 static int u32_print_eopt(FILE *fd, struct tcf_ematch_hdr *hdr, void *data, argument 162 fprintf(fd, "%08x/%08x at %s%d",
|
/external/jemalloc/test/unit/ |
H A D | prof_accum.c | 11 int fd; local 13 fd = open("/dev/null", O_WRONLY); 14 assert_d_ne(fd, -1, "Unexpected open() failure"); 16 return (fd);
|
/external/kernel-headers/original/uapi/asm-generic/ |
H A D | poll.h | 36 int fd; member in struct:pollfd
|
/external/libmtp/examples/ |
H A D | albumart.c | 47 int fd; local 108 if ( (fd = open(path, O_RDONLY|O_BINARY) == -1) ) { 110 if ( (fd = open(path, O_RDONLY)) == -1) { 116 read(fd, imagedata, filesize); 117 close(fd);
|
/external/libnl/src/ |
H A D | nf-monitor.c | 89 int fd, retval; local 91 fd = nl_socket_get_fd(sock); 94 FD_SET(fd, &rfds); 96 retval = select(fd+1, &rfds, NULL, NULL, NULL); 99 /* FD_ISSET(fd, &rfds) will be true */
|
H A D | nl-monitor.c | 99 int fd, retval; local 101 fd = nl_socket_get_fd(sock); 104 FD_SET(fd, &rfds); 106 retval = select(fd+1, &rfds, NULL, NULL, NULL); 109 /* FD_ISSET(fd, &rfds) will be true */
|
/external/libselinux/src/ |
H A D | procattr.c | 23 int fd, rc; local 37 fd = open(path, O_RDONLY); 39 if (fd < 0) 51 ret = read(fd, buf, size - 1); 71 close(fd); 80 int fd, rc; local 94 fd = open(path, O_RDWR); 96 if (fd < 0) 100 ret = write(fd, context, strlen(context) + 1); 104 ret = write(fd, NUL [all...] |
/external/linux-tools-perf/perf-3.12.0/tools/perf/tests/ |
H A D | bp_signal.c | 62 int fd; local 81 fd = sys_perf_event_open(&pe, 0, -1, -1, 0); 82 if (fd < 0) { 88 fcntl(fd, F_SETFL, O_RDWR|O_NONBLOCK|O_ASYNC); 89 fcntl(fd, F_SETSIG, SIGIO); 90 fcntl(fd, F_SETOWN, getpid()); 93 ioctl(fd, PERF_EVENT_IOC_RESET, 0); 95 return fd; 98 static long long bp_count(int fd) argument 103 ret = read(fd, [all...] |
H A D | dso-data.c | 17 int fd, i; local 20 fd = mkstemp(templ); 21 if (fd < 0) { 28 close(fd); 35 if (size != write(fd, buf, size)) 38 close(fd);
|
/external/linux-tools-perf/perf-3.12.0/tools/perf/util/ |
H A D | record.c | 12 int err = -EAGAIN, fd; local 23 fd = sys_perf_event_open(&evsel->attr, -1, cpu, -1, 0); 24 if (fd < 0) 26 close(fd); 30 fd = sys_perf_event_open(&evsel->attr, -1, cpu, -1, 0); 31 if (fd < 0) { 36 close(fd);
|
H A D | vdso.c | 56 int fd; local 70 fd = mkstemp(vdso_file); 71 if (fd < 0) 74 if (size == (size_t) write(fd, buf, size)) 77 close(fd);
|
/external/lldb/source/Utility/ |
H A D | KQueue.cpp | 31 const int fd = m_fd; local 32 if (fd >= 0) 35 return close(fd); 57 error.SetErrorString("invalid kqueue fd"); 63 KQueue::AddFDEvent (int fd, bool read, bool write, bool vnode) argument 69 event.ident = fd;
|