Added 'conditional cs_listen' feature.
[yaz-moved-to-github.git] / comstack / comstack.c
1 /*
2  * Copyright (c) 1995-1998, Index Data
3  * See the file LICENSE for details.
4  * Sebastian Hammer, Adam Dickmeiss
5  *
6  * $Log: comstack.c,v $
7  * Revision 1.5  1998-06-22 11:32:35  adam
8  * Added 'conditional cs_listen' feature.
9  *
10  * Revision 1.4  1997/09/29 07:16:14  adam
11  * Array cs_errlist no longer global.
12  *
13  * Revision 1.3  1997/09/01 08:49:14  adam
14  * New windows NT/95 port using MSV5.0. Minor changes only.
15  *
16  * Revision 1.2  1995/09/29 17:01:48  quinn
17  * More Windows work
18  *
19  * Revision 1.1  1995/06/14  09:58:20  quinn
20  * Renamed yazlib to comstack.
21  *
22  * Revision 1.2  1995/05/16  08:51:15  quinn
23  * License, documentation, and memory fixes
24  *
25  * Revision 1.1  1995/03/14  10:28:34  quinn
26  * Adding server-side support to tcpip.c and fixing bugs in nonblocking I/O
27  *
28  *
29  */
30
31 #include <comstack.h>
32
33 static const char *cs_errlist[] =
34 {
35     "No error or unspecified error",
36     "System (lower-layer) error",
37     "Operation out of state",
38     "No data (operation would block)",
39     "New data while half of old buffer is on the line (flow control)",
40     "Permission denied"
41 };
42
43 const char *cs_errmsg(int n)
44 {
45     return cs_errlist[n];
46 }