Changeset 4487:8faad70bfa79 in roaraudio
- Timestamp:
- 10/12/10 01:40:23 (13 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroaross/libroaross.c
r4380 r4487 633 633 #endif 634 634 635 if ( (flags & O_DIRECTORY) || (flags & O_EXCL) ) { 636 ROAR_DBG("_open_file(pathname='%s', flags=0x%x) = -1 // invalid flags (O_DIRECTORY or O_EXCL)", pathname, flags); 635 if ( flags & O_DIRECTORY ) { 636 ROAR_DBG("_open_file(pathname='%s', flags=0x%x) = -1 // invalid flags (O_DIRECTORY)", pathname, flags); 637 errno = EINVAL; 638 return -1; 639 } 640 641 if ( flags & O_EXCL ) { 642 ROAR_WARN("_open_file(pathname='%s', flags=0x%x): This application is asked us for exclusive device access.", pathname, flags); 643 ROAR_WARN("_open_file(pathname='%s', flags=0x%x): This is maybe not what you want.", pathname, flags); 644 ROAR_WARN("_open_file(pathname='%s', flags=0x%x): We reject this according to OSS specs.", pathname, flags); 645 ROAR_WARN("_open_file(pathname='%s', flags=0x%x): There should be a option in the application to switch this off.", pathname, flags); 646 ROAR_WARN("_open_file(pathname='%s', flags=0x%x) = -1 // invalid flags (O_EXCL)", pathname, flags); 637 647 errno = EINVAL; 638 648 return -1;
Note: See TracChangeset
for help on using the changeset viewer.