[go: up one dir, main page]

File: mytypes.h

package info (click to toggle)
socat 1.4.3.1-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,192 kB
  • ctags: 3,709
  • sloc: ansic: 19,348; sh: 3,435; makefile: 154
file content (24 lines) | stat: -rw-r--r-- 612 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* $Id: mytypes.h,v 1.3 2001/06/30 14:02:39 gerhard Exp $ */
/* Copyright Gerhard Rieger 2001 */
/* Published under the GNU General Public License V.2, see file COPYING */

#ifndef __mytypes_h_included
#define __mytypes_h_included 1

/* some types and macros I miss in C89 */

typedef enum { false, true } bool;

typedef unsigned char byte_t;

/* this should work for 16, 32, and 64 bit architectures */
typedef unsigned short byte2_t;

typedef unsigned long byte4_t;

#define Min(x,y) ((x)<=(y)?(x):(y))
#define Max(x,y) ((x)>=(y)?(x):(y))

#define SOCKADDR_MAX UNIX_PATH_MAX

#endif /* __mytypes_h_included */