× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On 3/16/2011 8:39 PM, CRPence wrote:

If having "used the same concept in RPG and it worked great"
sufficiently parallels the MI invocation, then probably not "an
O_INHERITMODE flag issue". So if the RPG had performed the same unlink
and open() as performed by the same user into the same directory yet did
not exhibit the same "no permissions" outcome, then that flag is
probably not germane; at least seems improbable unless the openFlag
mismatched betwixt.


The open() API has optional parameters, prototyped in C by "..." and prototyped in RPG by OPTIONS(*NOPASS). Parameters are passed differently when the compiler knows that some of them are optional. For RPG, if you don't code OPTIONS(*NOPASS) on the optional parameters, the API might interpret the optional parameters incorrectly even when they are passed.

I'm just wondering if the other mechanisms to call open() are not able to pass the optional parameters correctly.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.