1 /* SPDX-License-Identifier: BSD-3-Clause 2 * Copyright(c) 2010-2019 Intel Corporation 3 */ 4 5 #ifndef _RTE_OS_H_ 6 #define _RTE_OS_H_ 7 8 /** 9 * This header should contain any definition 10 * which is not supported natively or named differently in Windows. 11 */ 12 13 #include <stdio.h> 14 #include <stdlib.h> 15 #include <string.h> 16 17 #ifdef __cplusplus 18 extern "C" { 19 #endif 20 21 /* cpu_set macros implementation */ 22 #define RTE_CPU_AND(dst, src1, src2) CPU_AND(dst, src1, src2) 23 #define RTE_CPU_OR(dst, src1, src2) CPU_OR(dst, src1, src2) 24 #define RTE_CPU_FILL(set) CPU_FILL(set) 25 #define RTE_CPU_NOT(dst, src) CPU_NOT(dst, src) 26 27 /* This is an exception without "rte_" prefix, because Windows does have 28 * ssize_t, but it's defined in <windows.h> which we avoid to expose. 29 * If ssize_t is defined in user code, it necessarily has the same type. 30 */ 31 typedef long long ssize_t; 32 33 #ifdef __cplusplus 34 } 35 #endif 36 37 #endif /* _RTE_OS_H_ */ 38