@all If anyone in interest, i make a stub library with all that glob/freeglob stuff (sources taken from Franks vbcc posix library, i just only add USE_INLINE). So, if some of you in interest in includes/library for newlib/gcc, then there is. Dunno should i upload that on os4depot or not ?
MPlayer uses glob if available, but luckily it has a define to not require it if it's not available. If you have already tested your glob() implementation and it is working I'd upload it to os4depot, it might be useful for other projects. Remember to include the sources as it is derived from clib2 which is open source.
@Varthall Yeah, sources are inside and i think it should works well (i already compile a game which use that), and if you have time, then upload it to os4depot plz (all in all, if some problems will be occurs, users always can write a comment on os4depot, and i will fix it).
These fucntions not implement in current SDK because of some reassons, or just was forgotten ?
Do not assume a function should be in the SDK automatically. First, check with Google what standard that function is defined in. For example, do you see the function mentioned as part of the C programming language?
What I find is people often assume a particular function should be available but in fact it is not a part of the C programming language. Therefore, you cannot assume it will be there.
In this particular case, glob() and globfree() are actually POSIX functions and Amiga is not POSIX compliant. We do have a lot of POSIX functions available to make life easier for developers but not those particular ones.
@ssolie For my mind was very logical, that if we have tons of POSIX fucntions already in SDK, then why not add some more , to make life of end-developers more easer ? For example that glob/freeglob crap can be easyli included to SDK imho (and none of us will loose anything, if it will be in sdk).
Of course it's was not hard to make my own from frank's posix library, but still , why not add that to SDK by default (more = better = easy for all)
A nicer way to ask would be to request that some new function(s) be added and point to the source code which can be freely used in a commercial system. For completeness, unit tests should also be provided to prove the function(s) work.
I find there is little point in arguing whether some function should or should not be there.
So, i can send for you some code + readme + example which show that these fucntions works, and you can include it in SDK ?
Demonstrated working code that includes a suitable license is always much better than arguing IMHO.
Now whether those functions will be included in newlib.library or not is up to the Amiga development team but with working code you have a MUCH better chance of getting it included.