EXISTS() Command

Fairlight fairlite at fairlite.com
Thu Nov 15 11:00:17 PST 2018


Well, according to Bob Stocker's man page of the filePro docs:

4.1  EXISTS(name)       Returns 1 if the file exists, 0 if it
                        doesn't and a negative number on system error.

So...the negative return is an actual system error, which would be errno.
This is the errno value for 75:

#define EOVERFLOW       75      /* Value too large for defined data type */

How this fits in the context of EXISTS() is beyond me. unless your provided
pathname is -so- long that it exceeds MAXPATHLEN, which would be 1024
bytes.  That would be a probable cause.

m->

On Thu, Nov 15, 2018 at 01:51:05PM -0500, Nancy Palmquist via Filepro-list thus spoke:
> Friends,
> 
> On a Linux platform, I am issuing an EXISTS(filename) in dclerk and
> get a -75 as a result.
> It is saying the file does not exist.  I can see the file.  The
> permissions on the file and folders give me access.
> It is on a Read Only mounted device but in other processes it has no
> issues finding the file.
> 
> Does anyone know what the exit code -75 indicates?  Maybe that will
> give me a clue as to why it is doing that.
> 
> Nancy
> 
> -- 
> Nancy Palmquist         MOS & filePro Training Available
> Virtual Software Systems    Web Based Training and Consulting
> PHONE: (412) 835-9417           Web site:  http://www.vss3.com
> 
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://mailman.celestial.com/pipermail/filepro-list/attachments/20181115/9a98adcb/attachment.html>
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> Subscribe/Unsubscribe/Subscription Changes
> http://mailman.celestial.com/mailman/listinfo/filepro-list

-- 
Audio panton, cogito singularis.


More information about the Filepro-list mailing list