In message <[email protected]>
          Theo Markettos <[email protected]> wrote:

> I'm trying to build Nettle from CVS.  It seems to build fine (now I've got
> libssh2, libgcrypt and libgpg-error built), except for one issue...  it uses
> SocketWatch to hear about socket events on its pollword.  It calls
> __unixlib_getdev() to translate the socket number it gets back from Unixlib
> to be a RISC OS socket handle.

Yuck.  __unixlib_getdev is an internal UnixLib call.  Even its return
type struct dev is internal.

> But in Jul 2010 Unixlib turned this into:
> 
> static struct dev * __unixlib_getdev (int fd)
> 
> ie a static definition, which can't be accessed outside of Unixlib.
> 
> Is there a more 'approved' way of getting a RISC OS socket number out of a
> Unixlib socket ID?

Not as is.  I guess we need to define a proper & future supportable
API for this.  I put this on my agenda.

BTW, the __unixlib_getdev() calls in socketwatch_register() and
socketwatch_dereigster() are done at the wrong place.  They should only
be done for the SocketWatch_Register/SocketWatch_Deregister SWI calls,
not for the ioctl() calls.

John.
-- 
John Tytgat, in his comfy chair at home                                 BASS
[email protected]                             ARM powered, RISC OS driven

_______________________________________________
GCCSDK mailing list [email protected]
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK

Reply via email to