Skip to content

Commit

Permalink
manual: fix addmntent's MT-Safety race annotation
Browse files Browse the repository at this point in the history
for  ChangeLog

	* manual/sysinfo.texi (addmntent): It is actually MT-Safe,
	because the potential race is on the user-supplied stream.
  • Loading branch information
Ma Shimiao authored and Alexandre Oliva committed Nov 21, 2014
1 parent 7729e0e commit 8195921
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2014-11-21 Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>

* manual/sysinfo.texi (addmntent): It is actually MT-Safe,
because the potential race is on the user-supplied stream.

2014-11-21 Alexandre Oliva <aoliva@redhat.com>

* sysdeps/posix/ctermid.c (ctermid): Return a pointer to a
Expand Down
2 changes: 1 addition & 1 deletion manual/sysinfo.texi
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@ end of file reached,
@comment mntent.h
@comment BSD
@deftypefun int addmntent (FILE *@var{stream}, const struct mntent *@var{mnt})
@safety{@prelim{}@mtunsafe{@mtasurace{:stream} @mtslocale{}}@asunsafe{@asucorrupt{}}@acunsafe{@acucorrupt{}}}
@safety{@prelim{}@mtsafe{@mtsrace{:stream} @mtslocale{}}@asunsafe{@asucorrupt{}}@acunsafe{@acucorrupt{}}}
@c addmntent @mtasurace:stream @mtslocale @asucorrupt @acucorrupt
@c fseek dup @asucorrupt @acucorrupt [no @aculock]
@c encode_name ok
Expand Down

0 comments on commit 8195921

Please sign in to comment.