forked from Imagelibrary/rtems
Make sync() POSIX-compliant.
This commit is contained in:
@@ -70,7 +70,7 @@ static void sync_per_thread(Thread_Control *t)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int sync(void)
|
void sync(void)
|
||||||
{
|
{
|
||||||
extern struct _reent libc_global_reent;
|
extern struct _reent libc_global_reent;
|
||||||
|
|
||||||
@@ -88,6 +88,4 @@ int sync(void)
|
|||||||
* Now walk all the per-thread reentrancy structures.
|
* Now walk all the per-thread reentrancy structures.
|
||||||
*/
|
*/
|
||||||
rtems_iterate_over_all_threads(sync_per_thread);
|
rtems_iterate_over_all_threads(sync_per_thread);
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user