5dfd54c778
Clean up the remainder of the size_t references in the runtime itself. Convert to orte_std_cntr_t wherever it makes sense (only avoid those places where the actual memory size is referenced). Remove the obsolete oob barrier function (we actually obsoleted it a long time ago - just never bothered to clean it up). I have done my best to go through all the components and catch everything, even if I couldn't test compile them since I wasn't on that type of system. Still, I cannot guarantee that problems won't show up when you test this on specific systems. Usually, these will just show as "warning: comparison between signed and unsigned" notes which are easily fixed (just change a size_t to orte_std_cntr_t). In some places, people didn't use size_t, but instead used some other variant (e.g., I found several places with uint32_t). I tried to catch all of them, but... Once we get all the instances caught and fixed, this should once and for all resolve many of the heterogeneity problems. This commit was SVN r11204.
85 строки
2.0 KiB
C
85 строки
2.0 KiB
C
/*
|
|
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
|
* University Research and Technology
|
|
* Corporation. All rights reserved.
|
|
* Copyright (c) 2004-2005 The University of Tennessee and The University
|
|
* of Tennessee Research Foundation. All rights
|
|
* reserved.
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
* University of Stuttgart. All rights reserved.
|
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
|
* All rights reserved.
|
|
* $COPYRIGHT$
|
|
*
|
|
* Additional copyrights may follow
|
|
*
|
|
* $HEADER$
|
|
*/
|
|
/** @file:
|
|
*
|
|
* Contains header used by tcp oob.
|
|
*/
|
|
|
|
#ifndef _MCA_OOB_TCP_ADDR_H_
|
|
#define _MCA_OOB_TCP_ADDR_H_
|
|
|
|
#include "orte_config.h"
|
|
#ifdef HAVE_SYS_TYPES_H
|
|
#include <sys/types.h>
|
|
#endif
|
|
#ifdef HAVE_NETINET_IN_H
|
|
#include <netinet/in.h>
|
|
#endif
|
|
#include "orte/dss/dss.h"
|
|
#include "opal/class/opal_object.h"
|
|
#include "orte/mca/ns/ns_types.h"
|
|
#if defined(c_plusplus) || defined(__cplusplus)
|
|
extern "C" {
|
|
#endif
|
|
/**
|
|
* Address info published to registry
|
|
*/
|
|
struct mca_oob_tcp_addr_t {
|
|
opal_object_t super;
|
|
orte_process_name_t addr_name;
|
|
orte_std_cntr_t addr_count;
|
|
orte_std_cntr_t addr_next;
|
|
orte_std_cntr_t addr_alloc;
|
|
bool addr_matched;
|
|
struct sockaddr_in* addr_inet;
|
|
};
|
|
typedef struct mca_oob_tcp_addr_t mca_oob_tcp_addr_t;
|
|
|
|
OBJ_CLASS_DECLARATION(mca_oob_tcp_addr_t);
|
|
|
|
/**
|
|
* Unpack the contact information posted by the peer.
|
|
*/
|
|
|
|
mca_oob_tcp_addr_t* mca_oob_tcp_addr_unpack(orte_buffer_t*);
|
|
|
|
/**
|
|
* Pack this hosts addressing info into a buffer for posting
|
|
* into the registry.
|
|
*/
|
|
|
|
int mca_oob_tcp_addr_pack(orte_buffer_t*);
|
|
|
|
/**
|
|
*
|
|
*/
|
|
|
|
int mca_oob_tcp_addr_insert(mca_oob_tcp_addr_t*, const struct sockaddr_in*);
|
|
|
|
/**
|
|
*
|
|
*/
|
|
|
|
int mca_oob_tcp_addr_get_next(mca_oob_tcp_addr_t*, struct sockaddr_in*);
|
|
|
|
#if defined(c_plusplus) || defined(__cplusplus)
|
|
}
|
|
#endif
|
|
#endif
|
|
|