Home
last modified time | relevance | path

Searched refs:filefd (Results 1 – 21 of 21) sorted by relevance

/external/libwebsockets/minimal-examples/raw/minimal-raw-serial/
Dminimal-raw-file.c30 int filefd; member
64 vhd->filefd = lws_open(filepath, O_RDWR); in callback_raw_test()
65 if (vhd->filefd == -1) { in callback_raw_test()
71 tcflush(vhd->filefd, TCIOFLUSH); in callback_raw_test()
74 if (ioctl(vhd->filefd, TIOCGSERIAL, &s_s) == 0) { in callback_raw_test()
76 ioctl(vhd->filefd, TIOCSSERIAL, &s_s); in callback_raw_test()
83 if (tcgetattr(vhd->filefd, &tio)) { in callback_raw_test()
84 close(vhd->filefd); in callback_raw_test()
85 vhd->filefd = -1; in callback_raw_test()
115 tcsetattr(vhd->filefd, TCSANOW, &tio); in callback_raw_test()
[all …]
/external/libwebsockets/minimal-examples/raw/minimal-raw-file/
Dminimal-raw-file.c22 int filefd; member
41 vhd->filefd = lws_open(filepath, O_RDWR); in callback_raw_test()
42 if (vhd->filefd == -1) { in callback_raw_test()
47 u.filefd = (lws_filefd_type)(long long)vhd->filefd; in callback_raw_test()
52 close(vhd->filefd); in callback_raw_test()
53 vhd->filefd = -1; in callback_raw_test()
60 if (vhd && vhd->filefd != -1) in callback_raw_test()
61 close(vhd->filefd); in callback_raw_test()
72 n = read(vhd->filefd, buf, sizeof(buf)); in callback_raw_test()
/external/ltp/testcases/kernel/syscalls/vmsplice/
Dvmsplice02.c38 static int filefd; variable
49 { &filefd, &ivc, 1, EBADF },
60 filefd = SAFE_OPEN(TESTFILE, O_WRONLY | O_CREAT, 0644); in setup()
93 if (filefd > 0) in cleanup()
94 SAFE_CLOSE(filefd); in cleanup()
/external/ltp/testcases/kernel/syscalls/renameat/
Drenameat01.c79 static int filefd; variable
99 { &filefd, TESTFILE, &filefd, NEW_TESTFILE, ENOTDIR },
172 filefd = SAFE_OPEN(cleanup, TESTFILE4, in setup()
243 if (filefd > 0 && close(filefd) < 0) in cleanup()
/external/libwebsockets/plugins/
Dprotocol_lws_raw_test.c141 u.filefd = vhd->fifo; in callback_raw_test()
220 u.filefd = vhd->fifo; in callback_raw_test()
/external/libwebsockets/minimal-examples/raw/minimal-raw-audio/
Daudio.c30 int filefd; member
59 u.filefd = (lws_filefd_type)(long long)pfd.fd; in set_hw_params()
/external/kernel-headers/original/uapi/misc/
Dfastrpc.h32 __s32 filefd; /* fd for the file */ member
/external/libwebsockets/include/libwebsockets/
Dlws-adopt.h79 lws_filefd_type filefd; member
/external/linux-kselftest/tools/testing/selftests/net/
Dtls.c172 int filefd = open("/proc/self/exe", O_RDONLY); in TEST_F() local
175 EXPECT_GE(filefd, 0); in TEST_F()
176 fstat(filefd, &st); in TEST_F()
177 EXPECT_GE(sendfile(self->fd, filefd, 0, st.st_size), 0); in TEST_F()
182 int filefd = open("/proc/self/exe", O_RDONLY); in TEST_F() local
189 EXPECT_GE(filefd, 0); in TEST_F()
190 fstat(filefd, &st); in TEST_F()
197 EXPECT_GE(sendfile(self->fd, filefd, 0, st.st_size), 0); in TEST_F()
/external/libwebsockets/minimal-examples/secure-streams/minimal-secure-streams-alexa/
Daudio.c53 int filefd; member
148 u.filefd = (lws_filefd_type)(long long)pfd.fd; in set_hw_params()
/external/libwebsockets/lib/event-libs/libev/
Dlibev.c265 fd = wsi->desc.filefd; in elops_accept_ev()
358 fd = wsi->desc.filefd; in elops_init_vhost_listen_wsi_ev()
/external/libwebsockets/lib/event-libs/libevent/
Dlibevent.c252 fd = wsi->desc.filefd; in elops_accept_event()
382 fd = wsi->desc.filefd; in elops_init_vhost_listen_wsi_event()
/external/libwebsockets/minimal-examples/raw/minimal-raw-netcat/
Dminimal-raw-netcat.c237 sock.filefd = 0; in main()
/external/fastrpc/inc/
Dfastrpc_internal.h98 __s32 filefd; /* fd for the file */ member
/external/libwebsockets/lib/core-net/
Ddummy-callback.c739 written = write(args->stdwsi[LWS_STDIN]->desc.filefd, in lws_callback_http_dummy()
777 args->stdwsi[LWS_STDIN]->desc.filefd > 0) { in lws_callback_http_dummy()
Doutput.c369 n = write((int)(long long)wsi->desc.filefd, buf, len); in lws_ssl_capable_write_no_ssl()
Dadopt.c215 if (lws_plat_set_nonblocking(fd.filefd)) { in lws_adopt_descriptor_vhost2()
/external/libwebsockets/lib/event-libs/glib/
Dglib.c257 fd = wsi->desc.filefd; in elops_accept_glib()
/external/libwebsockets/lib/event-libs/libuv/
Dlibuv.c625 (int)(long long)wsi->desc.filefd); in elops_accept_uv()
/external/fastrpc/src/
Dfastrpc_apps_user.c1671 uproc.filefd = rpcmem_to_fd_internal((void *)uproc.file); in apps_dev_init()
1673 VERIFYC(uproc.filefd != -1, AEE_EINVALIDFD); in apps_dev_init()
/external/libwebsockets/READMEs/
DREADME.coding.md734 u.filefd = your_open_file_fd;