summaryrefslogtreecommitdiffstats
path: root/bin/stty
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>1998-05-18 06:51:59 +0000
committercharnier <charnier@FreeBSD.org>1998-05-18 06:51:59 +0000
commitd40a1af7e08585baef50c2b39e2084a2895d94f9 (patch)
tree934a5d633259fb57b60f4e0c4832781b53acaa9c /bin/stty
parent50b030d998b91f966fc075e6f1ea84b00c3cc91c (diff)
downloadFreeBSD-src-d40a1af7e08585baef50c2b39e2084a2895d94f9.zip
FreeBSD-src-d40a1af7e08585baef50c2b39e2084a2895d94f9.tar.gz
Correct use of .Nm. Add rcsid.
Diffstat (limited to 'bin/stty')
-rw-r--r--bin/stty/cchar.c8
-rw-r--r--bin/stty/gfmt.c8
-rw-r--r--bin/stty/modes.c8
-rw-r--r--bin/stty/print.c8
-rw-r--r--bin/stty/stty.116
-rw-r--r--bin/stty/stty.c8
-rw-r--r--bin/stty/util.c8
7 files changed, 39 insertions, 25 deletions
diff --git a/bin/stty/cchar.c b/bin/stty/cchar.c
index f054c7a..f9e6e70 100644
--- a/bin/stty/cchar.c
+++ b/bin/stty/cchar.c
@@ -29,12 +29,14 @@
* 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.
- *
- * $Id$
*/
#ifndef lint
-static char const sccsid[] = "@(#)cchar.c 8.5 (Berkeley) 4/2/94";
+#if 0
+static char sccsid[] = "@(#)cchar.c 8.5 (Berkeley) 4/2/94";
+#endif
+static const char rcsid[] =
+ "$Id$";
#endif /* not lint */
#include <sys/types.h>
diff --git a/bin/stty/gfmt.c b/bin/stty/gfmt.c
index 035fb76..6e66537 100644
--- a/bin/stty/gfmt.c
+++ b/bin/stty/gfmt.c
@@ -29,12 +29,14 @@
* 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.
- *
- * $Id$
*/
#ifndef lint
-static char const sccsid[] = "@(#)gfmt.c 8.6 (Berkeley) 4/2/94";
+#if 0
+static char sccsid[] = "@(#)gfmt.c 8.6 (Berkeley) 4/2/94";
+#endif
+static const char rcsid[] =
+ "$Id$";
#endif /* not lint */
#include <sys/types.h>
diff --git a/bin/stty/modes.c b/bin/stty/modes.c
index d690bec..83eec2a 100644
--- a/bin/stty/modes.c
+++ b/bin/stty/modes.c
@@ -29,12 +29,14 @@
* 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.
- *
- * $Id$
*/
#ifndef lint
-static char const sccsid[] = "@(#)modes.c 8.3 (Berkeley) 4/2/94";
+#if 0
+static char sccsid[] = "@(#)modes.c 8.3 (Berkeley) 4/2/94";
+#endif
+static const char rcsid[] =
+ "$Id$";
#endif /* not lint */
#include <sys/types.h>
diff --git a/bin/stty/print.c b/bin/stty/print.c
index 21eb853..8f4f013 100644
--- a/bin/stty/print.c
+++ b/bin/stty/print.c
@@ -29,12 +29,14 @@
* 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.
- *
- * $Id: print.c,v 1.8 1997/02/22 14:05:53 peter Exp $
*/
#ifndef lint
-static char const sccsid[] = "@(#)print.c 8.6 (Berkeley) 4/16/94";
+#if 0
+static char sccsid[] = "@(#)print.c 8.6 (Berkeley) 4/16/94";
+#endif
+static const char rcsid[] =
+ "$Id$";
#endif /* not lint */
#include <sys/types.h>
diff --git a/bin/stty/stty.1 b/bin/stty/stty.1
index 668dcd9..d2ac6bf 100644
--- a/bin/stty/stty.1
+++ b/bin/stty/stty.1
@@ -33,7 +33,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)stty.1 8.4 (Berkeley) 4/18/94
-.\" $Id: stty.1,v 1.7 1997/03/12 15:59:22 mpp Exp $
+.\" $Id: stty.1,v 1.8 1997/06/02 06:32:26 charnier Exp $
.\"
.Dd April 18, 1994
.Dt STTY 1
@@ -48,7 +48,7 @@
.Op operands
.Sh DESCRIPTION
The
-.Nm stty
+.Nm
utility sets or reports on terminal
characteristics for the device that is its standard input.
If no options or operands are specified, it reports the settings of a subset
@@ -60,7 +60,7 @@ Some combinations of arguments are mutually
exclusive on some terminal types.
.Pp
The following options are available:
-.Bl -tag -width Ds
+.Bl -tag -width indent
.It Fl a
Display all the current settings for the terminal to standard output
as per
@@ -84,7 +84,7 @@ block on the open.
.It Fl g
Display all the current settings for the terminal to standard output
in a form that may be used as an argument to a subsequent invocation of
-.Nm stty
+.Nm
to restore the current terminal state as per
.St -p1003.2 .
.El
@@ -493,7 +493,9 @@ first rows, then columns.
.Ss Compatibility Modes:
.Pp
These modes remain for compatibility with the previous version of
-the stty command.
+the
+.Nm
+command.
.Bl -tag -width Fl
.It Cm all
Reports all the terminal modes as with
@@ -564,13 +566,13 @@ Same as the control character
.El
.Pp
The
-.Nm stty
+.Nm
utility exits with a value of 0 if successful, and >0 if an error occurs.
.Sh SEE ALSO
.Xr termios 4
.Sh STANDARDS
The
-.Nm stty
+.Nm
function is expected to be
.St -p1003.2
compatible. The flags
diff --git a/bin/stty/stty.c b/bin/stty/stty.c
index 2e047f6..b2965a8 100644
--- a/bin/stty/stty.c
+++ b/bin/stty/stty.c
@@ -29,8 +29,6 @@
* 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.
- *
- * $Id: stty.c,v 1.10 1997/03/28 15:24:41 imp Exp $
*/
#ifndef lint
@@ -40,7 +38,11 @@ static char const copyright[] =
#endif /* not lint */
#ifndef lint
-static char const sccsid[] = "@(#)stty.c 8.3 (Berkeley) 4/2/94";
+#if 0
+static char sccsid[] = "@(#)stty.c 8.3 (Berkeley) 4/2/94";
+#endif
+static const char rcsid[] =
+ "$Id$";
#endif /* not lint */
#include <sys/types.h>
diff --git a/bin/stty/util.c b/bin/stty/util.c
index 9da17e1..f54ac42 100644
--- a/bin/stty/util.c
+++ b/bin/stty/util.c
@@ -29,12 +29,14 @@
* 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.
- *
- * $Id$
*/
#ifndef lint
-static char const sccsid[] = "@(#)util.c 8.3 (Berkeley) 4/2/94";
+#if 0
+static char sccsid[] = "@(#)util.c 8.3 (Berkeley) 4/2/94";
+#endif
+static const char rcsid[] =
+ "$Id$";
#endif /* not lint */
#include <sys/types.h>
OpenPOWER on IntegriCloud