Suffer the consequences of moving struct timeval to its correct location

This commit is contained in:
Gregory Nutt
2015-02-15 15:18:35 -06:00
parent c2234e058f
commit d6704a1cd7
15 changed files with 37 additions and 11 deletions
@@ -288,6 +288,7 @@ int connect(int sockfd, FAR const struct sockaddr *addr, socklen_t addrlen);
*
*****************************************************************************/
struct timeval;
int cc3000_select(int nfds, fd_set *readfds, fd_set *writefds,fd_set *exceptfds,
struct timeval *timeout);
+5 -3
View File
@@ -104,13 +104,15 @@ typedef uint32_t fd_set[__SELECT_NUINT32];
#undef EXTERN
#if defined(__cplusplus)
#define EXTERN extern "C"
extern "C" {
extern "C"
{
#else
#define EXTERN extern
#endif
EXTERN int select(int nfds, FAR fd_set *readfds, FAR fd_set *writefds,
FAR fd_set *exceptfds, FAR struct timeval *timeout);
struct timeval;
int select(int nfds, FAR fd_set *readfds, FAR fd_set *writefds,
FAR fd_set *exceptfds, FAR struct timeval *timeout);
#undef EXTERN
#if defined(__cplusplus)
+3 -2
View File
@@ -94,8 +94,9 @@
#define PRIOR_OTHER_MIN 0
#define PRIOR_OTHER_MAX 255
/* Scheduling Priorities. NOTE: Only the idle task can take
* the true minimum priority. */
/* Scheduling Priorities. NOTE: Only the idle task can take the true
* minimum priority.
*/
#define SCHED_PRIORITY_MAX 255
#define SCHED_PRIORITY_DEFAULT 100
+13 -6
View File
@@ -159,12 +159,6 @@ struct sigevent;
* Public Data
********************************************************************************/
/* extern char *tznames[]; not supported */
/********************************************************************************
* Public Function Prototypes
********************************************************************************/
#undef EXTERN
#if defined(__cplusplus)
#define EXTERN extern "C"
@@ -174,6 +168,19 @@ extern "C"
#define EXTERN extern
#endif
/* daylight - Daylight savings time flag */
/* EXTERN int daylight; not supported */
/* timezone - Difference from UTC and local standard time
/* EXTERN long int timezone; not supported */
/* tzname[] - Timezone strings */
/* EXTERN FAR char *tzname[]; not supported */
/********************************************************************************
* Public Function Prototypes
********************************************************************************/
clock_t clock(void);
int clock_settime(clockid_t clockid, FAR const struct timespec *tp);