/*D
   MPI_Waitany - Waits for any specified MPI Request to complete

Synopsis:
.vb
int MPI_Waitany(int count, MPI_Request array_of_requests[], int *indx,
                MPI_Status *status)
.ve

Input Parameters:
. count - count (non-negative integer)

Input/Output Parameters:
. array_of_requests - array of requests (handle)

Output Parameters:
+ indx - index of handle for operation that completed (integer)
- status - status object (Status)

Notes:
If all of the requests are 'MPI_REQUEST_NULL', then 'indx' is returned as
'MPI_UNDEFINED', and 'status' is returned as an empty status.

While it is possible to list a request handle more than once in the
array_of_requests, such an action is considered erroneous and may cause the
program to unexecpectedly terminate or produce incorrect results.

.N waitstatus

.N ThreadSafe

.N Fortran

.N Errors
.N MPI_SUCCESS
.N MPI_ERR_ARG
.N MPI_ERR_COUNT
.N MPI_ERR_REQUEST
.N MPI_ERR_OTHER

D*/

