Intel® Fortran Libraries Reference
Intel® Fortran Libraries Reference Intel® Fortran Libraries Reference
2 Intel Fortran Libraries Referencepath(Input) Character. The path for the new FIFO.ilen(Input) INTEGER(4). The length of path string.imode(Input) INTEGER(4). The mode mask; specifies the FIFO's permissions. Octal file-access mode.ierror(Output) INTEGER(4). The error status.If successful ierror is set to zero; otherwise, an error code.The PXFMKFIFO subroutine creates a FIFO special file with name path. A FIFO special file issimilar to a pipe, except that it is created in a different way. Once a FIFO special file is created,any process can open it for reading or writing in the same way as an ordinary file.However, the FIFO file has to be open at both ends simultaneously before you can proceed to doany input or output operations on it. Opening a FIFO for reading normally blocks it until someother process opens the same FIFO for writing, and vice versa.See Also: “PXFISFIFO”PXFOPENPOSIX Subroutine: Opens or creates a file.Module: USE IFPOSIXSyntaxCALL PXFOPEN (path, ilen, iopenflag, imode, ifildes, ierror)path(Input) Character. The path of the file to be opened or created.ilen(Input) INTEGER(4). The length of path string.iopenflag(Input) INTEGER(4). The flags for the file. (For possible constant names that can be passed toPXFCONST or IPXFCONST, see below.)imode(Input) INTEGER(4). The permissions for a new file. This argument should always be specifiedwhen iopenflag = O_CREAT; otherwise, it is ignored. (For possible permissions, see below.)2-314
Descriptions of the Library Routines 2ifildes(Output) INTEGER(4). The returned file descriptor for the opened or created file.ierror(Output) INTEGER(4). The error status.If successful, ierror is set to zero; otherwise, an error code.For iopenflag, you should specify one of the following constant values:• O_RDONLY (read only)• O_WRONLY (write only)• O_RDWR (read and write)In addition, you can also specify one of the following constant values by using a bitwise inclusiveOR (IOR):ValueO_CREATO_EXCLO_NOCTTYO_TRUNCO_APPENDO_NONBLOCK (orO_NDELAY) 1O_SYNCO_NOFOLLOW 1O_DIRECTORY 1O_LARGEFILE 1O_BINARY 2O_SHORT_LIVED 2O_TEMPORARY 2ActionCreates and opens a file if the file does not exist.When used with O_CREAT, it causes the open to fail if the file already exists. Inthis case, a symbolic link exists, regardless of where it points to.If path refers to a terminal device, it prevents it from becoming the process'scontrolling terminal even if the process does not have one.If the file already exists, it is a regular file, and imode allows writing (its value isO_RDWR or O_WRONLY), it causes the file to be truncated to length 0.Opens the file in append mode. Before each write, the file pointer is positionedat the end of the file, as if with PXFLSEEK.When possible, opens the file in non-blocking mode. Neither the open nor anysubsequent operations on the file descriptor that is returned will cause thecalling process to wait. This mode need not have any effect on files other thanFIFOs.Opens the file for synchronous I/O. Any writes on the resulting file descriptorwill block the calling process until the data has been physically written to theunderlying hardware.If path is a symbolic link, it causes the open to fail.If path is not a directory, it causes the open to fail.On 32-bit systems that support the Large Files System, it allows files whosesizes cannot be represented in 31 bits to be opened.Opens the file in binary (untranslated) mode.Creates the file as temporary. If possible, it does not flush to the disk.Creates the file as temporary. The file is deleted when last file handle is closed.2-315
- Page 316 and 317: 2 Intel Fortran Libraries Reference
- Page 318 and 319: 2 Intel Fortran Libraries Reference
- Page 320 and 321: 2 Intel Fortran Libraries Reference
- Page 322 and 323: 2 Intel Fortran Libraries Reference
- Page 324 and 325: 2 Intel Fortran Libraries Reference
- Page 326 and 327: 2 Intel Fortran Libraries Reference
- Page 328 and 329: 2 Intel Fortran Libraries Reference
- Page 330 and 331: 2 Intel Fortran Libraries Reference
- Page 332 and 333: 2 Intel Fortran Libraries Reference
- Page 334 and 335: 2 Intel Fortran Libraries Reference
- Page 336 and 337: 2 Intel Fortran Libraries Reference
- Page 338 and 339: 2 Intel Fortran Libraries Reference
- Page 340 and 341: 2 Intel Fortran Libraries Reference
- Page 342 and 343: 2 Intel Fortran Libraries Reference
- Page 344 and 345: 2 Intel Fortran Libraries Reference
- Page 346 and 347: 2 Intel Fortran Libraries Reference
- Page 348 and 349: 2 Intel Fortran Libraries Reference
- Page 350 and 351: 2 Intel Fortran Libraries Reference
- Page 352 and 353: 2 Intel Fortran Libraries Reference
- Page 354 and 355: 2 Intel Fortran Libraries Reference
- Page 356 and 357: 2 Intel Fortran Libraries Reference
- Page 358 and 359: 2 Intel Fortran Libraries Reference
- Page 360 and 361: 2 Intel Fortran Libraries Reference
- Page 362 and 363: 2 Intel Fortran Libraries Reference
- Page 364 and 365: 2 Intel Fortran Libraries Reference
- Page 368 and 369: 2 Intel Fortran Libraries Reference
- Page 370 and 371: 2 Intel Fortran Libraries Reference
- Page 372 and 373: 2 Intel Fortran Libraries Reference
- Page 374 and 375: 2 Intel Fortran Libraries Reference
- Page 376 and 377: 2 Intel Fortran Libraries Reference
- Page 378 and 379: 2 Intel Fortran Libraries Reference
- Page 380 and 381: 2 Intel Fortran Libraries Reference
- Page 382 and 383: 2 Intel Fortran Libraries Reference
- Page 384 and 385: 2 Intel Fortran Libraries Reference
- Page 386 and 387: 2 Intel Fortran Libraries Reference
- Page 388 and 389: 2 Intel Fortran Libraries Reference
- Page 390 and 391: 2 Intel Fortran Libraries Reference
- Page 392 and 393: 2 Intel Fortran Libraries Reference
- Page 394 and 395: 2 Intel Fortran Libraries Reference
- Page 396 and 397: 2 Intel Fortran Libraries Reference
- Page 398 and 399: 2 Intel Fortran Libraries Reference
- Page 400 and 401: 2 Intel Fortran Libraries Reference
- Page 402 and 403: 2 Intel Fortran Libraries Reference
- Page 404 and 405: 2 Intel Fortran Libraries Reference
- Page 406 and 407: 2 Intel Fortran Libraries Reference
- Page 408 and 409: 2 Intel Fortran Libraries Reference
- Page 410 and 411: 2 Intel Fortran Libraries Reference
- Page 412 and 413: 2 Intel Fortran Libraries Reference
- Page 414 and 415: 2 Intel Fortran Libraries Reference
Descriptions of the Library Routines 2ifildes(Output) INTEGER(4). The returned file descriptor for the opened or created file.ierror(Output) INTEGER(4). The error status.If successful, ierror is set to zero; otherwise, an error code.For iopenflag, you should specify one of the following constant values:• O_RDONLY (read only)• O_WRONLY (write only)• O_RDWR (read and write)In addition, you can also specify one of the following constant values by using a bitwise inclusiveOR (IOR):ValueO_CREATO_EXCLO_NOCTTYO_TRUNCO_APPENDO_NONBLOCK (orO_NDELAY) 1O_SYNCO_NOFOLLOW 1O_DIRECTORY 1O_LARGEFILE 1O_BINARY 2O_SHORT_LIVED 2O_TEMPORARY 2ActionCreates and opens a file if the file does not exist.When used with O_CREAT, it causes the open to fail if the file already exists. Inthis case, a symbolic link exists, regardless of where it points to.If path refers to a terminal device, it prevents it from becoming the process'scontrolling terminal even if the process does not have one.If the file already exists, it is a regular file, and imode allows writing (its value isO_RDWR or O_WRONLY), it causes the file to be truncated to length 0.Opens the file in append mode. Before each write, the file pointer is positionedat the end of the file, as if with PXFLSEEK.When possible, opens the file in non-blocking mode. Neither the open nor anysubsequent operations on the file descriptor that is returned will cause thecalling process to wait. This mode need not have any effect on files other thanFIFOs.Opens the file for synchronous I/O. Any writes on the resulting file descriptorwill block the calling process until the data has been physically written to theunderlying hardware.If path is a symbolic link, it causes the open to fail.If path is not a directory, it causes the open to fail.On 32-bit systems that support the Large Files System, it allows files whosesizes cannot be represented in 31 bits to be opened.Opens the file in binary (untranslated) mode.Creates the file as temporary. If possible, it does not flush to the disk.Creates the file as temporary. The file is deleted when last file handle is closed.2-315