add listen-timeout to function as an accept timeout
[socat/sam.git] / xiodiag.c
blob2753cc1d1308f6fa976b68c6de2f311595b81ae0
1 /* source: xiodiag.c */
2 /* Copyright Gerhard Rieger 2001, 2003 */
3 /* Published under the GNU General Public License V.2, see file COPYING */
5 /* this file contains source for some diagnostics */
7 #include "xiosysincludes.h"
8 #include "xioopen.h"
10 #include "xiodiag.h"
13 const char *ddirection[] = {
14 "reading", "writing", "reading and writing" } ;
16 /* compliant with S_ macros (sys/stat.h) */
17 const char *filetypenames[] = {
18 "undef", "named pipe", "character device", "undef",
19 "block device", "undef", "directory", "undef",
20 "regular file", "undef", "symbolic link", "undef",
21 "local socket", "undef", "undef", "\"MT\"?"} ;