Lely core libraries  2.2.5
io.c File Reference
#include "io.h"
#include <lely/io2/sys/io.h>
Include dependency graph for io.c:

Go to the source code of this file.

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 file is part of the I/O library; it contains the POSIX implementation of the I/O initialization/finalization functions.

See also
lely/io2/sys/io.h
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.c.

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.