![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace. |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#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 |
|||
| Google The UNIX and Linux Forums |
| Forum Sponsor | ||
|
|