1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2010-2019 Intel Corporation
9 * This is header should contain any function/macro definition
10 * which are not supported natively or named differently in the
11 * Windows OS. Functions will be added in future releases.
22 #define strerror_r(a, b, c) strerror_s(b, c, a)
24 /* strdup is deprecated in Microsoft libc and _strdup is preferred */
25 #define strdup(str) _strdup(str)
27 typedef SSIZE_T ssize_t;
29 #define strtok_r(str, delim, saveptr) strtok_s(str, delim, saveptr)
33 * This function is private to EAL.
36 * The location to store the thread id if successful.
38 * 0 for success, -1 if the thread is not created.
40 int eal_thread_create(pthread_t *thread);
43 * Create a map of processors and cores on the system.
44 * This function is private to EAL.
46 void eal_create_cpu_map(void);
52 #endif /* _RTE_OS_H_ */