× 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.



Hello Chris,

You can find the documentation for the fopen function in the C Library
Functions manual - page 100:
http://publib.boulder.ibm.com/infocenter/iseries/v5r3/topic/books/sc415607.pdf

The mapping between the C Library Functions and the AS/400 runtime
implementation is documented for the IFS functions in the QSYSINC/H file,
member IFS:

 Columns . . . :    1  71           Browse
QSYSINC/H
 SEU==>
IFS
 FMT **  ...+... 1 ...+... 2 ...+... 3 ...+... 4 ...+... 5 ...+... 6 ...+...
7
0003.95       #pragma map ( fgetpos,  "_C_IFS_fgetpos")
0003.96       #pragma map ( fopen,    "_C_IFS_fopen")
0003.97       #pragma map ( freopen,  "_C_IFS_freopen")
0003.98       #pragma map ( tmpfile,  "_C_IFS_tmpfile")
0003.99       #pragma map ( fsetpos,  "_C_IFS_fsetpos")

Best regards,
Carsten Flensburg

----- Original Message ----- 
From: "Chris Bipes" <chris.bipes@xxxxxxxxxxxxxxx>
To: <midrange-l@xxxxxxxxxxxx>
Sent: Wednesday, November 23, 2005 4:10 AM
Subject: _C_IFS_fopen


Does any one use this function in RPGLE?  If so, what authorities are
required to read a file.  I am calling passing the parm of 'r' which, to
the best of my knowledge, is the flag for read only.  The jobs work
great if you have *RWX but blow up if you have *R or *RX only.  I have
been searching IBM great hiding place called InfoCenter with no luck.

What I would really like is the link to the whole _C_IFS_ api's that
shows the necessary authorities.



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.