2022-06-03 19:15:11 +00:00
|
|
|
/* SPDX-License-Identifier: BSD-3-Clause
|
2022-11-01 20:26:26 +00:00
|
|
|
* Copyright (C) 2017 Intel Corporation.
|
2017-05-01 20:22:48 +00:00
|
|
|
* All rights reserved.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/** \file
|
|
|
|
* Standard C headers
|
|
|
|
*
|
|
|
|
* This file is intended to be included first by all other SPDK files.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef SPDK_STDINC_H
|
|
|
|
#define SPDK_STDINC_H
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Standard C */
|
|
|
|
#include <assert.h>
|
2017-05-02 18:18:25 +00:00
|
|
|
#include <ctype.h>
|
2017-05-01 20:22:48 +00:00
|
|
|
#include <errno.h>
|
|
|
|
#include <inttypes.h>
|
|
|
|
#include <limits.h>
|
2021-05-06 21:20:45 +00:00
|
|
|
#include <math.h>
|
2017-05-01 20:22:48 +00:00
|
|
|
#include <stdarg.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
2019-11-19 18:28:14 +00:00
|
|
|
#include <strings.h>
|
2017-05-02 18:18:25 +00:00
|
|
|
#include <time.h>
|
2017-05-01 20:22:48 +00:00
|
|
|
|
|
|
|
/* POSIX */
|
2017-05-02 18:18:25 +00:00
|
|
|
#include <arpa/inet.h>
|
|
|
|
#include <dirent.h>
|
|
|
|
#include <fcntl.h>
|
2022-10-13 19:26:06 +00:00
|
|
|
#include <glob.h>
|
2017-05-02 18:18:25 +00:00
|
|
|
#include <ifaddrs.h>
|
|
|
|
#include <netdb.h>
|
|
|
|
#include <poll.h>
|
2017-05-01 20:22:48 +00:00
|
|
|
#include <pthread.h>
|
|
|
|
#include <semaphore.h>
|
2017-05-02 18:18:25 +00:00
|
|
|
#include <signal.h>
|
|
|
|
#include <syslog.h>
|
|
|
|
#include <termios.h>
|
2017-05-01 20:22:48 +00:00
|
|
|
#include <unistd.h>
|
2017-05-08 19:46:11 +00:00
|
|
|
#include <net/if.h>
|
2017-05-02 18:18:25 +00:00
|
|
|
#include <netinet/in.h>
|
|
|
|
#include <netinet/tcp.h>
|
2017-05-01 20:22:48 +00:00
|
|
|
#include <sys/ioctl.h>
|
2017-05-02 18:18:25 +00:00
|
|
|
#include <sys/mman.h>
|
|
|
|
#include <sys/resource.h>
|
2017-05-01 20:22:48 +00:00
|
|
|
#include <sys/types.h>
|
|
|
|
#include <sys/socket.h>
|
2017-05-02 18:18:25 +00:00
|
|
|
#include <sys/stat.h>
|
2017-05-01 20:22:48 +00:00
|
|
|
#include <sys/uio.h>
|
2017-05-02 18:18:25 +00:00
|
|
|
#include <sys/un.h>
|
|
|
|
#include <sys/user.h>
|
|
|
|
#include <sys/wait.h>
|
2018-10-29 14:25:26 +00:00
|
|
|
#include <regex.h>
|
2017-05-01 20:22:48 +00:00
|
|
|
|
2018-07-31 13:26:44 +00:00
|
|
|
/* GNU extension */
|
|
|
|
#include <getopt.h>
|
|
|
|
|
2022-04-28 18:35:00 +00:00
|
|
|
/* Linux */
|
|
|
|
#ifdef __linux__
|
|
|
|
#include <sys/eventfd.h>
|
|
|
|
#endif
|
|
|
|
|
2017-05-01 20:22:48 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* SPDK_STDINC_H */
|