msp430_types.h
1 /*
2  * Copyright (C) 2014 INRIA
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
9 #ifndef MSP430_TYPES_H
10 #define MSP430_TYPES_H
11 
12 #include <sys/_types.h>
13 #include <errno.h>
14 
16 #include "kernel_types.h"
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
22 #ifndef EINVAL
23 
27 #define EINVAL (28)
28 #endif
29 
30 #ifndef EOVERFLOW
31 
35 #define EOVERFLOW (65)
36 #endif
37 
43 typedef unsigned long time_t;
44 
50 struct timespec {
51  time_t tv_sec;
52  long tv_nsec;
53 };
54 
60 struct timeval {
61  time_t tv_sec;
62  time_t tv_usec;
63 };
64 
65 typedef int32_t blkcnt_t;
66 typedef int32_t blksize_t;
67 typedef uint32_t clock_t;
68 typedef uint32_t clockid_t;
69 typedef int16_t dev_t;
70 typedef uint32_t fsblkcnt_t;
71 typedef uint32_t fsfilcnt_t;
72 typedef uint16_t gid_t;
73 typedef uint16_t id_t;
74 typedef uint32_t ino_t;
75 typedef uint32_t key_t;
76 typedef uint32_t mode_t;
77 typedef uint16_t nlink_t;
78 typedef int32_t off_t;
79 typedef int pid_t;
80 typedef unsigned int size_t;
81 typedef signed int ssize_t;
82 typedef int32_t suseconds_t;
83 typedef uint32_t timer_t;
84 typedef uint16_t uid_t;
85 typedef uint32_t useconds_t;
87 #ifdef __cplusplus
88 }
89 #endif
90 
91 #endif /* MSP430_TYPES_H */
Types used by the kernel.
time_t tv_usec
microseconds
Definition: msp430_types.h:62
time_t tv_sec
seconds
Definition: msp430_types.h:61
time_t tv_sec
seconds
Definition: msp430_types.h:51
long tv_nsec
nanoseconds
Definition: msp430_types.h:52
Definition of struct timeval for the MSP430.
Definition: msp430_types.h:60
Definition of struct timespec for the MSP430.
Definition: msp430_types.h:50