<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>The UNIX and Linux Forums - High Level Programming</title>
		<link>http://www.unix.com/</link>
		<description>Post questions about C, C++, Java, SQL, and other programming languages here.</description>
		<language>en</language>
		<lastBuildDate>Fri, 20 Nov 2009 22:18:56 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>5</ttl>
		<image>
			<url>http://solaris.unix.com/images/misc/rss.jpg</url>
			<title>The UNIX and Linux Forums - High Level Programming</title>
			<link>http://www.unix.com/</link>
		</image>
		<item>
			<title>noob question about fork</title>
			<link>http://www.unix.com/high-level-programming/124210-noob-question-about-fork-new-post.html</link>
			<pubDate>Fri, 20 Nov 2009 00:50:21 GMT</pubDate>
			<description><![CDATA[Hi everyone: 
 
I'm developing a dynamic library for notifications, this library is used for a daemon that i've programmed, when something goes wrong the library should send an email to an administrator, but since sending an email is a non-vital process then it can fail (it should work as an...]]></description>
			<content:encoded><![CDATA[<div>Hi everyone:<br />
<br />
I'm developing a dynamic library for notifications, this library is used for a <acronym title="Disk and Execution Monitor">daemon</acronym> that i've programmed, when something goes wrong the library should send an email to an administrator, but since sending an email is a non-vital process then it can fail (it should work as an asynchronous process) so i'm considering to do that by using the fork function, however the entire process of <acronym title="Disk and Execution Monitor">daemon</acronym> will be forked and i would be responsible for destroying the child process, so my question is, does exist any way more efficient to do this?<br />
<br />
thanks in advance</div>

]]></content:encoded>
			<category domain="http://www.unix.com/high-level-programming/">High Level Programming</category>
			<dc:creator>edgarvm</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/high-level-programming/124210-noob-question-about-fork.html</guid>
		</item>
		<item>
			<title>stat64 support on 32bit platform</title>
			<link>http://www.unix.com/high-level-programming/124062-stat64-support-32bit-platform-new-post.html</link>
			<pubDate>Wed, 18 Nov 2009 16:18:21 GMT</pubDate>
			<description>I have to get the size and ownership of a file on a 32 bit solaris 10.stat function fails to provide the information as the file size is greater than 2GB(26GB).Is stat64 supported on 32 bit platforms.Can i use the function on all the platforms</description>
			<content:encoded><![CDATA[<div>I have to get the size and ownership of a file on a 32 bit solaris 10.stat function fails to provide the information as the file size is greater than 2GB(26GB).Is stat64 supported on 32 bit platforms.Can i use the function on all the platforms</div>

]]></content:encoded>
			<category domain="http://www.unix.com/high-level-programming/">High Level Programming</category>
			<dc:creator>guru13</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/high-level-programming/124062-stat64-support-32bit-platform.html</guid>
		</item>
		<item>
			<title>Test Coverage - executing this code</title>
			<link>http://www.unix.com/high-level-programming/123994-test-coverage-executing-code-new-post.html</link>
			<pubDate>Tue, 17 Nov 2009 22:23:12 GMT</pubDate>
			<description><![CDATA[Hi, 
 
I am trying to gain test coverage on the 'fold' program in unix and am having difficulty executing the following code: 
 
 
Code: 
--------- 
if(ferror (istream)) 
{ 
	error (0, errno, "%s", filename);]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I am trying to gain test coverage on the 'fold' program in unix and am having difficulty executing the following code:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">if(ferror (istream))<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; error (0, <acronym title="Error Number">errno</acronym>, &quot;%s&quot;, filename);<br />
&nbsp; &nbsp; &nbsp; &nbsp; if(!STREQ (filename, &quot;-&quot;))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fclose (istream);<br />
&nbsp; &nbsp; &nbsp; &nbsp; return 1;<br />
}<br />
if (!STREQ (filename, &quot;-&quot;) &amp;&amp; fclose (istream) == EOF)<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; error (0, <acronym title="Error Number">errno</acronym>, &quot;%s&quot;, filename);<br />
&nbsp; &nbsp; &nbsp; &nbsp; return 1;<br />
}</code><hr />
</div>How could I cause an error to occur in the input stream using the fold command in the command prompt (i.e. fold &lt; input).<br />
<br />
Thank you!</div>

]]></content:encoded>
			<category domain="http://www.unix.com/high-level-programming/">High Level Programming</category>
			<dc:creator>Jakeman1086</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/high-level-programming/123994-test-coverage-executing-code.html</guid>
		</item>
		<item>
			<title>Unicode programing in C</title>
			<link>http://www.unix.com/high-level-programming/123986-unicode-programing-c-new-post.html</link>
			<pubDate>Tue, 17 Nov 2009 20:25:14 GMT</pubDate>
			<description>im starting to go a little serious with c, woking in a personal project that will read a xml, which might contain Unicode characters (i know it will on my system, which is set to es_AR.UTF-8) 
 
im using mxml, and the documentation says it uses utf8 internally (no worries here). 
so i need to be...</description>
			<content:encoded><![CDATA[<div>im starting to go a little serious with c, woking in a personal project that will read a xml, which might contain Unicode characters (i know it will on my system, which is set to es_AR.UTF-8)<br />
<br />
im using mxml, and the documentation says it uses utf8 internally (no worries here).<br />
so i need to be sure im using utf8 in my program. to be sure that i can safely interact with mxml and to be sure my program will work in all languages.<br />
<br />
i have been reading alot, but i dont quite fully get how i can accomplish this.<br />
<br />
im going for something simple, something easy that wont demand much of me.<br />
<br />
my program will read user input (from cli for now, gtk later), and will save it in xml (is a config file for other app). it will also have the option to read a xml, and use it as a base for a new one <br />
<br />
now, i have a few concrete questions.<br />
a) do i have to use a special type of variable?<br />
if a) is true, then i need a hole new set of functions? (for strcmp, or strstr)<br />
b) can i work with unicode characters using char *?<br />
if b) is true, how do i &quot;make&quot; them utf8?<br />
c) is a mix of the above? then how to choose the mix ratio?<br />
<br />
i appreciate any help, manual, link, ect that can help me understand how this works. (that includes source code)<br />
<br />
thanks</div>

]]></content:encoded>
			<category domain="http://www.unix.com/high-level-programming/">High Level Programming</category>
			<dc:creator>broli</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/high-level-programming/123986-unicode-programing-c.html</guid>
		</item>
		<item>
			<title>cc -- Unsatisfied symbols -- on HP-UX 10.2</title>
			<link>http://www.unix.com/high-level-programming/123972-cc-unsatisfied-symbols-hp-ux-10-2-a-new-post.html</link>
			<pubDate>Tue, 17 Nov 2009 16:25:50 GMT</pubDate>
			<description><![CDATA[Greetings, 
I am slowly learning a few things but am far from being an expert. I am at the point now that I 
would like to be able write some ANSI C code on HP-UX 10.2. Just a hobbie... I am just using cc, 
which came with the HP-UX 10.2 ... 
I don't have the manuals for the development...]]></description>
			<content:encoded><![CDATA[<div>Greetings,<br />
I am slowly learning a few things but am far from being an expert. I am at the point now that I<br />
would like to be able write some ANSI C code on HP-UX 10.2. Just a hobbie... I am just using cc,<br />
which came with the HP-UX 10.2 ...<br />
I don't have the manuals for the development environment...<br />
Anyway, I have the following sample code that illustrates that I am missing a library file<br />
when cc attempts to link??? That is the conclusion I have come to.<br />
I have looked through man pow, and man math and have not found the information I am looking for.<br />
 <br />
I am not sure 1) which library file is missing and 2) the syntax I need to use to poperly compile<br />
and link in the object files.<br />
Following is sample code that illustrates the issue I am having with cc<br />
Thanks in advance,<br />
Dirk<br />
 <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">$ uname -a<br />
HP-UX green B.10.20 A 9000/782 2015827886 two-user license<br />
=========<br />
cat ex4_6.c<br />
#include &lt;stdio.h&gt;<br />
#include &lt;math.h&gt;<br />
&nbsp;<br />
&nbsp;<br />
main ()<br />
{<br />
float polyresult;<br />
polyresult = 3 * powf(2.55, 3) + 2 * powf(2.55, 2) + 6;<br />
printf(&quot;the result is %f\n&quot;, polyresult );<br />
&nbsp;<br />
}<br />
&nbsp;<br />
&nbsp;<br />
$ cc ex4_6.c<br />
/usr/ccs/bin/ld: Unsatisfied symbols:<br />
powf (code)</code><hr />
</div></div>

]]></content:encoded>
			<category domain="http://www.unix.com/high-level-programming/">High Level Programming</category>
			<dc:creator>Dirk_</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/high-level-programming/123972-cc-unsatisfied-symbols-hp-ux-10-2-a.html</guid>
		</item>
		<item>
			<title>DOM query selected path and show as xml</title>
			<link>http://www.unix.com/high-level-programming/123950-dom-query-selected-path-show-xml-new-post.html</link>
			<pubDate>Tue, 17 Nov 2009 11:35:11 GMT</pubDate>
			<description><![CDATA[First, I am sorry if this question not this room scope, 
 
I have a XML file : 
 
file: book.xml 
 
 
Code: 
--------- 
<?xml version="1.0" encoding="ISO-8859-1"?>]]></description>
			<content:encoded><![CDATA[<div>First, I am sorry if this question not this room scope,<br />
<br />
I have a XML file :<br />
<br />
file: book.xml<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?&gt;<br />
<br />
&lt;bookstore&gt;<br />
<br />
&lt;book category=&quot;COOKING&quot;&gt;<br />
&nbsp; &lt;title lang=&quot;en&quot;&gt;Everyday Italian&lt;/title&gt;<br />
&nbsp; &lt;author&gt;Giada De Laurentiis&lt;/author&gt;<br />
&nbsp; &lt;year&gt;2005&lt;/year&gt;<br />
&nbsp; &lt;price&gt;30.00&lt;/price&gt;<br />
&lt;/book&gt;<br />
<br />
&lt;book category=&quot;CHILDREN&quot;&gt;<br />
&nbsp; &lt;title lang=&quot;en&quot;&gt;Harry Potter&lt;/title&gt;<br />
&nbsp; &lt;author&gt;J K. Rowling&lt;/author&gt;<br />
&nbsp; &lt;year&gt;2005&lt;/year&gt;<br />
&nbsp; &lt;price&gt;29.99&lt;/price&gt;<br />
&lt;/book&gt;<br />
<br />
&lt;/bookstore&gt;</code><hr />
</div>I using this script If I want to show output of my script as xml file:<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&lt;html&gt;<br />
&lt;body&gt;<br />
&lt;script type=&quot;text/javascript&quot;&gt;<br />
function loadXMLDoc(dname)<br />
{<br />
if (window.XMLHttpRequest)<br />
&nbsp; {<br />
&nbsp; xhttp=new XMLHttpRequest();<br />
&nbsp; }<br />
else<br />
&nbsp; {<br />
&nbsp; xhttp=new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);<br />
&nbsp; }<br />
xhttp.open(&quot;GET&quot;,dname,false);<br />
xhttp.send(&quot;&quot;);<br />
return xhttp.responseXML;<br />
}<br />
<br />
xml=loadXMLDoc(&quot;books.xml&quot;);<br />
document.write(&quot;&lt;xmp&gt;&quot; + xml.xml + &quot;&lt;/xmp&gt;&quot;); <br />
<br />
&lt;/script&gt;<br />
<br />
&lt;/body&gt;<br />
&lt;/html&gt;</code><hr />
</div>Now, I want to select specific path of XML node. The output that I want is like: <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&lt;bookstore&gt;<br />
<br />
&lt;book category=&quot;COOKING&quot;&gt;<br />
&nbsp; &lt;title lang=&quot;en&quot;&gt;Everyday Italian&lt;/title&gt;<br />
&nbsp; &lt;author&gt;Giada De Laurentiis&lt;/author&gt;<br />
&nbsp; &lt;year&gt;2005&lt;/year&gt;<br />
&nbsp; &lt;price&gt;30.00&lt;/price&gt;<br />
&lt;/book&gt;<br />
&lt;/bookstore&gt;</code><hr />
</div>and this is my script:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&lt;html&gt;<br />
&lt;body&gt;<br />
&lt;script type=&quot;text/javascript&quot;&gt;<br />
function loadXMLDoc(dname)<br />
{<br />
if (window.XMLHttpRequest)<br />
&nbsp; {<br />
&nbsp; xhttp=new XMLHttpRequest();<br />
&nbsp; }<br />
else<br />
&nbsp; {<br />
&nbsp; xhttp=new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);<br />
&nbsp; }<br />
xhttp.open(&quot;GET&quot;,dname,false);<br />
xhttp.send(&quot;&quot;);<br />
return xhttp.responseXML;<br />
}<br />
<br />
xml=loadXMLDoc(&quot;books.xml&quot;);<br />
path=&quot;/*/*[@*='COOKING']/*&quot;<br />
var nodes=xml.selectNodes(path);<br />
document.write(&quot;&lt;xmp&gt;&quot; + nodes.xml + &quot;&lt;/xmp&gt;&quot;); <br />
<br />
&lt;/script&gt;<br />
<br />
&lt;/body&gt;<br />
&lt;/html&gt;</code><hr />
</div>Unfortunatelly, the script totally error. I dont know how to fix this. :(<br />
<br />
Could you somebody please tell me how to print output only selected path criteria as xml?<br />
<br />
Your answer really appreciated,<br />
<br />
Thanks,<br />
Denny</div>

]]></content:encoded>
			<category domain="http://www.unix.com/high-level-programming/">High Level Programming</category>
			<dc:creator>penyu</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/high-level-programming/123950-dom-query-selected-path-show-xml.html</guid>
		</item>
		<item>
			<title>String copy in C language</title>
			<link>http://www.unix.com/high-level-programming/123875-string-copy-c-language-new-post.html</link>
			<pubDate>Mon, 16 Nov 2009 17:18:46 GMT</pubDate>
			<description>Hello, 
 
I have a text file (FILE.txt) that contains the following information: 
 
userAxxx.name@email.com        userA 
userBxxx.name@email.com        userB 
userxxCx.name@email.com        userC 
and more.... 
 
in scripting, I can easily do a grep and awk to store an email info into a string...</description>
			<content:encoded><![CDATA[<div>Hello,<br />
<br />
I have a text file (FILE.txt) that contains the following information:<br />
<br />
<a href="mailto:userAxxx.name@email.com">userAxxx.name@email.com</a>        userA<br />
<a href="mailto:userBxxx.name@email.com">userBxxx.name@email.com</a>        userB<br />
<a href="mailto:userxxCx.name@email.com">userxxCx.name@email.com</a>        userC<br />
and more....<br />
<br />
in scripting, I can easily do a grep and awk to store an email info into a string variable as following:<br />
<br />
EMAL=`grep userA | awk '{print $1}' FILE.txt`<br />
or <br />
EMAIL=`nawk '$2 == &quot;userB&quot; {print $1}'  FILE.txt<br />
<br />
BUT, how do I translate above into C language?<br />
<br />
I'm new in c programming and very appreciate for your help.<br />
<br />
Thanks so much,<br />
tqlam</div>

]]></content:encoded>
			<category domain="http://www.unix.com/high-level-programming/">High Level Programming</category>
			<dc:creator>tqlam</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/high-level-programming/123875-string-copy-c-language.html</guid>
		</item>
		<item>
			<title>how to execute the sql quires from shell script?</title>
			<link>http://www.unix.com/high-level-programming/123823-how-execute-sql-quires-shell-script-new-post.html</link>
			<pubDate>Mon, 16 Nov 2009 05:56:11 GMT</pubDate>
			<description><![CDATA[hi all, 
  
   I'm new to shell scripting, i want to know how to use the sql statements from the shell script? is there any documents or pdf to learn from the begining? plese provide me some useful links on the same.  
  
Thanks all in advance..,:b:]]></description>
			<content:encoded><![CDATA[<div>hi all,<br />
 <br />
   I'm new to shell scripting, i want to know how to use the sql statements from the shell script? is there any documents or pdf to learn from the begining? plese provide me some useful links on the same. <br />
 <br />
Thanks all in advance..,:b:</div>

]]></content:encoded>
			<category domain="http://www.unix.com/high-level-programming/">High Level Programming</category>
			<dc:creator>vij_krr</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/high-level-programming/123823-how-execute-sql-quires-shell-script.html</guid>
		</item>
		<item>
			<title>pthread and mutex question</title>
			<link>http://www.unix.com/high-level-programming/123798-pthread-mutex-question-new-post.html</link>
			<pubDate>Sun, 15 Nov 2009 18:28:28 GMT</pubDate>
			<description><![CDATA[Hello, 
I have got some issue with the struct variable with passed arguments 
the variable in the sturct is only recognize the last value their assigned to 
I'm pretty confused why the mutex didn't work out 
  
here is my program: 
  
 
Code: 
---------]]></description>
			<content:encoded><![CDATA[<div>Hello,<br />
I have got some issue with the struct variable with passed arguments<br />
the variable in the sturct is only recognize the last value their assigned to<br />
I'm pretty confused why the mutex didn't work out<br />
 <br />
here is my program:<br />
 <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">#include&lt;stdio.h&gt;<br />
#include&lt;pthread.h&gt;<br />
&nbsp;<br />
pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER;<br />
struct arg_struct {<br />
&nbsp; int arg1;<br />
&nbsp; int deposit;<br />
};<br />
&nbsp;<br />
void *print_the_arguments(void *arguments)<br />
{<br />
&nbsp; pthread_mutex_unlock(&amp;lock);<br />
&nbsp; struct arg_struct *args = arguments;<br />
&nbsp; int j;<br />
&nbsp; j = args -&gt; deposit;<br />
&nbsp; printf(&quot;%d\n&quot;, args -&gt; arg1 + j);<br />
&nbsp; pthread_exit(NULL);<br />
&nbsp; return NULL;<br />
&nbsp; pthread_mutex_lock(&amp;lock);<br />
}<br />
&nbsp;<br />
int main()<br />
{<br />
&nbsp; pthread_t some_thread;<br />
&nbsp; struct arg_struct args;<br />
&nbsp; args.arg1 = 5;<br />
<br />
&nbsp; args.deposit = 3;<br />
<br />
&nbsp; //pthread_mutex_unlock(&amp;lock);<br />
&nbsp; pthread_create(&amp;some_thread, NULL, &amp;print_the_arguments, (void *)&amp;args)&nbsp;  != 0;<br />
&nbsp; //pthread_mutex_lock(&amp;lock);<br />
<br />
&nbsp; args.deposit=10;<br />
&nbsp; pthread_create(&amp;some_thread, NULL, &amp;print_the_arguments, (void *)&amp;args)&nbsp;  != 0; <br />
<br />
&nbsp; return pthread_join(some_thread, NULL);<br />
}</code><hr />
</div> I'm expect the result would like this<br />
8<br />
18<br />
 <br />
instead I've got this <br />
15<br />
15<br />
 <br />
any idead to solve this problem?<br />
thanks in advance :)</div>

]]></content:encoded>
			<category domain="http://www.unix.com/high-level-programming/">High Level Programming</category>
			<dc:creator>michael23</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/high-level-programming/123798-pthread-mutex-question.html</guid>
		</item>
		<item>
			<title>Connecting child processes to the server</title>
			<link>http://www.unix.com/high-level-programming/123773-connecting-child-processes-server-new-post.html</link>
			<pubDate>Sat, 14 Nov 2009 20:47:48 GMT</pubDate>
			<description><![CDATA[I try to fork child processes and they connect to a server. 
At the beginning, I create a socket(1 socket for all child processes), after that at each child process I connect to the server using connect function but I get this error msg:"Transport endpoint is already connected" 
 
but if I create a...]]></description>
			<content:encoded><![CDATA[<div>I try to fork child processes and they connect to a server.<br />
At the beginning, I create a socket(1 socket for all child processes), after that at each child process I connect to the server using connect function but I get this error msg:&quot;Transport endpoint is already connected&quot;<br />
<br />
but if I create a socket for every child processes and connect the child processes to the server, I get no error.<br />
<br />
if the memory space of the parent is copied, why this problem occurs?what is the difference between the two methods?</div>

]]></content:encoded>
			<category domain="http://www.unix.com/high-level-programming/">High Level Programming</category>
			<dc:creator>xyzt</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/high-level-programming/123773-connecting-child-processes-server.html</guid>
		</item>
		<item>
			<title>Need a flight program</title>
			<link>http://www.unix.com/high-level-programming/123740-need-flight-program-new-post.html</link>
			<pubDate>Sat, 14 Nov 2009 00:05:01 GMT</pubDate>
			<description>I am building a UAV and building a computer control system. I am wanting to use a small linux disro (puppy, damn small) so that i need no drives except sd card reader. I am wondering if anyone knew of a flight control program or something that can be motified to work. The basics are that i am gonna...</description>
			<content:encoded><![CDATA[<div>I am building a UAV and building a computer control system. I am wanting to use a small linux disro (puppy, damn small) so that i need no drives except sd card reader. I am wondering if anyone knew of a flight control program or something that can be motified to work. The basics are that i am gonna use a 3g cell to communicate and for gps, a small decent mother board an amd phenom II processor, 2X 4g ddr2, and a sdcard reader. NO DRIVES- too much weight. I have tested the prototype and it flies. I know a phone isnt instant but thats ok. it will used to give cooridants and to give commands. I plan to have the computer to control, by usb, a control board but want some input before i start building it. Any ideas or suggestions or help would be appreciated.</div>

]]></content:encoded>
			<category domain="http://www.unix.com/high-level-programming/">High Level Programming</category>
			<dc:creator>linux2flight</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/high-level-programming/123740-need-flight-program.html</guid>
		</item>
		<item>
			<title>Shell SQLPlus</title>
			<link>http://www.unix.com/high-level-programming/123691-shell-sqlplus-new-post.html</link>
			<pubDate>Fri, 13 Nov 2009 12:57:59 GMT</pubDate>
			<description><![CDATA[Hi, 
  
I am trying to execute the update statment in shell sqlplus.But nothing prompts.if i do ctrl+c i got the below error. 
  
SQL>  update table set enabled='N' where type_code='xx'; 
^C update table set enabled='N' where type_code='xx' 
        * 
ERROR at line 1: 
ORA-01013: user requested...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
 <br />
I am trying to execute the update statment in shell sqlplus.But nothing prompts.if i do ctrl+c i got the below error.<br />
 <br />
SQL&gt;  update table set enabled='N' where type_code='xx';<br />
^C update table set enabled='N' where type_code='xx'<br />
        *<br />
ERROR at line 1:<br />
ORA-01013: user requested cancel of current operation.<br />
 <br />
if i use select statement records are retrived,<br />
is it i need any access permissions...if so how to give that<br />
can anyone advice this.</div>

]]></content:encoded>
			<category domain="http://www.unix.com/high-level-programming/">High Level Programming</category>
			<dc:creator>nmahendran</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/high-level-programming/123691-shell-sqlplus.html</guid>
		</item>
		<item>
			<title>Hairy Problem! lseek over 4G</title>
			<link>http://www.unix.com/high-level-programming/123677-hairy-problem-lseek-over-4g-new-post.html</link>
			<pubDate>Fri, 13 Nov 2009 08:57:12 GMT</pubDate>
			<description><![CDATA[recently my project needs me to lseek a position over 4G size.... 
i found in linux or unix the parameters are all ulong 32 bits...the limit dooms the movement of a position over 4G 
I was told that i should lseek64 to meet my need... but i have no idea where i can get the function neither by "man...]]></description>
			<content:encoded><![CDATA[<div>recently my project needs me to lseek a position over 4G size....<br />
i found in linux or unix the parameters are all ulong 32 bits...the limit dooms the movement of a position over 4G<br />
I was told that i should lseek64 to meet my need... but i have no idea where i can get the function neither by &quot;man lseek64&quot;....<br />
do you how to use the function &quot;lseek64&quot; or similiar functions by which i can jump over 4G, thanx .:(:(:(:(:(:(:(:(:(</div>

]]></content:encoded>
			<category domain="http://www.unix.com/high-level-programming/">High Level Programming</category>
			<dc:creator>macroideal</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/high-level-programming/123677-hairy-problem-lseek-over-4g.html</guid>
		</item>
		<item>
			<title>Compile a proc/c++ file in debug mode.</title>
			<link>http://www.unix.com/high-level-programming/123594-compile-proc-c-file-debug-mode-new-post.html</link>
			<pubDate>Thu, 12 Nov 2009 10:56:54 GMT</pubDate>
			<description><![CDATA[Hi, 
  
I'm using the following commands to execute a proc file, but I'm unable to debug the program. What modifications do I need to make in the command options to debug the program created. 
  
I have a proc1.pc file, using the following three steps to generate the proc1 exe. After the proc1 exe...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
 <br />
I'm using the following commands to execute a proc file, but I'm unable to debug the program. What modifications do I need to make in the command options to debug the program created.<br />
 <br />
<font color="windowtext"><font face="Calibri">I have a proc1.pc file, using the following three steps to generate the proc1 exe. After the proc1 exe is generated, I'm unable to debug that file. Please help.</font></font><br />
 <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"><font color="windowtext"><font face="Calibri">1.&nbsp; &nbsp; &nbsp;  </font></font><font color="windowtext"><font face="Calibri">proc proc1.pc</font></font><br />
<font color="windowtext"><font face="Calibri">2.&nbsp; &nbsp; &nbsp;  </font></font><font color="windowtext"><font face="Calibri">cc -I ${ORACLE_HOME}/precomp/public -c proc1.c</font></font><br />
<font color="windowtext"><font face="Calibri">3.&nbsp; &nbsp; &nbsp;  </font></font><font color="windowtext"><font face="Calibri">cc -bloadmap:proc1.map -lm -lld -L $ORACLE_LIB $ORACLE_LIB/libcommon9.a $ORACLE_LIB/libgeneric9.a -lclntsh -o proc1 proc1.o</font></font></code><hr />
</div></div>

]]></content:encoded>
			<category domain="http://www.unix.com/high-level-programming/">High Level Programming</category>
			<dc:creator>ehari</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/high-level-programming/123594-compile-proc-c-file-debug-mode.html</guid>
		</item>
		<item>
			<title>makefile help</title>
			<link>http://www.unix.com/high-level-programming/123587-makefile-help-new-post.html</link>
			<pubDate>Thu, 12 Nov 2009 10:05:01 GMT</pubDate>
			<description><![CDATA[Hi all, 
  
   I'm new to make files . I'm writing a make file to compile and create .so files. i've 20 .cpp files. I want to compile one file at a time and then i've to create 1 .so for each file that i compiled.  
  
for eg: 
  
list.mk is having all the 20 .spp files. 
  
name = a.cpp 
name =+...]]></description>
			<content:encoded><![CDATA[<div>Hi all,<br />
 <br />
   I'm new to make files . I'm writing a make file to compile and create .so files. i've 20 .cpp files. I want to compile one file at a time and then i've to create 1 .so for each file that i compiled. <br />
 <br />
for eg:<br />
 <br />
list.mk is having all the 20 .spp files.<br />
 <br />
name = a.cpp<br />
name =+ b.cpp<br />
....<br />
 <br />
if i give CC -o $(name)  it is taking all the 20 at the same time. but i want to take one file at a time and compile it.<br />
 <br />
simply if i give <br />
display:<br />
           @echo &quot; Name = $(name) &quot;<br />
 <br />
then it has to display <br />
Name = a.cpp<br />
Name = b.cpp etc..<br />
not like Name = a.cpp b.cpp c.cpp n all..<br />
 <br />
 <br />
Thanks in advance</div>

]]></content:encoded>
			<category domain="http://www.unix.com/high-level-programming/">High Level Programming</category>
			<dc:creator>vij_krr</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/high-level-programming/123587-makefile-help.html</guid>
		</item>
	</channel>
</rss>
