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
83a11816
Commit
83a11816
authored
Aug 04, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use STD*_FILENO constants where applicable
parent
17fbcd4e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
bin/override.c
bin/override.c
+2
-1
bin/winvlc.c
bin/winvlc.c
+1
-1
modules/access_output/file.c
modules/access_output/file.c
+2
-2
No files found.
bin/override.c
View file @
83a11816
...
...
@@ -39,6 +39,7 @@ void vlc_enable_override (void);
#include <pthread.h>
#ifdef HAVE_EXECINFO_H
# include <execinfo.h>
# include <unistd.h>
#endif
#ifdef NDEBUG
# undef HAVE_BACKTRACE
...
...
@@ -75,7 +76,7 @@ static void vlogbug (unsigned *pc, const char *level, const char *func,
fputs
(
")
\n
"
,
stderr
);
fflush
(
stderr
);
#ifdef HAVE_BACKTRACE
backtrace_symbols_fd
(
framev
+
2
,
framec
-
2
,
fileno
(
stderr
)
);
backtrace_symbols_fd
(
framev
+
2
,
framec
-
2
,
STDERR_FILENO
);
#endif
}
funlockfile
(
stderr
);
...
...
bin/winvlc.c
View file @
83a11816
...
...
@@ -196,7 +196,7 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
SetUnhandledExceptionFilter
(
vlc_exception_filter
);
}
_setmode
(
_fileno
(
stdin
)
,
_O_BINARY
);
/* Needed for pipes */
_setmode
(
STDIN_FILENO
,
_O_BINARY
);
/* Needed for pipes */
#else
/* UNDER_CE */
char
**
argv
,
psz_cmdline
[
wcslen
(
lpCmdLine
)
*
4
];
...
...
modules/access_output/file.c
View file @
83a11816
...
...
@@ -139,9 +139,9 @@ static int Open( vlc_object_t *p_this )
if
(
!
strcmp
(
p_access
->
psz_path
,
"-"
)
)
{
#if defined( WIN32 ) || defined( __OS2__ )
setmode
(
fileno
(
stdout
)
,
O_BINARY
);
setmode
(
STDOUT_FILENO
,
O_BINARY
);
#endif
fd
=
vlc_dup
(
fileno
(
stdout
)
);
fd
=
vlc_dup
(
STDOUT_FILENO
);
if
(
fd
==
-
1
)
{
msg_Err
(
p_access
,
"cannot use standard output: %m"
);
...
...
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