;; generated from src/bsd/kqueue/Library.scm DO NOT EDIT!!
(library (nmosh stubs kqueue-stubs)
(export
  fd_setnonblock
  fd_pipe
  fd_close
  fd_write
  fd_read
  socket_setnodelay
  socket_addrinfo_read
  socket_accept
  socket_connect
  socket_listen
  socket_bind
  socket_freeaddrinfo
  socket_create
  socket_getaddrinfo
  socket_sizeof_sockaddr_storage
  kevent_exec
  kevent_decode_fd
  kevent_type
  kevent_ident
  kevent_set_triggeruserevent
  kevent_set_enableuserevent
  kevent_set_writeevent
  kevent_set_readevent
  kevent_dispose
  kevent_offset
  kevent_alloc
  kq_create)
(import
  (mosh ffi)
  (rnrs)
  (nmosh ffi pffi)
  (nmosh ffi stublib))


(define %library (make-pffi-ref 'kqueue-stubs))


(define
  kq_create
  (pffi-c-function %library int kq_create))
(define
  kevent_alloc
  (pffi-c-function %library void* kevent_alloc int))
(define
  kevent_offset
  (pffi-c-function
    %library
    void*
    kevent_offset
    void*
    int))
(define
  kevent_dispose
  (pffi-c-function
    %library
    void
    kevent_dispose
    void*))
(define
  kevent_set_readevent
  (pffi-c-function
    %library
    void
    kevent_set_readevent
    void*
    int))
(define
  kevent_set_writeevent
  (pffi-c-function
    %library
    void
    kevent_set_writeevent
    void*
    int))
(define
  kevent_set_enableuserevent
  (pffi-c-function
    %library
    void
    kevent_set_enableuserevent
    void*
    int))
(define
  kevent_set_triggeruserevent
  (pffi-c-function
    %library
    void
    kevent_set_triggeruserevent
    void*
    int))
(define
  kevent_ident
  (pffi-c-function %library int kevent_ident void*))
(define
  kevent_type
  (pffi-c-function %library int kevent_type void*))
(define
  kevent_decode_fd
  (pffi-c-function
    %library
    void
    kevent_decode_fd
    void*
    void*
    void*
    void*))
(define
  kevent_exec
  (pffi-c-function
    %library
    int
    kevent_exec
    int
    int
    void*
    int
    void*
    int))
(define
  socket_sizeof_sockaddr_storage
  (pffi-c-function
    %library
    int
    socket_sizeof_sockaddr_storage))
(define
  socket_getaddrinfo
  (pffi-c-function
    %library
    int
    socket_getaddrinfo
    char*
    char*
    void*
    int
    int))
(define
  socket_create
  (pffi-c-function
    %library
    int
    socket_create
    int
    int))
(define
  socket_freeaddrinfo
  (pffi-c-function
    %library
    void
    socket_freeaddrinfo
    void*))
(define
  socket_bind
  (pffi-c-function
    %library
    int
    socket_bind
    int
    void*
    int))
(define
  socket_listen
  (pffi-c-function
    %library
    int
    socket_listen
    int
    int))
(define
  socket_connect
  (pffi-c-function
    %library
    int
    socket_connect
    int
    void*
    int))
(define
  socket_accept
  (pffi-c-function
    %library
    int
    socket_accept
    int
    void*
    void*))
(define
  socket_addrinfo_read
  (pffi-c-function
    %library
    void
    socket_addrinfo_read
    void*
    void*
    void*
    void*
    void*))
(define
  socket_setnodelay
  (pffi-c-function
    %library
    void
    socket_setnodelay
    int))
(define
  fd_read
  (pffi-c-function
    %library
    int
    fd_read
    int
    void*
    int))
(define
  fd_write
  (pffi-c-function
    %library
    int
    fd_write
    int
    void*
    int))
(define
  fd_close
  (pffi-c-function %library int fd_close int))
(define
  fd_pipe
  (pffi-c-function
    %library
    int
    fd_pipe
    void*
    void*))
(define
  fd_setnonblock
  (pffi-c-function
    %library
    void
    fd_setnonblock
    int))
)
