projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
date and time created 95/05/04 17:59:12 by christos
[unix-history]
/
usr
/
src
/
bin
/
stty
/
print.c
diff --git
a/usr/src/bin/stty/print.c
b/usr/src/bin/stty/print.c
index
cbd1b7d
..
51a0f46
100644
(file)
--- a/
usr/src/bin/stty/print.c
+++ b/
usr/src/bin/stty/print.c
@@
-1,12
+1,12
@@
/*-
/*-
- * Copyright (c) 1991, 1993
+ * Copyright (c) 1991, 1993
, 1994
* The Regents of the University of California. All rights reserved.
*
* %sccs.include.redist.c%
*/
#ifndef lint
* The Regents of the University of California. All rights reserved.
*
* %sccs.include.redist.c%
*/
#ifndef lint
-static char sccsid[] = "@(#)print.c 8.
3
(Berkeley) %G%";
+static char sccsid[] = "@(#)print.c 8.
6
(Berkeley) %G%";
#endif /* not lint */
#include <sys/types.h>
#endif /* not lint */
#include <sys/types.h>
@@
-29,11
+29,10
@@
print(tp, wp, ldisc, fmt)
int ldisc;
enum FMT fmt;
{
int ldisc;
enum FMT fmt;
{
- register struct cchar *p;
- register long tmp;
- register int cnt;
- register u_char *cc;
- int ispeed, ospeed;
+ struct cchar *p;
+ long tmp;
+ u_char *cc;
+ int cnt, ispeed, ospeed;
char buf1[100], buf2[100];
cnt = 0;
char buf1[100], buf2[100];
cnt = 0;
@@
-87,7
+86,6
@@
print(tp, wp, ldisc, fmt)
put("-altwerase", ALTWERASE, 0);
put("-noflsh", NOFLSH, 0);
put("-tostop", TOSTOP, 0);
put("-altwerase", ALTWERASE, 0);
put("-noflsh", NOFLSH, 0);
put("-tostop", TOSTOP, 0);
- put("-mdmbuf", MDMBUF, 0);
put("-flusho", FLUSHO, 0);
put("-pendin", PENDIN, 0);
put("-nokerninfo", NOKERNINFO, 0);
put("-flusho", FLUSHO, 0);
put("-pendin", PENDIN, 0);
put("-nokerninfo", NOKERNINFO, 0);
@@
-141,6
+139,7
@@
print(tp, wp, ldisc, fmt)
put("-clocal", CLOCAL, 0);
put("-cstopb", CSTOPB, 0);
put("-crtscts", CRTSCTS, 0);
put("-clocal", CLOCAL, 0);
put("-cstopb", CSTOPB, 0);
put("-crtscts", CRTSCTS, 0);
+ put("-mdmbuf", MDMBUF, 0);
/* special control characters */
cc = tp->c_cc;
/* special control characters */
cc = tp->c_cc;
@@
-180,6
+179,7
@@
static void
binit(lb)
char *lb;
{
binit(lb)
char *lb;
{
+
if (col) {
(void)printf("\n");
col = 0;
if (col) {
(void)printf("\n");
col = 0;
@@
-191,6
+191,7
@@
static void
bput(s)
char *s;
{
bput(s)
char *s;
{
+
if (col == 0) {
col = printf("%s: %s", label, s);
return;
if (col == 0) {
col = printf("%s: %s", label, s);
return;