Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NuttX RTOS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
f4grx
NuttX RTOS
Commits
b1938c06
Commit
b1938c06
authored
9 years ago
by
Gregory Nutt
Browse files
Options
Downloads
Patches
Plain Diff
sys/time.h: Fix timersub macro; time_t is unsigned
parent
b73a7515
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
ChangeLog
+1
-0
1 addition, 0 deletions
ChangeLog
include/pthread.h
+3
-3
3 additions, 3 deletions
include/pthread.h
include/signal.h
+4
-3
4 additions, 3 deletions
include/signal.h
include/sys/time.h
+3
-3
3 additions, 3 deletions
include/sys/time.h
with
11 additions
and
9 deletions
ChangeLog
+
1
−
0
View file @
b1938c06
...
...
@@ -11263,3 +11263,4 @@
struct sigevent. This initial implementation will only work in the
FLAT build. See the top-level TODO file for additional details
(2015-12-30).
This diff is collapsed.
Click to expand it.
include/pthread.h
+
3
−
3
View file @
b1938c06
...
...
@@ -50,7 +50,7 @@
#include
<stdbool.h>
/* C99 boolean types */
#include
<unistd.h>
/* For getpid */
#include
<semaphore.h>
/* Needed for sem_t */
#include
<signal.h>
/* Needed for sigset_t */
#include
<signal.h>
/* Needed for sigset_t
, includes this file
*/
#include
<time.h>
/* Needed for struct timespec */
/********************************************************************************
...
...
@@ -441,8 +441,8 @@ int pthread_sigmask(int how, FAR const sigset_t *set, FAR sigset_t *oset);
#include
<sys/types.h>
#include
<stdbool.h>
/* Avoid
a
circular dependencies by assuring that simple type definitions
*
are
avaiable in any inclusion ordering.
/* Avoid circular dependencies by assuring that simple type definitions
are
* avai
l
able in any inclusion ordering.
*/
#ifndef __PTHREAD_KEY_T_DEFINED
...
...
This diff is collapsed.
Click to expand it.
include/signal.h
+
4
−
3
View file @
b1938c06
...
...
@@ -45,8 +45,9 @@
#include
<stdint.h>
#include
<time.h>
#ifdef CONFIG_SIG_EVTHREAD
# include <pthread.h>
/* Needed for pthread_attr_t */
# include <pthread.h>
/* Needed for pthread_attr_t
, includes this file
*/
#endif
/********************************************************************************
...
...
@@ -320,8 +321,8 @@ int sigqueue(int pid, int signo, FAR void *sival_ptr);
#include
<stdint.h>
/* Avoid
a
circular dependencies by assuring that simple type definitions
*
are
avaiable in any inclusion ordering.
/* Avoid circular dependencies by assuring that simple type definitions
are
* avai
l
able in any inclusion ordering.
*/
#ifndef __SIGSET_T_DEFINED
...
...
This diff is collapsed.
Click to expand it.
include/sys/time.h
+
3
−
3
View file @
b1938c06
...
...
@@ -78,12 +78,12 @@
do \
{ \
(vvp)->tv_sec = (tvp)->tv_sec - (uvp)->tv_sec; \
(vvp)->tv_usec = (tvp)->tv_usec - (uvp)->tv_usec; \
if ((vvp)->tv_usec < 0) \
if ((uvp)->tv_usec > (tvp)->tv_usec) \
{ \
(vvp)->tv_sec--; \
(
v
vp)->tv_usec += 1000000; \
(
t
vp)->tv_usec += 1000000; \
} \
(vvp)->tv_usec = (tvp)->tv_usec - (uvp)->tv_usec; \
} \
while (0)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment