comparison libiberty/fopen_unlocked.c @ 67:f6334be47118

update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
author nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
date Tue, 22 Mar 2011 17:18:12 +0900
parents a06113de4d67
children 04ced10e8804
comparison
equal deleted inserted replaced
65:65488c3d617d 67:f6334be47118
1 /* Implement fopen_unlocked and related functions. 1 /* Implement fopen_unlocked and related functions.
2 Copyright (C) 2005 Free Software Foundation, Inc. 2 Copyright (C) 2005, 2011 Free Software Foundation, Inc.
3 Written by Kaveh R. Ghazi <ghazi@caip.rutgers.edu>. 3 Written by Kaveh R. Ghazi <ghazi@caip.rutgers.edu>.
4 4
5 This file is part of the libiberty library. 5 This file is part of the libiberty library.
6 Libiberty is free software; you can redistribute it and/or 6 Libiberty is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public 7 modify it under the terms of the GNU Library General Public
34 @code{stdin}, @code{stdout} and @code{stderr} are setup to avoid any 34 @code{stdin}, @code{stdout} and @code{stderr} are setup to avoid any
35 multi-threaded locking. Otherwise do nothing. 35 multi-threaded locking. Otherwise do nothing.
36 36
37 @end deftypefn 37 @end deftypefn
38 38
39 @deftypefn Extension {FILE *} fopen_unlocked (const char *@var{path}, const char * @var{mode}) 39 @deftypefn Extension {FILE *} fopen_unlocked (const char *@var{path}, @
40 const char * @var{mode})
40 41
41 Opens and returns a @code{FILE} pointer via @code{fopen}. If the 42 Opens and returns a @code{FILE} pointer via @code{fopen}. If the
42 operating system supports it, ensure that the stream is setup to avoid 43 operating system supports it, ensure that the stream is setup to avoid
43 any multi-threaded locking. Otherwise return the @code{FILE} pointer 44 any multi-threaded locking. Otherwise return the @code{FILE} pointer
44 unchanged. 45 unchanged.
45 46
46 @end deftypefn 47 @end deftypefn
47 48
48 @deftypefn Extension {FILE *} fdopen_unlocked (int @var{fildes}, const char * @var{mode}) 49 @deftypefn Extension {FILE *} fdopen_unlocked (int @var{fildes}, @
50 const char * @var{mode})
49 51
50 Opens and returns a @code{FILE} pointer via @code{fdopen}. If the 52 Opens and returns a @code{FILE} pointer via @code{fdopen}. If the
51 operating system supports it, ensure that the stream is setup to avoid 53 operating system supports it, ensure that the stream is setup to avoid
52 any multi-threaded locking. Otherwise return the @code{FILE} pointer 54 any multi-threaded locking. Otherwise return the @code{FILE} pointer
53 unchanged. 55 unchanged.
54 56
55 @end deftypefn 57 @end deftypefn
56 58
57 @deftypefn Extension {FILE *} freopen_unlocked (const char * @var{path}, const char * @var{mode}, FILE * @var{stream}) 59 @deftypefn Extension {FILE *} freopen_unlocked (const char * @var{path}, @
60 const char * @var{mode}, FILE * @var{stream})
58 61
59 Opens and returns a @code{FILE} pointer via @code{freopen}. If the 62 Opens and returns a @code{FILE} pointer via @code{freopen}. If the
60 operating system supports it, ensure that the stream is setup to avoid 63 operating system supports it, ensure that the stream is setup to avoid
61 any multi-threaded locking. Otherwise return the @code{FILE} pointer 64 any multi-threaded locking. Otherwise return the @code{FILE} pointer
62 unchanged. 65 unchanged.