Cdaudio from mounted cd

Hi there,

I need to play the CD audio from a mounted disc that
has both data and audio tracks.
SDL_CDopen will not open the CD on linux if it is
mounted unless I disable O_EXCL flag in calls to open
in the linux cd audio code.
Other cdda programs may freely play audio at this
point.

This restriction is not present on windows or beos
where I also run my code.

So my question is what is the point of using the
O_EXCL flag? I cant find any documentation as to what
it is actually supposed to do unless combined with
O_CREAT.
Also if I cant open mounted drives why does SDL check
for CD drives by checking /etc/mtab?

Fosters
http://pacifi3d.retrogames.com__________________________________
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/