Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
libdvdcss
Commits
badd9197
Commit
badd9197
authored
Sep 02, 2009
by
KO Myung-Hun
Committed by
Sam Hocevar
Sep 02, 2009
Browse files
Use 64-bit IO and binary mode on OS/2.
parent
25ebde2b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/device.c
View file @
badd9197
...
...
@@ -69,6 +69,8 @@
# define INCL_DOS
# define INCL_DOSDEVIOCTL
# include <os2.h>
# include <io.h>
/* setmode() */
# include <fcntl.h>
/* O_BINARY */
#endif
#include "dvdcss/dvdcss.h"
...
...
@@ -672,10 +674,10 @@ static int os2_open ( dvdcss_t dvdcss, char const *psz_device )
psz_dvd
[
0
]
=
psz_device
[
0
];
rc
=
DosOpen
(
(
PSZ
)
psz_dvd
,
&
hfile
,
&
ulAction
,
0
,
FILE_NORMAL
,
OPEN_ACTION_OPEN_IF_EXISTS
|
OPEN_ACTION_FAIL_IF_NEW
,
OPEN_ACCESS_READONLY
|
OPEN_SHARE_DENYNONE
|
OPEN_FLAGS_DASD
,
NULL
);
rc
=
DosOpen
L
(
(
PSZ
)
psz_dvd
,
&
hfile
,
&
ulAction
,
0
,
FILE_NORMAL
,
OPEN_ACTION_OPEN_IF_EXISTS
|
OPEN_ACTION_FAIL_IF_NEW
,
OPEN_ACCESS_READONLY
|
OPEN_SHARE_DENYNONE
|
OPEN_FLAGS_DASD
,
NULL
);
if
(
rc
)
{
...
...
@@ -683,6 +685,8 @@ static int os2_open ( dvdcss_t dvdcss, char const *psz_device )
return
-
1
;
}
setmode
(
hfile
,
O_BINARY
);
dvdcss
->
i_fd
=
dvdcss
->
i_read_fd
=
hfile
;
dvdcss
->
i_pos
=
0
;
...
...
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