The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > AIX
Google UNIX.COM


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Poll: Would you be willing to use a Mac as your primary system? - TechRepublic iBot UNIX and Linux RSS News 0 07-31-2007 12:10 PM
select vs poll smanu IP Networking 12 04-30-2007 02:22 PM
select/poll and Signal Safety nopcoder High Level Programming 0 01-27-2006 08:35 AM
Quick Poll: Solaris IP Multipathing kduffin IP Networking 3 12-05-2003 09:16 AM
How to convert the "select" function into a "poll" function rbolante High Level Programming 1 07-10-2001 07:49 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 02-13-2008
Registered User
 

Join Date: Feb 2008
Posts: 1
POLL function fails under AIX v5.3

I am having a strange problem with the poll() routine. I compiled a module under AIX 5.2 using the poll routine, it worked fine. When the OS was upgraded to AIX 5.3 the poll routine return an error code.

Here is a summary of the code:

#define MAX_EVENTS 300
long eventCount;
POLLIST(MAX_EVENTS,MAX_EVENTS) pList; /* defined in the the /usr/include/sys/poll.h file */
…….
…….
eventCount = poll( &pList, (long)((MAX_EVENTS<<16)|(MAX_EVENTS)),
(long) 0 );


The above call returns -1 and the global variable errno is set to 22 (EINVAL) under AIX 5.3, BUT works fine under AIX 5.2.

I have not changed the code. Can you anyone explain why this is no longer working?

Thanks,
Tahir
Reply With Quote
Google The UNIX and Linux Forums
Forum Sponsor
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 06:25 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0