How to increase the max pty's on Freebsd 7.0?
Ed Schouten
ed at 80386.nl
Wed Apr 1 14:07:31 PDT 2009
Hi Kostik,
* Kostik Belousov <kostikbel at gmail.com> wrote:
> Can we switch to %x ? Or even, use some radix encoding of the number,
> to allow alphabetical symbols too ?
I guess that would break a lot of existing libraries. For example: older
RELENG_7/CURRENT libcs might still use TIOCGPTN. This ioctl just returns
a number that is just printed into a device name using "/dev/pts/%u" as
a format. I also suspect a lot of Linux/Solaris-minded software expects
the names to be in decimal form.
I also thought about that, but the risks are probably too high. I think
it's better to just redesign our utmp/wtmp/lastlog system. I guess we
could do something like this:
- Implement utmpx. At first utmpx should just be a set of wrappers
around utmp/wtmp/lastlog.
- Migrate all applications to utmpx.
- Change the utmpx code to use some new fancy file format.
I think I can finish the first step before 8.0 if I start working on
this one of these weeks.
--
Ed Schouten <ed at 80386.nl>
WWW: http://80386.nl/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20090401/2fee4135/attachment.pgp
More information about the freebsd-hackers
mailing list