Date: Thu, 8 Nov 2007 15:51:53 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern tty_pty.c Message-ID: <200711081551.lA8FprZF056082@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jhb 2007-11-08 15:51:53 UTC FreeBSD src repository Modified files: sys/kern tty_pty.c Log: Make it easier to add more ptys to the pty(4) driver: - Use unit2minor() and minor2unit() to generate minor numbers to support unit numbers higher than 255. - Use simple string operations on the 'names' array rather than hard-coded constants and switch statements so that more ptys can be added by simply expanding the 'names' array. MFC after: 1 week Revision Changes Path 1.153 +12 -19 src/sys/kern/tty_pty.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200711081551.lA8FprZF056082>