public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/426] New: Remove "restrict" keywords from getsubopt prototype
@ 2004-10-04 14:27 simon at josefsson dot org
2004-10-05 1:31 ` [Bug libc/426] " gotom at debian dot or dot jp
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: simon at josefsson dot org @ 2004-10-04 14:27 UTC (permalink / raw)
To: glibc-bugs
According to
http://www.opengroup.org/onlinepubs/009695399/functions/getsubopt.html
the getsubopt POSIX function signature does not have "restrict" keywords.
I think the following patch was part of a gnulib contribution earlier, but only
the getsubopt.c part of it was installed in glibc (on 2004-09-18).
Is there some reason for glibc to not follow POSIX for the function signature?
Thanks.
2004-08-02 Simon Josefsson <jas@extundo.com>
* stdlib/stdlib.h (getsubopt): Remove "restrict" keyword, for
POSIX conformance.
Index: stdlib.h
===================================================================
RCS file: /cvs/glibc/libc/stdlib/stdlib.h,v
retrieving revision 1.106
diff -u -p -u -w -r1.106 stdlib.h
--- stdlib.h 28 Sep 2004 01:42:37 -0000 1.106
+++ stdlib.h 4 Oct 2004 14:26:15 -0000
@@ -899,9 +899,9 @@ extern int rpmatch (__const char *__resp
not part of TOKENS return in *VALUEP beginning of unknown
suboption. On exit *OPTIONP is set to the beginning of the next
token or at the terminating NUL character. */
-extern int getsubopt (char **__restrict __optionp,
- char *__const *__restrict __tokens,
- char **__restrict __valuep)
+extern int getsubopt (char **__optionp,
+ char *__const *__tokens,
+ char **__valuep)
__THROW __nonnull ((1, 2, 3));
#endif
--
Summary: Remove "restrict" keywords from getsubopt prototype
Product: glibc
Version: unspecified
Status: NEW
Severity: minor
Priority: P2
Component: libc
AssignedTo: gotom at debian dot or dot jp
ReportedBy: simon at josefsson dot org
CC: glibc-bugs at sources dot redhat dot com
http://sources.redhat.com/bugzilla/show_bug.cgi?id=426
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libc/426] Remove "restrict" keywords from getsubopt prototype
2004-10-04 14:27 [Bug libc/426] New: Remove "restrict" keywords from getsubopt prototype simon at josefsson dot org
@ 2004-10-05 1:31 ` gotom at debian dot or dot jp
2005-10-14 23:31 ` roland at gnu dot org
2010-06-01 2:01 ` pasky at suse dot cz
2 siblings, 0 replies; 4+ messages in thread
From: gotom at debian dot or dot jp @ 2004-10-05 1:31 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From gotom at debian dot or dot jp 2004-10-05 01:31 -------
Roland, please look at it and apply.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|gotom at debian dot or dot |roland at gnu dot org
|jp |
Status|NEW |ASSIGNED
http://sources.redhat.com/bugzilla/show_bug.cgi?id=426
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libc/426] Remove "restrict" keywords from getsubopt prototype
2004-10-04 14:27 [Bug libc/426] New: Remove "restrict" keywords from getsubopt prototype simon at josefsson dot org
2004-10-05 1:31 ` [Bug libc/426] " gotom at debian dot or dot jp
@ 2005-10-14 23:31 ` roland at gnu dot org
2010-06-01 2:01 ` pasky at suse dot cz
2 siblings, 0 replies; 4+ messages in thread
From: roland at gnu dot org @ 2005-10-14 23:31 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From roland at gnu dot org 2005-10-14 23:31 -------
Ulrich wants to double-check something in the standard, perhaps the standard
will be updated to match here.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |drepper at redhat dot com
Status|ASSIGNED |SUSPENDED
http://sourceware.org/bugzilla/show_bug.cgi?id=426
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libc/426] Remove "restrict" keywords from getsubopt prototype
2004-10-04 14:27 [Bug libc/426] New: Remove "restrict" keywords from getsubopt prototype simon at josefsson dot org
2004-10-05 1:31 ` [Bug libc/426] " gotom at debian dot or dot jp
2005-10-14 23:31 ` roland at gnu dot org
@ 2010-06-01 2:01 ` pasky at suse dot cz
2 siblings, 0 replies; 4+ messages in thread
From: pasky at suse dot cz @ 2010-06-01 2:01 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From pasky at suse dot cz 2010-06-01 02:01 -------
POSIX2008 still has no restrict there.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|SUSPENDED |NEW
Last reconfirmed|0000-00-00 00:00:00 |2010-06-01 02:01:14
date| |
http://sourceware.org/bugzilla/show_bug.cgi?id=426
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-06-01 2:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-04 14:27 [Bug libc/426] New: Remove "restrict" keywords from getsubopt prototype simon at josefsson dot org
2004-10-05 1:31 ` [Bug libc/426] " gotom at debian dot or dot jp
2005-10-14 23:31 ` roland at gnu dot org
2010-06-01 2:01 ` pasky at suse dot cz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).