mescc: Mes C Library: Whitespace fixes.

* lib/linux/signal.c (signal): Whitespace fixes.
* lib/linux/time.c (time): Likewise.
This commit is contained in:
Jan (janneke) Nieuwenhuizen 2020-08-30 11:31:29 +02:00
parent 443f662361
commit c11a721c36
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273
3 changed files with 8 additions and 6 deletions

View file

@ -71,7 +71,9 @@ HOWEVER, the function entry already allocated space for locals on the stack (aft
asm ("SYS_exit mov____$i8,%r7"); asm ("SYS_exit mov____$i8,%r7");
asm ("swi____$0"); asm ("swi____$0");
do { do
asm ("wfi"); {
} while (1); asm ("wfi");
}
while (1);
} }

View file

@ -56,7 +56,7 @@ signal (int signum, sighandler_t action)
I've decided to take the easy way out for now. */ I've decided to take the easy way out for now. */
/*setup_action.sa_restorer = _restorer_for_siginfo;*/ /*setup_action.sa_restorer = _restorer_for_siginfo;*/
bitindex = signum - 1; 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); setup_action.sa_mask.items[bitindex / itembitcount] = 1UL << (bitindex % itembitcount);
old.sa_handler = SIG_DFL; old.sa_handler = SIG_DFL;
setup_action.sa_flags = SA_RESTART; 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. */ /* Tell kernel that we use a restorer, on penalty of segfault. */
setup_action.sa_flags |= SA_RESTORER; setup_action.sa_flags |= SA_RESTORER;
#endif #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) if (r)
return 0; return 0;
return old.sa_handler; return old.sa_handler;

View file

@ -36,7 +36,7 @@ time (time_t * result)
struct timeval tv; struct timeval tv;
struct timezone tz; struct timezone tz;
if (gettimeofday (&tv, &tz) != 0) if (gettimeofday (&tv, &tz) != 0)
return (time_t) -1; return (time_t) - 1;
if (result) if (result)
*result = tv.tv_sec; *result = tv.tv_sec;
return tv.tv_sec; return tv.tv_sec;