about pipes
Hi,
lets say i create a pipe with:
-----------------
ints fds[2];
pipe(fds);
-----------------
Is fds[0] the STANDARD read end of the pipe and pipe[1[ the STANDARD write end? I have read this, but i have also read these in the same program:
-----------------
fdopen(pipe[0], "r");
fdopen(pipe[1],"w");
----------------
Does that mean that pipe[0] for read and pipe[1] for write are not standard and they are just conventions?
|