summaryrefslogtreecommitdiff
path: root/sys/arch/hppa
diff options
context:
space:
mode:
authorJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2014-07-13 09:26:09 +0000
committerJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2014-07-13 09:26:09 +0000
commit219fb4bc5d8106b0ba4be12dadb7546e3f82f36f (patch)
tree0585011bd8cb3c7efedd44b8a5c215c3fbfef701 /sys/arch/hppa
parent6cc6e9954a3db49f93dea8de924444001078fe20 (diff)
move putchar() into libsa
"sure" miod@
Diffstat (limited to 'sys/arch/hppa')
-rw-r--r--sys/arch/hppa/stand/libsa/Makefile4
-rw-r--r--sys/arch/hppa/stand/libsa/dev_hppa.c35
2 files changed, 4 insertions, 35 deletions
diff --git a/sys/arch/hppa/stand/libsa/Makefile b/sys/arch/hppa/stand/libsa/Makefile
index 0c9cdccdf2b..71eeca4469b 100644
--- a/sys/arch/hppa/stand/libsa/Makefile
+++ b/sys/arch/hppa/stand/libsa/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.18 2014/07/12 23:34:54 jasper Exp $
+# $OpenBSD: Makefile,v 1.19 2014/07/13 09:26:08 jasper Exp $
.include "${.CURDIR}/../Makefile.inc"
@@ -21,7 +21,7 @@ SRCS= machdep.c pdc.c itecons.c dev_hppa.c time.c \
# stand routines
SRCS+= alloc.c exit.c getfile.c gets.c getchar.c globals.c \
- printf.c strerror.c strtol.c strchr.c ctime.c snprintf.c
+ printf.c putchar.c strerror.c strtol.c strchr.c ctime.c snprintf.c
# io routines
SRCS+= close.c closeall.c dev.c disklabel.c dkcksum.c fstat.c ioctl.c lseek.c \
diff --git a/sys/arch/hppa/stand/libsa/dev_hppa.c b/sys/arch/hppa/stand/libsa/dev_hppa.c
index b716fe8ff0a..8ed4b5212ec 100644
--- a/sys/arch/hppa/stand/libsa/dev_hppa.c
+++ b/sys/arch/hppa/stand/libsa/dev_hppa.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dev_hppa.c,v 1.16 2014/07/12 21:54:58 jasper Exp $ */
+/* $OpenBSD: dev_hppa.c,v 1.17 2014/07/13 09:26:08 jasper Exp $ */
/*
* Copyright (c) 1998-2004 Michael Shalayeff
@@ -167,39 +167,8 @@ devboot(dev, p)
*p = '\0';
}
-int pch_pos;
-
-void
-putchar(c)
- int c;
-{
- switch(c) {
- case '\177': /* DEL erases */
- cnputc('\b');
- cnputc(' ');
- case '\b':
- cnputc('\b');
- if (pch_pos)
- pch_pos--;
- break;
- case '\t':
- do
- cnputc(' ');
- while(++pch_pos % 8);
- break;
- case '\n':
- case '\r':
- cnputc(c);
- pch_pos=0;
- break;
- default:
- cnputc(c);
- pch_pos++;
- break;
- }
-}
-
char ttyname_buf[8];
+
char *
ttyname(fd)
int fd;