|
@@ -5,20 +5,22 @@
|
|
*
|
|
*
|
|
* Change Logs:
|
|
* Change Logs:
|
|
* Date Author Notes
|
|
* Date Author Notes
|
|
- * 2020-09-05 Meco Man fix bugs
|
|
|
|
|
|
+ * 2020-09-05 Meco Man fix bugs
|
|
|
|
+ * 2020-12-16 Meco Man add useconds_t
|
|
*/
|
|
*/
|
|
#ifndef __TYPES_H__
|
|
#ifndef __TYPES_H__
|
|
#define __TYPES_H__
|
|
#define __TYPES_H__
|
|
|
|
|
|
#include <stdint.h>
|
|
#include <stdint.h>
|
|
|
|
|
|
-typedef int32_t clockid_t;
|
|
|
|
-typedef int32_t key_t; /* Used for interprocess communication. */
|
|
|
|
-typedef int32_t pid_t; /* Used for process IDs and process group IDs. */
|
|
|
|
|
|
+typedef int32_t clockid_t;
|
|
|
|
+typedef int32_t key_t; /* Used for interprocess communication. */
|
|
|
|
+typedef int32_t pid_t; /* Used for process IDs and process group IDs. */
|
|
#ifndef ARCH_CPU_64BIT
|
|
#ifndef ARCH_CPU_64BIT
|
|
-typedef signed int ssize_t; /* Used for a count of bytes or an error indication. */
|
|
|
|
|
|
+typedef signed int ssize_t; /* Used for a count of bytes or an error indication. */
|
|
#else
|
|
#else
|
|
-typedef long signed int ssize_t; /* Used for a count of bytes or an error indication. */
|
|
|
|
|
|
+typedef long signed int ssize_t; /* Used for a count of bytes or an error indication. */
|
|
#endif
|
|
#endif
|
|
|
|
+typedef unsigned long useconds_t; /* microseconds (unsigned) */
|
|
|
|
|
|
#endif
|
|
#endif
|