diff options
author | DJ Delorie <dj@redhat.com> | 2005-04-11 19:31:50 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2005-04-11 19:31:50 +0000 |
commit | 7cc9282c4e148f75e681a072bb9a8068a8bec3ef (patch) | |
tree | 1a2804bd7c85a47696dfd032bc2f1c2a91efcced /include/libiberty.h | |
parent | 6e75bff67d6a4b6b96523be31bf581c2feae43c9 (diff) | |
download | cygnal-7cc9282c4e148f75e681a072bb9a8068a8bec3ef.tar.gz cygnal-7cc9282c4e148f75e681a072bb9a8068a8bec3ef.tar.bz2 cygnal-7cc9282c4e148f75e681a072bb9a8068a8bec3ef.zip |
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 eb5633b26..80aee8b94 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. */ |