mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
Eliminate some hcs12 compile errors/warnings
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2329 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
+1
-1
@@ -59,7 +59,7 @@
|
||||
#define ALL_SIGNAL_SET ((sigset_t)0xffffffff)
|
||||
#define MIN_SIGNO 0
|
||||
#define MAX_SIGNO 31
|
||||
#define GOOD_SIGNO(s) (((s)>=MIN_SIGNO)&&((s)<=MAX_SIGNO))
|
||||
#define GOOD_SIGNO(s) ((((unsigned)(s))<=MAX_SIGNO))
|
||||
#define SIGNO2SET(s) ((sigset_t)1 << (s))
|
||||
|
||||
/* All signals are "real time" signals */
|
||||
|
||||
@@ -135,6 +135,15 @@ typedef int STATUS;
|
||||
typedef unsigned int socklen_t;
|
||||
typedef uint16 sa_family_t;
|
||||
|
||||
/* The type useconds_t shall be an unsigned integer type capable of storing
|
||||
* values at least in the range [0, 1000000]. The type suseconds_t shall be
|
||||
* a signed integer type capable of storing values at least in the range
|
||||
* [-1, 1000000].
|
||||
*/
|
||||
|
||||
typedef uint32 useconds_t;
|
||||
typedef sint32 suseconds_t;
|
||||
|
||||
/* Task entry point */
|
||||
|
||||
typedef int (*main_t)(int argc, char *argv[]);
|
||||
|
||||
+1
-1
@@ -132,7 +132,7 @@ EXTERN int optopt; /* unrecognized option character */
|
||||
EXTERN pid_t getpid(void);
|
||||
EXTERN void _exit(int status) noreturn_function;
|
||||
EXTERN unsigned int sleep(unsigned int seconds);
|
||||
EXTERN void usleep(unsigned long usec);
|
||||
EXTERN void usleep(useconds_t usec);
|
||||
|
||||
/* File descriptor operations */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user