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 ReferencePXFSETGIDPOSIX Subroutine: Sets the effective group ID of the current process. This subroutine is onlyavailable on Linux* systems.Module: USE IFPOSIXSyntaxCALL PXFSETGID (igid, ierror)igid(Input) INTEGER(4). The group ID.ierror(Output) INTEGER(4). The error status.If successful, ierror is set to zero; otherwise, an error code.If the caller is the superuser, the real and saved group ID’s are also set. This feature allows aprogram other than root to drop all of its group privileges, do some un-privileged work, and thenre-engage the original effective group ID in a secure manner.CAUTION. If the user is root then special care must be taken. PXFSETGIDchecks the effective gid of the caller. If it is the superuser, all process-relatedgroup ID’s are set to gid. After this has occurred, it is impossible for theprogram to regain root privileges.See Also: “PXFGETGID”PXFSETPGIDPOSIX Subroutine: Sets the process group ID. This subroutine is only available on Linux*systems.Module: USE IFPOSIXSyntaxCALL PXFSETPGID (ipid, ipgid, ierror)ipid(Input) INTEGER(4). The process group ID to change.ipgid(Input) INTEGER(4). The new process group ID.2-326

Descriptions of the Library Routines 2ierror(Output) INTEGER(4). The error status.If successful, ierror is set to zero; otherwise, an error code.The PXFSETPGID subroutine sets the process group ID of the process specified by ipid to ipgid.If ipid is zero, the process ID of the current process is used. If ipgid is zero, the process ID of theprocess specified by ipid is used.PXFSETPGID can be used to move a process from one process group to another, but both processgroups must be part of the same session. In this case, ipgid specifies an existing process group tobe joined and the session ID of that group must match the session ID of the joining process.PXFSETSIDPOSIX Subroutine: Creates a session and sets the process group ID. This subroutine is onlyavailable on Linux* systems.Module: USE IFPOSIXSyntaxCALL PXFSETSID (isid, ierror)isid(Output) INTEGER(4). The session ID.ierror(Output) INTEGER(4). The error status.If successful, ierror is set to zero; otherwise, an error code.The PXFSETSID subroutine creates a new session if the calling process is not a process groupleader.The calling process is the leader of the new session and the process group leader for the newprocess group. The calling process has no controlling terminal.The process group ID and session ID of the calling process are set to the PID of the callingprocess. The calling process will be the only process in this new process group and in this newsession.PXFSETUIDPOSIX Subroutine: Sets the effective user ID of the current process. This subroutine is onlyavailable on Linux* systems.Module: USE IFPOSIX2-327

Descriptions of the Library Routines 2ierror(Output) INTEGER(4). The error status.If successful, ierror is set to zero; otherwise, an error code.The PXFSETPGID subroutine sets the process group ID of the process specified by ipid to ipgid.If ipid is zero, the process ID of the current process is used. If ipgid is zero, the process ID of theprocess specified by ipid is used.PXFSETPGID can be used to move a process from one process group to another, but both processgroups must be part of the same session. In this case, ipgid specifies an existing process group tobe joined and the session ID of that group must match the session ID of the joining process.PXFSETSIDPOSIX Subroutine: Creates a session and sets the process group ID. This subroutine is onlyavailable on Linux* systems.Module: USE IFPOSIXSyntaxCALL PXFSETSID (isid, ierror)isid(Output) INTEGER(4). The session ID.ierror(Output) INTEGER(4). The error status.If successful, ierror is set to zero; otherwise, an error code.The PXFSETSID subroutine creates a new session if the calling process is not a process groupleader.The calling process is the leader of the new session and the process group leader for the newprocess group. The calling process has no controlling terminal.The process group ID and session ID of the calling process are set to the PID of the callingprocess. The calling process will be the only process in this new process group and in this newsession.PXFSETUIDPOSIX Subroutine: Sets the effective user ID of the current process. This subroutine is onlyavailable on Linux* systems.Module: USE IFPOSIX2-327

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

Saved successfully!

Ooh no, something went wrong!