Simple C programs demonstarting use of mkfifo( ) system call.

SYS CALL NAME
mkfifo – make FIFOs (named pipes)SYNOPSIS
mkfifo [OPTION]… NAME…
DESCRIPTION
Create named pipes (FIFOs) with the given NAMEs.
Mandatory  arguments  to  long  options are mandatory for short options
too.
-m, –mode=MODE
set file permission bits to MODE, not a=rw – umask
-Z, –context=CTX
set the SELinux security context of each NAME to CTX
–help display this help and exit
–version
output version information and exit

 

 

shubham2.c

 
Output:

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.