EmbLogic's Blog

Read and write the data using pipe

RCS file: header.h,v
Working file: header.h
head: 1.1
branch:
locks: strict
vishal: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
define structer in header.h
—————————-
revision 1.1 locked by: vishal;
date: 2015/02/27 19:38:05; author: vishal; state: Exp;
Initial revision
=============================================================================

RCS file: header.h,v
Working file: header.h
head: 1.1
branch:
locks: strict
vishal: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
define structer in header.h
—————————-
revision 1.1 locked by: vishal;
date: 2015/02/27 19:38:05; author: vishal; state: Exp;
Initial revision
=============================================================================

RCS file: 1.c,v
Working file: 1.c
head: 1.2
branch:
locks: strict
vishal: 1.2
access list:
symbolic names:
keyword substitution: kv
total revisions: 2; selected revisions: 2
description:
Receive the file descritor and read the file form the pipe.
Use the data to perforn operation.
—————————-
revision 1.2 locked by: vishal;
date: 2015/02/27 19:48:34; author: vishal; state: Exp; lines: +1 -1
Create the pipe and save the read and write file descriptor in a array.
Fork the process and create a child.
Provide another process to child using execl.
—————————-
revision 1.1
date: 2015/02/27 19:40:18; author: vishal; state: Exp;
Initial revision
=============================================================================

RCS file: extra.c,v
Working file: extra.c
head: 1.2
branch:
locks: strict
vishal: 1.2
access list:
symbolic names:
keyword substitution: kv
total revisions: 2; selected revisions: 2
description:
forked in this program.
Then provide another process to child by using execl.
provid the the file descriptor to new by using pipe.
—————————-
revision 1.2 locked by: vishal;
date: 2015/02/27 19:47:21; author: vishal; state: Exp; lines: +1 -1
Recevie the file descriptor from the parent file .
Read the data present in the pipe and perform operation.
—————————-
revision 1.1
date: 2015/02/27 19:38:32; author: vishal; state: Exp;
Initial revision
=============================================================================

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>