POLL function fails under AIX v5.3


 
Thread Tools Search this Thread
Operating Systems AIX POLL function fails under AIX v5.3
# 1  
Old 02-13-2008
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
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Java 32 bit installation fails on an AIX platform

Hello. It is my first to deal with Java installation on an AIX platform. I am now trying to install Java 32bit using installp command. However, it throws back the message that the installation media cannot be found. I need to install Java 32bit to proceed with an installation of Oracle JD... (0 Replies)
Discussion started by: EJ2019
0 Replies

2. Shell Programming and Scripting

Zsh function does not terminate when ${name:?word} fails

(Simplified example): I have in my .zshrc the following function definition: function foo { local p=${1:?parameter missing} echo continue .... } Running the function with just foo produces, as expected, the message parameter missing, but it also output continue. I had expected... (0 Replies)
Discussion started by: rovf
0 Replies

3. Emergency UNIX and Linux Support

AIX upgrade fails

Hello Team, Am trying to upgrade the AIX 6.1 TL 7 to TL 8. My rootvg is mirrored so i have unmirrored and taken out the secondary disk and trying to install the update via smitty alt_clone. The filesets has been installed and finally when making the updated disk as bootable bosboot... (6 Replies)
Discussion started by: gowthamakanthan
6 Replies

4. Shell Programming and Scripting

Bash script fails with "function: not found" error

Hello everyone, I am having problems figuring this out. This script below is supposed to create a list of file names with their "md5sum", in a file "lib-list.txt" When I run it "sh component-list.sh " I get this:component-list.sh: 4: component-list.sh: function: not found component-list.sh:... (4 Replies)
Discussion started by: joemb
4 Replies

5. UNIX for Dummies Questions & Answers

Oracle client install for AIX - WinSCP fails

I am trying to install the oracle client for AIX. I downloaded the client to my Windows machine from Oracle Database 10g Release 2 for AIX5L "Oracle Database 10g Client Release 2 (10.2.0.1.0)". 1. Is this right? (I need 9 or 10 client) It was .gz file that I am now trying to move from... (2 Replies)
Discussion started by: shoefiend
2 Replies

6. Shell Programming and Scripting

Python 2.5 / 2.2 import "errno" fails on AIX Server

I am trying to import the "xmlrpclib" Module from Activepython 2.5 in einer older Python 2.2. Already achived this on a SUSE Linux server, but I am now required to do it on a AIX server. Resolved the first few error messages by copying files from Activepython to Python but I can't get the... (0 Replies)
Discussion started by: frieling
0 Replies

7. AIX

tcpdump fails at AIX 5.2

While executing tcpdump , i am getting following error. tcpdump: BIOCSETIF: en0: Do not specify an existing file. I checked with truss , and i able to see kioctl system is failed with "EEXIST" ============================================== Message from truss output... (2 Replies)
Discussion started by: sekarsamy
2 Replies

8. UNIX for Dummies Questions & Answers

scp from aix to windows (cygwin) fails

Hi... my problem is that I want to copy one html-file to my windows-box webserver using scp. so far no problem but the destination is in /cygdrive/c/program files/dest and as we all know unix doesnt like spaces in paths. scp html.file user@windowsbox:/cygdrive/c/program... (5 Replies)
Discussion started by: cypher82
5 Replies

9. AIX

AIX: chpath command fails

Hi Guys, i'm having trouble changing the path-priority. Now both priorities are 1 as you can see in the lspath-output. Any ideas why the chpath command fails? # chpath -l hdisk3 -p fscsi1 -a priority=10 Method error (/etc/methods/chgdisk): 0514-080 Invalid routine argument... (4 Replies)
Discussion started by: raba
4 Replies

10. Programming

How to convert the "select" function into a "poll" function

i have a program using the select function but i want to convert it to poll... how can i do this? thanks in advance... :) (1 Reply)
Discussion started by: rbolante
1 Replies
Login or Register to Ask a Question
Net::GPSD3::Return::POLL(3pm)				User Contributed Perl Documentation			     Net::GPSD3::Return::POLL(3pm)

NAME
Net::GPSD3::Return::POLL - Net::GPSD3 Return POLL Object SYNOPSIS
use Net::GPSD3; use Data::Dumper qw{Dumper}; my $gpsd = Net::GPSD3->new; my $poll = $gpsd->poll; print Dumper($poll); DESCRIPTION
Provides a Perl object interface to the POLL object returned by the GPSD daemon. METHODS
class Returns the object class string Returns the JSON string parent Return the parent Net::GPSD3 object time timestamp datetime active fix, tpv Returns the first fix from the Fixes array or undef if none. my $fix=$poll->fix #isa Net::GPSD3::Return::TPV or undef Note: I will try to keep this method consistant Fixes Object wrapper around JSON data my $fix=$poll->Fixes #isa [] of Net::GPSD3::Return::TPV objects my @fix=$poll->Fixes #isa () of Net::GPSD3::Return::TPV objects Note: I'm not sure why this is an array from the protocol but do not count on this staying the same sky Returns the first object from the Skyviews array or undef if none. my $sky=$poll->sky #isa Net::GPSD3::Return::SKY or undef Note: I will try to keep this method consistant Skyviews Object wrapper around JSON data my $sky=$poll->Skyviews #isa [] of Net::GPSD3::Return::SKY objects my @sky=$poll->Skyviews #isa () of Net::GPSD3::Return::SKY objects Note: I'm not sure why this is an array from the protocol but do not count on this staying the same Gst Object wrapper around JSON data my $gst=$poll->Gst #isa [] of Net::GPSD3::Return::GST objects my @gst=$poll->Gst #isa () of Net::GPSD3::Return::GST objects Note: I'm not sure why this is an array from the protocol but do not count on this staying the same BUGS
Log on RT and send to gpsd-dev email list SUPPORT
DavisNetworks.com supports all Perl applications including this package. Try gpsd-dev email list AUTHOR
Michael R. Davis CPAN ID: MRDVT STOP, LLC domain=>michaelrdavis,tld=>com,account=>perl http://www.stopllc.com/ COPYRIGHT
This program is free software licensed under the... The BSD License The full text of the license can be found in the LICENSE file included with this module. SEE ALSO
Net::GPSD3, Net::GPSD3::Return::Unknown::Timestamp perl v5.14.2 2011-12-27 Net::GPSD3::Return::POLL(3pm)