Does win32 have pathconf() and _PC_NAME_MAX? I ask for ogg123 -- it uses "NAME_MAX" right now (already been mentioned on this list a few times), which does not exist everywhere. I've proposed changing it to use the pathconf() function, but I don't know if win32 has this or not (I don't have, or want, access to win32 compilers :-). If win32 doesn't have pathconf(), we might have to do something like the following in vorbis-tools/ogg123/ao_interface.c: #ifdef win32 /* code which can use the NAME_MAX constant */ #else /* code which uses pathconf() to get the maximum filename length */ #endif {+} Jeff Squyres {+} squyres@cse.nd.edu {+} Perpetual Obsessive Notre Dame Student Craving Utter Madness {+} "I came to ND for 4 years and ended up staying for a decade" --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
Use The Source, Jeff! Replying to your mail dated Monday, February 19, 2001, 6:52:52 PM, about "[vorbis-dev] win32 question": JS> Does win32 have pathconf() and _PC_NAME_MAX? Well, DJGPP does :) But mingw32 doesn't. So at least one win32 compiler does NOT have it already. JS> If win32 doesn't have pathconf(), we might have to do something like the JS> following in vorbis-tools/ogg123/ao_interface.c: JS> #ifdef win32 JS> /* code which can use the NAME_MAX constant */ JS> #else JS> /* code which uses pathconf() to get the maximum filename length */ JS> #endif Isn't it better to do #ifdef win32 #define PATHNAME_MAX NAME_MAX // it was called PATHNAME_MAX IIRC #else //nothing to do #endif omewhere in the headers. keep in touch. berk. * mailto:berk@nm.ru * http://ber.k45.ru * ICQ UIN: 49516372 * * The Go! operating system development: http://attend.to/go * --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
At 08:52 AM 2/19/01 -0500, you wrote:>Does win32 have pathconf() and _PC_NAME_MAX?Not to my knowledge (it may, but it doesn't really matter). ogg123 doesn't run (or even come close) on win32, though, so it's not a problem. You can always just use FILENAME_MAX, which is ANSI C. Michael --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.