Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
095ad3e1
Commit
095ad3e1
authored
Apr 04, 2011
by
KO Myung-Hun
Committed by
Rémi Duraffort
Apr 05, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OS/2 uses the same file operations as Win32
Signed-off-by:
Rémi Duraffort
<
ivoire@videolan.org
>
parent
462a34d4
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
7 deletions
+9
-7
modules/access_output/file.c
modules/access_output/file.c
+3
-1
modules/video_filter/scene.c
modules/video_filter/scene.c
+1
-1
src/config/file.c
src/config/file.c
+3
-3
src/misc/messages.c
src/misc/messages.c
+1
-1
src/modules/cache.c
src/modules/cache.c
+1
-1
No files found.
modules/access_output/file.c
View file @
095ad3e1
...
...
@@ -45,6 +45,8 @@
#if defined( WIN32 ) && !defined( UNDER_CE )
# include <io.h>
# define lseek _lseeki64
#elif defined( __OS2__ )
# include <io.h>
#else
# include <unistd.h>
#endif
...
...
@@ -144,7 +146,7 @@ static int Open( vlc_object_t *p_this )
else
if
(
!
strcmp
(
p_access
->
psz_path
,
"-"
)
)
{
#if
def WIN32
#if
defined( WIN32 ) || defined( __OS2__ )
setmode
(
fileno
(
stdout
),
O_BINARY
);
#endif
fd
=
vlc_dup
(
fileno
(
stdout
));
...
...
modules/video_filter/scene.c
View file @
095ad3e1
...
...
@@ -319,7 +319,7 @@ static void SavePicture( filter_t *p_filter, picture_t *p_pic )
else
{
/* switch to the final destination */
#if defined (WIN32)
#if defined (WIN32)
|| defined(__OS2__)
vlc_unlink
(
psz_filename
);
#endif
i_ret
=
vlc_rename
(
psz_temp
,
psz_filename
);
...
...
src/config/file.c
View file @
095ad3e1
...
...
@@ -84,7 +84,7 @@ static FILE *config_OpenConfigFile( vlc_object_t *p_obj )
psz_filename
);
}
#if !( defined(WIN32) || defined(__APPLE__) )
#if !( defined(WIN32) || defined(__APPLE__)
|| defined(__OS2__)
)
else
if
(
p_stream
==
NULL
&&
errno
==
ENOENT
)
{
/* This is the fallback for pre XDG Base Directory
...
...
@@ -622,7 +622,7 @@ static int SaveConfigFile( vlc_object_t *p_this, const char *psz_module_name,
clearerr
(
file
);
goto
error
;
}
#if
ndef WIN32
#if
!defined( WIN32 ) && !defined( __OS2__ )
#ifdef __APPLE__
fsync
(
fd
);
/* Flush from OS */
#else
...
...
@@ -636,7 +636,7 @@ static int SaveConfigFile( vlc_object_t *p_this, const char *psz_module_name,
vlc_mutex_unlock
(
&
lock
);
#endif
fclose
(
file
);
#if
def WIN32
#if
defined( WIN32 ) || defined( __OS2__ )
/* Windows cannot remove open files nor overwrite existing ones */
vlc_unlink
(
permanent
);
if
(
vlc_rename
(
temporary
,
permanent
))
...
...
src/misc/messages.c
View file @
095ad3e1
...
...
@@ -531,7 +531,7 @@ static void PrintMsg ( vlc_object_t * p_this, msg_item_t * p_item )
p_item
->
psz_msg
,
priv
->
b_color
?
GRAY
:
""
);
#if
def WIN32
#if
defined( WIN32 ) || defined( __OS2__ )
fflush
(
stderr
);
#endif
vlc_restorecancel
(
canc
);
...
...
src/modules/cache.c
View file @
095ad3e1
...
...
@@ -478,7 +478,7 @@ void CacheSave (vlc_object_t *p_this, const char *dir,
goto
out
;
}
#if
ndef WIN32
#if
!defined( WIN32 ) && !defined( __OS2__ )
vlc_rename
(
tmpname
,
filename
);
/* atomically replace old cache */
fclose
(
file
);
#else
...
...
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