[vorbis-dev] win32 question

berk berk at nm.ru
Mon Feb 19 08:40:53 PST 2001



Use The Source, Lourens!

Replying to your mail dated Monday, February 19, 2001, 8:19:07 PM,
about "[vorbis-dev] win32 question":

LV> DJGPP (www.delorie.com/djgpp) is a DOS version of GCC, mingw32 a Win32
LV> version of GCC. mingw32 is not the same as cygwin, cygwin is basically
LV> an entire unix environment built on top of windows in which you can
LV> build unix-like programs, while mingw32 uses the gcc compiler to create
LV> "real" win32 native apps.

LV> I hope that that's still accurate, I quit using Windows over a year ago
LV> so my knowledge isn't really up to date I fear.

All correct Lourens. Unfortunately I don't use Cygwin so I can't tell
you if it has pathconf() or not.

Ah..eh...for Win32 we can stick to set

long pathconf(const char *name, int mode)
{
     switch(mode)
     {
         case _PC_LINK_MAX: return 1;
         case _PC_MAX_CANON: return 260; // IMO
         case _PC_MAX_INPUT: return 260;
         case _PC_NAME_MAX: return 255-strlen(name);
         case _PC_PATH_MAX: return 260;
         case _PC_PIPE_BUF: return 512; // whatever is appropriate
         // etc...
     }
}

well...this might need a bit more tweaking for some cases...that
depends.

keep in touch. berk.
* mailto:berk at 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 at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Vorbis-dev mailing list