tech-userlevel archive

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

Re: slattach(8), attache line discipline by name



In article <5262D8BF.1080906%msys.ch@localhost>, Marc Balmer  
<marc%msys.ch@localhost> wrote:
>-=-=-=-=-=-
>
>slattach(8) claims to attach tty line disciplines by name using the -t
>option.  It does, however, only attach the slip or strip discpline (if
>the latter is enabled).  It uses an ioctl to attach the line discipline
>by number.  It is not possible to pass an arbitrary line discipline name.
>
>NetBSD registers tty line disciplines internally by name (line
>disciplines register themselved by calling ttyldisc_attach()), but
>slattach(8) in its current form is not able to attach such named line
>disciplines.
>
>The attached patch to slattach(8) changes it to use the TIOCSLINED
>ioctl, which passes a line discipline by name, instead of by number,
>making slattach usable for any line discipline.  The default line
>discipline remains at "slip".
>
>ok?

LGTM.

christos



Home | Main Index | Thread Index | Old Index