Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
8967e029
Commit
8967e029
authored
May 28, 2006
by
Mark Shinwell
Committed by
Mark Shinwell
May 28, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Open temporary files in binary mode when using mkstemps.
From-SVN: r114165
parent
96e5d745
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletions
+9
-1
libiberty/ChangeLog
+4
-0
libiberty/mkstemps.c
+5
-1
No files found.
libiberty/ChangeLog
View file @
8967e029
2006-05-28 Mark Shinwell <shinwell@codesourcery.com>
* mkstemps.c: Open temporary files in binary mode.
2006-05-12 Anton Blanchard <anton@samba.org>
* cplus-dem.c (demangle_fund_type): Ensure buf is large enough to
...
...
libiberty/mkstemps.c
View file @
8967e029
...
...
@@ -49,6 +49,10 @@ typedef unsigned long gcc_uint64_t;
#define TMP_MAX 16384
#endif
#ifndef O_BINARY
# define O_BINARY 0
#endif
/*
@deftypefn Replacement int mkstemps (char *@var{pattern}, int @var{suffix_len})
...
...
@@ -119,7 +123,7 @@ mkstemps (char *pattern, int suffix_len)
v
/=
62
;
XXXXXX
[
5
]
=
letters
[
v
%
62
];
fd
=
open
(
pattern
,
O_RDWR
|
O_CREAT
|
O_EXCL
,
0600
);
fd
=
open
(
pattern
,
O_
BINARY
|
O_
RDWR
|
O_CREAT
|
O_EXCL
,
0600
);
if
(
fd
>=
0
)
/* The file does not exist. */
return
fd
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment