]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
manual: cuserid is mtasurace if not passed a string
authorAlexandre Oliva <aoliva@redhat.com>
Fri, 21 Nov 2014 04:06:21 +0000 (02:06 -0200)
committerAlexandre Oliva <aoliva@redhat.com>
Fri, 21 Nov 2014 04:15:09 +0000 (02:15 -0200)
for  ChangeLog

* manual/users.texi (cuserid): Fix MT-Safety note for the case
of not passing it a buffer.
Reported by Peng Haitao.

ChangeLog
manual/users.texi

index a83383ee06c568b661384c9f143cd427f1a770bb..d57c023ac15596009d6cdf3ed71751c4e76effb9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2014-11-21  Alexandre Oliva <aoliva@redhat.com>
+
+       * manual/users.texi (cuserid): Fix MT-Safety note for the case
+       of not passing it a buffer.
+       Reported by Peng Haitao.
+
 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
 
        * manual/Makefile ($(objpfx)stamp-summary): Require
index a14a25664ed0242c438358d608f96d14a4a2d494..e8f0f3bdf3aa37467b001a888c3bb3d36a5a70da 100644 (file)
@@ -927,8 +927,9 @@ this function or to @code{cuserid}.
 @comment stdio.h
 @comment POSIX.1
 @deftypefun {char *} cuserid (char *@var{string})
-@safety{@prelim{}@mtsafe{@mtslocale{}}@asunsafe{@ascudlopen{} @ascuplugin{} @ascuheap{} @asulock{}}@acunsafe{@acucorrupt{} @aculock{} @acsfd{} @acsmem{}}}
-@c cuserid @mtslocale @ascudlopen @ascuplugin @ascuheap @asulock @acucorrupt @aculock @acsfd @acsmem
+@safety{@prelim{}@mtunsafe{@mtasurace{:cuserid/!string} @mtslocale{}}@asunsafe{@ascudlopen{} @ascuplugin{} @ascuheap{} @asulock{}}@acunsafe{@acucorrupt{} @aculock{} @acsfd{} @acsmem{}}}
+@c cuserid @mtasurace:cuserid/!string @mtslocale @ascudlopen @ascuplugin @ascuheap @asulock @acucorrupt @aculock @acsfd @acsmem
+@c   if string is NULL, cuserid will overwrite and return a static buffer
 @c  geteuid dup ok
 @c  getpwuid_r dup @mtslocale @ascudlopen @ascuplugin @ascuheap @asulock @acucorrupt @aculock @acsfd @acsmem
 @c  strncpy dup ok