<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: errno in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/errno/m-p/3351034#M712873</link>
    <description>You test program is stating a message as &lt;BR /&gt; grep 251 sys/errno.h&lt;BR /&gt;#define ENOSYS          251     /* Function not implemented     */&lt;BR /&gt;&lt;BR /&gt; To make string error output then use &lt;BR /&gt;&lt;BR /&gt; #include &lt;STRING.H&gt;&lt;BR /&gt;&lt;BR /&gt; printf ("%s",strerror(errno));&lt;BR /&gt;&lt;BR /&gt; Makefile is not having any problem now. The c program contains the problem now.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Muthu&lt;/STRING.H&gt;</description>
    <pubDate>Fri, 06 Aug 2004 05:11:25 GMT</pubDate>
    <dc:creator>Muthukumar_5</dc:creator>
    <dc:date>2004-08-06T05:11:25Z</dc:date>
    <item>
      <title>errno</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/errno/m-p/3351033#M712872</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I need to make a lib with pthread, when I run my make file all is good. But when I run my test program, I test errno in the begining and is already set to 251. Is it normal ??? What can I modify in my Makefile to have errno set to 0 ???&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;$make&lt;BR /&gt; gcc -D_REENTRANT -shared -fpic -lpthread gas_configuration.c gas_acquisition.c -o libgas_fifos.sl&lt;BR /&gt; gcc -L. -lgas_fifos testComm.c -o test&lt;BR /&gt;$./test   &lt;BR /&gt;Begin&lt;BR /&gt;errno : 251&lt;BR /&gt;$</description>
      <pubDate>Fri, 06 Aug 2004 03:47:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/errno/m-p/3351033#M712872</guid>
      <dc:creator>David THOMAS_9</dc:creator>
      <dc:date>2004-08-06T03:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: errno</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/errno/m-p/3351034#M712873</link>
      <description>You test program is stating a message as &lt;BR /&gt; grep 251 sys/errno.h&lt;BR /&gt;#define ENOSYS          251     /* Function not implemented     */&lt;BR /&gt;&lt;BR /&gt; To make string error output then use &lt;BR /&gt;&lt;BR /&gt; #include &lt;STRING.H&gt;&lt;BR /&gt;&lt;BR /&gt; printf ("%s",strerror(errno));&lt;BR /&gt;&lt;BR /&gt; Makefile is not having any problem now. The c program contains the problem now.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Muthu&lt;/STRING.H&gt;</description>
      <pubDate>Fri, 06 Aug 2004 05:11:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/errno/m-p/3351034#M712873</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-08-06T05:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: errno</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/errno/m-p/3351035#M712874</link>
      <description>I need to test errno to know if my recvfrom return EAGAIN.&lt;BR /&gt;&lt;BR /&gt;Code :&lt;BR /&gt;&lt;BR /&gt;retour = recvfrom(t_sockets[indice].socket, payload, FRAME_LENGTH, O_NONBLOCK, &amp;amp;t_sockets[indice].sin_remote, &amp;amp;size_addr);&lt;BR /&gt;if(retour &amp;gt;= 0)&lt;BR /&gt;{&lt;BR /&gt;.......&lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;{&lt;BR /&gt;     printf("errno %d\n", errno);&lt;BR /&gt;     if(errno != EAGAIN)&lt;BR /&gt;     {&lt;BR /&gt;          perror("Error in recvfrom");&lt;BR /&gt;     }&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Result :&lt;BR /&gt;    251&lt;BR /&gt;    Error in recvfrom: Resource temporarily unavailable&lt;BR /&gt;&lt;BR /&gt;How can I correct the problem ??&lt;BR /&gt;&lt;BR /&gt;Thanks for your help.</description>
      <pubDate>Fri, 06 Aug 2004 05:13:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/errno/m-p/3351035#M712874</guid>
      <dc:creator>David THOMAS_9</dc:creator>
      <dc:date>2004-08-06T05:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: errno</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/errno/m-p/3351036#M712875</link>
      <description>Your are getting EAGAIN because of Non-blocking I/O is enabled using O_NONBLOCK&lt;BR /&gt;       flag with fcntl() and the receive operation&lt;BR /&gt;       would block, or the socket has an error that&lt;BR /&gt;       was set asynchronously.An asynchronous&lt;BR /&gt;       error can be caused by a gateway failing to&lt;BR /&gt;       forward a datagram because the datagram&lt;BR /&gt;       exceeds the MTU of the next-hop network and&lt;BR /&gt;       the "Don't Fragment" (DF) bit in the datagram&lt;BR /&gt;       is set.(See SO_PMTU in getsockopt(2).)&lt;BR /&gt;&lt;BR /&gt; To overcome this use setsockopt with SO_PMTU to overcome this problem.&lt;BR /&gt;&lt;BR /&gt; SO_PMTU will not be in mage page so use here,&lt;BR /&gt;&lt;A href="http://dune.mcs.kent.edu/cgi-bin/man2html?getsockopt(2)" target="_blank"&gt;http://dune.mcs.kent.edu/cgi-bin/man2html?getsockopt(2)&lt;/A&gt;&lt;BR /&gt; &lt;BR /&gt; int s_flag=1&lt;BR /&gt; setsockopt(s,SO_PMTU,s_flag,sizeof(int));&lt;BR /&gt;&lt;BR /&gt; and check your program now.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 06 Aug 2004 05:41:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/errno/m-p/3351036#M712875</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-08-06T05:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: errno</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/errno/m-p/3351037#M712876</link>
      <description>I have resolved my problem. I use Multi-threaded and I have gorget the option with gcc :&lt;BR /&gt;-D_REENTRANT&lt;BR /&gt;&lt;BR /&gt;Thankes for your help</description>
      <pubDate>Fri, 06 Aug 2004 08:50:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/errno/m-p/3351037#M712876</guid>
      <dc:creator>David THOMAS_9</dc:creator>
      <dc:date>2004-08-06T08:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: errno</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/errno/m-p/3351038#M712877</link>
      <description>And the reason for getting problem and not getting because of -D_REENTRANT is given over at,&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://devrsrc1.external.hp.com/STK/impacts/i321.html" target="_blank"&gt;http://devrsrc1.external.hp.com/STK/impacts/i321.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Muthu.</description>
      <pubDate>Fri, 06 Aug 2004 10:57:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/errno/m-p/3351038#M712877</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-08-06T10:57:47Z</dc:date>
    </item>
  </channel>
</rss>

