Searched defs:fd (Results 201 - 225 of 1450) sorted by relevance

1234567891011>>

/external/qemu/android/config/
H A Dcheck-esd.c43 int fd; local
H A Dcheck-pulseaudio.c44 int fd; local
/external/qemu/android/
H A Dcore-init-utils.c39 int fd; local
50 fd = socket_loopback_client(ui_port, SOCKET_STREAM);
51 if (fd == -1) {
56 socket_send(fd, msg, strlen(msg) + 1);
57 socket_close(fd);
/external/qemu/distrib/libselinux/src/
H A Dcanonicalize_context.c18 int fd, ret; local
26 fd = open(path, O_RDWR);
27 if (fd < 0)
38 ret = write(fd, buf, strlen(buf) + 1);
43 ret = read(fd, buf, size - 1);
59 close(fd);
H A Dcompute_create.c21 int fd, ret; local
29 fd = open(path, O_RDWR);
30 if (fd < 0)
41 ret = write(fd, buf, strlen(buf));
46 ret = read(fd, buf, size - 1);
59 close(fd);
H A Denabled.c75 int fd, ret, enabled = 0; local
81 fd = open(path, O_RDONLY);
82 if (fd < 0)
88 ret = read(fd, buf, sizeof buf - 1);
90 close(fd);
H A Dget_initial_context.c19 int fd, ret; local
28 fd = open(path, O_RDONLY);
29 if (fd < 0)
39 ret = read(fd, buf, size - 1);
52 close(fd);
H A Dgetpeercon.c14 int getpeercon(int fd, char ** context) argument
26 ret = getsockopt(fd, SOL_SOCKET, SO_PEERSEC, buf, &size);
36 ret = getsockopt(fd, SOL_SOCKET, SO_PEERSEC, buf, &size);
/external/strace/test/
H A Dubi.c13 int fd = open("/dev/null", 0); local
37 ioctl(fd, UBI_IOCMKVOL, &mkvol);
38 ioctl(fd, UBI_IOCRSVOL, &rsvol);
39 ioctl(fd, UBI_IOCRNVOL, &rnvol);
40 ioctl(fd, UBI_IOCATT, &attach);
41 ioctl(fd, UBI_IOCVOLUP, &bytes);
42 ioctl(fd, UBI_IOCEBMAP, &map);
43 ioctl(fd, UBI_IOCSETVOLPROP, &prop);
45 ioctl(fd, UBI_IOCSETVOLPROP, &prop);
46 ioctl(fd, UBI_IOCRMVO
[all...]
/external/valgrind/main/drd/tests/
H A Dconcurrent_close.cpp17 int fd; local
20 fd = open("/dev/null", O_RDONLY);
21 if (fd >= 0)
22 close(fd);
/external/valgrind/main/memcheck/tests/linux/
H A Dproc-auxv.c39 int fd = open("/proc/self/auxv", O_RDONLY); local
40 if (fd == -1)
43 while (read(fd, &auxv, sizeof(auxv)) == sizeof(auxv))
50 close(fd);
/external/valgrind/main/memcheck/tests/
H A Dpointer-trace.c21 int fd; local
64 fd = open("./pointer-trace-test-file", O_RDWR | O_CREAT | O_EXCL, 0600);
66 map = mmap(0, stepsize * 2, PROT_WRITE|PROT_READ, MAP_PRIVATE, fd, 0);
H A Dsendmsg.c13 int fd; local
18 fd = socket (AF_INET, SOCK_DGRAM, 0);
19 if (fd == -1)
28 if (connect (fd, (struct sockaddr *) &sa, sizeof (sa)) == -1)
45 size_t s = sendmsg (fd, &msg, 0);
51 fd = socket (AF_INET, SOCK_DGRAM, 0);
52 if (fd == -1)
58 if (connect (fd, (struct sockaddr *) &sa, sizeof (sa)) == -1)
64 s = sendmsg (fd, &msg, 0);
/external/valgrind/main/none/tests/
H A Dmmap_fcntl_bug.c21 int fd, status; local
27 fd = open(file, O_RDWR);
28 if (fd < 0)
31 // reproduce bug 297991: mmap interferes with fd position
32 initial = lseek(fd, 123, SEEK_SET);
35 if (lseek(fd, 0, SEEK_CUR) != 123)
44 if (fcntl(fd, F_SETLK, &fl) != 0)
48 if (mmap(NULL, getpagesize(), PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0) == MAP_FAILED)
50 if (lseek(fd, 0, SEEK_CUR) != 123)
56 if (fcntl(fd, F_SETL
[all...]
H A Drlimit64_nofile.c16 int fd; local
95 if ((fd = open("/dev/null", O_RDONLY)) >= 0)
97 fprintf(stderr, "open succeeded with fd %d - it should have failed!\n", fd);
/external/bison/lib/
H A Ddup2.c44 ms_windows_dup2 (int fd, int desired_fd) argument
48 /* If fd is closed, mingw hangs on dup2 (fd, fd). If fd is open,
49 dup2 (fd, fd) returns 0, but all further attempts to use fd in
51 if (fd == desired_fd)
53 if ((HANDLE) _get_osfhandle (fd)
91 rpl_dup2(int fd, int desired_fd) argument
121 dupfd(int fd, int desired_fd) argument
138 dup2(int fd, int desired_fd) argument
[all...]
H A Dopen.c56 int fd; local
118 fd = orig_open (filename, flags, mode);
127 if (REPLACE_OPEN_DIRECTORY && fd < 0 && errno == EACCES
135 fd = open ("/dev/null", flags, mode);
136 if (0 <= fd)
137 fd = _gl_register_fd (fd, filename);
145 /* If the filename ends in a slash and fd does not refer to a directory,
157 if (fd >= 0)
165 if (fstat (fd,
[all...]
H A Dspawn_int.h33 int fd; member in struct:__spawn_action::__anon357::__anon358
37 int fd; member in struct:__spawn_action::__anon357::__anon359
42 int fd; member in struct:__spawn_action::__anon357::__anon360
/external/bluetooth/bluedroid/osi/include/
H A Dreactor.h53 int fd; // the file descriptor to monitor for events. member in struct:reactor_object_t
/external/bluetooth/bluedroid/osi/src/
H A Dsemaphore.c35 int fd; member in struct:semaphore_t
41 ret->fd = eventfd(value, EFD_SEMAPHORE);
42 if (ret->fd == -1) {
52 if (semaphore->fd != -1)
53 close(semaphore->fd);
59 assert(semaphore->fd != -1);
62 if (eventfd_read(semaphore->fd, &value) == -1)
68 assert(semaphore->fd != -1);
70 int flags = fcntl(semaphore->fd, F_GETFL);
72 ALOGE("%s unable to get flags for semaphore fd
[all...]
/external/chromium_org/android_webview/native/
H A Daw_assets.cc18 int* fd,
29 *fd = static_cast<int>(results[0]);
32 return *fd != -1;
17 OpenAsset(const std::string& filename, int* fd, int64* offset, int64* size) argument
/external/chromium_org/base/
H A Dfile_descriptor_posix.h21 FileDescriptor() : fd(-1), auto_close(false) {}
23 FileDescriptor(int ifd, bool iauto_close) : fd(ifd), auto_close(iauto_close) {
26 FileDescriptor(File file) : fd(file.TakePlatformFile()), auto_close(true) {}
29 return (fd == other.fd && auto_close == other.auto_close);
38 return other.fd < fd;
41 int fd; member in struct:base::FileDescriptor
H A Drand_util_posix.cc29 int fd() const { return fd_; } function in class:__anon2436::URandomFd
49 const int urandom_fd = g_urandom_fd.Pointer()->fd();
56 return g_urandom_fd.Pointer()->fd();
/external/chromium_org/base/files/
H A Ddir_reader_posix_unittest.cc40 const int fd = open(buf, O_CREAT | O_RDONLY | O_EXCL, 0600); local
41 PCHECK(fd >= 0);
42 PCHECK(close(fd) == 0);
/external/chromium_org/base/posix/
H A Dglobal_descriptors.cc40 void GlobalDescriptors::Set(Key key, int fd) { argument
44 i->second = fd;
49 descriptors_.push_back(std::make_pair(key, fd));

Completed in 369 milliseconds

1234567891011>>