[BusyBox] [ANNOUNCE] utelnetd-0.1.1

Glenn R Heard Jr rayzer at zoominternet.net
Mon May 20 16:03:05 UTC 2002


Rich,
    Take a look at this excerpt from the telnetd I use:

getpty(char *line)
{
        int p;
#ifdef HAVE_DEVPTS_FS
        p = open("/dev/ptmx", 2);
        if (p > 0) {
            grantpt(p);
            unlockpt(p);
            strcpy(line, ptsname(p));
            return(p);
        }
#else

I had to define the HAVE_DEVPTS_FS by hand before it would work.



More information about the busybox mailing list