s/PATH_MAX/OMPI_PATH_MAX/ for portability
This commit was SVN r4312.
Этот коммит содержится в:
родитель
f1d7120757
Коммит
7b0d5c58c3
@ -157,7 +157,7 @@ mca_common_sm_mmap_t* mca_common_sm_mmap_init(size_t size, char *file_name,
|
|||||||
|
|
||||||
/* set up the map object */
|
/* set up the map object */
|
||||||
map = OBJ_NEW(mca_common_sm_mmap_t);
|
map = OBJ_NEW(mca_common_sm_mmap_t);
|
||||||
strncpy(map->map_path, file_name, PATH_MAX);
|
strncpy(map->map_path, file_name, OMPI_PATH_MAX);
|
||||||
/* the first entry in the file is the control strcuture. the first
|
/* the first entry in the file is the control strcuture. the first
|
||||||
entry in the control structure is an mca_common_sm_file_header_t
|
entry in the control structure is an mca_common_sm_file_header_t
|
||||||
element */
|
element */
|
||||||
|
@ -15,6 +15,8 @@
|
|||||||
#ifndef _COMMON_SM_MMAP_H_
|
#ifndef _COMMON_SM_MMAP_H_
|
||||||
#define _COMMON_SM_MMAP_H_
|
#define _COMMON_SM_MMAP_H_
|
||||||
|
|
||||||
|
#include "ompi_config.h"
|
||||||
|
|
||||||
#include "class/ompi_object.h"
|
#include "class/ompi_object.h"
|
||||||
#include "class/ompi_list.h"
|
#include "class/ompi_list.h"
|
||||||
#include "include/sys/atomic.h"
|
#include "include/sys/atomic.h"
|
||||||
@ -54,7 +56,7 @@ struct mca_common_sm_mmap_t {
|
|||||||
/* base address of data segment */
|
/* base address of data segment */
|
||||||
unsigned char *data_addr;
|
unsigned char *data_addr;
|
||||||
size_t map_size;
|
size_t map_size;
|
||||||
char map_path[PATH_MAX];
|
char map_path[OMPI_PATH_MAX];
|
||||||
};
|
};
|
||||||
typedef struct mca_common_sm_mmap_t mca_common_sm_mmap_t;
|
typedef struct mca_common_sm_mmap_t mca_common_sm_mmap_t;
|
||||||
|
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user