LexLeo 0.0.0-dev+f8e5087-dirty
Technical documentation
Loading...
Searching...
No Matches
stream_default_ops() specifications

Signature

const stream_ops_t * stream_default_ops(void)
Return the default borrower-facing ops table for the stream port.
Definition stream.c:123
Borrower-facing operation table for the stream port.

Purpose

Return the default borrower-facing operations table for the stream port.

Success

  • Returns a non-NULL pointer ret to a well-formed stream_ops_t.
  • ret->read, ret->write, and ret->flush are non-NULL.

Failure

  • None.

Notes

  • This function exposes the default borrower-facing operations of the stream port.
  • This function establishes the “non-NULL ops pointer implies well-formed” invariant for the stream port.