Search code examples
cioforkmkfifo

Syntax to Redirect to Input/Output to in C (UNIX)


I am trying to find the syntax that will let me redirect standard input output toward a named pipe after using the mkfifo() function and creating a child process using fork.

Which man page should I be looking at for the syntax?

Thanks, Aaron


Solution

  • Various sections of man page can serve your various purposes.
    Generally,
    Section 1 contain syntax for executable programs or shell command .

    man mkfifo
    

    Section 3 contain syntax for Library call ( used in c programs).

    man 3 mkfifo
    

    Edit: I think i misunderstood the question..if u need the syntax for a command for redirection, check

    man dup