HomeSort by relevance Sort by last modified time
    Searched defs:fd (Results 151 - 175 of 3995) sorted by null

1 2 3 4 5 67 8 91011>>

  /external/strace/tests-mx32/
nfnetlink_osf.c 42 test_nlmsg_type(const int fd)
51 rc = sendto(fd, &nlh, nlh.nlmsg_len, MSG_DONTWAIT, NULL, 0);
56 fd, nlh.nlmsg_len, nlh.nlmsg_len, sprintrc(rc));
59 rc = sendto(fd, &nlh, nlh.nlmsg_len, MSG_DONTWAIT, NULL, 0);
64 fd, nlh.nlmsg_len, nlh.nlmsg_len, sprintrc(rc));
70 skip_if_unavailable("/proc/self/fd/");
72 int fd = create_nl_socket(NETLINK_NETFILTER); local
74 test_nlmsg_type(fd);
nfnetlink_queue.c 40 test_nlmsg_type(const int fd)
49 rc = sendto(fd, &nlh, nlh.nlmsg_len, MSG_DONTWAIT, NULL, 0);
54 fd, nlh.nlmsg_len, nlh.nlmsg_len, sprintrc(rc));
57 rc = sendto(fd, &nlh, nlh.nlmsg_len, MSG_DONTWAIT, NULL, 0);
62 fd, nlh.nlmsg_len, nlh.nlmsg_len, sprintrc(rc));
68 skip_if_unavailable("/proc/self/fd/");
70 int fd = create_nl_socket(NETLINK_NETFILTER); local
72 test_nlmsg_type(fd);
nfnetlink_ulog.c 40 test_nlmsg_type(const int fd)
49 rc = sendto(fd, &nlh, nlh.nlmsg_len, MSG_DONTWAIT, NULL, 0);
54 fd, nlh.nlmsg_len, nlh.nlmsg_len, sprintrc(rc));
57 rc = sendto(fd, &nlh, nlh.nlmsg_len, MSG_DONTWAIT, NULL, 0);
62 fd, nlh.nlmsg_len, nlh.nlmsg_len, sprintrc(rc));
68 skip_if_unavailable("/proc/self/fd/");
70 int fd = create_nl_socket(NETLINK_NETFILTER); local
72 test_nlmsg_type(fd);
signalfd4.c 55 int fd = signalfd(-1, &mask, O_CLOEXEC | O_NONBLOCK); local
57 sigs, size, sprintrc(fd));
symlinkat.c 12 const long int fd = (long int) 0xdeadbeefffffffffULL; local
16 long rc = syscall(__NR_symlinkat, oldpath, fd, newpath);
18 oldpath, (int) fd, newpath, rc, errno2name());
  /external/syslinux/com32/lib/sys/
open.c 56 int fd, handle; local
59 fd = opendev(&__file_dev, NULL, flags);
61 //printf("enter, file = %s, fd = %d\n", pathname, fd);
63 if (fd < 0)
66 fp = &__file_info[fd];
68 handle = open_file(pathname, flags, &fp->i.fd);
70 close(fd);
78 return fd;
opendev.c 43 int fd; local
55 for (fd = 0, fp = __file_info; fd < NFILES; fd++, fp++)
59 if (fd >= NFILES) {
94 return fd;
97 close(fd);
  /external/toybox/toys/android/
load_policy.c 22 int fd = xopenro(*toys.optargs); local
23 off_t policy_len = fdlength(fd);
24 char *policy_data = xmmap(0, policy_len, PROT_READ, MAP_PRIVATE, fd, 0);
26 close(fd);
sendevent.c 24 int fd = xopen(*toys.optargs, O_RDWR); local
28 if (ioctl(fd, EVIOCGVERSION, &version))
36 xwrite(fd, &ev, sizeof(ev));
  /external/toybox/toys/net/
tunctl.c 42 int fd = xopen("/dev/net/tun", O_RDWR); local
47 xioctl(fd, TUNSETIFF, toybuf);
50 xioctl(fd, TUNSETPERSIST, (void *)1);
51 xioctl(fd, TUNSETOWNER, (void *)(long)u);
52 } else xioctl(fd, TUNSETPERSIST, (void *)0);
  /external/toybox/toys/other/
chvt.c 24 int vtnum, fd = fd; local
29 if (-1 != (fd = open(*cc, O_RDWR))) break;
32 if (!*cc || fd < 0 || ioctl(fd, 0x5606, vtnum) || ioctl(fd, 0x5607, vtnum))
  /external/valgrind/memcheck/tests/darwin/
mkfifo.c 21 int fd; local
23 fd = mkfifo(f_name);
25 if (fd == -1)
  /external/valgrind/none/tests/mips32/
bug320057-mips32.c 17 int fd; local
19 fd = shm_open("/hw_mngr.c", (O_CREAT | O_EXCL | O_RDWR),
24 ftruncate(fd, SZ);
25 DO(ftruncate(fd, SZ));
27 ptr = mmap(0, SZ, (PROT_READ | PROT_WRITE), MAP_SHARED, fd, 0);
  /external/webrtc/webrtc/base/
platform_file.cc 27 int fd = _open_osfhandle(reinterpret_cast<intptr_t>(file), 0); local
28 if (fd < 0)
31 return _fdopen(fd, "w");
  /external/wpa_supplicant_8/src/ap/
vlan_ifconfig.c 21 int fd; local
24 if ((fd = socket(AF_INET, SOCK_STREAM, 0)) < 0) {
33 if (ioctl(fd, SIOCGIFFLAGS, &ifr) != 0) {
37 close(fd);
46 if (ioctl(fd, SIOCSIFFLAGS, &ifr) != 0) {
50 close(fd);
54 close(fd);
vlan_ioctl.c 21 int fd; local
31 if ((fd = socket(AF_INET, SOCK_STREAM, 0)) < 0) {
42 if (ioctl(fd, SIOCSIFVLAN, &if_request) < 0) {
45 close(fd);
49 close(fd);
64 int fd; local
77 if ((fd = socket(AF_INET, SOCK_STREAM, 0)) < 0) {
92 if (ioctl(fd, SIOCSIFVLAN, &if_request) == 0 &&
96 if (ioctl(fd, SIOCSIFVLAN, &if_request) == 0 &&
99 close(fd);
129 int fd; local
    [all...]
  /frameworks/native/services/surfaceflinger/tests/waitforvsync/
waitforvsync.cpp 33 int fd = open("/dev/graphics/fb0", O_RDWR); local
34 if (fd >= 0) {
37 int err = ioctl(fd, FBIO_WAITFORVSYNC, &crt);
43 close(fd);
  /libcore/luni/src/main/native/
libcore_io_AsynchronousCloseMonitor.cpp 26 int fd = jniGetFDFromFileDescriptor(env, javaFd); local
27 AsynchronousCloseMonitor::signalBlockedThreads(fd);
  /system/core/trusty/libtrusty/
trusty.c 34 int fd; local
37 fd = open(dev_name, O_RDWR);
38 if (fd < 0) {
45 rc = ioctl(fd, TIPC_IOC_CONNECT, srv_name);
50 close(fd);
54 ALOGV("%s: connected to \"%s\" fd %d\n", __func__, srv_name, fd);
55 return fd;
58 void tipc_close(int fd)
60 close(fd);
    [all...]
  /art/compiler/utils/
swap_space_test.cc 38 int fd = scratch.GetFd(); local
41 SwapSpace pool(fd, 1 * MB);
  /bionic/libc/bionic/
getentropy.cpp 35 int fd = TEMP_FAILURE_RETRY(open("/dev/urandom", O_RDONLY | O_NOFOLLOW | O_CLOEXEC, 0)); local
36 if (fd == -1) return -1;
40 ssize_t count = TEMP_FAILURE_RETRY(read(fd, static_cast<char*>(buffer) + collected,
43 close(fd);
49 close(fd);
  /bionic/tests/
sys_xattr_test.cpp 38 ASSERT_EQ(0, fsetxattr(tf.fd, "user.foo", "bar", 4, 0));
39 ASSERT_EQ(4, fgetxattr(tf.fd, "user.foo", buf, sizeof(buf)));
46 ASSERT_EQ(0, fsetxattr(tf.fd, "user.foo", "", 0, 0));
47 ASSERT_EQ(0, fgetxattr(tf.fd, "user.foo", buf, sizeof(buf)));
53 ASSERT_EQ(0, fsetxattr(tf.fd, "user.foo", "01234567890123456789", 21, 0));
54 ASSERT_EQ(-1, fgetxattr(tf.fd, "user.foo", buf, sizeof(buf)));
70 int fd = open(tf.filename, O_PATH); local
71 ASSERT_NE(-1, fd);
73 int res = fsetxattr(fd, "user.foo", "bar", 4, 0);
77 ASSERT_EQ(4, fgetxattr(fd, "user.foo", buf, sizeof(buf)))
88 int fd = open(tf.filename, O_PATH); local
117 int fd = open(tf.filename, O_PATH); local
    [all...]
  /bootable/recovery/otafault/
test.cpp 26 int fd = open("testdata/test.file", O_RDWR); local
29 int readv = ota_read(fd, buf, 4);
31 int writev = ota_write(fd, out, 4);
33 close(fd);
  /build/kati/
file.cc 31 int fd = open(filename.c_str(), O_RDONLY); local
32 if (fd < 0) {
37 if (fstat(fd, &st) < 0) {
45 ssize_t r = HANDLE_EINTR(read(fd, &buf_[0], len));
52 if (close(fd) < 0) {
  /cts/tests/tests/os/jni/
android_os_cts_SharedMemory.cpp 25 int fd = ASharedMemory_dupFromJava(env, jSharedMemory); local
26 if (fd == -1) return false;
27 void* addr = mmap(nullptr, 1, PROT_READ | PROT_WRITE, MAP_SHARED, fd, index);
29 close(fd);
34 close(fd);

Completed in 921 milliseconds

1 2 3 4 5 67 8 91011>>