bind(C,name="PIOc_iam_iotask")
integer(C_INT), intent(in), value :: iosysid
logical(C_BOOL), intent(out) :: iotask
end function PIOc_iam_iotask
ierr = PIOc_iam_iotask(iosystem%iosysid, ctask)
end function pio_iam_iotask
!! @brief Integer function returns rank of IO task.
function pio_iotask_rank(iosystem) result(rank)
type(iosystem_desc_t), intent(in) :: iosystem
integer(C_INT) function PIOc_iotask_rank(iosysid, rank) &
bind(C,name="PIOc_iotask_rank")
integer(C_INT), intent(in), value :: iosysid
integer(C_INT), intent(out) :: rank
end function PIOc_iotask_rank
ierr = PIOc_iotask_rank(iosystem%iosysid, rank)
end function pio_iotask_rank
!! @brief Sets active to true if IO system is active.
subroutine pio_iosystem_is_active(iosystem, active)
type(iosystem_desc_t), intent(in) :: iosystem
logical, intent(out) :: active
logical(C_BOOL) :: lactive
integer(C_INT) function PIOc_iosystem_is_active(iosysid, active) &
bind(C,name="PIOc_iosystem_is_active")
integer(C_INT), intent(in), value :: iosysid
logical(C_BOOL), intent(out) :: active
end function PIOc_iosystem_is_active
ierr = PIOc_iosystem_is_active(iosystem%iosysid, lactive)
end subroutine pio_iosystem_is_active