package core_unix
- Overview
- No Docs
You can search for identifiers within the package.
in-package search v0.2.0
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=4f70a9d3a761799d00c0a207942b4abd9f1a144bbcb19df98021d9fb7bfa9e5f
doc/core_unix.iobuf_unix/Iobuf_unix/index.html
Module Iobuf_unixSource
module Unix := Core_unixIobuf has analogs of various Bigstring functions. These analogs advance by the amount written/read.
val read_assume_fd_is_nonblocking :
([> Core.write ], Iobuf.seek) Iobuf.t ->
Unix.File_descr.t ->
Unix.Syscall_result.Unit.tval pread_assume_fd_is_nonblocking :
([> Core.write ], Iobuf.seek) Iobuf.t ->
Unix.File_descr.t ->
offset:int ->
unitval recvfrom_assume_fd_is_nonblocking :
([> Core.write ], Iobuf.seek) Iobuf.t ->
Unix.File_descr.t ->
Unix.sockaddrrecvmmsg's context comprises data needed by the system call. Setup can be expensive, particularly for many buffers.
val recvmmsg_assume_fd_is_nonblocking :
(Unix.File_descr.t ->
Recvmmsg_context.t ->
Unix.Syscall_result.Int.t)
Core.Or_error.trecvmmsg_assume_fd_is_nonblocking fd context returns the number of context iobufs read into (or errno). fd must not block. THREAD_IO_CUTOFF is ignored.
EINVAL is returned if an Iobuf passed to Recvmmsg_context.create has its buf or limits changed.
val send_nonblocking_no_sigpipe :
unit ->
(([> Core.read ], Iobuf.seek) Iobuf.t ->
Unix.File_descr.t ->
Unix.Syscall_result.Unit.t)
Core.Or_error.tval sendto_nonblocking_no_sigpipe :
unit ->
(([> Core.read ], Iobuf.seek) Iobuf.t ->
Unix.File_descr.t ->
Unix.sockaddr ->
Unix.Syscall_result.Unit.t)
Core.Or_error.tWrite from the iobuf to the specified channel without changing the iobuf window. Returns the number of bytes written.
As Peek, but advances the window by the number of bytes written.
val write_assume_fd_is_nonblocking :
([> Core.read ], Iobuf.seek) Iobuf.t ->
Unix.File_descr.t ->
unitval pwrite_assume_fd_is_nonblocking :
([> Core.read ], Iobuf.seek) Iobuf.t ->
Unix.File_descr.t ->
offset:int ->
unitAs similar APIs in In_channel, but using an intermediate Iobuf; considerably faster.