summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/sparc
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-09-18 23:07:26 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-09-18 23:07:26 +0200
commit93f8a2e834eed69aff7ef3be8c2baba14bab0658 (patch)
tree347b5239f26d3b5f526fffcf7afe151e83124a61 /libc/sysdeps/linux/sparc
parent21730caa6647f645974e132ca8afec79b4eeab2b (diff)
convert // comments to /**/; remove empty #if/#endif pairs. no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libc/sysdeps/linux/sparc')
-rw-r--r--libc/sysdeps/linux/sparc/sigaction.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libc/sysdeps/linux/sparc/sigaction.c b/libc/sysdeps/linux/sparc/sigaction.c
index 950fa2645..3964ae183 100644
--- a/libc/sysdeps/linux/sparc/sigaction.c
+++ b/libc/sysdeps/linux/sparc/sigaction.c
@@ -43,10 +43,10 @@ int __libc_sigaction(int sig, const struct sigaction *act, struct sigaction *oac
if (act) {
kact.k_sa_handler = act->sa_handler;
- // BUG?! kact.sa_mask is a long, but sigset_t is a vector
- // of longs and it may be bigger (in glibc, it _is_ bigger).
- // Should we do this instead?
- // kact.sa_mask = act->sa_mask.__val[0];
+ /* BUG?! kact.sa_mask is a long, but sigset_t is a vector
+ /* of longs and it may be bigger (in glibc, it _is_ bigger).
+ /* Should we do this instead?
+ /* kact.sa_mask = act->sa_mask.__val[0]; */
memcpy(&kact.sa_mask, &act->sa_mask, sizeof(sigset_t));
kact.sa_flags = act->sa_flags;
if (kact.sa_flags & SA_SIGINFO)
@@ -64,11 +64,11 @@ int __libc_sigaction(int sig, const struct sigaction *act, struct sigaction *oac
stub,
_NSIG / 8);
- // BUG?! if ret == -1, we return -1 but do not set errno?!
+ /* BUG?! if ret == -1, we return -1 but do not set errno?! */
if (ret >= 0 || errno != ENOSYS) {
if (oact && ret >= 0) {
oact->sa_handler = koact.k_sa_handler;
- // maybe oact->sa_mask.__val[0] = koact.sa_mask; ?
+ /* maybe oact->sa_mask.__val[0] = koact.sa_mask;? */
memcpy(&oact->sa_mask, &koact.sa_mask, sizeof(sigset_t));
oact->sa_flags = koact.sa_flags;
oact->sa_restorer = koact.sa_restorer;