]> git.proxmox.com Git - ceph.git/blob - ceph/src/spdk/include/spdk/stdinc.h
f200223be061ed7bbdea6fa8600df61bd2f4b721
[ceph.git] / ceph / src / spdk / include / spdk / stdinc.h
1 /*-
2 * BSD LICENSE
3 *
4 * Copyright (c) Intel Corporation.
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 *
11 * * Redistributions of source code must retain the above copyright
12 * notice, this list of conditions and the following disclaimer.
13 * * Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer in
15 * the documentation and/or other materials provided with the
16 * distribution.
17 * * Neither the name of Intel Corporation nor the names of its
18 * contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 */
33
34 /** \file
35 * Standard C headers
36 *
37 * This file is intended to be included first by all other SPDK files.
38 */
39
40 #ifndef SPDK_STDINC_H
41 #define SPDK_STDINC_H
42
43 #ifdef __cplusplus
44 extern "C" {
45 #endif
46
47 /* Standard C */
48 #include <assert.h>
49 #include <ctype.h>
50 #include <errno.h>
51 #include <inttypes.h>
52 #include <limits.h>
53 #include <stdarg.h>
54 #include <stdbool.h>
55 #include <stddef.h>
56 #include <stdint.h>
57 #include <stdio.h>
58 #include <stdlib.h>
59 #include <string.h>
60 #include <time.h>
61
62 /* POSIX */
63 #include <arpa/inet.h>
64 #include <dirent.h>
65 #include <fcntl.h>
66 #include <ifaddrs.h>
67 #include <netdb.h>
68 #include <poll.h>
69 #include <pthread.h>
70 #include <semaphore.h>
71 #include <signal.h>
72 #include <syslog.h>
73 #include <termios.h>
74 #include <unistd.h>
75 #include <net/if.h>
76 #include <netinet/in.h>
77 #include <netinet/tcp.h>
78 #include <sys/ioctl.h>
79 #include <sys/mman.h>
80 #include <sys/resource.h>
81 #include <sys/types.h>
82 #include <sys/socket.h>
83 #include <sys/stat.h>
84 #include <sys/uio.h>
85 #include <sys/un.h>
86 #include <sys/user.h>
87 #include <sys/wait.h>
88 #include <regex.h>
89
90 /* GNU extension */
91 #include <getopt.h>
92
93 #ifdef __cplusplus
94 }
95 #endif
96
97 #endif /* SPDK_STDINC_H */