This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.23-304-gb9eca49


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  b9eca49e378d183ddf418f5deae1f389cd31dc28 (commit)
      from  4efdc6d956f4ba40f27356e6fc54e40527de63fe (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=b9eca49e378d183ddf418f5deae1f389cd31dc28

commit b9eca49e378d183ddf418f5deae1f389cd31dc28
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Tue May 10 14:56:49 2016 +0000

    Declare cuserid in unistd.h for UNIX98 and before (bug 20043).
    
    For UNIX98 and older X/Open standards, unistd.h should have a
    declaration of the legacy cuserid function, but such a declaration is
    missing.  This patch adds that missing declaration.
    
    Tested for x86_64 and x86 (testsuite, and that installed stripped
    shared libraries are unchanged by the patch).
    
    	[BZ #20043]
    	* posix/unistd.h [__USE_XOPEN && !__USE_XOPEN2K] (cuserid): New
    	prototype.

diff --git a/ChangeLog b/ChangeLog
index 516be8a..55319d8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2016-05-10  Joseph Myers  <joseph@codesourcery.com>
+
+	[BZ #20043]
+	* posix/unistd.h [__USE_XOPEN && !__USE_XOPEN2K] (cuserid): New
+	prototype.
+
 2016-05-10  Florian Weimer  <fweimer@redhat.com>
 
 	[BZ #20017]
diff --git a/posix/unistd.h b/posix/unistd.h
index 405638c..4722f7f 100644
--- a/posix/unistd.h
+++ b/posix/unistd.h
@@ -1138,11 +1138,15 @@ extern void swab (const void *__restrict __from, void *__restrict __to,
 #endif
 
 
-/* The Single Unix specification demands this prototype to be here.
-   It is also found in <stdio.h>.  */
+/* Prior to Issue 6, the Single Unix Specification required these
+   prototypes to appear in this header.  They are also found in
+   <stdio.h>.  */
 #if defined __USE_XOPEN && !defined __USE_XOPEN2K
 /* Return the name of the controlling terminal.  */
 extern char *ctermid (char *__s) __THROW;
+
+/* Return the name of the current user.  */
+extern char *cuserid (char *__s);
 #endif
 
 

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog      |    6 ++++++
 posix/unistd.h |    8 ++++++--
 2 files changed, 12 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]