Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: [netbsd-2-0] src/etc



Module Name:    src
Committed By:   tron
Date:           Sun Aug 29 13:18:34 UTC 2004

Modified Files:
        src/etc [netbsd-2-0]: MAKEDEV.tmpl

Log Message:
Pull up revision 1.26 via patch (requested by christos in ticket #776):
Rework the sequence that ptys get allocated so that we don't end up with
gaps in the sequence of minor numbers as we allocate ptys. Having gaps
has 2 bad side effects:
        - ptm does not like it
        - we allocate a lot of storage that we'll never use in the pty array
          (the current scheme allocated 62 ptys 0-15,256-301, so we needed
           302 entries to get 64).
Now we allocate ptys in groups of 16 or 14 instead of 64, and we follow
the minor number order.
We default to 64 pty's by building pty0-3, which is all using the old
traditional pty names. Of course to do this, the shell code is a bit
convoluted.


To generate a diff of this commit:
cvs rdiff -r1.23.2.1 -r1.23.2.2 src/etc/MAKEDEV.tmpl

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index