Patches item #404930, was updated on 2001-02-28 08:31 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=311050&aid=404930&group_id=11050 Category: None Group: None >Status: Closed >Resolution: Accepted Priority: 5 Submitted By: Nobody/Anonymous (nobody) >Assigned to: Zdenek Kabelac (kabi) Summary: Solaris 8 (x86) support for avifile Initial Comment: I've prepared a set of patches to add support for solaris 8 x86 to avifile-{stable,development,cvs}. Current version of the patches are available at http://www.tools.de/solaris/avifile/ There were some minor issues with redefined system types (e.g. offset_t) or undefined types (obviously defined in the system headers under linux or freebsd; u_int16_t/u_int32_t). The main changes are: - use opendir/readdir/closedir when scanning the directory /usr/lib/win32 for plugings (the scandir() library routine is not available on solaris); file codeckeeper.cpp The opendir/readdir/closedir code is used when scandir is not available. - implement the solaris variant for the '%FS' segment stuff in class LDT_Keeper, file ldt_keeper.cpp - cleanup LDT_Keeper, fixing a ~3MB memory leak (the code mmaps 3MB of memory, but releases/munmaps only 200KB!) The memory used for the TEB segment is limited to one x86 page (4K), so I see no reason why the code mmaps 3MB anyway... - Always make sure that the %FS register is setup correctly before calling into the win32 DLL. This helps the avi-xmms plugin, that is using avifile from multiple threads. (The original code sets up %FS only for *one* thread - the thread that runs the LDT_Keeper constructor. Any other thread calling into the win32 DLL crashed with a NULL ptr SEGV) - On solaris, usleep() is not MT-Safe. Change all uses of usleep() to avi_usleep(), and implement avi_usleep() with nanosleep(), if nanosleep() is available. Note that nanosleep() is MT-Safe. ---------------------------------------------------------------------- Comment By: J�rgen Keil (jkeil) Date: 2001-03-06 04:55 Message: Logged In: YES user_id=167154 Updated my patch against the current CVS version to fix a bug parsing the new --size option for aviplay. ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=311050&aid=404930&group_id=11050 _______________________________________________ Avifile mailing list [EMAIL PROTECTED] http://prak.org/mailman/listinfo/avifile
