EmbLogic's Blog

Inter process communication using pipe successfully done.

RCS file: header.h,v
Working file: header.h
head: 1.2
branch:
locks: strict
root: 1.2
access list:
symbolic names:
keyword substitution: kv
total revisions: 2; selected revisions: 2
description:
This is header file
include stdio.h stdlib.h sys/types.h unistd.h
—————————-
revision 1.2 locked by: root;
date: 2015/02/27 10:26:23; author: root; state: Exp; lines: +5 -1
define struct message
—————————-
revision 1.1
date: 2015/02/27 09:26:47; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: adder.c,v
Working file: adder.c
head: 1.4
branch:
locks: strict
root: 1.4
access list:
symbolic names:
keyword substitution: kv
total revisions: 4; selected revisions: 4
description:
this is adder.c file
execl will run this process
—————————-
revision 1.4 locked by: root;
date: 2015/02/27 10:53:04; author: root; state: Exp; lines: +12 -5
write sum into pipe through wfd
—————————-
revision 1.3
date: 2015/02/27 10:27:33; author: root; state: Exp; lines: +5 -0
read struct message m through rfd.
print each element of m
—————————-
revision 1.2
date: 2015/02/27 09:55:22; author: root; state: Exp; lines: +4 -2
pass rfd to execl
—————————-
revision 1.1
date: 2015/02/27 09:46:47; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: main.c,v
Working file: main.c
head: 1.8
branch:
locks: strict
root: 1.8
access list:
symbolic names:
keyword substitution: kv
total revisions: 8; selected revisions: 8
description:
This is main.c
child process is created using fork
—————————-
revision 1.8 locked by: root;
date: 2015/02/27 10:54:13; author: root; state: Exp; lines: +2 -0
close rfd and wfd
—————————-
revision 1.7
date: 2015/02/27 10:52:25; author: root; state: Exp; lines: +6 -4
read pipe through rfd
—————————-
revision 1.6
date: 2015/02/27 10:26:56; author: root; state: Exp; lines: +9 -2
write struct message m to wfd
—————————-
revision 1.5
date: 2015/02/27 09:55:15; author: root; state: Exp; lines: +3 -1
print rfd
—————————-
revision 1.4
date: 2015/02/27 09:46:33; author: root; state: Exp; lines: +1 -1
print hello.
—————————-
revision 1.3
date: 2015/02/27 09:30:46; author: root; state: Exp; lines: +4 -3
print the rfd and wfd
—————————-
revision 1.2
date: 2015/02/27 09:27:38; author: root; state: Exp; lines: +2 -1
create a pipe
print rfd and wfd
—————————-
revision 1.1
date: 2015/02/27 09:22:38; author: root; 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>