Lely core libraries  2.3.4
pipe.c File Reference
#include "io.h"
#include <lely/io/pipe.h>
#include "default.h"
Include dependency graph for pipe.c:

Go to the source code of this file.

Functions

int io_open_pipe (io_handle_t handle_vector[2])
 Opens a pipe. More...
 

Detailed Description

This file is part of the I/O library; it contains the implementation of the pipe functions.

See also
lely/io/pipe.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 pipe.c.

Function Documentation

◆ io_open_pipe()

int io_open_pipe ( io_handle_t  handle_vector[2])

Opens a pipe.

Parameters
handle_vectora 2-value array which, on success, contains the device handles of the pipe. handle_vector[0] corresponds to the read end and handle_vector[1] to the write end.
Returns
0 on success, or -1 on error. In the latter case, the error number can be obtained with get_errc().

Definition at line 54 of file pipe.c.