Lely core libraries  2.2.5
io.h File Reference
#include <lely/io2/io2.h>
Include dependency graph for io.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef struct io_poll io_poll_t
 The system-dependent I/O polling interface.
 

Functions

int io_init (void)
 Initializes the I/O library and makes the I/O functions available for use. More...
 
void io_fini (void)
 Finalizes the I/O library and terminates the availability of the I/O functions. More...
 

Detailed Description

This header file is part of the I/O library; it contains system-dependent I/O initialization/finalization function declarations.

Author
J. S. Seldenthuis jseld.nosp@m.enth.nosp@m.uis@l.nosp@m.ely..nosp@m.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition in file io.h.

Function Documentation

◆ io_init()

int io_init ( void  )

Initializes the I/O library and makes the I/O functions available for use.

This function is not thread-safe, but can be invoked multiple times, as long as it is matched by an equal number of calls to io_fini().

Returns
0 on success, or -1 on error. In the latter case, the error number can be obtained with get_errc().

Definition at line 31 of file io.c.

◆ io_fini()

void io_fini ( void  )

Finalizes the I/O library and terminates the availability of the I/O functions.

Note that this function MUST be invoked once for each call to io_init(). Only the last invocation will finalize the library.

Definition at line 38 of file io.c.