doxygen: use correct comment syntax
[openocd/andreasf.git] / src / helper / system.h
blob85e0b1ee91413c76278816453b89b2e9dd2a8c5e
1 /***************************************************************************
2 * Copyright (C) 2006 by Dominic Rath <Dominic.Rath@gmx.de> *
3 * Copyright (C) 2007-2008 by Øyvind Harboe <oyvind.harboe@zylin.com> *
4 * Copyright (C) 2008 by Spencer Oliver <spen@spen-soft.co.uk> *
5 * Copyright (C) 2009 by Zachary T Welch <zw@superlucidity.net> *
6 * *
7 * This program is free software; you can redistribute it and/or modify *
8 * it under the terms of the GNU General Public License as published by *
9 * the Free Software Foundation; either version 2 of the License, or *
10 * (at your option) any later version. *
11 * *
12 * This program is distributed in the hope that it will be useful, *
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
15 * GNU General Public License for more details. *
16 * *
17 * You should have received a copy of the GNU General Public License *
18 * along with this program; if not, write to the *
19 * Free Software Foundation, Inc., *
20 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
21 ***************************************************************************/
23 #ifndef SYSTEM_H
24 #define SYSTEM_H
26 /* standard C library header files */
27 #include <stdio.h>
28 #include <stdlib.h>
29 #include <string.h>
30 #include <assert.h>
31 #include <ctype.h>
32 #include <errno.h>
34 /* +++ AC_HEADER_TIME +++ */
35 #ifdef TIME_WITH_SYS_TIME
36 # include <sys/time.h>
37 # include <time.h>
38 #else
39 # ifdef HAVE_SYS_TIME_H
40 # include <sys/time.h>
41 # else
42 # include <time.h>
43 # endif
44 #endif
45 /* --- AC_HEADER_TIME --- */
47 /* +++ platform specific headers +++ */
48 #if BUILD_ECOSBOARD == 1
49 #include <pkgconf/system.h>
50 #endif
51 #ifdef _WIN32
52 #include <winsock2.h>
53 #include <ws2tcpip.h>
54 #include <sys/types.h>
55 #include <sys/stat.h>
56 #endif
57 /* --- platform specific headers --- */
59 #ifdef HAVE_SYS_SOCKET_H
60 #include <sys/socket.h>
61 #endif
62 #ifdef HAVE_SYS_POLL_H
63 #include <sys/poll.h>
64 #endif
66 #ifdef __ECOS
67 /* missing from eCos */
68 #ifndef EFAULT
69 #define EFAULT 14 /* Bad address */
70 #endif
71 #endif
73 #ifdef HAVE_NETINET_IN_H
74 #include <netinet/in.h>
75 #endif
76 #ifdef HAVE_SYS_SELECT_H
77 #include <sys/select.h> /* select, FD_SET and friends (POSIX.1-2001) */
78 #endif
79 #ifdef HAVE_SYS_PARAM_H
80 #include <sys/param.h> /* for MIN/MAX macros */
81 #endif
82 #ifdef HAVE_UNISTD_H
83 #include <unistd.h>
84 #endif
85 #ifdef HAVE_FCNTL_H
86 #include <fcntl.h>
87 #endif
89 #ifndef true
90 #define true 1
91 #define false 0
92 #endif
94 #endif /* SYSTEM_H */