aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2009-05-16 12:17:55 -0700
committerUlrich Drepper <drepper@redhat.com>2009-05-16 12:17:55 -0700
commit8f0d3f499f556c634c120e8045f6a8e26be703ca (patch)
tree99d030d7197f2578d98fd2ea56100a42c516d30e
parenta64039b084ae3faca3336b7d95f2e40c497d20e1 (diff)
downloadglibc-8f0d3f499f556c634c120e8045f6a8e26be703ca.zip
glibc-8f0d3f499f556c634c120e8045f6a8e26be703ca.tar.gz
glibc-8f0d3f499f556c634c120e8045f6a8e26be703ca.tar.bz2
Non-code changes to stdlib.h.
-rw-r--r--ChangeLog2
-rw-r--r--stdlib/stdlib.h26
2 files changed, 15 insertions, 13 deletions
diff --git a/ChangeLog b/ChangeLog
index d8a8305..c54ff5d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
2009-05-16 Ulrich Drepper <drepper@redhat.com>
+ * stdlib/stdlib.h: Fix types. Pretty printing. Correct comments.
+
[BZ #10159]
* stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
diff --git a/stdlib/stdlib.h b/stdlib/stdlib.h
index 5b084ef..1b88ce6 100644
--- a/stdlib/stdlib.h
+++ b/stdlib/stdlib.h
@@ -56,7 +56,7 @@ __BEGIN_DECLS
# endif
/* This is the type of the argument to `wait'. The funky union
- causes redeclarations with ether `int *' or `union wait *' to be
+ causes redeclarations with either `int *' or `union wait *' to be
allowed without complaint. __WAIT_STATUS_DEFN is the type used in
the actual function definitions. */
@@ -82,14 +82,14 @@ typedef union
# endif /* Use BSD. */
/* Define the macros <sys/wait.h> also would define this way. */
-# define WEXITSTATUS(status) __WEXITSTATUS(__WAIT_INT(status))
-# define WTERMSIG(status) __WTERMSIG(__WAIT_INT(status))
-# define WSTOPSIG(status) __WSTOPSIG(__WAIT_INT(status))
-# define WIFEXITED(status) __WIFEXITED(__WAIT_INT(status))
-# define WIFSIGNALED(status) __WIFSIGNALED(__WAIT_INT(status))
-# define WIFSTOPPED(status) __WIFSTOPPED(__WAIT_INT(status))
+# define WEXITSTATUS(status) __WEXITSTATUS (__WAIT_INT (status))
+# define WTERMSIG(status) __WTERMSIG (__WAIT_INT (status))
+# define WSTOPSIG(status) __WSTOPSIG (__WAIT_INT (status))
+# define WIFEXITED(status) __WIFEXITED (__WAIT_INT (status))
+# define WIFSIGNALED(status) __WIFSIGNALED (__WAIT_INT (status))
+# define WIFSTOPPED(status) __WIFSTOPPED (__WAIT_INT (status))
# ifdef __WIFCONTINUED
-# define WIFCONTINUED(status) __WIFCONTINUED(__WAIT_INT(status))
+# define WIFCONTINUED(status) __WIFCONTINUED (__WAIT_INT (status))
# endif
#endif /* X/Open and <sys/wait.h> not included. */
@@ -222,14 +222,14 @@ __END_NAMESPACE_C99
#ifdef __USE_GNU
/* The concept of one static locale per category is not very well
thought out. Many applications will need to process its data using
- information from several different locales. Another application is
+ information from several different locales. Another problem is
the implementation of the internationalization handling in the
- upcoming ISO C++ standard library. To support this another set of
- the functions using locale data exist which have an additional
+ ISO C++ standard library. To support this another set of
+ the functions using locale data exist which take an additional
argument.
- Attention: all these functions are *not* standardized in any form.
- This is a proof-of-concept implementation. */
+ Attention: even though several *_l interfaces are part of POSIX:2008,
+ these are not. */
/* Structure for reentrant locale using functions. This is an
(almost) opaque type for the user level programs. */