mescc: Mes C Library: Whitespace fixes.
* lib/linux/signal.c (signal): Whitespace fixes. * lib/linux/time.c (time): Likewise.
This commit is contained in:
parent
443f662361
commit
c11a721c36
|
@ -71,7 +71,9 @@ HOWEVER, the function entry already allocated space for locals on the stack (aft
|
|||
|
||||
asm ("SYS_exit mov____$i8,%r7");
|
||||
asm ("swi____$0");
|
||||
do {
|
||||
asm ("wfi");
|
||||
} while (1);
|
||||
do
|
||||
{
|
||||
asm ("wfi");
|
||||
}
|
||||
while (1);
|
||||
}
|
||||
|
|
|
@ -56,7 +56,7 @@ signal (int signum, sighandler_t action)
|
|||
I've decided to take the easy way out for now. */
|
||||
/*setup_action.sa_restorer = _restorer_for_siginfo;*/
|
||||
bitindex = signum - 1;
|
||||
itembitcount = 8 * sizeof(setup_action.sa_mask.items[0]);
|
||||
itembitcount = 8 * sizeof (setup_action.sa_mask.items[0]);
|
||||
setup_action.sa_mask.items[bitindex / itembitcount] = 1UL << (bitindex % itembitcount);
|
||||
old.sa_handler = SIG_DFL;
|
||||
setup_action.sa_flags = SA_RESTART;
|
||||
|
@ -64,7 +64,7 @@ signal (int signum, sighandler_t action)
|
|||
/* Tell kernel that we use a restorer, on penalty of segfault. */
|
||||
setup_action.sa_flags |= SA_RESTORER;
|
||||
#endif
|
||||
int r = _sys_call4 (SYS_rt_sigaction, signum, (long)&setup_action, (long)&old, sizeof (sigset_t));
|
||||
int r = _sys_call4 (SYS_rt_sigaction, signum, (long) &setup_action, (long) &old, sizeof (sigset_t));
|
||||
if (r)
|
||||
return 0;
|
||||
return old.sa_handler;
|
||||
|
|
|
@ -36,7 +36,7 @@ time (time_t * result)
|
|||
struct timeval tv;
|
||||
struct timezone tz;
|
||||
if (gettimeofday (&tv, &tz) != 0)
|
||||
return (time_t) -1;
|
||||
return (time_t) - 1;
|
||||
if (result)
|
||||
*result = tv.tv_sec;
|
||||
return tv.tv_sec;
|
||||
|
|
Loading…
Reference in a new issue