Intel® Fortran Libraries Reference

Intel® Fortran Libraries Reference Intel® Fortran Libraries Reference

h.eng.cam.ac.uk
from h.eng.cam.ac.uk More from this publisher
12.07.2015 Views

2 Intel Fortran Libraries ReferenceSyntaxCALL PXFUNLINK (path, ilen, ierror)path(Input) Character. The name of the directory entry to remove.ilen(Input) INTEGER(4). The length of path string.ierror(Output) INTEGER(4). The error status.If successful, ierror is set to zero; otherwise, an error code.CompatibilityCONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIBPXFUTIMEPOSIX Subroutine: Sets file access and modification times.Module: USE IFPOSIXSyntaxCALL PXFUTIME (path, ilen, jutimbuf, ierror)path(Input) Character. The path to the file.ilen(Input) INTEGER(4). The length of path string.jutimbuf(Input) INTEGER(4) on IA-32 processors; INTEGER(8) on Intel Itanium processors. A handle ofstructure utimbuf.ierror(Output) INTEGER(4). The error status.If successful, ierror is set to zero; otherwise, an error code.The PXFUTIME subroutine sets access and modification times for the file pointed to by path. Thetime values are retrieved from structure utimbuf.CompatibilityCONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIB2-356

Descriptions of the Library Routines 2PXFWAITPOSIX Subroutine: Waits for a child process. This subroutine is only available on Linux*systems.Module: USE IFPOSIXSyntaxCALL PXFWAIT (istat, iretpid, ierror)istat(Output) INTEGER(4). The returned status of the child process.iretpid(Output) INTEGER(4). The process ID of the stopped child process.ierror(Output) INTEGER(4). The error status.If successful, ierror is set to zero; otherwise, an error code.The PXFWAIT subroutine suspends execution of the current process until a child has exited, oruntil a signal is delivered whose action terminates the current process or calls a signal handlingroutine. If the child has already exited by the time of the call (a "zombie" process), a return isimmediately made. Any system resources used by the child are freed.The subroutine returns in iretpid the value of the process ID of the child that exited, or zero if nochild was available. The returned value in istat can be used in subroutines IPXFWEXITSTATUS,IPXFWSTOPSIG, IPXFWTERMSIG, PXFWIFEXITED, PXFWIFSIGNALLED, andPXFWIFSTOPPED.See Also: “PXFWAITPID”, “IPXFWEXITSTATUS”, “IPXFWSTOPSIG”, “IPXFWTERMSIG”,“PXFWIFEXITED”, “PXFWIFSIGNALED”, “PXFWIFSTOPPED”Exampleprogram t1use ifposixinteger(4) ipid, istat, ierror, ipid_ret, istat_retprint *," the child process will be born"call PXFFORK(IPID, IERROR)call PXFGETPID(IPID_RET,IERROR)if(IPID.EQ.0) thenprint *," I am a child process"print *," My child's pid is", IPID_RETcall PXFGETPPID(IPID_RET,IERROR)2-357

2 Intel <strong>Fortran</strong> <strong>Libraries</strong> <strong>Reference</strong>SyntaxCALL PXFUNLINK (path, ilen, ierror)path(Input) Character. The name of the directory entry to remove.ilen(Input) INTEGER(4). The length of path string.ierror(Output) INTEGER(4). The error status.If successful, ierror is set to zero; otherwise, an error code.CompatibilityCONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIBPXFUTIMEPOSIX Subroutine: Sets file access and modification times.Module: USE IFPOSIXSyntaxCALL PXFUTIME (path, ilen, jutimbuf, ierror)path(Input) Character. The path to the file.ilen(Input) INTEGER(4). The length of path string.jutimbuf(Input) INTEGER(4) on IA-32 processors; INTEGER(8) on Intel Itanium processors. A handle ofstructure utimbuf.ierror(Output) INTEGER(4). The error status.If successful, ierror is set to zero; otherwise, an error code.The PXFUTIME subroutine sets access and modification times for the file pointed to by path. Thetime values are retrieved from structure utimbuf.CompatibilityCONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIB2-356

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!