1 /* 2 * Copyright (C) 2015-2017 Alibaba Group Holding Limited 3 */ 4 5 #ifndef _SYS_TYPES_H 6 #define _SYS_TYPES_H 7 8 #include <stdint.h> 9 #ifndef _PARAMS 10 #define _PARAMS(paramlist) paramlist 11 #endif 12 #define _CLOCK_T_ uint32_t 13 #define STDOUT_FILENO 1 14 #define STDERR_FILENO 2 15 16 typedef uint32_t clockid_t; 17 typedef uint32_t key_t; /* Used for interprocess communication. */ 18 typedef uint32_t pid_t; /* Used for process IDs and process group IDs. */ 19 typedef signed long ssize_t; /* Used for a count of bytes or an error indication. */ 20 typedef long long off_t; 21 typedef long suseconds_t; 22 typedef uint32_t _off_t; 23 typedef uint32_t _ssize_t; 24 25 #ifndef PATH_MAX 26 #define PATH_MAX 1024 27 #endif 28 29 #if __BSD_VISIBLE 30 #include <sys/select.h> 31 #endif 32 33 #endif /* _SYS_TYPES_H */ 34