mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-30 02:04:50 +08:00
* io/unix.c: Add O_RDWR to open() call.
From-SVN: r102811
This commit is contained in:
parent
2f806f3b9b
commit
2c4a108eec
@ -1,3 +1,7 @@
|
||||
2005-08-04 Francois-Xavier Coudert <coudert@clipper.ens.fr>
|
||||
|
||||
* io/unix.c: Add O_RDWR to open() call.
|
||||
|
||||
2005-08-04 Paul Thomas <pault@gcc.gnu.org>
|
||||
|
||||
* transfer.c (data_transfer_init): Truncate file in
|
||||
|
@ -998,7 +998,7 @@ tempfile (void)
|
||||
|
||||
if (mktemp (template))
|
||||
do
|
||||
fd = open (template, O_CREAT | O_EXCL, S_IREAD | S_IWRITE);
|
||||
fd = open (template, O_RDWR |O_CREAT | O_EXCL, S_IREAD | S_IWRITE);
|
||||
while (!(fd == -1 && errno == EEXIST) && mktemp (template));
|
||||
else
|
||||
fd = -1;
|
||||
|
Loading…
Reference in New Issue
Block a user