Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Mode with PXFOPEN

davidwriter
Beginner
313 Views
I'm trying to use PXFOPEN. I can read
files, but I can't write - I suspect
this is because I'm not setting the
mode correctly.

On other systems the mode is the or'd combination
of S_IRUSR || S_IWUSR || S_IRGRP, etc., but these
don't work with Intel compiler and the manual (for
version 5.1) doesn't tell one anything.

What are the correct values for the mode that one can
use for the mode?
0 Kudos
1 Reply
Martyn_C_Intel
Employee
313 Views
This should just be the usual Linux octal access code.
So you should be able to set it to something like (octal) 644, assuming you are creating a new file and have write access to the directory.
If you still have difficulties, please submit an issue to Intel Premier Support at https:premier.intel.com

Martyn
0 Kudos
Reply