Diff for /gforth/unix/socket.fs between versions 1.51 and 1.52

version 1.51, 2011/12/31 15:29:26 version 1.52, 2012/04/25 23:17:48
Line 50  c-function fileno fileno1 a -- n ( file* Line 50  c-function fileno fileno1 a -- n ( file*
 c-function poll poll a n n -- n ( fds nfds timeout -- r )  c-function poll poll a n n -- n ( fds nfds timeout -- r )
 environment os-type s" linux" string-prefix? [IF]  environment os-type s" linux" string-prefix? [IF]
     c-function ppoll ppoll a n a a -- n ( fds nfds timeout_ts sigmask -- r )      c-function ppoll ppoll a n a a -- n ( fds nfds timeout_ts sigmask -- r )
       \c #include <sys/epoll.h>
       c-function epoll_create epoll_create n -- n ( n -- epfd )
       c-function epoll_ctl epoll_ctl n n n a -- n ( epfd op fd event -- r )
       c-function epoll_wait epoll_wait n a n n -- n ( epfd events maxevs timeout -- r )
       c-function recvmmsg recvmmsg n a n n a -- n ( sockfd hdr vlen flag timeout -- r )
       c-function sendmmsg sendmmsg n a n n -- n ( sockfd hdr vlen flag -- r )
 [THEN]  [THEN]
 \c #include <netdb.h>  \c #include <netdb.h>
 c-function getaddrinfo getaddrinfo a a a a -- n ( node service hints res -- r )  c-function getaddrinfo getaddrinfo a a a a -- n ( node service hints res -- r )
Line 112  struct Line 118  struct
     cell% field ai_next      cell% field ai_next
 end-struct addrinfo  end-struct addrinfo
   
   environment os-type s" linux" string-prefix? [IF]
       struct
           cell% field iov_base
           int% field iov_len
       end-struct iovec
       struct
           cell% field msg_name
           int% field msg_namelen
           cell% field msg_iov \ iovec structures
           int% field msg_iovlen
           cell% field msg_control
           int% field msg_controllen
           int% field msg_flags
           int% field msg_len
       end-struct mmsghdr
   [THEN]
   
 ' family alias family+port \ 0.6.2 32-bit field; used by itools  ' family alias family+port \ 0.6.2 32-bit field; used by itools
   
 Create sockaddr-tmp  Create sockaddr-tmp
Line 141  $006 Constant O_NONBLOCK|O_RDWR Line 164  $006 Constant O_NONBLOCK|O_RDWR
   26 Constant IPV6_V6ONLY    26 Constant IPV6_V6ONLY
   11 Constant EWOULDBLOCK    11 Constant EWOULDBLOCK
 $100 Constant MSG_WAITALL  $100 Constant MSG_WAITALL
   $10000 Constant MSG_WAITFORONE
 $802 Constant O_NONBLOCK|O_RDWR  $802 Constant O_NONBLOCK|O_RDWR
 [THEN]  [THEN]
    1 Constant SOCK_STREAM     1 Constant SOCK_STREAM

Removed from v.1.51  
changed lines
  Added in v.1.52


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>