Add define for Kirk Smith's USR Courier driver. Change default baud
[unix-history] / usr / src / usr.bin / window / wwerror.c
CommitLineData
3a147896 1#ifndef lint
60de5df9 2static char sccsid[] = "@(#)wwerror.c 3.3 %G%";
3a147896
EW
3#endif
4
60de5df9
EW
5/*
6 * Copyright (c) 1983 Regents of the University of California,
7 * All rights reserved. Redistribution permitted subject to
8 * the terms of the Berkeley Software License Agreement.
9 */
10
3a147896
EW
11#include "ww.h"
12
13char *
14wwerror()
15{
16 extern errno;
17 extern char *sys_errlist[];
18
19 switch (wwerrno) {
20 case WWE_NOERR:
21 return "No error";
22 case WWE_SYS:
23 return sys_errlist[errno];
24 case WWE_NOMEM:
25 return "Out of memory";
26 case WWE_TOOMANY:
27 return "Too many windows";
28 case WWE_NOPTY:
29 return "Out of pseudo-terminals";
30 case WWE_SIZE:
31 return "Bad window size";
32 case WWE_BADTERM:
33 return "Unknown terminal type";
34 case WWE_CANTDO:
35 return "Can't run window on this terminal";
36 default:
37 return "Unknown error";
38 }
39}