Home
last modified time | relevance | path

Searched refs:fds (Results 1 – 18 of 18) sorted by relevance

/components/dfs/dfs_v2/src/
A Ddfs.c78 if (!fds) in _fdt_slot_expand()
88 fdt->fds = fds; in _fdt_slot_expand()
602 fdt_dst->fds[newfd]->mode = fdt_src->fds[fd_src]->mode; in dfs_fdtable_dup()
603 fdt_dst->fds[newfd]->flags = fdt_src->fds[fd_src]->flags; in dfs_fdtable_dup()
604 fdt_dst->fds[newfd]->fops = fdt_src->fds[fd_src]->fops; in dfs_fdtable_dup()
606 fdt_dst->fds[newfd]->vnode = fdt_src->fds[fd_src]->vnode; in dfs_fdtable_dup()
608 fdt_dst->fds[newfd]->data = fdt_src->fds[fd_src]->data; in dfs_fdtable_dup()
694 fdt->fds[newfd] = fdt->fds[oldfd]; in dfs_dup()
741 fdtab->fds[newfd] = fdt->fds[oldfd]; in dfs_dup_to()
878 if (fdt->fds[newfd] == fdt->fds[oldfd]) in sys_dup2()
[all …]
/components/dfs/dfs_v1/src/
A Ddfs.c212 if (!fds) in fd_slot_expand()
224 fdt->fds = fds; in fd_slot_expand()
294 fdt->fds[idx] = fd; in fd_alloc()
353 d = fdt->fds[fd]; in fdt_fd_get()
404 fdt->fds[fd] = NULL; in fdt_fd_release()
471 fdt->fds[newfd] = fdt->fds[oldfd]; in sys_dup()
589 if (fdt->fds[newfd] == fdt->fds[oldfd]) in sys_dup2()
596 if (fdt->fds[newfd]) in sys_dup2()
606 fdt->fds[newfd] = fdt->fds[oldfd]; in sys_dup2()
687 if (fdt->fds[fd]) in fd_associate()
[all …]
/components/net/sal/socket/
A Dnet_sockets.c776 fds[0] = socket(domain, type, protocol); in socketpair()
777 if (fds[0] < 0) in socketpair()
779 fds[0] = 0; in socketpair()
783 fds[1] = socket(domain, type, protocol); in socketpair()
784 if (fds[1] < 0) in socketpair()
786 closesocket(fds[0]); in socketpair()
787 fds[0] = 0; in socketpair()
788 fds[1] = 0; in socketpair()
792 sock_fds[0] = dfs_net_getsocket(fds[0]); in socketpair()
799 closesocket(fds[0]); in socketpair()
[all …]
/components/libc/posix/io/poll/
A Dpoll.c258 static int poll_do(struct pollfd *fds, nfds_t nfds, struct rt_poll_table *pt, int msec) in poll_do() argument
274 pf = fds; in poll_do()
347 int poll(struct pollfd *fds, nfds_t nfds, int timeout) in poll() argument
354 num = poll_do(fds, nfds, &table, timeout); in poll()
A Dpoll.h64 int poll(struct pollfd *fds, nfds_t nfds, int timeout);
/components/net/sal/include/socket/sys_socket/sys/
A Dsocket.h46 int socketpair(int domain, int type, int protocol, int *fds);
64 #define socketpair(domain, type, protocol, fds) sal_socketpair(domain, type, protocol, f…
/components/net/lwip/lwip-2.1.2/src/api/
A Dsockets.c2225 fds[fdi].revents = 0; in lwip_pollscan()
2232 if (fds[fdi].fd >= 0 && (fds[fdi].revents & POLLNVAL) == 0) { in lwip_pollscan()
2265 fds[fdi].revents |= POLLIN; in lwip_pollscan()
2270 fds[fdi].revents |= POLLOUT; in lwip_pollscan()
2276 fds[fdi].revents |= POLLERR; in lwip_pollscan()
2283 fds[fdi].revents |= POLLNVAL; in lwip_pollscan()
2290 if (fds[fdi].revents != 0) { in lwip_pollscan()
2310 if(fds) { in lwip_poll_inc_sockets_used()
2314 tryget_socket_unconn(fds[fdi].fd); in lwip_poll_inc_sockets_used()
2325 if(fds) { in lwip_poll_dec_sockets_used()
[all …]
/components/dfs/dfs_v1/include/
A Ddfs.h75 struct dfs_file **fds; member
/components/dfs/dfs_v2/filesystems/procfs/
A Dproc_pid.c225 struct dfs_file *file = table->fds[i]; in proc_pid_fd_lookup()
275 if (!table->fds) in proc_pid_fd_getdents()
293 struct dfs_file *df = table->fds[i]; in proc_pid_fd_getdents()
/components/dfs/dfs_v2/include/
A Ddfs.h109 struct dfs_file **fds; member
/components/lwp/
A Dlwp_pid.c274 d = lwp->fdt.fds[fd]; in __exit_files()
1641 if (lwp->fdt.fds != RT_NULL) in _resr_cleanup()
1643 struct dfs_file **fds; in _resr_cleanup() local
1647 fds = lwp->fdt.fds; in _resr_cleanup()
1648 lwp->fdt.fds = RT_NULL; in _resr_cleanup()
1651 rt_free(fds); in _resr_cleanup()
A Dlwp.c212 lwp_fdt->fds = rt_calloc(4, sizeof(void *)); in lwp_execve_setup_stdio()
213 if (lwp_fdt->fds) in lwp_execve_setup_stdio()
A Dlwp_syscall.h59 sysret_t sys_poll(struct pollfd *fds, nfds_t nfds, int timeout);
A Dlwp_syscall.c895 sysret_t sys_poll(struct pollfd *fds, nfds_t nfds, int timeout) in sys_poll() argument
901 if (!lwp_user_accessable((void *)fds, nfds * sizeof *fds)) in sys_poll()
912 lwp_get_from_user(kfds, fds, nfds * sizeof *kfds); in sys_poll()
917 lwp_put_to_user(fds, kfds, nfds * sizeof *kfds); in sys_poll()
923 if (!lwp_user_accessable((void *)fds, nfds * sizeof *fds)) in sys_poll()
927 ret = poll(fds, nfds, timeout); in sys_poll()
3532 dst_fdt->fds = rt_calloc(src_fdt->maxfd, sizeof(void *)); in lwp_copy_files()
3533 if (dst_fdt->fds) in lwp_copy_files()
3547 dst_fdt->fds[i] = d_s; in lwp_copy_files()
/components/net/sal/include/
A Dsal_low_lvl.h87 int (*socketpair) (int s, int type, int protocol, int *fds);
A Dsal_socket.h349 int sal_socketpair(int domain, int type, int protocol, int *fds);
/components/net/lwip/lwip-2.1.2/src/include/lwip/
A Dsockets.h621 int lwip_poll(struct pollfd *fds, nfds_t nfds, int timeout);
670 #define poll(fds,nfds,timeout) lwip_poll(fds,nfds,timeout) argument
/components/net/sal/src/
A Dsal_socket.c1084 int sal_socketpair(int domain, int type, int protocol, int *fds) in sal_socketpair() argument
1094 SAL_SOCKET_OBJ_GET(socka, fds[0]); in sal_socketpair()
1095 SAL_SOCKET_OBJ_GET(sockb, fds[1]); in sal_socketpair()

Completed in 58 milliseconds