RFC POSIX Fortran Interface

Walter Spector w6ws@earthlink.net
Sun Oct 14 21:18:00 GMT 2007


Jerry DeLisle wrote:
> ...
> For constants that I do not have in there yet, I can easily add.  Just email
> this list with suggestions and/or requests.

POSIX.9 states that PXFCONST should make available any constant that POSIX.1
defines.

For example there are a lot of constants in <unistd.h> which should be included.
Looking at the version on cygwin, there are all of the "_SC_" constants
(for PXFSYSCONF) and the "_PC_" constants (for PXFPATHCONF.)  Also the
F_OK/R_OK/W_OK/X_OK bits, SEEK_SET/SEEK_CUR/SEEK_END, STDIN_FILENO,
STDOUT_FILENO, and STDERR_FILENO.  MAXPATHLEN would be useful.  And so on.

I suggested that Jerry start with PXFCONST and friends - because these
routines should be useful to anyone trying to use C Interop directly, as
well as those using the POSIX Fortran bindings.

Walter



More information about the Fortran mailing list