diff options
author | DJ Delorie <dj@redhat.com> | 2005-04-11 19:32:04 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2005-04-11 19:32:04 +0000 |
commit | ac119ae83bf6d1a1fd5f8aa609180dacf220a3e8 (patch) | |
tree | 6d153a3e16cc15d710c5338bddf713e2e014db56 /include/libiberty.h | |
parent | b5b2699cd62e27bbf96558fdfce753babba5baf0 (diff) | |
download | gdb-ac119ae83bf6d1a1fd5f8aa609180dacf220a3e8.zip gdb-ac119ae83bf6d1a1fd5f8aa609180dacf220a3e8.tar.gz gdb-ac119ae83bf6d1a1fd5f8aa609180dacf220a3e8.tar.bz2 |
merge from gcc
Diffstat (limited to 'include/libiberty.h')
-rw-r--r-- | include/libiberty.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/libiberty.h b/include/libiberty.h index eb5633b..80aee8b 100644 --- a/include/libiberty.h +++ b/include/libiberty.h @@ -48,6 +48,14 @@ extern "C" { #include <stdio.h> +/* Open and return a FILE pointer. If the OS supports it, ensure that + the stream is setup to avoid any multi-threaded locking. Otherwise + return the FILE pointer unchanged. */ + +extern FILE *fopen_unlocked (const char *path, const char *mode); +extern FILE *fdopen_unlocked (int fildes, const char *mode); +extern FILE *freopen_unlocked (const char *path, const char *mode, FILE *stream); + /* Build an argument vector from a string. Allocates memory using malloc. Use freeargv to free the vector. */ |