Annotation of 43BSD/ucb/window/wwerror.c, revision 1.1

1.1     ! root        1: #ifndef lint
        !             2: static char sccsid[] = "@(#)wwerror.c  3.3 4/24/85";
        !             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:        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: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.