summaryrefslogtreecommitdiff
path: root/libiberty/functions.texi
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2005-04-11 17:49:47 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2005-04-11 17:49:47 +0000
commit35f4c9560509abdc1bc1710dfe10bf8cf4f0cdbe (patch)
tree8e8edab22bf94fe76378e62b5c438e2c2d1f8b93 /libiberty/functions.texi
parentb86b0e16403881949dedf1f47bf325dfe508dce9 (diff)
downloadgcc-35f4c9560509abdc1bc1710dfe10bf8cf4f0cdbe.tar.gz
include:
* libiberty.h (fopen_unlocked, fdopen_unlocked, freopen_unlocked): Provide prototypes for new functions. libiberty: * Makefile.in (CFILES): Add fopen_unlocked.c. (REQUIRED_OFILES): Add ./fopen_unlocked.o. Regenerate dependencies. * configure.ac: Check for stdio_ext.h and __fsetlocking. * fopen_unlocked.c: New file. * functions.texi, configure, config.in: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@97977 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty/functions.texi')
-rw-r--r--libiberty/functions.texi30
1 files changed, 30 insertions, 0 deletions
diff --git a/libiberty/functions.texi b/libiberty/functions.texi
index 75f98243a02..47d40ec49f7 100644
--- a/libiberty/functions.texi
+++ b/libiberty/functions.texi
@@ -362,6 +362,16 @@ and inode numbers.
@end deftypefn
+@c fopen_unlocked.c:32
+@deftypefn Extension FILE * fdopen_unlocked (int @var{fildes}, const char * @var{mode})
+
+Opens and returns a @code{FILE} pointer via @code{fdopen}. If the
+operating system supports it, ensure that the stream is setup to avoid
+any multi-threaded locking. Otherwise return the @code{FILE} pointer
+unchanged.
+
+@end deftypefn
+
@c ffs.c:3
@deftypefn Supplemental int ffs (int @var{valu})
@@ -421,6 +431,16 @@ Ignores case when performing the comparison.
@end deftypefn
+@c fopen_unlocked.c:23
+@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
+operating system supports it, ensure that the stream is setup to avoid
+any multi-threaded locking. Otherwise return the @code{FILE} pointer
+unchanged.
+
+@end deftypefn
+
@c argv.c:94
@deftypefn Extension void freeargv (char **@var{vector})
@@ -431,6 +451,16 @@ itself.
@end deftypefn
+@c fopen_unlocked.c:41
+@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
+operating system supports it, ensure that the stream is setup to avoid
+any multi-threaded locking. Otherwise return the @code{FILE} pointer
+unchanged.
+
+@end deftypefn
+
@c getruntime.c:82
@deftypefn Replacement long get_run_time (void)