"MacArthur, Ian (Selex ES, UK)" wrote: > > > > Does your SunOS not have an implementation of scandir > > that can be used? > > (I confess I thought it did, but do not know...) > > I don't have access to any SunOS machines these days, but a brief > sojourn on the Oracle docs site yielded: > > http://docs.oracle.com/cd/E19620-01/805-3175/6j31emp7u/index.html > > (Setting aside any issues I may have with looking on Oracles site > to find out about SUN, or course...) > > Which appears to indicate that SunOS 5.7 (Last Revised 28 Jan 1998) > has a scandir with this prototype;
Yes, there is a scandir() implementation present, but only as part of the BSD compatibility subsystem. Note that SunOS 5.x is no longer BSD based. The manual page reference the /usr/ucb/cc (a BSD compatibility Compiler that is not shipped with the OS distribution). This compiler will find the required header files in /usr/ucbinclude. In /usr/include there is no header file sys/dir.h (therefore the configure script don't find it with other compilers, as intended by Sun). In the manual page there is also a warning notice at the end: | | Use of these interfaces should be restricted to only | applications written on BSD platforms. | Use of these interfaces with any of the system libraries | or in multi-thread applications is unsupported. Looks for me like this implementation is suitable for SunOS 4.x legacy code only and not the "right" solution for FLTK. Regards, Micha _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

