summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux
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
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')
-rw-r--r--libc/sysdeps/linux/arm/aeabi_mb_cur_max.c3
-rw-r--r--libc/sysdeps/linux/common/bits/uClibc_ctype.h9
-rw-r--r--libc/sysdeps/linux/common/getdirname.c4
-rw-r--r--libc/sysdeps/linux/sparc/sigaction.c12
4 files changed, 11 insertions, 17 deletions
diff --git a/libc/sysdeps/linux/arm/aeabi_mb_cur_max.c b/libc/sysdeps/linux/arm/aeabi_mb_cur_max.c
index 941e5a625..f12309eaf 100644
--- a/libc/sysdeps/linux/arm/aeabi_mb_cur_max.c
+++ b/libc/sysdeps/linux/arm/aeabi_mb_cur_max.c
@@ -20,9 +20,6 @@
#include <locale.h>
#include <stdlib.h>
-#ifdef __UCLIBC_HAS_WCHAR__
-#endif
-
int
__aeabi_MB_CUR_MAX (void)
{
diff --git a/libc/sysdeps/linux/common/bits/uClibc_ctype.h b/libc/sysdeps/linux/common/bits/uClibc_ctype.h
index 9fe1f5fc4..43371286b 100644
--- a/libc/sysdeps/linux/common/bits/uClibc_ctype.h
+++ b/libc/sysdeps/linux/common/bits/uClibc_ctype.h
@@ -143,10 +143,11 @@ __END_DECLS
# define __ispunct(c) __body(ispunct,c)
# define __isgraph(c) __body(isgraph,c)
-//locale-aware ctype.h has no __tolower, why stub locale
-//tries to have it? remove after 0.9.31
-//# define __tolower(c) __body(tolower,c)
-//# define __toupper(c) __body(toupper,c)
+/*locale-aware ctype.h has no __tolower, why stub locale
+ *tries to have it? remove after 0.9.31
+ *# define __tolower(c) __body(tolower,c)
+ *# define __toupper(c) __body(toupper,c)
+ */
/* Do not combine in one #if - unifdef tool is not that clever */
# ifndef __NO_CTYPE
diff --git a/libc/sysdeps/linux/common/getdirname.c b/libc/sysdeps/linux/common/getdirname.c
index 63b9b750e..c02f66bb9 100644
--- a/libc/sysdeps/linux/common/getdirname.c
+++ b/libc/sysdeps/linux/common/getdirname.c
@@ -25,10 +25,6 @@
#include <stdlib.h>
#include <string.h>
-#ifdef __UCLIBC_HAS_LFS__
-#else
-#endif
-
/* Return a malloc'd string containing the current directory name.
If the environment variable `PWD' is set, and its value is correct,
that value is used. */
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;