1: #if !defined(lint) && defined(DOSCCS)
2: static char sccsid[] = "@(#)wwerror.c 3.3.1 1996/3/22";
3: #endif
4:
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:
11: #include "ww.h"
12:
13: char *
14: wwerror()
15: {
16: extern errno;
17:
18: switch (wwerrno) {
19: case WWE_NOERR:
20: return "No error";
21: case WWE_SYS:
22: return strerror(errno);
23: case WWE_NOMEM:
24: return "Out of memory";
25: case WWE_TOOMANY:
26: return "Too many windows";
27: case WWE_NOPTY:
28: return "Out of pseudo-terminals";
29: case WWE_SIZE:
30: return "Bad window size";
31: case WWE_BADTERM:
32: return "Unknown terminal type";
33: case WWE_CANTDO:
34: return "Can't run window on this terminal";
35: default:
36: return "Unknown error";
37: }
38: }
Defined functions
Defined variables
sccsid
defined in line
2;
never used