1explain_pipe_or_die(3)     Library Functions Manual     explain_pipe_or_die(3)
2
3
4

NAME

6       explain_pipe_or_die - create pipe and report errors
7

SYNOPSIS

9       #include <libexplain/pipe.h>
10       void explain_pipe_or_die(int *pipefd);
11

DESCRIPTION

13       The  explain_pipe_or_die  function  is  used to call the pipe(2) system
14       call.  On failure an explanation will be printed  to  stderr,  obtained
15       from  explain_pipe(3),  and  then  the  process  terminates  by calling
16       exit(EXIT_FAILURE).
17
18       This function is intended to be used in a fashion similar to  the  fol‐
19       lowing example:
20              explain_pipe_or_die(pipefd);
21
22       pipefd  The pipefd, exactly as to be passed to the pipe(2) system call.
23
24       Returns:
25               This  function  only returns on success.  On failure, prints an
26               explanation and exits.
27

SEE ALSO

29       pipe(2) create pipe
30
31       explain_pipe(3)
32               explain pipe(2) errors
33
34       exit(2) terminate the calling process
35
37       libexplain version 1.4
38       Copyright (C) 2009 Peter Miller
39
40
41
42                                                        explain_pipe_or_die(3)
Impressum