svn_stream_for_stdin2

Function svn_stream_for_stdin2 

Source
pub unsafe extern "C" fn svn_stream_for_stdin2(
    in_: *mut *mut svn_stream_t,
    buffered: svn_boolean_t,
    pool: *mut apr_pool_t,
) -> *mut svn_error_t
Expand description

Set @a *in to a generic stream connected to stdin, allocated in @a pool. If @a buffered is set, APR buffering will be enabled. The stream and its underlying APR handle will be closed when @a pool is cleared or destroyed.

@note APR buffering will try to fill the whole internal buffer before serving read requests. This may be inappropriate for interactive applications where stdin will not deliver any more data unless the application processed the data already received.

@since New in 1.10.