if( !strcmp( psz_name, "-" ) ) /* stdin -> file access */
return VLC_EGENERIC;
- if( (i_fd = utf8_open( psz_name, O_RDONLY |O_NONBLOCK, 0666 )) == -1 )
+ if( (i_fd = utf8_open( psz_name, O_RDONLY |O_NONBLOCK )) == -1 )
{
return VLC_SUCCESS; /* Let dvdnav_open() do the probing */
}
path++;
#endif
- int fd = utf8_open (path, O_RDONLY | O_NONBLOCK /* O_LARGEFILE*/, 0666);
+ int fd = utf8_open (path, O_RDONLY | O_NONBLOCK);
if (fd == -1)
{
msg_Err (p_access, "cannot open file %s (%m)", path);
else
{
msg_Dbg (p_access, "opening file %s", path);
- fd = utf8_open (path, O_RDONLY | O_NOCTTY, 0666);
+ fd = utf8_open (path, O_RDONLY | O_NOCTTY);
}
if (fd == -1)
*****************************************************************************/
static int open_file( access_t *p_access, const char *path )
{
- int fd = utf8_open( path, O_RDONLY | O_NONBLOCK /* O_LARGEFILE*/, 0666 );
+ int fd = utf8_open( path, O_RDONLY | O_NONBLOCK );
if( fd == -1 )
{
msg_Err( p_access, "cannot open file %s (%m)", path );
msg_Dbg( p_this,"guessing vcd image file: %s", psz_vcdfile );
p_vcddev->i_vcdimage_handle = utf8_open( psz_vcdfile,
- O_RDONLY | O_NONBLOCK | O_BINARY, 0666 );
+ O_RDONLY | O_NONBLOCK | O_BINARY );
while( fgets( line, 1024, cuefile ) && !b_found )
{
} else psz_vcdfile = strdup( filename );
msg_Dbg( p_this,"using vcd image file: %s", psz_vcdfile );
p_vcddev->i_vcdimage_handle = utf8_open( psz_vcdfile,
- O_RDONLY | O_NONBLOCK | O_BINARY, 0666 );
+ O_RDONLY | O_NONBLOCK | O_BINARY );
}
b_found = true;
default:
{
struct stat st;
- int fd = utf8_open (psz_path, O_RDONLY, 0);
+ int fd = utf8_open (psz_path, O_RDONLY);
if (fd == -1)
goto error;