# 2.11BSD#431 - /usr/src/ucb/window/wwerror.c

##### Functions

    wwerror           X

       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

wwerror defined in line 13; used 15 times

- in /usr/src/ucb/window/cmd2.c line 73
- in /usr/src/ucb/window/cmd6.c line 63
- in /usr/src/ucb/window/lcmd2.c line 26, 68, 145, 170, 252
- in /usr/src/ucb/window/main.c line 103, 117, 127, 133
- in /usr/src/ucb/window/win.c line 50, 71, 256
- in /usr/src/ucb/window/ww.h line 250

#### Defined variables

sccsid defined in line 2; never used

Last modified: 1996-03-23 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 661 |