<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>EmbLogic &#187; Vishal Dabas</title>
	<atom:link href="https://www.emblogic.com/blog/author/vishaldabas62/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.emblogic.com/blog</link>
	<description>Embedded System and ARM Training</description>
	<lastBuildDate>Tue, 03 Mar 2020 13:00:06 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9.1</generator>
	<item>
		<title>Interprocess communication using files (passing fd)&#8230;</title>
		<link>https://www.emblogic.com/blog/03/interprocess-communication-using-files-passing-fd/</link>
		<comments>https://www.emblogic.com/blog/03/interprocess-communication-using-files-passing-fd/#comments</comments>
		<pubDate>Sun, 01 Mar 2015 16:24:55 +0000</pubDate>
		<dc:creator><![CDATA[Vishal Dabas]]></dc:creator>
				<category><![CDATA[Project 03: Client Server Communication using Linux and IPC]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=12388</guid>
		<description><![CDATA[&#160; RCS file: new.c,v Working file: new.c head: 1.5 branch: locks: strict root: 1.5 access list: symbolic names: keyword substitution: kv total revisions: 5; selected revisions: 5 description: It is another process to which initial process will communicate ---------------------------- revision &#8230; <a href="https://www.emblogic.com/blog/03/interprocess-communication-using-files-passing-fd/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>&nbsp;</p>
<pre class="western">RCS file: new.c,v
Working file: new.c
head: 1.5
branch:
locks: strict
	root: 1.5
access list:
symbolic names:
keyword substitution: kv
total revisions: 5;	selected revisions: 5
description:
It is another process to which initial process will communicate
----------------------------
revision 1.5	locked by: root;
date: 2015/03/01 02:36:21;  author: root;  state: Exp;  lines: +1 -1
; is added
----------------------------
revision 1.4
date: 2015/03/01 02:34:13;  author: root;  state: Exp;  lines: +13 -0
Here the fd is collected using the command line arguments 
The fd is again converted into integer value using atoi()
----------------------------
revision 1.3
date: 2015/03/01 02:26:06;  author: root;  state: Exp;  lines: +1 -1
arguments passed from execl are now collected here using command line arguments in main()
----------------------------
revision 1.2
date: 2015/03/01 02:20:29;  author: root;  state: Exp;  lines: +1 -0
just printed the hello all.
----------------------------
revision 1.1
date: 2015/03/01 02:16:51;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: replacing.c,v
Working file: replacing.c
head: 1.6
branch:
locks: strict
	root: 1.6
access list:
symbolic names:
keyword substitution: kv
total revisions: 6;	selected revisions: 6
description:
It is a initial process which uses execl to communicate with the another process
----------------------------
revision 1.6	locked by: root;
date: 2015/03/01 02:35:40;  author: root;  state: Exp;  lines: +1 -0
&lt;fcntl.h&gt; is used for opening file
----------------------------
revision 1.5
date: 2015/03/01 02:32:35;  author: root;  state: Exp;  lines: +9 -2
Now i have opened a file whose file descriptor is passed as a second argument in execl
But before passing fd is converted into a string using sprintf()
----------------------------
revision 1.4
date: 2015/03/01 02:23:15;  author: root;  state: Exp;  lines: +2 -0
child process is killed using execl and the new process is created now which will communicate with the another process
The process created will use the PID of the child process. 
----------------------------
revision 1.3
date: 2015/03/01 02:21:19;  author: root;  state: Exp;  lines: +2 -2
changed the cases in switch statements
----------------------------
revision 1.2
date: 2015/03/01 02:19:43;  author: root;  state: Exp;  lines: +18 -1
created a child process using fork()
----------------------------
revision 1.1
date: 2015/03/01 02:16:51;  author: root;  state: Exp;
Initial revision
=============================================================================</pre>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/03/interprocess-communication-using-files-passing-fd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>c program to pause the process using system call &#8220;wait()&#8221;</title>
		<link>https://www.emblogic.com/blog/02/c-program-to-pause-the-process-using-system-call-wait/</link>
		<comments>https://www.emblogic.com/blog/02/c-program-to-pause-the-process-using-system-call-wait/#comments</comments>
		<pubDate>Wed, 25 Feb 2015 17:53:02 +0000</pubDate>
		<dc:creator><![CDATA[Vishal Dabas]]></dc:creator>
				<category><![CDATA[Project 03: Client Server Communication using Linux and IPC]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=12295</guid>
		<description><![CDATA[&#160; RCS file: header.h,v Working file: header.h head: 1.4 branch: locks: strict root: 1.4 access list: symbolic names: keyword substitution: kv total revisions: 4; selected revisions: 4 description: it includes all the header files ---------------------------- revision 1.4 locked by: root; &#8230; <a href="https://www.emblogic.com/blog/02/c-program-to-pause-the-process-using-system-call-wait/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>&nbsp;</p>
<pre class="western">RCS file: header.h,v
Working file: header.h
head: 1.4
branch:
locks: strict
	root: 1.4
access list:
symbolic names:
keyword substitution: kv
total revisions: 4;	selected revisions: 4
description:
it includes all the header files
----------------------------
revision 1.4	locked by: root;
date: 2015/02/25 17:38:38;  author: root;  state: Exp;  lines: +1 -0
&lt;wait.h&gt; is used to pause parent process using wait()
----------------------------
revision 1.3
date: 2015/02/25 17:23:47;  author: root;  state: Exp;  lines: +1 -0
&lt;stdlib.h&gt; is used for EXIT_FAILURE
----------------------------
revision 1.2
date: 2015/02/25 17:16:20;  author: root;  state: Exp;  lines: +1 -0
&lt;sys/types.h&gt; is used for variable f_ret whose datatype is pid_t
----------------------------
revision 1.1
date: 2015/02/25 17:14:14;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: wait.c,v
Working file: wait.c
head: 1.6
branch:
locks: strict
	root: 1.6
access list:
symbolic names:
keyword substitution: kv
total revisions: 6;	selected revisions: 6
description:
It is a program to pause the parent process using system call wait and to run the parent process again after the child process is finished
----------------------------
revision 1.6	locked by: root;
date: 2015/02/25 17:44:33;  author: root;  state: Exp;  lines: +4 -2
I have taken a int variable exit_code which will be returned by the exit to the location pointed by the wch contains the exit code and the PID of the last child process executed
----------------------------
revision 1.5
date: 2015/02/25 17:39:07;  author: root;  state: Exp;  lines: +19 -2
Previously parent process was terminating before the child process ...as a result there is no one to execute the termination section of the child process and the child is now an orphan child
so to overcome this i have used a system call wait in which the parent process is paused and the child process is initially finished and after that parent process is terminated .
So that the shell will not be hanged.
----------------------------
revision 1.4
date: 2015/02/25 17:29:31;  author: root;  state: Exp;  lines: +10 -0
Here i have declared a int variable n which have unique values for both parent and child process.
And i am running both the parent and child processes for the given value of n using for loop.
----------------------------
revision 1.3
date: 2015/02/25 17:24:10;  author: root;  state: Exp;  lines: +16 -0
Now i have taken 3 cases using switch statement 
First case is when f_ret is a negative value,it will print an error
Second case is when f_ret is zero , then it is a child process.
Else it is a parent process.
----------------------------
revision 1.2
date: 2015/02/25 17:17:08;  author: root;  state: Exp;  lines: +3 -0
Here i have declared a variable f_ret whose datatype is pid_t
After that i have created a child process using fork() 
Here fork is returning two values which will be copy on right in the f_ret
One value is for parent process and that value will be the PID of the child process.
Another value will be 0 when fork() is executed by the child process
----------------------------
revision 1.1
date: 2015/02/25 17:14:14;  author: root;  state: Exp;
Initial revision
=============================================================================</pre>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/02/c-program-to-pause-the-process-using-system-call-wait/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>master array created and calculated the code length using functions&#8230;</title>
		<link>https://www.emblogic.com/blog/02/master-array-created-and-calculated-the-code-length-using-functions/</link>
		<comments>https://www.emblogic.com/blog/02/master-array-created-and-calculated-the-code-length-using-functions/#comments</comments>
		<pubDate>Mon, 09 Feb 2015 17:39:57 +0000</pubDate>
		<dc:creator><![CDATA[Vishal Dabas]]></dc:creator>
				<category><![CDATA[Project 2: Multiple Data Compression and Encryption]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=12126</guid>
		<description><![CDATA[&#160; RCS file: header.h,v Working file: header.h head: 1.5 branch: locks: strict root: 1.5 access list: symbolic names: keyword substitution: kv total revisions: 5; selected revisions: 5 description: It includes all the header files. ---------------------------- revision 1.5 locked by: root; &#8230; <a href="https://www.emblogic.com/blog/02/master-array-created-and-calculated-the-code-length-using-functions/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>&nbsp;</p>
<pre class="western">RCS file: header.h,v
Working file: header.h
head: 1.5
branch:
locks: strict
	root: 1.5
access list:
symbolic names:
keyword substitution: kv
total revisions: 5;	selected revisions: 5
description:
It includes all the header files.
----------------------------
revision 1.5	locked by: root;
date: 2015/02/09 17:33:17;  author: root;  state: Exp;  lines: +2 -0
prototype for code_length() is provided.
----------------------------
revision 1.4
date: 2015/02/09 17:29:11;  author: root;  state: Exp;  lines: +1 -0
added string.h for strlen.
----------------------------
revision 1.3
date: 2015/02/09 17:27:27;  author: root;  state: Exp;  lines: +2 -0
prototype for master_array() is provided
----------------------------
revision 1.2
date: 2015/02/09 17:12:12;  author: root;  state: Exp;  lines: +2 -0
prototype of open_file() is provided.
----------------------------
revision 1.1
date: 2015/02/07 16:08:36;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: mdc.c,v
Working file: mdc.c
head: 1.12
branch:
locks: strict
	root: 1.12
access list:
symbolic names:
keyword substitution: kv
total revisions: 12;	selected revisions: 12
description:
It is a program for multiple data compression and encryption using iterative technique.
----------------------------
revision 1.12	locked by: root;
date: 2015/02/09 17:33:40;  author: root;  state: Exp;  lines: +21 -12
defined and called the function named code_length()
----------------------------
revision 1.11
date: 2015/02/09 17:30:03;  author: root;  state: Exp;  lines: +1 -0
string is ended using ''
----------------------------
revision 1.10
date: 2015/02/09 17:28:02;  author: root;  state: Exp;  lines: +52 -39
defined and called the master_array().
----------------------------
revision 1.9
date: 2015/02/09 17:13:20;  author: root;  state: Exp;  lines: +14 -7
defined and called the function open_file()
----------------------------
revision 1.8
date: 2015/02/07 16:30:36;  author: root;  state: Exp;  lines: +1 -1
printf() statement is updated for printing cl.
';' is added.
----------------------------
revision 1.7
date: 2015/02/07 16:29:55;  author: root;  state: Exp;  lines: +16 -1
Calculated the code length for the master array.
----------------------------
revision 1.6
date: 2015/02/07 16:25:20;  author: root;  state: Exp;  lines: +1 -0
for loop is closed using '}' which was not closed earlier.
----------------------------
revision 1.5
date: 2015/02/07 16:23:15;  author: root;  state: Exp;  lines: +24 -8
Each new character read from a file is compared with each character in ma to store only the unique characters in the master array.
----------------------------
revision 1.4
date: 2015/02/07 16:18:28;  author: root;  state: Exp;  lines: +1 -1
printf statement is updated for printing the ma .
----------------------------
revision 1.3
date: 2015/02/07 16:16:24;  author: root;  state: Exp;  lines: +18 -2
Now i have copied the content of a file in a array named ma.
Initially i have allocated a memory for a single character using malloc().
After that i have reallocated a new memory for each new character using realloc function.
----------------------------
revision 1.2
date: 2015/02/07 16:11:02;  author: root;  state: Exp;  lines: +13 -1
I have opened a file using open function and command line arguments.
Also i have read the characters one by one from a file using read function in while loop.
----------------------------
revision 1.1
date: 2015/02/07 16:08:36;  author: root;  state: Exp;
Initial revision
=============================================================================</pre>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/02/master-array-created-and-calculated-the-code-length-using-functions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>master array created and calculated the code length successfully.</title>
		<link>https://www.emblogic.com/blog/02/master-array-created-and-calculated-the-code-length-successfully/</link>
		<comments>https://www.emblogic.com/blog/02/master-array-created-and-calculated-the-code-length-successfully/#comments</comments>
		<pubDate>Sat, 07 Feb 2015 16:36:45 +0000</pubDate>
		<dc:creator><![CDATA[Vishal Dabas]]></dc:creator>
				<category><![CDATA[Project 2: Multiple Data Compression and Encryption]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=12101</guid>
		<description><![CDATA[&#160; RCS file: header.h,v Working file: header.h head: 1.1 branch: locks: strict root: 1.1 access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: It includes all the header files. ---------------------------- revision 1.1 locked by: root; &#8230; <a href="https://www.emblogic.com/blog/02/master-array-created-and-calculated-the-code-length-successfully/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>&nbsp;</p>
<pre class="western">RCS file: header.h,v
Working file: header.h
head: 1.1
branch:
locks: strict
	root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;	selected revisions: 1
description:
It includes all the header files.
----------------------------
revision 1.1	locked by: root;
date: 2015/02/07 16:08:36;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: mdc.c,v
Working file: mdc.c
head: 1.8
branch:
locks: strict
	root: 1.8
access list:
symbolic names:
keyword substitution: kv
total revisions: 8;	selected revisions: 8
description:
It is a program for multiple data compression and encryption using iterative technique.
----------------------------
revision 1.8	locked by: root;
date: 2015/02/07 16:30:36;  author: root;  state: Exp;  lines: +1 -1
printf() statement is updated for printing cl.
';' is added.
----------------------------
revision 1.7
date: 2015/02/07 16:29:55;  author: root;  state: Exp;  lines: +16 -1
Calculated the code length for the master array.
----------------------------
revision 1.6
date: 2015/02/07 16:25:20;  author: root;  state: Exp;  lines: +1 -0
for loop is closed using '}' which was not closed earlier.
----------------------------
revision 1.5
date: 2015/02/07 16:23:15;  author: root;  state: Exp;  lines: +24 -8
Each new character read from a file is compared with each character in ma to store only the unique characters in the master array.
----------------------------
revision 1.4
date: 2015/02/07 16:18:28;  author: root;  state: Exp;  lines: +1 -1
printf statement is updated for printing the ma .
----------------------------
revision 1.3
date: 2015/02/07 16:16:24;  author: root;  state: Exp;  lines: +18 -2
Now i have copied the content of a file in a array named ma.
Initially i have allocated a memory for a single character using malloc().
After that i have reallocated a new memory for each new character using realloc function.
----------------------------
revision 1.2
date: 2015/02/07 16:11:02;  author: root;  state: Exp;  lines: +13 -1
I have opened a file using open function and command line arguments.
Also i have read the characters one by one from a file using read function in while loop.
----------------------------
revision 1.1
date: 2015/02/07 16:08:36;  author: root;  state: Exp;
Initial revision
=============================================================================</pre>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/02/master-array-created-and-calculated-the-code-length-successfully/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Multiple data compression and encryption using iterative technique.</title>
		<link>https://www.emblogic.com/blog/02/multiple-data-compression-and-encryption-using-iterative-technique-3/</link>
		<comments>https://www.emblogic.com/blog/02/multiple-data-compression-and-encryption-using-iterative-technique-3/#comments</comments>
		<pubDate>Thu, 05 Feb 2015 18:47:38 +0000</pubDate>
		<dc:creator><![CDATA[Vishal Dabas]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=12052</guid>
		<description><![CDATA[&#160; RCS file: header.h,v Working file: header.h head: 1.1 branch: locks: strict root: 1.1 access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: It includes all the header files. ---------------------------- revision 1.1 locked by: root; &#8230; <a href="https://www.emblogic.com/blog/02/multiple-data-compression-and-encryption-using-iterative-technique-3/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>&nbsp;</p>
<pre class="western">RCS file: header.h,v
Working file: header.h
head: 1.1
branch:
locks: strict
	root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;	selected revisions: 1
description:
It includes all the header files.
----------------------------
revision 1.1	locked by: root;
date: 2015/02/05 18:21:25;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: mdc.c,v
Working file: mdc.c
head: 1.4
branch:
locks: strict
	root: 1.4
access list:
symbolic names:
keyword substitution: kv
total revisions: 4;	selected revisions: 4
description:
It is a program for multiple data compression and encryption using iterative technique.
----------------------------
revision 1.4	locked by: root;
date: 2015/02/05 18:32:29;  author: root;  state: Exp;  lines: +16 -1
Here i have created a master array in which i have copied the content of a file.
This array is created using the pointers.
Initially the memory is allocated using malloc for only the first character .
Then the memory for each new character is allocated using realloc.
----------------------------
revision 1.3
date: 2015/02/05 18:26:36;  author: root;  state: Exp;  lines: +12 -1
Read the characters one by one from a file using 'read' function.
For reading the characters one by one while loop is used in which only one character is read at a time and the loop will continue until all the characters are read from a file.
----------------------------
revision 1.2
date: 2015/02/05 18:24:10;  author: root;  state: Exp;  lines: +14 -2
Now i have opened a file in a read only mode using 'open' function and command line arguments.
----------------------------
revision 1.1
date: 2015/02/05 18:21:25;  author: root;  state: Exp;
Initial revision
=============================================================================</pre>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/02/multiple-data-compression-and-encryption-using-iterative-technique-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
