From: David A. <da...@us...> - 2007-05-15 16:08:06
|
I looked this up on the Solaris VM I have installed on the build machine. Only the POSIX options are mentioned on the Solaris man page. So I think we have to leave in your code as-is. Thanks, W. David Ashley IBM Systems and Technology Group Lab Services Open Object Rexx Team Office Phone: 512-838-0609 T/L 678-0609 Mobile Phone: 512-289-7506 "Mark Miesfeld" <mie...@gm...> Sent by: oor...@li... 05/15/07 10:25 AM Please respond to Open Object Rexx Developer Mailing List <oor...@li...> To "Open Object Rexx Developer Mailing List" <oor...@li...> cc Subject Re: [Oorexx-devel] RFE 1711398, SysFileTree Case independent filename matching On 5/15/07, David Ashley <da...@us...> wrote: Maybe we should hold off on adding this for now. My concern is that, since the fnmatch* APIs are not ANSI standard then they may not be included in every *nix distribution. Are we certain that these are included in all *nix distributions we want to support? I looked into this a little more. I think fnmatch() is probably pretty standard, it looks like it is POSIX. But fnmatchcase() is not standard, it is not on any of my Linux boxes. >From man page on fnmatch() CONFORMING TO ISO/IEC 9945-2: 1993 (POSIX.2). The FNM_FILE_NAME, FNM_LEADING_DIR, and FNM_CASEFOLD flags are GNU extensions. fnmatch does have a caseless option, but it looks like it is a GNU extension only - not POSIX. #if !defined _POSIX_C_SOURCE || _POSIX_C_SOURCE < 2 || defined _GNU_SOURCE # define FNM_FILE_NAME FNM_PATHNAME /* Preferred GNU name. */ # define FNM_LEADING_DIR (1 << 3) /* Ignore `/...' after a match. */ # define FNM_CASEFOLD (1 << 4) /* Compare without regard to case. */ # define FNM_EXTMATCH (1 << 5) /* Use ksh-like extended matching. */ #endif Since I already did the work, I think it might be best to leave the caseless code in. Unless, others think we can rely on the GNU extensions being present? I'm not too knowledgable in that area. I think all Linux OSes will probably have the GNU extensions, but I'm not sure about Solaris or AIX. -- Mark Miesfeld ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Oorexx-devel mailing list Oor...@li... https://lists.sourceforge.net/lists/listinfo/oorexx-devel |