On Fri, 2010-07-09 at 16:31 -0700, Sergey Sprogis wrote:
> On 07/09/10 16:15, Garrett D'Amore wrote: 
> > On Fri, 2010-07-09 at 16:06 -0700, Sergey Sprogis wrote:
> >   
> > > I tried to build some old application on Solaris Next snv_142, but my
> > > build failed because SYS_poll  macros  no longer exists
> > > in /usr/include/syssyscall.h file.
> > > 
> > > Though the same file from Solaris 5.10 has it:
> > > 
> > > #define SYS_poll        87
> > > 
> > > Could anyone suggest me workaround for this failure?
> > > 
> > > Thanks,
> > > 
> > > Sergey
> > >     
> > 
> > 
> > Yikes. Your application is using some internal implementation details.
> > What kind of application is it?  
> It's File Manager V3.8 which has been killed in Solaris 5.9, I think.
> 
> Its 
> 
> lib/libxview/notify/sys_select.c
> 
> contains such code:
> 
>     rv = syscall (SYS_poll, pfd, (u_long)n, ms);
> 
> 
> I'm using this File Manager for years, and find it much
> better than all later versions. Unfortunately,
> it does not work smoothly  on Intel Solaris and  Linux 
> which I will try to fix.

Well, if you can use poll() (you should be able to here), that would be
better.  Directly calling system calls on Solaris is not a "supported"
API, and the details of system calls change from release to release.
Using POSIX blessed interfaces will lead to much greater happiness. :-)

        - Garrett

> 
> Sergey
> 
> > Its quite possible that the fix will be
> > easy to make.  Its equally possible that fixing the application will be
> > very difficult indeed.
> > 
> >     - Garrett
> > 
> >   
> 


_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to