<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-12412</id>
	<title>Nabble - linux-c-programming</title>
	<updated>2009-10-09T08:12:58Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/linux-c-programming-f12412.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/linux-c-programming-f12412.html" />
	<subtitle type="html">The linux-c-programming is discussion forums for people interested about the C-language programming in Linux environment.</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-25822791</id>
	<title>Reading UTF16 input from STDIN using fgetws()</title>
	<published>2009-10-09T08:12:58Z</published>
	<updated>2009-10-09T08:12:58Z</updated>
	<author>
		<name>SriKrishna Erra</name>
	</author>
	<content type="html">Hi all,
&lt;br&gt;I am trying to read UTF16 input from STDIN using fgetws() on LINUX.
&lt;br&gt;&lt;br&gt;man pages of fgetws() says,
&lt;br&gt;fgetws() converts the input string from the encoding either specified by &amp;quot;LC_CTYPE&amp;quot; or specified in fopen() to wide character string.
&lt;br&gt;&lt;br&gt;My intention is to read UTF16 input from STDIN not from a file. For this i will not use any fopen() because &amp;nbsp;the input is direct from STDIN. 
&lt;br&gt;&lt;br&gt;So i will use direct &amp;quot;STDIN&amp;quot; in fgetws() like
&lt;br&gt;fgetws(buf,count,stdin);
&lt;br&gt;&lt;br&gt;As deault LC_CTYPE value is &amp;quot;utf-8&amp;quot; on linux (also on all unix flavours), fgetws() is treating the input as utf-8 and trying to convert to a wide character string.
&lt;br&gt;&lt;br&gt;My input contains UTF16 strings and it has &amp;quot;0xfeff&amp;quot; BOM as first character.
&lt;br&gt;As fgetws() treating the input is in utf-8, 0xfe(first byte of BOM) will be an invalid sequence in utf-8 and also 0xff (second byte of BOM) is an EOF. So fgetws() is returning nothing.
&lt;br&gt;&lt;br&gt;If i use fopen() then there will be no issues because i will pass the input ecnoding as parameter to fopen() like &amp;nbsp;fopen(&amp;quot;filename&amp;quot;,&amp;quot;r,ccs=UTF16-LE&amp;quot;);
&lt;br&gt;&lt;br&gt;With this fgetws() will treat the input as UTF16 and will convert the input from UTF16 to a wide character string.
&lt;br&gt;&lt;br&gt;So no issues with fopen().
&lt;br&gt;&lt;br&gt;But my requirement is input from STDIN.
&lt;br&gt;&lt;br&gt;Please let me know how to set the encoding &amp;quot;ccs=UTF-16LE&amp;quot; to STDIN so that fgetws() will consider the STDIN input in UTF16 form.
&lt;br&gt;&lt;br&gt;I have also tried fdopen() but no use. 
&lt;br&gt;fdopen(int fd,mode);
&lt;br&gt;&lt;br&gt;There is a requirement that the mode parameter vaues in fdopen() should be the same as of the one used in fopen().
&lt;br&gt;&lt;br&gt;But we are not at all using fopen() and the default encoding of STDIN is utf-8. 
&lt;br&gt;So when fdopen(fd,&amp;quot;ccs=utf-16le&amp;quot;); is used, it returns nothing as there is a mismatch in encodings i.e defualt of STDIN is utf-8 and fdopen is passing utf-16LE.
&lt;br&gt;&lt;br&gt;So please let me know how to change the encoding of STDIN i.e how to set encoding &amp;quot;ccs=UTF-16LE&amp;quot; to STDIN 
&lt;br&gt;&lt;br&gt;In windows, we hava _setmode() but in LINUX no such provision because LINUX will treat text &amp; Binary files as same.
&lt;br&gt;&lt;br&gt;Thanks in Advance.
&lt;br&gt;&lt;br&gt;regards,
&lt;br&gt;Srikrishna Erra.</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Reading-UTF16-input-from-STDIN-using-fgetws%28%29-tp25822791p25822791.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25820534</id>
	<title>Re: What compiler is doing when we pass unnecessary parameters in scanf</title>
	<published>2009-10-09T05:45:04Z</published>
	<updated>2009-10-09T05:45:04Z</updated>
	<author>
		<name>shiva kumar</name>
	</author>
	<content type="html">behavior of this is undefined just do man scanf
&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;RAM_LOCK wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;Hi,
&lt;br&gt;In the second scenario what value is it printing when i have given extra parameter in scanf?
&lt;br&gt;Does it vary from compiler to compiler?
&lt;br&gt;&lt;br&gt;Scenario : I
&lt;br&gt;-------------
&lt;br&gt;root@kaushik_Fedora11 ~/C/LET_US_C/ch-1&amp;gt; cat simple-interest.c
&lt;br&gt;#include &amp;lt;stdio.h&amp;gt;
&lt;br&gt;&lt;br&gt;void main ()
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int p;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; float i=0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf (&amp;quot;enter the principal amount\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; scanf (&amp;quot;%d&amp;quot;,&amp;p);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; i = (p*5*5)/100;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf (&amp;quot;Interterest is : %f\n&amp;quot;,i);
&lt;br&gt;}
&lt;br&gt;root@kaushik_Fedora11 ~/C/LET_US_C/ch-1&amp;gt; ./a.out
&lt;br&gt;enter the principal amount
&lt;br&gt;100
&lt;br&gt;Interterest is : 25.000000
&lt;br&gt;&lt;br&gt;&lt;br&gt;Scenario : II
&lt;br&gt;-------------
&lt;br&gt;&amp;gt; cat simple-interest.c
&lt;br&gt;#include &amp;lt;stdio.h&amp;gt;
&lt;br&gt;&lt;br&gt;void main ()
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int p;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; float i=0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf (&amp;quot;enter the principal amount\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; scanf (&amp;quot;p:%d&amp;quot;,&amp;p);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; i = (p*5*5)/100;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf (&amp;quot;Interterest is : %f\n&amp;quot;,i);
&lt;br&gt;}
&lt;br&gt;root@kaushik_Fedora11 ~/C/LET_US_C/ch-1&amp;gt; ./a.out
&lt;br&gt;enter the principal amount
&lt;br&gt;100
&lt;br&gt;Interterest is : -9321198.000000
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/What-compiler-is-doing-when-we-pass-unnecessary-parameters-in-scanf-tp24719839p25820534.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25820023</id>
	<title>Re: C program help</title>
	<published>2009-10-09T05:10:36Z</published>
	<updated>2009-10-09T05:10:36Z</updated>
	<author>
		<name>shiva kumar</name>
	</author>
	<content type="html">here is solution
&lt;br&gt;&amp;nbsp;
&lt;br&gt;#include &amp;lt;stdio.h&amp;gt;
&lt;br&gt;#include &amp;lt;stdlib.h&amp;gt;
&lt;br&gt;&lt;br&gt;int main()
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; int x;
&lt;br&gt;&amp;nbsp; &amp;nbsp; int answer;
&lt;br&gt;&amp;nbsp; &amp;nbsp; int right;
&lt;br&gt;&amp;nbsp; &amp;nbsp; int wrong;
&lt;br&gt;&amp;nbsp; &amp;nbsp; int righta[100];
&lt;br&gt;&amp;nbsp; &amp;nbsp; int wronga[100];
&lt;br&gt;&amp;nbsp; &amp;nbsp; int i;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; printf(&amp;quot;This is a program of sum\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; right = 0; /*Initialization of right value*/
&lt;br&gt;&amp;nbsp; &amp;nbsp; wrong = 0; /*Initialization of wrong value*/
&lt;br&gt;&amp;nbsp; &amp;nbsp; for(x = 1; x &amp;lt;= 10; x++)
&lt;br&gt;&amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;What is %d + %d: &amp;quot;, x, x);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; scanf(&amp;quot;%d&amp;quot;, &amp;answer);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;The sum is %d\n&amp;quot;, answer);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;\a&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(answer == x + x)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;printf(&amp;quot;%d is RIGHT answer\n&amp;quot;, answer);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;righta[right]=answer;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;right++; /*Saves and increases the amount of right answers*/
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;printf(&amp;quot;%d is WRONG answer\n&amp;quot;, answer);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;wronga[wrong] = answer;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;wrong++; /*Saves and increases th &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; righta[right]=0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; wronga[wrong]=0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; printf(&amp;quot;The right answers are %d and the wrong are %d\n&amp;quot;, right, wrong);
&lt;br&gt;&amp;nbsp; &amp;nbsp; printf(&amp;quot;The right answers are &amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; for(i=0;righta[i];i++){
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;%d\t&amp;quot;,righta[i]);
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; printf(&amp;quot;\nThe wrong answers are &amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; for(i=0;wronga[i];i++){
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;%d\t&amp;quot;,wronga[i]);
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; fflush(stdin);
&lt;br&gt;&amp;nbsp; &amp;nbsp; getchar();
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;e amount of wrong answers*/
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;printf(&amp;quot;The correct answer is %d\n&amp;quot;, x + x);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;spiros85 wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;Hi guys of dear forum!I am a new programmer in C programming language and i have a question for you about the following C code:
&lt;br&gt;#include &amp;lt;stdio.h&amp;gt;
&lt;br&gt;#include &amp;lt;stdlib.h&amp;gt;
&lt;br&gt;&lt;br&gt;int main()
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; int x;
&lt;br&gt;&amp;nbsp; &amp;nbsp; int answer;
&lt;br&gt;&amp;nbsp; &amp;nbsp; int right;
&lt;br&gt;&amp;nbsp; &amp;nbsp; int wrong;
&lt;br&gt;&amp;nbsp; &amp;nbsp; printf(&amp;quot;This is a program of sum\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; right = 0; /*Initialization of right value*/
&lt;br&gt;&amp;nbsp; &amp;nbsp; wrong = 0; /*Initialization of wrong value*/
&lt;br&gt;&amp;nbsp; &amp;nbsp; for(x = 1; x &amp;lt;= 10; x++)[QUOTE][/QUOTE]
&lt;br&gt;&amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;What is %d + %d: &amp;quot;, x, x);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; scanf(&amp;quot;%d&amp;quot;, &amp;answer);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;The sum is %d\n&amp;quot;, answer);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;\a&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(answer == x + x)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;printf(&amp;quot;%d is RIGHT answer\n&amp;quot;, answer);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;right++; /*Saves and increases the amount of right answers*/
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;printf(&amp;quot;%d is WRONG answer\n&amp;quot;, answer);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b[10] = answer;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;wrong++; /*Saves and increases the amount of wrong answers*/
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;printf(&amp;quot;The correct answer is %d\n&amp;quot;, x + x);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; printf(&amp;quot;The right answers are %d and the wrong are %d\n&amp;quot;, right, wrong);
&lt;br&gt;&amp;nbsp; &amp;nbsp; fflush(stdin);
&lt;br&gt;&amp;nbsp; &amp;nbsp; getchar();
&lt;br&gt;}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;First, I use DEV C++ compiler!This program asks from user to find the sum of 1+1,2+2 until for loop reaches 10.As you can observe with right++ and wrong++ i can define and print to the screen the amount of right or wrong numbers!
&lt;br&gt;My question is how could I define the number of correct and wrong numbers in collaboration with their amount?For example:
&lt;br&gt;The right answers are 8 and wrong are 2
&lt;br&gt;The right answers are 2 4 6 8 10 12 14 16
&lt;br&gt;The wrong answers are 22 44
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/C-program-help-tp25522429p25820023.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25802503</id>
	<title>Unicode to CP1252</title>
	<published>2009-10-08T04:48:13Z</published>
	<updated>2009-10-08T04:48:13Z</updated>
	<author>
		<name>tblue</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;&amp;nbsp;I need to convert a windows ANSI test file to unicode in Linux. Later the 
&lt;br&gt;data needs to be saved from Unicode to ANSI.
&lt;br&gt;&lt;br&gt;Can anyone recommend a function call that would allow me to achieve this. An example code showing how to use it would be a bonus.
&lt;br&gt;&lt;br&gt;Thankyou.
&lt;br&gt;Regards
&lt;br&gt;Blue.
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Unicode-to-CP1252-tp25802503p25802503.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25522429</id>
	<title>C program help</title>
	<published>2009-09-19T08:13:21Z</published>
	<updated>2009-09-19T08:13:21Z</updated>
	<author>
		<name>spiros85</name>
	</author>
	<content type="html">Hi guys of dear forum!I am a new programmer in C programming language and i have a question for you about the following C code:
&lt;br&gt;#include &amp;lt;stdio.h&amp;gt;
&lt;br&gt;#include &amp;lt;stdlib.h&amp;gt;
&lt;br&gt;&lt;br&gt;int main()
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; int x;
&lt;br&gt;&amp;nbsp; &amp;nbsp; int answer;
&lt;br&gt;&amp;nbsp; &amp;nbsp; int right;
&lt;br&gt;&amp;nbsp; &amp;nbsp; int wrong;
&lt;br&gt;&amp;nbsp; &amp;nbsp; printf(&amp;quot;This is a program of sum\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; right = 0; /*Initialization of right value*/
&lt;br&gt;&amp;nbsp; &amp;nbsp; wrong = 0; /*Initialization of wrong value*/
&lt;br&gt;&amp;nbsp; &amp;nbsp; for(x = 1; x &amp;lt;= 10; x++)[QUOTE][/QUOTE]
&lt;br&gt;&amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;What is %d + %d: &amp;quot;, x, x);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; scanf(&amp;quot;%d&amp;quot;, &amp;answer);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;The sum is %d\n&amp;quot;, answer);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;\a&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(answer == x + x)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;printf(&amp;quot;%d is RIGHT answer\n&amp;quot;, answer);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;right++; /*Saves and increases the amount of right answers*/
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;printf(&amp;quot;%d is WRONG answer\n&amp;quot;, answer);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b[10] = answer;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;wrong++; /*Saves and increases the amount of wrong answers*/
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;printf(&amp;quot;The correct answer is %d\n&amp;quot;, x + x);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; printf(&amp;quot;The right answers are %d and the wrong are %d\n&amp;quot;, right, wrong);
&lt;br&gt;&amp;nbsp; &amp;nbsp; fflush(stdin);
&lt;br&gt;&amp;nbsp; &amp;nbsp; getchar();
&lt;br&gt;}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;First, I use DEV C++ compiler!This program asks from user to find the sum of 1+1,2+2 until for loop reaches 10.As you can observe with right++ and wrong++ i can define and print to the screen the amount of right or wrong numbers!
&lt;br&gt;My question is how could I define the number of correct and wrong numbers in collaboration with their amount?For example:
&lt;br&gt;The right answers are 8 and wrong are 2
&lt;br&gt;The right answers are 2 4 6 8 10 12 14 16
&lt;br&gt;The wrong answers are 22 44</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/C-program-help-tp25522429p25522429.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-24743191</id>
	<title>how compiler decide the range of real numbers in C...</title>
	<published>2009-07-30T10:33:25Z</published>
	<updated>2009-07-30T10:33:25Z</updated>
	<author>
		<name>RAM_LOCK</name>
	</author>
	<content type="html">Say 16 bit compiler (for ex Turbo C) uses 2's compliment to find the range of signed integer.
&lt;br&gt;Say for 16 bit n=16. Now applying 2's compliment equation : -2^(n-1) &amp;nbsp;to 2^(n-1) -1
&lt;br&gt;so for n=16 : The range is -32768 to 32767
&lt;br&gt;&lt;br&gt;This is ok. The question arises when it tell about real constant's range.
&lt;br&gt;For 16 bit compiler the range of real constant is : -3.4e38 to 3.4e38
&lt;br&gt;&lt;br&gt;How they arrived to this real constant range?
&lt;br&gt;&lt;br&gt;Can any one share the mathematical calculation behind it?
&lt;br&gt;&lt;br&gt;thnx,
&lt;br&gt;RAM_LOCK
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/how-compiler-decide-the-range-of-real-numbers-in-C...-tp24743191p24743191.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-24719839</id>
	<title>What compiler is doing when we pass unnecessary parameters in scanf</title>
	<published>2009-07-29T07:18:47Z</published>
	<updated>2009-07-29T07:18:47Z</updated>
	<author>
		<name>RAM_LOCK</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;In the second scenario what value is it printing when i have given extra parameter in scanf?
&lt;br&gt;Does it vary from compiler to compiler?
&lt;br&gt;&lt;br&gt;Scenario : I
&lt;br&gt;-------------
&lt;br&gt;root@kaushik_Fedora11 ~/C/LET_US_C/ch-1&amp;gt; cat simple-interest.c
&lt;br&gt;#include &amp;lt;stdio.h&amp;gt;
&lt;br&gt;&lt;br&gt;void main ()
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int p;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; float i=0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf (&amp;quot;enter the principal amount\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; scanf (&amp;quot;%d&amp;quot;,&amp;p);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; i = (p*5*5)/100;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf (&amp;quot;Interterest is : %f\n&amp;quot;,i);
&lt;br&gt;}
&lt;br&gt;root@kaushik_Fedora11 ~/C/LET_US_C/ch-1&amp;gt; ./a.out
&lt;br&gt;enter the principal amount
&lt;br&gt;100
&lt;br&gt;Interterest is : 25.000000
&lt;br&gt;&lt;br&gt;&lt;br&gt;Scenario : II
&lt;br&gt;-------------
&lt;br&gt;&amp;gt; cat simple-interest.c
&lt;br&gt;#include &amp;lt;stdio.h&amp;gt;
&lt;br&gt;&lt;br&gt;void main ()
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int p;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; float i=0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf (&amp;quot;enter the principal amount\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; scanf (&amp;quot;p:%d&amp;quot;,&amp;p);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; i = (p*5*5)/100;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf (&amp;quot;Interterest is : %f\n&amp;quot;,i);
&lt;br&gt;}
&lt;br&gt;root@kaushik_Fedora11 ~/C/LET_US_C/ch-1&amp;gt; ./a.out
&lt;br&gt;enter the principal amount
&lt;br&gt;100
&lt;br&gt;Interterest is : -9321198.000000
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/What-compiler-is-doing-when-we-pass-unnecessary-parameters-in-scanf-tp24719839p24719839.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-24719837</id>
	<title>What compiler is doing when we pass unnecessary parameters in scanf</title>
	<published>2009-07-29T07:18:25Z</published>
	<updated>2009-07-29T07:18:25Z</updated>
	<author>
		<name>RAM_LOCK</name>
	</author>
	<content type="html">Hi,
In the second scenario what value is it printing when i have given extra parameter in scanf?
Does it vary from compiler to compiler?

Scenario : I
-------------
root@kaushik_Fedora11 ~/C/LET_US_C/ch-1&gt; cat simple-interest.c
#include &lt;stdio.h&gt;

void main ()
{
        int p;
        float i=0;
        printf (&quot;enter the principal amount\n&quot;);
        scanf (&quot;%d&quot;,&amp;p);
        i = (p*5*5)/100;
        printf (&quot;Interterest is : %f\n&quot;,i);
}
root@kaushik_Fedora11 ~/C/LET_US_C/ch-1&gt; ./a.out
enter the principal amount
100
Interterest is : 25.000000


Scenario : II
-------------
&gt; cat simple-interest.c
#include &lt;stdio.h&gt;

void main ()
{
        int p;
        float i=0;
        printf (&quot;enter the principal amount\n&quot;);
        scanf (&quot;p:%d&quot;,&amp;p);
        i = (p*5*5)/100;
        printf (&quot;Interterest is : %f\n&quot;,i);
}
root@kaushik_Fedora11 ~/C/LET_US_C/ch-1&gt; ./a.out
enter the principal amount
100
Interterest is : -9321198.000000
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/What-compiler-is-doing-when-we-pass-unnecessary-parameters-in-scanf-tp24719837p24719837.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-22889771</id>
	<title>[JOB] C/C++ Linux Developers, NYC - Relo OK | 90-150k</title>
	<published>2009-04-04T19:12:52Z</published>
	<updated>2009-04-04T19:12:52Z</updated>
	<author>
		<name>OSS</name>
	</author>
	<content type="html">I'm recruiting C/C++/Linux Developers for a NYC client. &amp;nbsp;Successful candidates: 
&lt;br&gt;&lt;br&gt;* will be around 5 years out of school 
&lt;br&gt;* have a Bachelors at least in CS/Eng from a top university 
&lt;br&gt;* do NOT have financial industry experience 
&lt;br&gt;* have fluency in C/C++, stl, pthreads, shared memory, networking and
&lt;br&gt;everything UNIX 
&lt;br&gt;* have at least 3-5 years engineering solutions and writing code 
&lt;br&gt;&lt;br&gt;Competitive salaries and generous performance driven bonuses (20-50%) as well as full benefits and a slew of other plusses come along with these positions. &amp;nbsp;
&lt;br&gt;&lt;br&gt;Local candidates preferred, but all considered. &amp;nbsp;Relocation packages available. &amp;nbsp;
&lt;br&gt;&lt;br&gt;If you are interested in this opportunity and are a US Citizen, green card holder or exceptional H1B, please submit your resume and salary requirements to beau at open-source-staffing.com 
&lt;br&gt;&lt;br&gt;Thank you, 
&lt;br&gt;Beau J. Gould 
&lt;br&gt;&amp;nbsp;
&lt;br&gt;Open Source Staffing 
&lt;br&gt;www.open-source-staffing.com 
&lt;br&gt;beau at open-source-staffing.com 
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-JOB--C-C%2B%2B-Linux-Developers%2C-NYC---Relo-OK-%7C-90-150k-tp22889771p22889771.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-18501119</id>
	<title>malloc interposition how?</title>
	<published>2008-07-16T20:55:19Z</published>
	<updated>2008-07-16T20:55:19Z</updated>
	<author>
		<name>bkerin</name>
	</author>
	<content type="html">I'm trying to do these things simultaneously:
&lt;br&gt;&lt;br&gt;use glib
&lt;br&gt;use gc (Hans-Boehm)
&lt;br&gt;use my own library of random code
&lt;br&gt;&lt;br&gt;I dont want to have to do manual garbage collection at least in the prototype stage.
&lt;br&gt;&lt;br&gt;However, I haven't found a way to link the above together that works.
&lt;br&gt;&lt;br&gt;I use the set_vtable function in glib to hopefully make it use the GC_malloc etc. from gc
&lt;br&gt;&lt;br&gt;I include fcnts malloc/free/realloc in my library and the compiler/linker doesn't complain
&lt;br&gt;(presumably libc contains some special goop to not complain about these getting redefined
&lt;br&gt;in client code). &amp;nbsp;My malloc etc. of course just call GC_* fctns.
&lt;br&gt;&lt;br&gt;I believe I have all the right -I -L -Wl,-rpath etc. crud.
&lt;br&gt;&lt;br&gt;When I look at bins and my .so file with ldd everything appears to look for the correct libraries.
&lt;br&gt;&lt;br&gt;When I use nm on my .so I see symbols like malloc supposedly in the text secion (marked with T).
&lt;br&gt;&lt;br&gt;When I step with the debugger and a breakpoint in malloc (or realloc etc.) I always end up in the malloc
&lt;br&gt;in my library, not the system malloc.
&lt;br&gt;&lt;br&gt;And yet, the program always seg faults eventually in a GC_malloc.
&lt;br&gt;&lt;br&gt;Any ideas what I'm missing, or is the whole approach somehow fatally flawed?
&lt;br&gt;&lt;br&gt;I've also tried using --wrap linker option, but it seemed to only map function defined in the source files being linked and
&lt;br&gt;didn't affect the use of malloc etc. by depended-on libraries (I ultimately need this to work for gsl (GNU scientific library as well not only glib which provides the set_vtable functionality).
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Britton</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/malloc-interposition-how--tp18501119p18501119.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-17979185</id>
	<title>Shared Memory using threads in C on AIX</title>
	<published>2008-06-18T02:59:35Z</published>
	<updated>2008-06-18T02:59:35Z</updated>
	<author>
		<name>kumars</name>
	</author>
	<content type="html">I am looking for C program source code. Could you please help me in finding the source code of the required mentioned below.
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;Task that I need to complete:
&lt;br&gt;&lt;br&gt;Write a program to create multiple threads (one master thread and rest worker threads) and using the threads write into and read from shared memory
&lt;br&gt;&lt;br&gt;&lt;br&gt;Restrictions:
&lt;br&gt;&lt;br&gt;Only one thread should be able to read at any instant of time into shared memory region.
&lt;br&gt;&lt;br&gt;Only one thread should be able to write at any instant of time into shared memory region.
&lt;br&gt;&lt;br&gt;Worker threads should inform the master thread after every read and write operation.
&lt;br&gt;&lt;br&gt;Master thread inform the worker thread (which is waiting to acquire shared memory region) that read or write operation is successful and it can acquire the memory for either reading and writing operations.
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Shared-Memory-using-threads-in-C-on-AIX-tp17979185p17979185.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-17490027</id>
	<title>how to call Functions implemented in other file?</title>
	<published>2008-05-27T06:06:24Z</published>
	<updated>2008-05-27T06:06:24Z</updated>
	<author>
		<name>houanito</name>
	</author>
	<content type="html">hello!
&lt;br&gt;&lt;br&gt;i have a problem using gcc c Complier in Unix.
&lt;br&gt;I want to use a function which is implemented in a file in another path.This function is &amp;nbsp;written by the distirbuters of the system and so the system uses this function.But i want to use that in order to do one part of my homework.
&lt;br&gt;Because the file that contains this function is *.c and not *.h, adding #include *.c to my code,generates problem..
&lt;br&gt;&lt;br&gt;any help??thanks!</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/how-to-call-Functions-implemented-in-other-file--tp17490027p17490027.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-12766829</id>
	<title>NAN and complex.h</title>
	<published>2007-09-18T15:52:08Z</published>
	<updated>2007-09-18T15:52:08Z</updated>
	<author>
		<name>TOMAZ</name>
	</author>
	<content type="html">Hi I made a program which basically averages data from a file. The data is stored as complex float and I'm reading it with fread with no problem. Some data are taged as NAN (at least ENVI, an image procesing soft read these values as NAN). If I average the whole data adding a number with a NAN gives me a NAN and my whole program fails.
&lt;br&gt;&lt;br&gt;What I did is the folowing which doesn't seems to work:
&lt;br&gt;&lt;br&gt;if(cabsf(zhhzhh)!= NAN)
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; printf(&amp;quot;%f\n&amp;quot;, cabsf(zhhzhh));
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;For some reason the test seeams to be positive all the time, I keep printing NAN's (&amp;quot;nan&amp;quot; actualy).
&lt;br&gt;&lt;br&gt;Any idea?
&lt;br&gt;&lt;br&gt;&amp;nbsp; Tomas
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/NAN-and-complex.h-tp12766829p12766829.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-11922382</id>
	<title>programming using system calls</title>
	<published>2007-07-31T05:27:13Z</published>
	<updated>2007-07-31T05:27:13Z</updated>
	<author>
		<name>nisa</name>
	</author>
	<content type="html">hi,
&lt;br&gt;i am quite new to programming using system calls and would like a basic idea regarding the usage of system calls.
&lt;br&gt;i would like assistance in the following area of c programming in linux:
&lt;br&gt;1.how to open a text file ,read data and print the data on console using system calls
&lt;br&gt;2.create a text file and write some data
&lt;br&gt;3.read data from a file and append that data to another file using lseek()
&lt;br&gt;4.creation of a parent and child process using fork()
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/programming-using-system-calls-tp11922382p11922382.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-11445958</id>
	<title>C/C++ File Parser</title>
	<published>2007-07-05T06:57:46Z</published>
	<updated>2007-07-05T06:57:46Z</updated>
	<author>
		<name>mudassir</name>
	</author>
	<content type="html">Hi All,
&lt;br&gt;&lt;br&gt;I am in search of a snippet that could parse a C/C++ source file and
&lt;br&gt;give out as output different information on it. For example
&lt;br&gt;&lt;br&gt;1. Signature of function defined in a file.
&lt;br&gt;2. Name of Global Variables declared.
&lt;br&gt;3. Files dependencies..(#include).
&lt;br&gt;&lt;br&gt;Can you help?
&lt;br&gt;&lt;br&gt;thanks,
&lt;br&gt;mudassir. </content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/C-C%2B%2B-File-Parser-tp11445958p11445958.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-8373622</id>
	<title>Re: Autoloading modules after socket calls.</title>
	<published>2007-01-15T07:43:07Z</published>
	<updated>2007-01-15T07:43:07Z</updated>
	<author>
		<name>Steve Graegert</name>
	</author>
	<content type="html">On 1/15/07, Jonathan Walsh &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=8373622&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jwalsh@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I am not sure how used this list is, but it seemed like a good place to
&lt;br&gt;&amp;gt; ask this sort of question. &amp;nbsp;I was wondering if there is a way to have
&lt;br&gt;&amp;gt; the kernel autoload a module on a failed call to something that requires
&lt;br&gt;&amp;gt; it. &amp;nbsp;For example if I have sctp compiled as a module, but not inserted,
&lt;br&gt;&amp;gt; and I make a call to socket() requesting a IPPROTO_SCTP socket it will
&lt;br&gt;&amp;gt; fail with EPROTONOSUPPORT. &amp;nbsp;Is there a way in some sort of kernel
&lt;br&gt;&amp;gt; configuration of specifying that the sctp module should be swapped in at
&lt;br&gt;&amp;gt; this point? &amp;nbsp;I could write code to pick up this error and insert the
&lt;br&gt;&amp;gt; module myself, but I was hoping for a way for the kernel to
&lt;br&gt;&amp;gt; automatically do it for me.
&lt;/div&gt;&lt;br&gt;Jonathan,
&lt;br&gt;&lt;br&gt;maybe &amp;quot;kmod&amp;quot; is what you're looking for. &amp;nbsp;kmod performs background
&lt;br&gt;monitoring and makes sure the required modules are loaded by modprobe
&lt;br&gt;as soon as the respective functionality is needed in the kernel, but
&lt;br&gt;it is not designed to unload modules automatically.
&lt;br&gt;&lt;br&gt;Simply activate the option 'Kernel module loader' &amp;nbsp;(CONFIG_KMOD) in
&lt;br&gt;the kernel configuration. &amp;nbsp;It is available for both Kernel versions
&lt;br&gt;2.4 and 2.6, respectively.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;\Steve
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;Steve Graegert &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=8373622&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;steve@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Jabber &amp;nbsp; &amp;nbsp;xmpp://&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=8373622&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;graegerts@...&lt;/a&gt;
&lt;br&gt;Internet &amp;nbsp;&lt;a href=&quot;http://eth0.graegert.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://eth0.graegert.com&lt;/a&gt;, &lt;a href=&quot;http://blog.graegert.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://blog.graegert.com&lt;/a&gt;&lt;br&gt;-
&lt;br&gt;To unsubscribe from this list: send the line &amp;quot;unsubscribe linux-c-programming&amp;quot; in
&lt;br&gt;the body of a message to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=8373622&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt;
&lt;br&gt;More majordomo info at &amp;nbsp;&lt;a href=&quot;http://vger.kernel.org/majordomo-info.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://vger.kernel.org/majordomo-info.html&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Autoloading-modules-after-socket-calls.-tp8373272p8373622.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-8373272</id>
	<title>Autoloading modules after socket calls.</title>
	<published>2007-01-15T07:01:26Z</published>
	<updated>2007-01-15T07:01:26Z</updated>
	<author>
		<name>Jonathan Walsh</name>
	</author>
	<content type="html">I am not sure how used this list is, but it seemed like a good place to 
&lt;br&gt;ask this sort of question. &amp;nbsp;I was wondering if there is a way to have 
&lt;br&gt;the kernel autoload a module on a failed call to something that requires 
&lt;br&gt;it. &amp;nbsp;For example if I have sctp compiled as a module, but not inserted, 
&lt;br&gt;and I make a call to socket() requesting a IPPROTO_SCTP socket it will 
&lt;br&gt;fail with EPROTONOSUPPORT. &amp;nbsp;Is there a way in some sort of kernel 
&lt;br&gt;configuration of specifying that the sctp module should be swapped in at 
&lt;br&gt;this point? &amp;nbsp;I could write code to pick up this error and insert the 
&lt;br&gt;module myself, but I was hoping for a way for the kernel to 
&lt;br&gt;automatically do it for me.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&lt;br&gt;Jonathan Walsh
&lt;br&gt;Associate Member Engineering Staff
&lt;br&gt;Lockheed Martin Advanced Technology Laboratories
&lt;br&gt;-
&lt;br&gt;To unsubscribe from this list: send the line &amp;quot;unsubscribe linux-c-programming&amp;quot; in
&lt;br&gt;the body of a message to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=8373272&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt;
&lt;br&gt;More majordomo info at &amp;nbsp;&lt;a href=&quot;http://vger.kernel.org/majordomo-info.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://vger.kernel.org/majordomo-info.html&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Autoloading-modules-after-socket-calls.-tp8373272p8373272.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-7991475</id>
	<title>Re: Message queue</title>
	<published>2006-12-20T06:45:33Z</published>
	<updated>2006-12-20T06:45:33Z</updated>
	<author>
		<name>Glynn Clements</name>
	</author>
	<content type="html">&lt;br&gt;Prasanta Sadhukhan wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; I was trying to use the message queue implementation of linux through a 
&lt;br&gt;&amp;gt; simple client/server program.
&lt;br&gt;&amp;gt; The client will get text from stdin and send to server through message 
&lt;br&gt;&amp;gt; queue and server will convert to upper case and resend to back to client
&lt;br&gt;&amp;gt; Attached is the client and server program I used
&lt;br&gt;&amp;gt; However, while sending in client and receiving in server, I am getting 
&lt;br&gt;&amp;gt; errno as 13(EACCESS). Can anyone tell me what I need to do extra?
&lt;br&gt;&lt;br&gt;For a start, the side which creates the message queue (probably the
&lt;br&gt;server) needs to set the permissions, e.g.:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #include &amp;lt;sys/stat.h&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ...
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; toinput_id=msgget(key_out, IPC_CREAT|S_IRUSR|S_IWUSR);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ...
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tooutput_id=msgget(key_in, IPC_CREAT|S_IRUSR|S_IWUSR);
&lt;br&gt;&lt;br&gt;Otherwise, access will be refused, hence EACCESS.
&lt;br&gt;&lt;br&gt;Some other issues:
&lt;br&gt;&lt;br&gt;The third argument to msgrcv() needs to be the size of the buffer,
&lt;br&gt;e.g. sizeof(text) not strlen(text).
&lt;br&gt;&lt;br&gt;The return value from main should be non-negative, zero for success
&lt;br&gt;and greater than zero for failure. In practice, a value of -1 will
&lt;br&gt;typically result in an exit code of 255 due to being truncated to 8
&lt;br&gt;bits.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Glynn Clements &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=7991475&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;glynn@...&lt;/a&gt;&amp;gt;
&lt;br&gt;-
&lt;br&gt;To unsubscribe from this list: send the line &amp;quot;unsubscribe linux-c-programming&amp;quot; in
&lt;br&gt;the body of a message to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=7991475&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt;
&lt;br&gt;More majordomo info at &amp;nbsp;&lt;a href=&quot;http://vger.kernel.org/majordomo-info.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://vger.kernel.org/majordomo-info.html&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Message-queue-tp7988418p7991475.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-7988418</id>
	<title>Message queue</title>
	<published>2006-12-20T03:10:01Z</published>
	<updated>2006-12-20T03:10:01Z</updated>
	<author>
		<name>Prasanta Sadhukhan</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I was trying to use the message queue implementation of linux through a 
&lt;br&gt;simple client/server program.
&lt;br&gt;The client will get text from stdin and send to server through message 
&lt;br&gt;queue and server will convert to upper case and resend to back to client
&lt;br&gt;Attached is the client and server program I used
&lt;br&gt;However, while sending in client and receiving in server, I am getting 
&lt;br&gt;errno as 13(EACCESS). Can anyone tell me what I need to do extra?
&lt;br&gt;&lt;br&gt;Regards
&lt;br&gt;Prasanta
&lt;br&gt;&lt;br /&gt;#include &amp;lt;stdio.h&amp;gt;
&lt;br&gt;#include &amp;lt;sys/types.h&amp;gt;
&lt;br&gt;#include &amp;lt;sys/errno.h&amp;gt;
&lt;br&gt;#include &amp;lt;sys/ipc.h&amp;gt;
&lt;br&gt;#include &amp;lt;sys/msg.h&amp;gt;
&lt;br&gt;#include &amp;lt;signal.h&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;#define key_in 1234
&lt;br&gt;#define key_out 4321
&lt;br&gt;#define size 1024
&lt;br&gt;&lt;br&gt;static int input_id;
&lt;br&gt;static int output_id;
&lt;br&gt;static int send_id;
&lt;br&gt;static int receive_id;
&lt;br&gt;&lt;br&gt;void term()
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;Strg+c...sending quit to msq\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; msgsnd(output_id,&amp;quot;quit&amp;quot;,strlen(&amp;quot;quit&amp;quot;),0);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; msgctl(output_id,IPC_RMID,0);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; exit(0);
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;int main(int argc, char *argv[])
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int n;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; char outtext[size];
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; char intext[size];
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; signal(SIGINT,term);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; input_id=msgget(key_in,IPC_CREAT);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; output_id=msgget(key_out,IPC_CREAT);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (input_id == -1)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;input msgget failed ....%d\n&amp;quot;,errno);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return -1;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (output_id == -1)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;output msgget failed ....\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return -1;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; while(1)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fgets(outtext, 10, stdin);	
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;output text %s\n&amp;quot;, outtext);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; send_id=msgsnd(output_id,outtext,strlen(outtext),0);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (send_id &amp;lt; 0)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 	{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 	printf(&amp;quot;msg snd failed ...%d\n&amp;quot;,errno);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return -1;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 	}
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (strcmp(outtext,&amp;quot;quit&amp;quot;) == 0)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;&amp;lt;&amp;lt;exiting&amp;gt;&amp;gt;\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; msgctl(output_id,IPC_RMID,0);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return 0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; receive_id=msgrcv(input_id,intext,strlen(intext),0,0);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(receive_id &amp;lt; 0)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 	{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 	printf(&amp;quot;msgrcv failed ...\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return -1;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 	}
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fprintf(&amp;quot;input text %s\n&amp;quot;, intext);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;}
&lt;br&gt;&lt;br /&gt;#include &amp;lt;stdio.h&amp;gt;
&lt;br&gt;#include &amp;lt;sys/types.h&amp;gt;
&lt;br&gt;#include &amp;lt;sys/errno.h&amp;gt;
&lt;br&gt;#include &amp;lt;sys/ipc.h&amp;gt;
&lt;br&gt;#include &amp;lt;sys/msg.h&amp;gt;
&lt;br&gt;#include &amp;lt;signal.h&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;#define key_in 1234
&lt;br&gt;#define key_out 4321
&lt;br&gt;#define size 1024
&lt;br&gt;static int send_id;
&lt;br&gt;static int receive_id;
&lt;br&gt;&lt;br&gt;int main()
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int n,tooutput_id,toinput_id,receive_id,send_id;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; char text[size];
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //key_out as input as this is the msgq where client will send its output
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; toinput_id=msgget(key_out, IPC_CREAT);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (toinput_id == -1)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;input msgget failed ...\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return -1;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tooutput_id=msgget(key_in, IPC_CREAT);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (tooutput_id == -1)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;output msgq failed ...\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return -1;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;Server ...\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; while(1)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; receive_id = msgrcv(toinput_id,text,strlen(text),0,0);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(receive_id &amp;lt; 0)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;msgrcv failed ...%d\n&amp;quot;, errno);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 	 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return -1;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(strcmp(text,&amp;quot;quit&amp;quot;)==0)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; msgsnd(tooutput_id,text,strlen(text),0);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;&amp;lt;&amp;lt;exiting&amp;gt;&amp;gt;\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; msgctl(toinput_id,IPC_RMID,0);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; msgctl(tooutput_id,IPC_RMID,0);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return 0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; puts(text);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (n=0;n&amp;lt;strlen(text);n++)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; text[n]=toupper(text[n]);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;Changed to: &amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; puts(text);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;Server output text %s\n&amp;quot;, text);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; send_id = msgsnd(tooutput_id,text,strlen(text),0);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(send_id &amp;lt; 0)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;msgsend failed ...\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 	 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return -1;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return 0;
&lt;br&gt;}
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Message-queue-tp7988418p7988418.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-7829101</id>
	<title>change your size from S to XL</title>
	<published>2006-12-12T00:17:59Z</published>
	<updated>2006-12-12T00:17:59Z</updated>
	<author>
		<name>Gowell Kylie</name>
	</author>
	<content type="html">hello buddy
&lt;br&gt;&lt;br&gt;I don't care why your sausage is so small,
&lt;br&gt;but 72% of women do. They are pretty sure
&lt;br&gt;that bigger weenie will make their
&lt;br&gt;desire stronger.
&lt;br&gt;&lt;br&gt;You have the chance to change your life.
&lt;br&gt;&lt;br&gt;Here &lt;a href=&quot;http://www.roister.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.roister.net&lt;/a&gt;&amp;nbsp;you can get it.
&lt;br&gt;&lt;br&gt;It will help you for sure. The remedy can be sent worldwide.
&lt;br&gt;If you wont be satisfied - we will return all you money.
&lt;br&gt;No bullshit.
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;gkhjdgjnsdgflskjwetdg nrsmsksirqrmtsphtuqiqlpppgqkpopjpmphphppntqoqmqjpfusquqfpjqoqsqkujqjptqp
&lt;br&gt;&lt;br&gt;strangely complex &amp;nbsp;design, &amp;nbsp;lamps &amp;nbsp;with &amp;nbsp;shiny, bulbous &amp;nbsp;shades, &amp;nbsp;a &amp;nbsp;mass of
&lt;br&gt;phials, &amp;nbsp;bunsen &amp;nbsp;burners, electric &amp;nbsp;cables and &amp;nbsp;various &amp;nbsp;totally &amp;nbsp;mysterious
&lt;br&gt;pieces of apparatus.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Three people came into the room to see Ivan, two women and one man, all
&lt;br&gt;in &amp;nbsp;white. They began by taking Ivan to a desk &amp;nbsp;in the corner to interrogate
&lt;br&gt;him.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Ivan &amp;nbsp;considered the situation. He &amp;nbsp;had a choice of &amp;nbsp;three courses. The
&lt;br&gt;first &amp;nbsp;was &amp;nbsp;extremely &amp;nbsp;tempting--to hurl himself &amp;nbsp;at these &amp;nbsp;lamps &amp;nbsp;and other
&lt;br&gt;ingenious gadgets and smash them &amp;nbsp;all to &amp;nbsp;pieces as a &amp;nbsp;way of expressing his
&lt;br&gt;protest at being locked up for nothing. But today's &amp;nbsp;Ivan &amp;nbsp;was significantly
&lt;br&gt;&lt;br&gt;&lt;br&gt;-
&lt;br&gt;To unsubscribe from this list: send the line &amp;quot;unsubscribe linux-c-programming&amp;quot; in
&lt;br&gt;the body of a message to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=7829101&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt;
&lt;br&gt;More majordomo info at &amp;nbsp;&lt;a href=&quot;http://vger.kernel.org/majordomo-info.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://vger.kernel.org/majordomo-info.html&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/change-your-size-from-S-to-XL-tp7829101p7829101.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-7779950</id>
	<title>Greet Man, your ramrod is really small</title>
	<published>2006-12-10T00:00:16Z</published>
	<updated>2006-12-10T00:00:16Z</updated>
	<author>
		<name>Smith Christy</name>
	</author>
	<content type="html">Salute Dude
&lt;br&gt;&lt;br&gt;I don't care why your sausage is so small, but 78% of women do.
&lt;br&gt;They are pretty sure that bigger weenie will make their desire
&lt;br&gt;stronger. You have the chance to change your life.
&lt;br&gt;&lt;br&gt;Here &lt;a href=&quot;http://lustily.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lustily.net&lt;/a&gt;&amp;nbsp;you can get the thing.
&lt;br&gt;&lt;br&gt;It will help you for sure.
&lt;br&gt;The remedy can be sent worldwide.
&lt;br&gt;If you wont be satisfied - we will return all you money.
&lt;br&gt;No bullshit.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;elkgdlgkhjghbjwerijgg njsusssqriruokspomrqrtshsorspgprpuppppphnlqgpuprqntkpmpnqrpgqkqsurqrplqh
&lt;br&gt;&lt;br&gt;shoulders.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Grinning stupidly, the &amp;nbsp;barman &amp;nbsp;got up from his stool. ' B-b-but . . .'
&lt;br&gt;he stammered, hiccupping, ' if they vanish again . . . what then? '
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;'H'm,' said the &amp;nbsp;professor thoughtfully. &amp;nbsp;' In that case come back and
&lt;br&gt;see us. Delighted to have met you. . . .'
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;At this Koroviev leaped out of the study, clasped the barman's hand and
&lt;br&gt;shook it violently as he begged Andrei Fokich to give his kindest regards to
&lt;br&gt;everybody &amp;nbsp;at the theatre. Bewildered, Andrei &amp;nbsp;Fokich stumbled out &amp;nbsp;into the
&lt;br&gt;hall. ' Hella, see him out! ' shouted Koroviev. The same naked girl appeared
&lt;br&gt;in the hall. The barman staggered out, just able to squeak &amp;nbsp;' Goodbye ', and
&lt;br&gt;&lt;br&gt;&lt;br&gt;-
&lt;br&gt;To unsubscribe from this list: send the line &amp;quot;unsubscribe linux-c-programming&amp;quot; in
&lt;br&gt;the body of a message to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=7779950&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt;
&lt;br&gt;More majordomo info at &amp;nbsp;&lt;a href=&quot;http://vger.kernel.org/majordomo-info.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://vger.kernel.org/majordomo-info.html&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Greet-Man%2C-your-ramrod-is-really-small-tp7779950p7779950.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-7752856</id>
	<title>From me with hope</title>
	<published>2006-12-07T21:05:10Z</published>
	<updated>2006-12-07T21:05:10Z</updated>
	<author>
		<name>Valya-10</name>
	</author>
	<content type="html">Hi, Gentleman!
&lt;br&gt;&lt;br&gt;I am writing to you because I can't be lonely any more... Recently
&lt;br&gt;I understood that I can't breathe freely because I don't have a loving
&lt;br&gt;man near me who will support and protect me every day and to who I
&lt;br&gt;will present all the love and tenderness I have!
&lt;br&gt;With me you will see coziness and comfort in your house, you will feel
&lt;br&gt;love and care every day... I want to be the best wife... Let's
&lt;br&gt;correspond... If you wish to, please see me here &lt;a href=&quot;http://loveonlyme.com/goodforlove&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://loveonlyme.com/goodforlove&lt;/a&gt;&lt;br&gt;&lt;br&gt;Waiting for your reply:)
&lt;br&gt;&lt;br&gt;Valyusha
&lt;br&gt;&lt;br&gt;&lt;br&gt;-
&lt;br&gt;To unsubscribe from this list: send the line &amp;quot;unsubscribe linux-c-programming&amp;quot; in
&lt;br&gt;the body of a message to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=7752856&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt;
&lt;br&gt;More majordomo info at &amp;nbsp;&lt;a href=&quot;http://vger.kernel.org/majordomo-info.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://vger.kernel.org/majordomo-info.html&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/From-me-with-hope-tp7752856p7752856.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-7722033</id>
	<title>More Size More Pleasure</title>
	<published>2006-12-06T07:56:28Z</published>
	<updated>2006-12-06T07:56:28Z</updated>
	<author>
		<name>Doncheva Come</name>
	</author>
	<content type="html">greet buddy
&lt;br&gt;&lt;br&gt;Don't tell me why your woody is so small,
&lt;br&gt;I will better help you to make it really Bigger!
&lt;br&gt;&lt;br&gt;Why bigger? Because over 72% of all women need a longer
&lt;br&gt;thing to satisfy their desire!
&lt;br&gt;&lt;br&gt;Go there and get your solution: &lt;a href=&quot;http://www.mumbled.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.mumbled.net&lt;/a&gt;&lt;br&gt;&lt;br&gt;It'll really help you!
&lt;br&gt;&lt;br&gt;We will ship it worldwide within 24 hours, and if
&lt;br&gt;you find our product useless - we'll refund all your money!
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;nfsqsgsmruriogstoiruqhptpkqgpkpnpqptplptnpqspqpnqrtgqqqjpfqsqgqounqnppqt
&lt;br&gt;gndjknsdjdhfsweet
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;'You swine! . . . You swine! . . . '
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;A buzzing &amp;nbsp;crowd collected, discussing &amp;nbsp;the incredible scene. It was of
&lt;br&gt;course an &amp;nbsp;abominable, &amp;nbsp;disgusting, thrilling, &amp;nbsp;revolting scandal which only
&lt;br&gt;ended when &amp;nbsp;a &amp;nbsp;lorry drove &amp;nbsp;away from the gates &amp;nbsp;of Griboyedov carrying &amp;nbsp;the
&lt;br&gt;unfortunate Ivan Nikolayich, the policeman, the barman and Ryukhin.
&lt;br&gt;At half past one in the morning &amp;nbsp;a man with a pointed beard and wearing
&lt;br&gt;a &amp;nbsp;white overall &amp;nbsp;entered the reception hall of a &amp;nbsp;famous psychiatric clinic
&lt;br&gt;recently completed in &amp;nbsp;the &amp;nbsp;suburbs of Moscow. Three orderlies &amp;nbsp;and the poet
&lt;br&gt;Ryukhin &amp;nbsp;stood nervously watching Ivan Nikolayich as he sat on &amp;nbsp;a divan. The
&lt;br&gt;dish-cloths that had been used to &amp;nbsp;pinion &amp;nbsp;Ivan Nikolayich now lay in a heap
&lt;br&gt;&lt;br&gt;&lt;br&gt;-
&lt;br&gt;To unsubscribe from this list: send the line &amp;quot;unsubscribe linux-c-programming&amp;quot; in
&lt;br&gt;the body of a message to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=7722033&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt;
&lt;br&gt;More majordomo info at &amp;nbsp;&lt;a href=&quot;http://vger.kernel.org/majordomo-info.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://vger.kernel.org/majordomo-info.html&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/More-Size-More-Pleasure-tp7722033p7722033.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-7714259</id>
	<title>yo Dude, your member is really small</title>
	<published>2006-12-05T22:23:56Z</published>
	<updated>2006-12-05T22:23:56Z</updated>
	<author>
		<name>Ledesma Marie</name>
	</author>
	<content type="html">hei Sir
&lt;br&gt;&lt;br&gt;Don't tell me why your Johnson is so small,
&lt;br&gt;I will better help you to make it really Bigger!
&lt;br&gt;&lt;br&gt;Why bigger? Because over 72% of all women need a longer
&lt;br&gt;woody to satisfy their desire!
&lt;br&gt;&lt;br&gt;Go there and get your solution: &lt;a href=&quot;http://meanly.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://meanly.net&lt;/a&gt;&lt;br&gt;&lt;br&gt;It'll really help you!
&lt;br&gt;&lt;br&gt;We will ship it worldwide within 24 hours, and if
&lt;br&gt;you find our product useless - we'll refund all your money!
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;jpgggmggukuoputfpoukujtntuuqtqtltgtjtftnsftmukultlqqusuhtpumuuumqhuhtrun
&lt;br&gt;riudweruweroiure
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;'Just imagine--I was &amp;nbsp;sitting &amp;nbsp;here,' began Anna Richardovna trembling
&lt;br&gt;with &amp;nbsp;horror and clutching &amp;nbsp;Vassily &amp;nbsp;Stepanovich's sleeve, ' &amp;nbsp;when in came a
&lt;br&gt;cat. A great black animal as &amp;nbsp;big as Behemoth. Naturally I shooed it out and
&lt;br&gt;it &amp;nbsp;went, but then a fat man came in who also had a face &amp;nbsp;like a cat, said &amp;quot;
&lt;br&gt;Do you &amp;nbsp;always &amp;nbsp;say ' shoo &amp;nbsp;' to visitors?&amp;quot; &amp;nbsp;and went straight in to Prokhor
&lt;br&gt;Petrovich. So I shouted &amp;quot; What &amp;nbsp;d'you mean by going in there --have you gone
&lt;br&gt;crazy? &amp;quot; But the cheeky brute &amp;nbsp;marched &amp;nbsp;straight in to Prokhor Petrovich and
&lt;br&gt;sat down in the chair facing him. Well, Prokhor is the nicest man alive, but
&lt;br&gt;he's nervous. He lost his temper. He works like a trojan, but he's apt to be
&lt;br&gt;nervy &amp;nbsp;and he &amp;nbsp;just &amp;nbsp;flared &amp;nbsp;up. &amp;quot; &amp;nbsp;Why have you &amp;nbsp;come in here without being
&lt;br&gt;&lt;br&gt;&lt;br&gt;-
&lt;br&gt;To unsubscribe from this list: send the line &amp;quot;unsubscribe linux-c-programming&amp;quot; in
&lt;br&gt;the body of a message to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=7714259&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt;
&lt;br&gt;More majordomo info at &amp;nbsp;&lt;a href=&quot;http://vger.kernel.org/majordomo-info.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://vger.kernel.org/majordomo-info.html&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/yo-Dude%2C-your-member-is-really-small-tp7714259p7714259.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-7711620</id>
	<title>6 unread notes</title>
	<published>2006-12-05T16:37:30Z</published>
	<updated>2006-12-05T16:37:30Z</updated>
	<author>
		<name>barrie-6</name>
	</author>
	<content type="html">Hello!
&lt;br&gt;I am Zinaida. To talk about my personal qualities I`l try to look at
&lt;br&gt;myself from aside. So I`m a romantic, charming, feminine, &amp;nbsp;and sweet 
&lt;br&gt;girl. Yet as a person I am open-minded, easy-going, kind-hearted. From 
&lt;br&gt;the very beginning I try to behave naturally. I dislike lie and 
&lt;br&gt;hypocrisy. Kindness and decency are the qualities that are very 
&lt;br&gt;important for me and that`s why I value them in myself. I love my 
&lt;br&gt;parents very much as they have given much to me and I am grateful to 
&lt;br&gt;them. 
&lt;br&gt;I have some questions for you if you want to get to know me closer: 
&lt;br&gt;* Are you planning to visit Russia? 
&lt;br&gt;* Have you ever been to Russia? 
&lt;br&gt;* Would you like to correspond or to talk by phone? 
&lt;br&gt;* What is important for you in relations and am I right for you? 
&lt;br&gt;* Are you interested in serious relations with Russian woman? 
&lt;br&gt;* Why are you interested in Russian lady? 
&lt;br&gt;I will be waiting for your reply to
&lt;br&gt;mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=7711620&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;barrie@...&lt;/a&gt;
&lt;br&gt;Hope you will tell me about yourself,
&lt;br&gt;kisses from Russia,
&lt;br&gt;barrie
&lt;br&gt;&lt;br&gt;&lt;br&gt;-
&lt;br&gt;To unsubscribe from this list: send the line &amp;quot;unsubscribe linux-c-programming&amp;quot; in
&lt;br&gt;the body of a message to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=7711620&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt;
&lt;br&gt;More majordomo info at &amp;nbsp;&lt;a href=&quot;http://vger.kernel.org/majordomo-info.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://vger.kernel.org/majordomo-info.html&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/6-unread-notes-tp7711620p7711620.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-7710962</id>
	<title>YO sir, your meat is really small</title>
	<published>2006-12-05T15:50:06Z</published>
	<updated>2006-12-05T15:50:06Z</updated>
	<author>
		<name>Net Gabrielle</name>
	</author>
	<content type="html">greet buddy
&lt;br&gt;&lt;br&gt;Don't tell me why your member is so small,
&lt;br&gt;I will better help you to make it really Bigger!
&lt;br&gt;&lt;br&gt;Why bigger? Because over 72% of all women need a longer
&lt;br&gt;Johnson to satisfy their desire!
&lt;br&gt;&lt;br&gt;Go there and get your solution: &lt;a href=&quot;http://www.deceits.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.deceits.net&lt;/a&gt;&lt;br&gt;&lt;br&gt;It'll really help you!
&lt;br&gt;&lt;br&gt;We will ship it worldwide within 24 hours, and if
&lt;br&gt;you find our product useless - we'll refund all your money!
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;nhsosusorsrgomsnogrsrrsfpmqipiptpoprpnpfnnqupsptqttipkppphquqmquupqppjqf
&lt;br&gt;gndjknsdjdhfsweet
&lt;br&gt;teeth.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;'No, he's had a few drinks, but not enough . . .'
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;'Has he been trying to catch spiders, rats, little devils or dogs? '
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;'No,' &amp;nbsp;replied Ryukhin, &amp;nbsp;shuddering. ' &amp;nbsp;I saw &amp;nbsp;him yesterday &amp;nbsp;and this
&lt;br&gt;morning ... he was perfectly well then.'
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;'Why is he in his underpants? Did you have to pull him out of bed?'
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;'He came into a restaurant like this, doctor'
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;'Aha, aha,' said the doctor in a tone of great satisfaction. ' And why
&lt;br&gt;the scratches? Has he been fighting? '
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;'He fell off the fence and then he hit someone in the restaurant , . .
&lt;br&gt;&lt;br&gt;&lt;br&gt;-
&lt;br&gt;To unsubscribe from this list: send the line &amp;quot;unsubscribe linux-c-programming&amp;quot; in
&lt;br&gt;the body of a message to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=7710962&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt;
&lt;br&gt;More majordomo info at &amp;nbsp;&lt;a href=&quot;http://vger.kernel.org/majordomo-info.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://vger.kernel.org/majordomo-info.html&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/YO-sir%2C-your-meat-is-really-small-tp7710962p7710962.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-7640852</id>
	<title>Re: Core file size?</title>
	<published>2006-12-01T07:46:02Z</published>
	<updated>2006-12-01T07:46:02Z</updated>
	<author>
		<name>linux err</name>
	</author>
	<content type="html">&lt;br&gt;This patch fixed it.
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://lkml.org/lkml/2005/6/13/204&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lkml.org/lkml/2005/6/13/204&lt;/a&gt;&lt;br&gt;&lt;br&gt;The ELF core dump code has one use of off_t when
&lt;br&gt;writing out segments. &amp;nbsp;Some of the segments may be
&lt;br&gt;passed the 2GB limit of an off_t, even on a 32-bit
&lt;br&gt;system, so it's important to use loff_t instead. &amp;nbsp;This
&lt;br&gt;fixes a corrupted core dump in the bigcore test in
&lt;br&gt;GDB's testsuite.
&lt;br&gt;&lt;br&gt;Signed-off-by: Daniel Jacobowitz
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=7640852&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dan@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;Index: linux-2.6.11/fs/binfmt_elf.c
&lt;br&gt;===================================================================
&lt;br&gt;--- linux-2.6.11.orig/fs/binfmt_elf.c	2005-06-09
&lt;br&gt;16:38:17.000000000 -0400
&lt;br&gt;+++ linux-2.6.11/fs/binfmt_elf.c	2005-06-10
&lt;br&gt;00:10:52.000000000 -0400
&lt;br&gt;@@ -1125,7 +1125,7 @@ static int dump_write(struct
&lt;br&gt;file *file,
&lt;br&gt;&amp;nbsp;	return file-&amp;gt;f_op-&amp;gt;write(file, addr, nr,
&lt;br&gt;&amp;file-&amp;gt;f_pos) == nr;
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-static int dump_seek(struct file *file, off_t off)
&lt;br&gt;+static int dump_seek(struct file *file, loff_t off)
&lt;br&gt;&amp;nbsp;{
&lt;br&gt;&amp;nbsp;	if (file-&amp;gt;f_op-&amp;gt;llseek) {
&lt;br&gt;&amp;nbsp;		if (file-&amp;gt;f_op-&amp;gt;llseek(file, off, 0) != off)
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;--- Glynn Clements &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=7640852&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;glynn@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; linux err wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Does anyone know what determines the size of a
&lt;br&gt;&amp;gt; core
&lt;br&gt;&amp;gt; &amp;gt; dump? I have a process running out of memory (it
&lt;br&gt;&amp;gt; &amp;gt; allocates about 3GB) - but the size of core varies
&lt;br&gt;&amp;gt; &amp;gt; (between 2-3GB) depending on how much the process
&lt;br&gt;&amp;gt; &amp;gt; wrote on the allocated memory.
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Also, the time it takes to write the core (same
&lt;br&gt;&amp;gt; size)
&lt;br&gt;&amp;gt; &amp;gt; varies??
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; I briefly looked at elf_core_dump and
&lt;br&gt;&amp;gt; get_user_pages()
&lt;br&gt;&amp;gt; &amp;gt; in binfmt_elf.c. Is there any documentation on
&lt;br&gt;&amp;gt; this?
&lt;br&gt;&amp;gt; &amp;gt; Or anyone knows how it works?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The relevant function seems to be maydump() (in
&lt;br&gt;&amp;gt; binfmt_elf.c); this
&lt;br&gt;&amp;gt; determines whether or not a given VM area should be
&lt;br&gt;&amp;gt; dumped.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Essentially, it doesn't dump data which can be
&lt;br&gt;&amp;gt; obtained elsewhere,
&lt;br&gt;&amp;gt; e.g. from an executable, shared library, unmodified
&lt;br&gt;&amp;gt; mmap()d file, etc.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Primarily, this prevents dumping the .text and
&lt;br&gt;&amp;gt; .rodata segments of the
&lt;br&gt;&amp;gt; executable and shared libraries, which will often
&lt;br&gt;&amp;gt; account for most of
&lt;br&gt;&amp;gt; a process' address space.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; Glynn Clements &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=7640852&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;glynn@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; -
&lt;br&gt;&amp;gt; To unsubscribe from this list: send the line
&lt;br&gt;&amp;gt; &amp;quot;unsubscribe linux-c-programming&amp;quot; in
&lt;br&gt;&amp;gt; the body of a message to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=7640852&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt;
&lt;br&gt;&amp;gt; More majordomo info at 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://vger.kernel.org/majordomo-info.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://vger.kernel.org/majordomo-info.html&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;____________________________________________________________________________________
&lt;br&gt;Do you Yahoo!?
&lt;br&gt;Everyone is raving about the all-new Yahoo! Mail beta.
&lt;br&gt;&lt;a href=&quot;http://new.mail.yahoo.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://new.mail.yahoo.com&lt;/a&gt;&lt;br&gt;-
&lt;br&gt;To unsubscribe from this list: send the line &amp;quot;unsubscribe linux-c-programming&amp;quot; in
&lt;br&gt;the body of a message to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=7640852&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt;
&lt;br&gt;More majordomo info at &amp;nbsp;&lt;a href=&quot;http://vger.kernel.org/majordomo-info.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://vger.kernel.org/majordomo-info.html&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Core-file-size--tp7620055p7640852.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-7629128</id>
	<title>Re: Core file size?</title>
	<published>2006-11-30T14:11:43Z</published>
	<updated>2006-11-30T14:11:43Z</updated>
	<author>
		<name>Glynn Clements</name>
	</author>
	<content type="html">&lt;br&gt;linux err wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Does anyone know what determines the size of a core
&lt;br&gt;&amp;gt; dump? I have a process running out of memory (it
&lt;br&gt;&amp;gt; allocates about 3GB) - but the size of core varies
&lt;br&gt;&amp;gt; (between 2-3GB) depending on how much the process
&lt;br&gt;&amp;gt; wrote on the allocated memory.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Also, the time it takes to write the core (same size)
&lt;br&gt;&amp;gt; varies??
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I briefly looked at elf_core_dump and get_user_pages()
&lt;br&gt;&amp;gt; in binfmt_elf.c. Is there any documentation on this?
&lt;br&gt;&amp;gt; Or anyone knows how it works?
&lt;/div&gt;&lt;br&gt;The relevant function seems to be maydump() (in binfmt_elf.c); this
&lt;br&gt;determines whether or not a given VM area should be dumped.
&lt;br&gt;&lt;br&gt;Essentially, it doesn't dump data which can be obtained elsewhere,
&lt;br&gt;e.g. from an executable, shared library, unmodified mmap()d file, etc.
&lt;br&gt;&lt;br&gt;Primarily, this prevents dumping the .text and .rodata segments of the
&lt;br&gt;executable and shared libraries, which will often account for most of
&lt;br&gt;a process' address space.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Glynn Clements &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=7629128&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;glynn@...&lt;/a&gt;&amp;gt;
&lt;br&gt;-
&lt;br&gt;To unsubscribe from this list: send the line &amp;quot;unsubscribe linux-c-programming&amp;quot; in
&lt;br&gt;the body of a message to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=7629128&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt;
&lt;br&gt;More majordomo info at &amp;nbsp;&lt;a href=&quot;http://vger.kernel.org/majordomo-info.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://vger.kernel.org/majordomo-info.html&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Core-file-size--tp7620055p7629128.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-7628175</id>
	<title>Re[1]:  I am writing to find love!</title>
	<published>2006-11-30T13:18:04Z</published>
	<updated>2006-11-30T13:18:04Z</updated>
	<author>
		<name>Valentyna-5</name>
	</author>
	<content type="html">Hello, Dieter
&lt;br&gt;&lt;br&gt;I am attractive and easy-going but despite all my positive traits of character:) I am very lonely.
&lt;br&gt;I feel so sad about it and if you feel sad - come to see me and let's speak about everything in the world!
&lt;br&gt;We can discuss any subject, share any ideas and thoughts!
&lt;br&gt;So, I am waiting for you and let's start chatting.
&lt;br&gt;Have a nice day!
&lt;br&gt;&lt;br&gt;P.S. Forgot to tell you that you can find me here &lt;a href=&quot;http://iamheremyfriend.com/loveinside&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://iamheremyfriend.com/loveinside&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Waiting for your response:)
&lt;br&gt;&lt;br&gt;Valentyna
&lt;br&gt;&lt;br&gt;&lt;br&gt;-
&lt;br&gt;To unsubscribe from this list: send the line &amp;quot;unsubscribe linux-c-programming&amp;quot; in
&lt;br&gt;the body of a message to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=7628175&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt;
&lt;br&gt;More majordomo info at &amp;nbsp;&lt;a href=&quot;http://vger.kernel.org/majordomo-info.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://vger.kernel.org/majordomo-info.html&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re-1-%3A--I-am-writing-to-find-love%21-tp7628175p7628175.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-7621449</id>
	<title>Re: Core file size?</title>
	<published>2006-11-30T07:29:25Z</published>
	<updated>2006-11-30T07:29:25Z</updated>
	<author>
		<name>linux err</name>
	</author>
	<content type="html">ulimit -c is set to unlimited. (like i said core size
&lt;br&gt;varies depending on how much you wrote on the memory
&lt;br&gt;you allocated)
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;--- David Vernon &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=7621449&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fifty.63@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; -----BEGIN PGP SIGNED MESSAGE-----
&lt;br&gt;&amp;gt; Hash: SHA1
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; linux err wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Does anyone know what determines the size of a
&lt;br&gt;&amp;gt; core
&lt;br&gt;&amp;gt; &amp;gt; dump? 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ulimit -c to set the size and ulimit -a to see the
&lt;br&gt;&amp;gt; size.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -----BEGIN PGP SIGNATURE-----
&lt;br&gt;&amp;gt; Version: GnuPG v1.4.5 (GNU/Linux)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;
&lt;/div&gt;iD8DBQFFbvDAxkzzjLpmvCwRAr95AJ9uztMsfMBuy9yPbcGZqXOYFrk62ACgycsY
&lt;br&gt;&amp;gt; 4hWUQKuZBsthw4cFdYNSqMg=
&lt;br&gt;&amp;gt; =LXka
&lt;br&gt;&amp;gt; -----END PGP SIGNATURE-----
&lt;br&gt;&amp;gt; 
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;____________________________________________________________________________________
&lt;br&gt;Do you Yahoo!?
&lt;br&gt;Everyone is raving about the all-new Yahoo! Mail beta.
&lt;br&gt;&lt;a href=&quot;http://new.mail.yahoo.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://new.mail.yahoo.com&lt;/a&gt;&lt;br&gt;-
&lt;br&gt;To unsubscribe from this list: send the line &amp;quot;unsubscribe linux-c-programming&amp;quot; in
&lt;br&gt;the body of a message to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=7621449&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt;
&lt;br&gt;More majordomo info at &amp;nbsp;&lt;a href=&quot;http://vger.kernel.org/majordomo-info.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://vger.kernel.org/majordomo-info.html&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Core-file-size--tp7620055p7621449.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-7620055</id>
	<title>Core file size?</title>
	<published>2006-11-30T06:13:36Z</published>
	<updated>2006-11-30T06:13:36Z</updated>
	<author>
		<name>linux err</name>
	</author>
	<content type="html">&lt;br&gt;Does anyone know what determines the size of a core
&lt;br&gt;dump? I have a process running out of memory (it
&lt;br&gt;allocates about 3GB) - but the size of core varies
&lt;br&gt;(between 2-3GB) depending on how much the process
&lt;br&gt;wrote on the allocated memory.
&lt;br&gt;&lt;br&gt;Also, the time it takes to write the core (same size)
&lt;br&gt;varies??
&lt;br&gt;&lt;br&gt;I briefly looked at elf_core_dump and get_user_pages()
&lt;br&gt;in binfmt_elf.c. Is there any documentation on this?
&lt;br&gt;Or anyone knows how it works?
&lt;br&gt;&lt;br&gt;TIA
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;____________________________________________________________________________________
&lt;br&gt;Cheap talk?
&lt;br&gt;Check out Yahoo! Messenger's low PC-to-Phone call rates.
&lt;br&gt;&lt;a href=&quot;http://voice.yahoo.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://voice.yahoo.com&lt;/a&gt;&lt;br&gt;-
&lt;br&gt;To unsubscribe from this list: send the line &amp;quot;unsubscribe linux-c-programming&amp;quot; in
&lt;br&gt;the body of a message to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=7620055&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt;
&lt;br&gt;More majordomo info at &amp;nbsp;&lt;a href=&quot;http://vger.kernel.org/majordomo-info.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://vger.kernel.org/majordomo-info.html&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Core-file-size--tp7620055p7620055.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-7533271</id>
	<title>Re[1]:Your lady!</title>
	<published>2006-11-24T13:52:02Z</published>
	<updated>2006-11-24T13:52:02Z</updated>
	<author>
		<name>Valiusha-9</name>
	</author>
	<content type="html">Good Day, Dear!
&lt;br&gt;&lt;br&gt;I miss love in my life and I desire to find it!
&lt;br&gt;Hello, gentleman. I am a single girl, nice, attractive, intelligent, active and easy-going, but lonely...
&lt;br&gt;I am looking for a responsible man, the one who can show me wisdom, love and attention he has.
&lt;br&gt;I love life and I am sure I can make my only man happy. If you want to learn me better,
&lt;br&gt;you can find me here &lt;a href=&quot;http://bestthelove.com/myhoney&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://bestthelove.com/myhoney&lt;/a&gt;&lt;br&gt;If you write to me, I will gladly answer all your questions as something inside says to me that something big and beautiful can grow between us...
&lt;br&gt;&lt;br&gt;Kisses and hugs
&lt;br&gt;&lt;br&gt;Valiusha
&lt;br&gt;&lt;br&gt;&lt;br&gt;-
&lt;br&gt;To unsubscribe from this list: send the line &amp;quot;unsubscribe linux-c-programming&amp;quot; in
&lt;br&gt;the body of a message to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=7533271&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt;
&lt;br&gt;More majordomo info at &amp;nbsp;&lt;a href=&quot;http://vger.kernel.org/majordomo-info.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://vger.kernel.org/majordomo-info.html&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re-1-%3AYour-lady%21-tp7533271p7533271.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-7384276</id>
	<title>Re[3]: Hello, I want to know you!</title>
	<published>2006-11-16T10:52:59Z</published>
	<updated>2006-11-16T10:52:59Z</updated>
	<author>
		<name>Valiusha-4</name>
	</author>
	<content type="html">Hi, Dirk
&lt;br&gt;&lt;br&gt;Sincere lady wants to meet a nice, responsible man to create a
&lt;br&gt;loving and caring family. I will do my best to make my man happy and
&lt;br&gt;proud of his family.
&lt;br&gt;I am very kind and understanding. I listen to people and try to help
&lt;br&gt;them. I love children. I want to have a good house where all of us
&lt;br&gt;will live in happiness and prosperity.
&lt;br&gt;I have decided to send you this message as maybe you are looking for
&lt;br&gt;the same things in life...
&lt;br&gt;If you want to reply to me, you can find me here
&lt;br&gt;&lt;a href=&quot;http://greatfeelingoflove.com/flirtwithlove&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://greatfeelingoflove.com/flirtwithlove&lt;/a&gt;&lt;br&gt;I will be waiting for a note from you!
&lt;br&gt;&lt;br&gt;&lt;br&gt;Looking forward to get a letter from you!
&lt;br&gt;Valentyna
&lt;br&gt;&lt;br&gt;&lt;br&gt;-
&lt;br&gt;To unsubscribe from this list: send the line &amp;quot;unsubscribe linux-c-programming&amp;quot; in
&lt;br&gt;the body of a message to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=7384276&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt;
&lt;br&gt;More majordomo info at &amp;nbsp;&lt;a href=&quot;http://vger.kernel.org/majordomo-info.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://vger.kernel.org/majordomo-info.html&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re-3-%3A-Hello%2C-I-want-to-know-you%21-tp7384276p7384276.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-7339660</id>
	<title>Re: max heap usage of a Linux process</title>
	<published>2006-11-14T07:19:57Z</published>
	<updated>2006-11-14T07:19:57Z</updated>
	<author>
		<name>Bryan Christ</name>
	</author>
	<content type="html">If you don't feel like reading proc or want to make things more
&lt;br&gt;portable, use libgtop.
&lt;br&gt;&lt;br&gt;On Tue, 2006-11-14 at 10:57 +0000, Glynn Clements wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Prasanta Sadhukhan wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Actually, I have the process-pid(s) and I want to find out 
&lt;br&gt;&amp;gt; &amp;gt; programmatically, what's the max heap size that had been consumed by 
&lt;br&gt;&amp;gt; &amp;gt; that process at any given moment(based on user command) from another 
&lt;br&gt;&amp;gt; &amp;gt; process.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Then you need to read the files in /proc/&amp;lt;pid&amp;gt;/*. There isn't a system
&lt;br&gt;&amp;gt; call to get resource usage for another process.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Note that you won't be able to determine how much of the allocated
&lt;br&gt;&amp;gt; heap is free or used; that information is internal to the process, and
&lt;br&gt;&amp;gt; isn't visible externally.
&lt;br&gt;&amp;gt; 
&lt;/div&gt;-
&lt;br&gt;To unsubscribe from this list: send the line &amp;quot;unsubscribe linux-c-programming&amp;quot; in
&lt;br&gt;the body of a message to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=7339660&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt;
&lt;br&gt;More majordomo info at &amp;nbsp;&lt;a href=&quot;http://vger.kernel.org/majordomo-info.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://vger.kernel.org/majordomo-info.html&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/max-heap-usage-of-a-Linux-process-tp7316996p7339660.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-7338788</id>
	<title>Re: max heap usage of a Linux process</title>
	<published>2006-11-14T06:36:24Z</published>
	<updated>2006-11-14T06:36:24Z</updated>
	<author>
		<name>Glynn Clements</name>
	</author>
	<content type="html">&lt;br&gt;Prasanta Sadhukhan wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Actually, I have the process-pid(s) and I want to find out 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; programmatically, what's the max heap size that had been consumed by 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; that process at any given moment(based on user command) from another 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; process.
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Then you need to read the files in /proc/&amp;lt;pid&amp;gt;/*. There isn't a system
&lt;br&gt;&amp;gt; &amp;gt; call to get resource usage for another process.
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Note that you won't be able to determine how much of the allocated
&lt;br&gt;&amp;gt; &amp;gt; heap is free or used; that information is internal to the process, and
&lt;br&gt;&amp;gt; &amp;gt; isn't visible externally.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; thanks. Infact, I used /proc/&amp;lt;pid&amp;gt;/statm to find out total size, RSS and 
&lt;br&gt;&amp;gt; shared memory from 1st 3 entries. Don't know about the accuracy or not 
&lt;br&gt;&amp;gt; but that will do. But, this file does not tell about max. heap consumed 
&lt;br&gt;&amp;gt; by a process nor does /proc/pid/status and I am not able to decipher 
&lt;br&gt;&amp;gt; /proc/pid/stat. Does anyone knows how to interpret stat file?
&lt;/div&gt;&lt;br&gt;It's documented in the proc(5) manpage, but I don't think it records
&lt;br&gt;the heap size separately.
&lt;br&gt;&lt;br&gt;Probably the best option is to look in /proc/&amp;lt;pid&amp;gt;/maps for writable
&lt;br&gt;segments with zero for the device and inode numbers (i.e. anonymous
&lt;br&gt;maps).
&lt;br&gt;&lt;br&gt;Also, note that glibc's malloc can use explicit anonymous mmap() to
&lt;br&gt;obtain memory, as well as sbrk(), so there isn't a monolithic &amp;quot;heap&amp;quot;
&lt;br&gt;in the traditional sense.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Glynn Clements &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=7338788&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;glynn@...&lt;/a&gt;&amp;gt;
&lt;br&gt;-
&lt;br&gt;To unsubscribe from this list: send the line &amp;quot;unsubscribe linux-c-programming&amp;quot; in
&lt;br&gt;the body of a message to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=7338788&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt;
&lt;br&gt;More majordomo info at &amp;nbsp;&lt;a href=&quot;http://vger.kernel.org/majordomo-info.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://vger.kernel.org/majordomo-info.html&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/max-heap-usage-of-a-Linux-process-tp7316996p7338788.html" />
</entry>

</feed>
