Searched defs:fd (Results 326 - 350 of 1450) sorted by relevance

<<11121314151617181920>>

/external/chromium_org/third_party/mesa/src/src/gbm/main/
H A Dbackend.c105 _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 DSkUtilsArm.cpp59 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 Ddaemon.cc26 void CloseFileDescriptor(int fd) { argument
28 close(fd);
/external/chromium_org/tools/relocation_packer/src/
H A Delf_file.h31 // 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 Dmain.cc149 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 Dsave.c64 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 Dcom_err.c34 int do_cr = 1, fd = fileno(stderr); local
47 if (!isatty(fd))
53 if ((tcgetattr(fd, &t)) == 0 &&
/external/e2fsprogs/lib/ss/
H A Dlist_rqs.c35 int fd; local
46 fd = ss_pager_create();
47 if (fd < 0) {
52 output = fdopen(fd, "w");
H A Dpager.c107 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 De2label.c52 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 Ddwfl_build_id_find_elf.c95 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 Dtunnel.c69 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 Dem_nbyte.c28 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 Dem_u32.c27 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 Dprof_accum.c11 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 Dpoll.h36 int fd; member in struct:pollfd
/external/libmtp/examples/
H A Dalbumart.c47 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 Dnf-monitor.c89 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 Dnl-monitor.c99 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 Dprocattr.c23 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 Dbp_signal.c62 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 Ddso-data.c17 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 Drecord.c12 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 Dvdso.c56 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 DKQueue.cpp31 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;

Completed in 274 milliseconds

<<11121314151617181920>>