[Vorbis-dev] adding directory contents to ogg123 playing in sorted order?

Ray Kohler ataraxia937 at gmail.com
Sun Feb 28 20:11:42 PST 2010


On Sun, Feb 28, 2010 at 11:01 PM,  <xiphmont at xiph.org> wrote:
>>> Yes, we'd take such a patch.  _Especially_ if you do the extra build
>>> system legwork to establish portability. :-)  Now is good timing too,
>>> I intend to release a new ogg123 this month.
>>
>> Ok, I will work on this soon, hopefully tomorrow. I have to learn
>> autotools practically from scratch, so this could give me a little
>> trouble.
>
> Then don't worry about that part.  If you could look to see where
> support does and doesn't exist, that still helps.

The new functions I'd be using are scandir(3) and alphasort(3). Both
are BSD-derived. I know they are also present on Solaris 8+ and HP-UX
11i v2, as well as any modern glibc, as that's what I have direct
access to. It's likely that they're available on any SysV-based system
that ships a BSD-compatibility layer as well. That's quite possibly
everything.

I'll make a first pass that basically replaces
playlist_append_directory() entirely, as I'm guessing that's probably
the easiest way to handle two different cases at compile-time.


More information about the Vorbis-dev mailing list