|
Packit Service |
c5cf8c |
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */
|
|
Packit Service |
c5cf8c |
/*
|
|
Packit Service |
c5cf8c |
* (C) 2001 by Argonne National Laboratory.
|
|
Packit Service |
c5cf8c |
* See COPYRIGHT in top-level directory.
|
|
Packit Service |
c5cf8c |
*/
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
#ifndef SIMPLE_PMIUTIL_H_INCLUDED
|
|
Packit Service |
c5cf8c |
#define SIMPLE_PMIUTIL_H_INCLUDED
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
/* maximum sizes for arrays */
|
|
Packit Service |
c5cf8c |
#define PMIU_MAXLINE 1024
|
|
Packit Service |
c5cf8c |
#define PMIU_IDSIZE 32
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
/* we don't have access to MPIR_Assert and friends here in the PMI code */
|
|
Packit Service |
c5cf8c |
#if defined(HAVE_ASSERT_H)
|
|
Packit Service |
c5cf8c |
#include <assert.h>
|
|
Packit Service |
c5cf8c |
#define PMIU_Assert(expr) assert(expr)
|
|
Packit Service |
c5cf8c |
#else
|
|
Packit Service |
c5cf8c |
#define PMIU_Assert(expr)
|
|
Packit Service |
c5cf8c |
#endif
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
#if defined HAVE_ARPA_INET_H
|
|
Packit Service |
c5cf8c |
#include <arpa/inet.h>
|
|
Packit Service |
c5cf8c |
#endif /* HAVE_ARPA_INET_H */
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
/* prototypes for PMIU routines */
|
|
Packit Service |
c5cf8c |
void PMIU_Set_rank(int PMI_rank);
|
|
Packit Service |
c5cf8c |
void PMIU_SetServer(void);
|
|
Packit Service |
c5cf8c |
void PMIU_printf(int print_flag, const char *fmt, ...);
|
|
Packit Service |
c5cf8c |
int PMIU_readline(int fd, char *buf, int max);
|
|
Packit Service |
c5cf8c |
int PMIU_writeline(int fd, char *buf);
|
|
Packit Service |
c5cf8c |
int PMIU_parse_keyvals(char *st);
|
|
Packit Service |
c5cf8c |
void PMIU_dump_keyvals(void);
|
|
Packit Service |
c5cf8c |
char *PMIU_getval(const char *keystr, char *valstr, int vallen);
|
|
Packit Service |
c5cf8c |
void PMIU_chgval(const char *keystr, char *valstr);
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
#endif /* SIMPLE_PMIUTIL_H_INCLUDED */
|