Changeset 3777:cfa215d2654d in roaraudio


Ignore:
Timestamp:
05/07/10 00:32:50 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

handle some flags

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroaross/libroaross.c

    r3775 r3777  
    493493 
    494494 ROAR_DBG("_open_file(pathname='%s', flags=0x%x) = ?", pathname, flags); 
     495 
     496/* 
     497 * Flags we ignore: 
     498 * O_DIRECT, O_APPEND, O_LARGEFILE, O_NOATIME, O_NOCTTY, O_TRUNC 
     499 */ 
     500 
     501 if ( flags & O_ASYNC ) { 
     502  ROAR_DBG("_open_file(pathname='%s', flags=0x%x) = -1 // not supported O_ASYNC", pathname, flags); 
     503  errno = ENOSYS; 
     504  return -1; 
     505 } 
     506 
     507 if ( (flags & O_DIRECTORY) || (flags & O_EXCL) ) { 
     508  ROAR_DBG("_open_file(pathname='%s', flags=0x%x) = -1 // invalid flags (O_DIRECTORY or O_EXCL)", pathname, flags); 
     509  errno = EINVAL; 
     510  return -1; 
     511 } 
    495512 
    496513 for (i = 0; _device_list[i].prefix != NULL; i++) { 
Note: See TracChangeset for help on using the changeset viewer.