Searched refs:KSTOSO (Results 1 – 3 of 3) sorted by relevance
/titanic_50/usr/src/lib/libfakekernel/common/ |
H A D | ksocket.c | 43 #define KSTOSO(ks) (ks->kso_fd) macro 172 if (bind(KSTOSO(ks), addr, addrlen) != 0) in ksocket_bind() 176 err = ksocket_bind_helper(KSTOSO(ks), addr, addrlen); in ksocket_bind() 191 if (listen(KSTOSO(ks), backlog) != 0) in ksocket_listen() 214 fd = accept(KSTOSO(ks), addr, addrlenp); in ksocket_accept() 233 if (connect(KSTOSO(ks), addr, addrlen) != 0) in ksocket_connect() 254 error = send(KSTOSO(ks), msg, msglen, flags); in ksocket_send() 281 error = sendto(KSTOSO(ks), msg, msglen, flags, name, namelen); in ksocket_sendto() 311 len = sendmsg(KSTOSO(ks), msg, flags); in ksocket_sendmsg() 356 error = recv(KSTOSO(ks), msg, msglen, flags); in ksocket_recv() [all …]
|
/titanic_50/usr/src/uts/common/io/ksocket/ |
H A D | ksocket.c | 113 error = socket_bind(KSTOSO(ks), addr, addrlen, _SOBIND_SOCKBSD, cr); in ksocket_bind() 127 return (socket_listen(KSTOSO(ks), backlog, cr)); in ksocket_listen() 148 error = socket_accept(KSTOSO(ks), KSOCKET_FMODE(ks), cr, &nso); in ksocket_accept() 180 return (socket_connect(KSTOSO(ks), addr, addrlen, in ksocket_connect() 224 error = socket_sendmsg(KSTOSO(ks), &msghdr, &auio, cr); in ksocket_send() 278 error = socket_sendmsg(KSTOSO(ks), &msghdr, &auio, cr); in ksocket_sendto() 330 error = socket_sendmsg(KSTOSO(ks), msg, &auio, cr); in ksocket_sendmsg() 384 error = socket_recvmsg(KSTOSO(ks), &msghdr, &auio, cr); in ksocket_recv() 437 error = socket_recvmsg(KSTOSO(ks), &msghdr, &auio, cr); in ksocket_recvfrom() 494 error = socket_recvmsg(KSTOSO(ks), msg, &auio, cr); in ksocket_recvmsg() [all …]
|
H A D | ksocket_impl.h | 30 #define KSTOSO(ks) ((struct sonode *)(ks)) macro 55 ((KSTOSO(so)->so_state & (SS_NDELAY|SS_NONBLOCK)) ? FNDELAY : 0) 58 ((ks) != NULL && (KSTOSO(ks))->so_mode & SM_KERNEL && \ 59 !((KSTOSO(ks))->so_state & SS_CLOSING))
|