Qtopia: GPRS (fwd)

Ole Kliemann ole-om-community-2008 at mail.plastictree.net
Wed Jul 30 13:29:10 CEST 2008


On Wed, Jul 30, 2008 at 06:38:15AM +1000, lpotter wrote:
> The patch I backported to 4.3 in Qtopia is this:
> 
>        // try opening Unix98 pseudo tty
>     if ((masterFd = ::open("/dev/ptmx", O_RDWR | O_NONBLOCK, 0)) >= 0) {
>         if (grantpt(masterFd) == 0) {
>             if (unlockpt(masterFd) == 0) {
>                 ptsname_r(masterFd, ttyname, BUFSIZ);
>                 if ((slaveFd = ::open(ttyname, O_RDWR | O_NOCTTY, 0)) >= 0)
>                     return true;
>             }
>         }
>         ::close(masterFd);
>     }

But it's not in the 20080730 snapshot. Depends on the function
prototype. If third argument is reference to pointer to char. Otherwise
ttyname is not available outside createPseudoTty() although it is used
later to be passed to pppd.

Anyway, so many things regarding GPRS beyond this are not working
properly. Would be interesting to know what has been done in 4.4. ;)
It's just no use looking into this in 4.3 now, when things might have
been corrected already in 4.4.

Ole
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://lists.openmoko.org/pipermail/community/attachments/20080730/17e8a9ef/attachment.pgp 


More information about the community mailing list