- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: errno
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-05-2004 08:47 PM
тАО08-05-2004 08:47 PM
errno
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 ???
Thanks
$make
gcc -D_REENTRANT -shared -fpic -lpthread gas_configuration.c gas_acquisition.c -o libgas_fifos.sl
gcc -L. -lgas_fifos testComm.c -o test
$./test
Begin
errno : 251
$
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-05-2004 10:11 PM
тАО08-05-2004 10:11 PM
Re: errno
grep 251 sys/errno.h
#define ENOSYS 251 /* Function not implemented */
To make string error output then use
#include
printf ("%s",strerror(errno));
Makefile is not having any problem now. The c program contains the problem now.
Regards
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-05-2004 10:13 PM
тАО08-05-2004 10:13 PM
Re: errno
Code :
retour = recvfrom(t_sockets[indice].socket, payload, FRAME_LENGTH, O_NONBLOCK, &t_sockets[indice].sin_remote, &size_addr);
if(retour >= 0)
{
.......
}
else
{
printf("errno %d\n", errno);
if(errno != EAGAIN)
{
perror("Error in recvfrom");
}
}
Result :
251
Error in recvfrom: Resource temporarily unavailable
How can I correct the problem ??
Thanks for your help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-05-2004 10:41 PM
тАО08-05-2004 10:41 PM
Re: errno
flag with fcntl() and the receive operation
would block, or the socket has an error that
was set asynchronously.An asynchronous
error can be caused by a gateway failing to
forward a datagram because the datagram
exceeds the MTU of the next-hop network and
the "Don't Fragment" (DF) bit in the datagram
is set.(See SO_PMTU in getsockopt(2).)
To overcome this use setsockopt with SO_PMTU to overcome this problem.
SO_PMTU will not be in mage page so use here,
http://dune.mcs.kent.edu/cgi-bin/man2html?getsockopt(2)
int s_flag=1
setsockopt(s,SO_PMTU,s_flag,sizeof(int));
and check your program now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-06-2004 01:50 AM
тАО08-06-2004 01:50 AM
Re: errno
-D_REENTRANT
Thankes for your help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-06-2004 03:57 AM
тАО08-06-2004 03:57 AM
Re: errno
http://devrsrc1.external.hp.com/STK/impacts/i321.html
Muthu.