root/ompi/mca/io/romio321/romio/adio/ad_gridftp/globus_routines.c

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. globus_err_handler

   1 /* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */
   2 /* 
   3  *
   4  *   Copyright (C) 2003 University of Chicago, Ohio Supercomputer Center. 
   5  *   See COPYRIGHT notice in top-level directory.
   6  */
   7 
   8 #include <unistd.h>
   9 #include <sys/types.h>
  10 #include <sys/uio.h>
  11 #include <fcntl.h>
  12 #include "adio.h"
  13 #include <globus_ftp_client.h>
  14 
  15 /* Here are the canonical definitions of the extern's referenced by
  16    ad_gridftp.h */
  17 int num_gridftp_handles=0;
  18 #ifndef ADIO_GRIDFTP_HANDLES_MAX
  19 #define ADIO_GRIDFTP_HANDLES_MAX 200
  20 #endif /* ! ADIO_GRIDFTP_HANDLES_MAX */
  21 /* having to keep not one but two big global tables sucks... */
  22 globus_ftp_client_handle_t gridftp_fh[ADIO_GRIDFTP_HANDLES_MAX];
  23 globus_ftp_client_operationattr_t oattr[ADIO_GRIDFTP_HANDLES_MAX];
  24 
  25 void globus_err_handler(const char *routine, const char *caller,
  26                         globus_result_t result)
  27 {
  28   int myrank,nprocs;
  29   globus_object_t *err;
  30 
  31   MPI_Comm_rank(MPI_COMM_WORLD,&myrank);
  32   MPI_Comm_size(MPI_COMM_WORLD,&nprocs);
  33   err = globus_error_get(result);
  34   FPRINTF(stderr, "[%d/%d] %s error \"%s\", called from %s\n",
  35           myrank,nprocs,routine,globus_object_printable_to_string(err),caller);
  36 }

/* [<][>][^][v][top][bottom][index][help] */