Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
9526a028
Commit
9526a028
authored
Apr 12, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src: set close-on-exec flag with fopen()
parent
25d5ddb5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
src/posix/dirs.c
src/posix/dirs.c
+1
-1
src/posix/linux_cpu.c
src/posix/linux_cpu.c
+1
-1
src/posix/linux_specific.c
src/posix/linux_specific.c
+1
-1
src/test/block_test.c
src/test/block_test.c
+1
-1
No files found.
src/posix/dirs.c
View file @
9526a028
...
...
@@ -123,7 +123,7 @@ static char *config_GetTypeDir (const char *xdg_name)
if
(
asprintf
(
&
path
,
"%s/%s"
,
dir
,
file
)
==
-
1
)
return
NULL
;
FILE
*
stream
=
fopen
(
path
,
"rt"
);
FILE
*
stream
=
fopen
(
path
,
"rt
e
"
);
free
(
path
);
path
=
NULL
;
if
(
stream
!=
NULL
)
...
...
src/posix/linux_cpu.c
View file @
9526a028
...
...
@@ -44,7 +44,7 @@ static uint32_t cpu_flags = 0;
static
void
vlc_CPU_init
(
void
)
{
FILE
*
info
=
fopen
(
"/proc/cpuinfo"
,
"rt"
);
FILE
*
info
=
fopen
(
"/proc/cpuinfo"
,
"rt
e
"
);
if
(
info
==
NULL
)
return
;
...
...
src/posix/linux_specific.c
View file @
9526a028
...
...
@@ -34,7 +34,7 @@ char *config_GetLibDir (void)
char
*
path
=
NULL
;
/* Find the path to libvlc (i.e. ourselves) */
FILE
*
maps
=
fopen
(
"/proc/self/maps"
,
"rt"
);
FILE
*
maps
=
fopen
(
"/proc/self/maps"
,
"rt
e
"
);
if
(
maps
==
NULL
)
goto
error
;
...
...
src/test/block_test.c
View file @
9526a028
...
...
@@ -39,7 +39,7 @@ static void test_block_File (void)
FILE
*
stream
;
int
res
;
stream
=
fopen
(
"testfile.txt"
,
"wb+"
);
stream
=
fopen
(
"testfile.txt"
,
"wb+
e
"
);
assert
(
stream
!=
NULL
);
res
=
fputs
(
text
,
stream
);
...
...
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