118742Sedward /* 233514Sbostic * Copyright (c) 1983 Regents of the University of California. 333514Sbostic * All rights reserved. 433514Sbostic * 5*42835Sbostic * %sccs.include.redist.c% 618742Sedward */ 718742Sedward 833514Sbostic #ifndef lint 9*42835Sbostic static char sccsid[] = "@(#)wwerror.c 3.7 (Berkeley) 06/02/90"; 1033514Sbostic #endif /* not lint */ 1133514Sbostic 1214963Sedward #include "ww.h" 1314963Sedward 1414963Sedward char * 1514963Sedward wwerror() 1614963Sedward { 1742422Sbostic extern int errno; 1842422Sbostic char *strerror(); 1914963Sedward 2014963Sedward switch (wwerrno) { 2114963Sedward case WWE_NOERR: 2214963Sedward return "No error"; 2314963Sedward case WWE_SYS: 2442422Sbostic return strerror(errno); 2514963Sedward case WWE_NOMEM: 2614963Sedward return "Out of memory"; 2714963Sedward case WWE_TOOMANY: 2814963Sedward return "Too many windows"; 2914963Sedward case WWE_NOPTY: 3014963Sedward return "Out of pseudo-terminals"; 3114963Sedward case WWE_SIZE: 3214963Sedward return "Bad window size"; 3314963Sedward case WWE_BADTERM: 3414963Sedward return "Unknown terminal type"; 3514963Sedward case WWE_CANTDO: 3614963Sedward return "Can't run window on this terminal"; 3714963Sedward default: 3814963Sedward return "Unknown error"; 3914963Sedward } 4014963Sedward } 41