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
pgpnf9k5UWV3I.pgp
Description: PGP signature
_______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community