1 /* SPDX-License-Identifier: BSD-3-Clause 2 * Copyright(c) 2019 Intel Corporation 3 */ 4 5 #ifndef _UNISTD_H_ 6 #define _UNISTD_H_ 7 /** 8 * This file is added to support common code in eal_common_lcore.c 9 * as Microsoft libc does not contain unistd.h. This may be removed 10 * in future releases. 11 */ 12 13 #include <io.h> 14 15 /* 16 * Windows appears to be missing STD*_FILENO macros, so define here. 17 * For simplicity, assume that if STDIN_FILENO is missing, all are, 18 * rather than checking each individually. 19 */ 20 #ifndef STDIN_FILENO 21 #define STDIN_FILENO _fileno(stdin) 22 #define STDOUT_FILENO _fileno(stdout) 23 #define STDERR_FILENO _fileno(stderr) 24 #endif 25 26 #endif /* _UNISTD_H_ */ 27