Unix True 64 - glob() returns different result on tru64 & Linux

This is Interesting: Free IT Magazines  
Home > Archive > Unix True 64 > June 2007 > glob() returns different result on tru64 & Linux





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author glob() returns different result on tru64 & Linux
mark.bergman@thales-is.com

2007-06-08, 7:24 am

[Recently posted to comp.unix.programmer & comp.os.misc.linux with no
strong results]

I am porting from Digital Unix to Linux (RHEL 4), and am seeing a
difference in the return value of glob().

Given a non-existant directory "/tmp/a", and the following line of
code:
result = glob("/tmp/a", GLOB_ERR, NULL, &globInfo);
- result is set to GLOB_NOMATCH on both platforms.

However, if the first parameter is changed to "/tmp/a/*", i.e.
searching for files within the directory, the return value on Digital
Unix is still GLOB_NOMATCH, but on RHEL it is GLOB_ABORTED (2)


Which is correct?
(I have seen the man pages, and some Google matches mentioning
earlier
Linux bugs, but am still confused!)


TIA
Mark

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com