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

<<11121314151617181920>>

  /external/ltp/testscripts/build/
ltp-missing-install-files.py 61 fd = open(logfile) variable
92 lines = fd.readlines()
111 fd.close()
  /external/mesa3d/src/compiler/spirv/
spirv2nir.c 48 int fd = open(argv[1], O_RDONLY); local
49 if (fd < 0)
55 off_t len = lseek(fd, 0, SEEK_END);
60 close(fd);
66 const void *map = mmap(NULL, len, PROT_READ, MAP_PRIVATE, fd, 0);
71 close(fd);
  /external/nanopb-c/examples/network_server/
common.c 13 int fd = (intptr_t)stream->state; local
14 return send(fd, buf, count, 0) == count;
19 int fd = (intptr_t)stream->state; local
22 result = recv(fd, buf, count, MSG_WAITALL);
30 pb_ostream_t pb_ostream_from_socket(int fd)
32 pb_ostream_t stream = {&write_callback, (void*)(intptr_t)fd, SIZE_MAX, 0};
36 pb_istream_t pb_istream_from_socket(int fd)
38 pb_istream_t stream = {&read_callback, (void*)(intptr_t)fd, SIZE_MAX};
  /external/pdfium/third_party/libtiff/
tif_close.c 126 thandle_t fd = tif->tif_clientdata; local
129 (void) (*closeproc)(fd);
  /external/selinux/libselinux/src/
check_context.c 15 int fd, ret; local
23 fd = open(path, O_RDWR | O_CLOEXEC);
24 if (fd < 0)
27 ret = write(fd, con, strlen(con) + 1);
28 close(fd);
checkreqprot.c 14 int fd, ret, checkreqprot = 0; local
24 fd = open(path, O_RDONLY | O_CLOEXEC);
25 if (fd < 0)
29 ret = read(fd, buf, sizeof(buf) - 1);
30 close(fd);
deny_unknown.c 14 int fd, ret, deny_unknown = 0; local
24 fd = open(path, O_RDONLY | O_CLOEXEC);
25 if (fd < 0)
29 ret = read(fd, buf, sizeof(buf) - 1);
30 close(fd);
enabled.c 33 int fd, ret, enabled = 0; local
39 fd = open(path, O_RDONLY | O_CLOEXEC);
40 if (fd < 0)
46 ret = read(fd, buf, sizeof buf - 1);
48 close(fd);
getenforce.c 14 int fd, ret, enforce = 0; local
24 fd = open(path, O_RDONLY | O_CLOEXEC);
25 if (fd < 0)
29 ret = read(fd, buf, sizeof buf - 1);
30 close(fd);
policyvers.c 15 int fd, ret; local
26 fd = open(path, O_RDONLY | O_CLOEXEC);
27 if (fd < 0) {
34 ret = read(fd, buf, sizeof buf - 1);
35 close(fd);
  /external/strace/tests/
ioctl_uffdio.c 54 int fd = syscall(__NR_userfaultfd, O_NONBLOCK); local
57 if (fd < 0)
63 /* With a bad fd */
69 rc = ioctl(fd, UFFDIO_API, NULL);
71 fd, rc, errno2name());
75 rc = ioctl(fd, UFFDIO_API, api_struct);
76 printf("ioctl(%d, UFFDIO_API, {api=0xaa, features=0", fd);
114 rc = ioctl(fd, UFFDIO_REGISTER, NULL);
116 fd, rc, errno2name());
121 rc = ioctl(fd, UFFDIO_REGISTER, register_struct)
    [all...]
netlink_generic.c 41 test_nlmsg_type(const int fd)
63 rc = sendto(fd, &req, sizeof(req), MSG_DONTWAIT, NULL, 0);
68 fd, req.nlh.nlmsg_len,
74 skip_if_unavailable("/proc/self/fd/");
76 int fd = create_nl_socket(NETLINK_GENERIC); local
78 test_nlmsg_type(fd);
netlink_xfrm.c 38 test_nlmsg_type(const int fd)
47 rc = sendto(fd, &nlh, sizeof(nlh), MSG_DONTWAIT, NULL, 0);
51 fd, nlh.nlmsg_len, (unsigned) sizeof(nlh), sprintrc(rc));
55 test_nlmsg_flags(const int fd)
64 rc = sendto(fd, &nlh, sizeof(nlh), MSG_DONTWAIT, NULL, 0);
68 fd, nlh.nlmsg_len, (unsigned) sizeof(nlh), sprintrc(rc));
72 rc = sendto(fd, &nlh, sizeof(nlh), MSG_DONTWAIT, NULL, 0);
76 fd, nlh.nlmsg_len, (unsigned) sizeof(nlh), sprintrc(rc));
80 rc = sendto(fd, &nlh, sizeof(nlh), MSG_DONTWAIT, NULL, 0);
84 fd, nlh.nlmsg_len, (unsigned) sizeof(nlh), sprintrc(rc))
100 int fd = create_nl_socket(NETLINK_XFRM); local
    [all...]
nfnetlink_acct.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));
66 test_nlmsg_flags(const int fd)
75 rc = sendto(fd, &nlh, nlh.nlmsg_len, MSG_DONTWAIT, NULL, 0);
80 fd, nlh.nlmsg_len, nlh.nlmsg_len, sprintrc(rc));
84 rc = sendto(fd, &nlh, nlh.nlmsg_len, MSG_DONTWAIT, NULL, 0);
89 fd, nlh.nlmsg_len, nlh.nlmsg_len, sprintrc(rc))
106 int fd = create_nl_socket(NETLINK_NETFILTER); local
    [all...]
nfnetlink_cthelper.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));
66 test_nlmsg_flags(const int fd)
75 rc = sendto(fd, &nlh, nlh.nlmsg_len, MSG_DONTWAIT, NULL, 0);
80 fd, nlh.nlmsg_len, nlh.nlmsg_len, sprintrc(rc));
84 rc = sendto(fd, &nlh, nlh.nlmsg_len, MSG_DONTWAIT, NULL, 0);
89 fd, nlh.nlmsg_len, nlh.nlmsg_len, sprintrc(rc))
106 int fd = create_nl_socket(NETLINK_NETFILTER); local
    [all...]
nfnetlink_ctnetlink.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));
66 test_nlmsg_flags(const int fd)
75 rc = sendto(fd, &nlh, nlh.nlmsg_len, MSG_DONTWAIT, NULL, 0);
80 fd, nlh.nlmsg_len, nlh.nlmsg_len, sprintrc(rc));
84 rc = sendto(fd, &nlh, nlh.nlmsg_len, MSG_DONTWAIT, NULL, 0);
89 fd, nlh.nlmsg_len, nlh.nlmsg_len, sprintrc(rc))
106 int fd = create_nl_socket(NETLINK_NETFILTER); local
    [all...]
nfnetlink_ctnetlink_exp.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));
66 test_nlmsg_flags(const int fd)
75 rc = sendto(fd, &nlh, nlh.nlmsg_len, MSG_DONTWAIT, NULL, 0);
80 fd, nlh.nlmsg_len, nlh.nlmsg_len, sprintrc(rc));
84 rc = sendto(fd, &nlh, nlh.nlmsg_len, MSG_DONTWAIT, NULL, 0);
89 fd, nlh.nlmsg_len, nlh.nlmsg_len, sprintrc(rc))
106 int fd = create_nl_socket(NETLINK_NETFILTER); local
    [all...]
nfnetlink_cttimeout.c 40 test_nlmsg_type(const int fd)
50 rc = sendto(fd, &nlh, nlh.nlmsg_len, MSG_DONTWAIT, NULL, 0);
55 fd, nlh.nlmsg_len, nlh.nlmsg_len, sprintrc(rc));
58 rc = sendto(fd, &nlh, nlh.nlmsg_len, MSG_DONTWAIT, NULL, 0);
63 fd, nlh.nlmsg_len, nlh.nlmsg_len, sprintrc(rc));
67 test_nlmsg_flags(const int fd)
77 rc = sendto(fd, &nlh, nlh.nlmsg_len, MSG_DONTWAIT, NULL, 0);
82 fd, nlh.nlmsg_len, nlh.nlmsg_len, sprintrc(rc));
87 rc = sendto(fd, &nlh, nlh.nlmsg_len, MSG_DONTWAIT, NULL, 0);
92 fd, nlh.nlmsg_len, nlh.nlmsg_len, sprintrc(rc))
110 int fd = create_nl_socket(NETLINK_NETFILTER); local
    [all...]
nfnetlink_nft_compat.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));
66 test_nlmsg_flags(const int fd)
75 rc = sendto(fd, &nlh, nlh.nlmsg_len, MSG_DONTWAIT, NULL, 0);
80 fd, nlh.nlmsg_len, nlh.nlmsg_len, sprintrc(rc));
86 skip_if_unavailable("/proc/self/fd/");
88 int fd = create_nl_socket(NETLINK_NETFILTER) local
    [all...]
nfnetlink_nftables.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));
66 test_nlmsg_flags(const int fd)
75 rc = sendto(fd, &nlh, nlh.nlmsg_len, MSG_DONTWAIT, NULL, 0);
80 fd, nlh.nlmsg_len, nlh.nlmsg_len, sprintrc(rc));
84 rc = sendto(fd, &nlh, nlh.nlmsg_len, MSG_DONTWAIT, NULL, 0);
89 fd, nlh.nlmsg_len, nlh.nlmsg_len, sprintrc(rc))
106 int fd = create_nl_socket(NETLINK_NETFILTER); local
    [all...]
so_linger.c 39 get_linger(int fd, void *val, socklen_t *len)
41 int rc = getsockopt(fd, SOL_SOCKET, SO_LINGER, val, len);
47 set_linger(int fd, void *val, socklen_t len)
49 int rc = setsockopt(fd, SOL_SOCKET, SO_LINGER, val, len);
59 int fd = socket(AF_UNIX, SOCK_STREAM, 0); local
60 if (fd < 0)
65 get_linger(fd, linger, len);
68 fd, linger->l_onoff, linger->l_linger, *len, errstr);
73 set_linger(fd, linger, sizeof(*linger));
76 fd, linger->l_onoff, linger->l_linger
    [all...]
so_peercred.c 42 get_peercred(int fd, void *val, socklen_t *len)
44 int rc = getsockopt(fd, SOL_SOCKET, SO_PEERCRED, val, len);
68 int fd = socket(AF_UNIX, SOCK_STREAM, 0); local
69 if (fd < 0)
74 get_peercred(fd, peercred, len);
75 printf("getsockopt(%d, SOL_SOCKET, SO_PEERCRED", fd);
84 get_peercred(fd, peercred, len);
85 printf("getsockopt(%d, SOL_SOCKET, SO_PEERCRED", fd);
91 get_peercred(fd, peercred, len);
92 printf("getsockopt(%d, SOL_SOCKET, SO_PEERCRED", fd);
    [all...]
sync_file_range.c 41 const int fd = -1; local
46 int rc = sync_file_range(fd, offset, nbytes, flags);
50 "sync_file_range", fd,
sync_file_range2.c 41 const int fd = -1; local
46 int rc = sync_file_range(fd, offset, nbytes, flags);
50 "sync_file_range2", fd,
  /external/strace/tests-m32/
ioctl_uffdio.c 54 int fd = syscall(__NR_userfaultfd, O_NONBLOCK); local
57 if (fd < 0)
63 /* With a bad fd */
69 rc = ioctl(fd, UFFDIO_API, NULL);
71 fd, rc, errno2name());
75 rc = ioctl(fd, UFFDIO_API, api_struct);
76 printf("ioctl(%d, UFFDIO_API, {api=0xaa, features=0", fd);
114 rc = ioctl(fd, UFFDIO_REGISTER, NULL);
116 fd, rc, errno2name());
121 rc = ioctl(fd, UFFDIO_REGISTER, register_struct)
    [all...]

Completed in 154 milliseconds

<<11121314151617181920>>