Unix and Linux Discussions Tagged with pipes |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
1 |
3,828 |
Programming |
|
|
|
4 |
4,593 |
Homework & Coursework Questions |
|
|
|
2 |
1,473 |
Shell Programming and Scripting |
|
|
|
3 |
7,753 |
Shell Programming and Scripting |
|
|
|
7 |
5,733 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
3,239 |
Shell Programming and Scripting |
|
|
|
3 |
10,427 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
19,848 |
UNIX for Advanced & Expert Users |
|
|
|
10 |
7,504 |
Shell Programming and Scripting |
|
|
|
8 |
7,833 |
Programming |
|
|
|
4 |
5,344 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
6,600 |
BSD |
|
|
|
4 |
2,152 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,382 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,265 |
Shell Programming and Scripting |
|
|
|
0 |
1,183 |
Software Releases - RSS News |
|
|
|
2 |
22,131 |
Shell Programming and Scripting |
|
|
|
4 |
17,866 |
Shell Programming and Scripting |
|
|
|
2 |
5,932 |
UNIX for Advanced & Expert Users |
|
|
|
4 |
12,528 |
Shell Programming and Scripting |
|
|
|
4 |
25,143 |
Programming |
|
|
|
1 |
4,952 |
Programming |
|
|
|
6 |
13,695 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
4,705 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
5,269 |
Programming |
pipe(2) System Calls Manual pipe(2)
NAME
pipe() - create an interprocess channel
SYNOPSIS
DESCRIPTION
creates an I/O mechanism called a pipe and returns two file descriptors, fildes[0] and fildes[1]. fildes[0] is opened for reading and
fildes[1] is opened for writing.
A read-only file descriptor fildes[0] accesses the data written to fildes[1] on a first-in-first-out (FIFO) basis. For details of the I/O
behavior of pipes see read(2) and write(2).
By default, HP-UX pipes are not STREAMS-based. It is possible to generate the kernel so that all pipes created on a system are STREAMS-
based. This can only be done for HP-UX releases 10.0 and later. STREAMS-based FIFOs (created by or are not supported on HP-UX.
To generate a kernel that supports STREAMS-based pipes:
o STREAMS/UX must be installed.
o The module and the driver must be included in the file. (When STREAMS/UX is installed, and are automatically added to the system
file.)
o The tunable parameter (see streampipes(5)) must be set to 1 in the file. (This is not automatically done when STREAMS/UX is
installed.)
o The kernel must be generated and the system rebooted. Once this is done, all pipes created by will be STREAMS-based.
For more information, see
EXAMPLES
The following example uses to implement the command string
RETURN VALUE
returns one of the following values:
Successful completion.
Failure.
is set to indicate the error.
ERRORS
sets to one of the following error values if the corresponding condition is true.
or more file descriptors are currently open.
The system file table is full.
The file system lacks sufficient space to create the pipe.
Could not allocate resources for both Stream heads
(STREAMS-based pipes only).
SEE ALSO
sh(1), read(2), write(2), popen(3S), privileges(5), streampipes(5), streamio(7).
STANDARDS CONFORMANCE
pipe(2)