summaryrefslogtreecommitdiff
path: root/libiberty/functions.texi
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2005-04-16 16:58:35 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2005-04-16 16:58:35 +0000
commitbb06f0f58205cd2a40a101e5a154d0c664adcf91 (patch)
treed156f4f535f6fa53299a5cfac16c2d29a981988e /libiberty/functions.texi
parentf80ab0b501b8771223cd6abc4f5dedfbc466e4bb (diff)
downloadgcc-bb06f0f58205cd2a40a101e5a154d0c664adcf91.tar.gz
include:
* libiberty.h (unlock_stream): New. libiberty: * fopen_unlocked.c (unlock_stream): New. Consolidate unlocking code into a helper function. * functions.texi: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98234 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty/functions.texi')
-rw-r--r--libiberty/functions.texi15
1 files changed, 12 insertions, 3 deletions
diff --git a/libiberty/functions.texi b/libiberty/functions.texi
index 47d40ec49f7..e55d2d50e71 100644
--- a/libiberty/functions.texi
+++ b/libiberty/functions.texi
@@ -362,7 +362,7 @@ and inode numbers.
@end deftypefn
-@c fopen_unlocked.c:32
+@c fopen_unlocked.c:40
@deftypefn Extension FILE * fdopen_unlocked (int @var{fildes}, const char * @var{mode})
Opens and returns a @code{FILE} pointer via @code{fdopen}. If the
@@ -431,7 +431,7 @@ Ignores case when performing the comparison.
@end deftypefn
-@c fopen_unlocked.c:23
+@c fopen_unlocked.c:31
@deftypefn Extension FILE * fopen_unlocked (const char *@var{path}, const char * @var{mode})
Opens and returns a @code{FILE} pointer via @code{fopen}. If the
@@ -451,7 +451,7 @@ itself.
@end deftypefn
-@c fopen_unlocked.c:41
+@c fopen_unlocked.c:49
@deftypefn Extension FILE * freopen_unlocked (const char * @var{path}, const char * @var{mode}, FILE * @var{stream})
Opens and returns a @code{FILE} pointer via @code{freopen}. If the
@@ -1201,6 +1201,15 @@ was made to unlink the file because it is special.
@end deftypefn
+@c fopen_unlocked.c:23
+@deftypefn Extension void unlock_stream (FILE * @var{stream})
+
+If the OS supports it, ensure that the supplied stream is setup to
+avoid any multi-threaded locking. Otherwise leave the @code{FILE}
+pointer unchanged. If the @var{stream} is @code{NULL} do nothing.
+
+@end deftypefn
+
@c vasprintf.c:47
@deftypefn Extension int vasprintf (char **@var{resptr}, const char *@var{format}, va_list @var{args})