io_wrapper_flush

March 26, 2020 Contributors

Name

io_wrapper_flush — Flush a resource

Synopsis

#include "io_wrapper.h"

| int **io_wrapper_flush** ( | io); |   |

io_object * <var class="pdparam">io</var>;

Description

Flush a resource prior to destroying it.

Parameters

io

The resource.

Return Values

On success, this function returns 0; on failure it returns -1 and errno is set appropriately.

Threading

It is legal to call this function in any thread.

See Also

“io_object” and io_wrapper_delref