From 5cb84ec742fd33f78c8022863fadaa8d0d93e176 Mon Sep 17 00:00:00 2001 From: Jacob McDonnell Date: Sat, 25 Apr 2026 15:32:58 -0400 Subject: feat: Added NetBSD man pages --- static/netbsd/man9/linedisc.9 | 107 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 107 insertions(+) create mode 100644 static/netbsd/man9/linedisc.9 (limited to 'static/netbsd/man9/linedisc.9') diff --git a/static/netbsd/man9/linedisc.9 b/static/netbsd/man9/linedisc.9 new file mode 100644 index 00000000..e5381836 --- /dev/null +++ b/static/netbsd/man9/linedisc.9 @@ -0,0 +1,107 @@ +.\" $NetBSD: linedisc.9,v 1.12 2024/09/07 19:13:29 rillig Exp $ +.\" +.\" Copyright (c) 2000 Christopher G. Demetriou. +.\" All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" 3. All advertising materials mentioning features or use of this software +.\" must display the following acknowledgement: +.\" This product includes software developed for the +.\" NetBSD Project. See https://www.NetBSD.org/ for +.\" information about NetBSD. +.\" 4. The name of the author may not be used to endorse or promote products +.\" derived from this software without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR +.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES +.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, +.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT +.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +.\" +.\" --(license Id: LICENSE.proto,v 1.1 2000/06/13 21:40:26 cgd Exp )-- +.\" +.Dd November 1, 2000 +.Dt LINEDISC 9 +.Os +.Sh NAME +.Nm linedisc , +.Nm ttyldisc_add , +.Nm ttyldisc_lookup , +.Nm ttyldisc_remove +.Nd extensible line discipline framework +.Sh SYNOPSIS +.In sys/conf.h +.Ft int +.Fn ttyldisc_add "struct linesw *disc" "int no" +.Ft struct linesw * +.Fn ttyldisc_remove "const char *name" +.Ft struct linesw * +.Fn ttyldisc_lookup "const char *name" +.Sh DESCRIPTION +The +.Nx +TTY line discipline framework allows extensibility. +Modules that need special line disciplines can add +them as convenient and do not need to modify tty_conf.c. +Line disciplines are now managed by a string, rather than +number. +.Pp +Once the framework has been initialized, a new line +discipline can be added by creating and initializing a +.Fa struct linesw +and calling +.Fn ttyldisc_add . +.Pp +The following is a brief description of each function in the framework: +.Bl -tag -width "ttyldisc_remove()" +.It Fn ttyldisc_add +Register a line discipline. +The +.Fa l_name +field of the +.Fa struct linesw +should point to a string which is to be the symbolic +name of that line discipline. +For compatibility purposes, a line discipline number can be passed in +.Fa no , +but for new disciplines this should be set to +.Dv -1 . +.It Fn ttyldisc_lookup +Look up a line discipline by +.Fa name . +.Dv NULL +is returned if it can not be found. +.It Fn ttyldisc_remove +Remove a line discipline called +.Fa name +and return a pointer to it. +If the discipline cannot be found or removed +.Fn ttyldisc_remove +will return +.Dv NULL . +.El +.Sh SEE ALSO +.Xr tty 4 +.Sh HISTORY +The +.Nm +functions were added in +.Nx 1.6 . +.Sh AUTHORS +The +.Nx +extensible line discipline framework was created by +.An Eduardo Horvath +.Aq eeh@NetBSD.org . -- cgit v1.2.3