1
1

checking in a few changes which make the changes work

This commit was SVN r3478.
Этот коммит содержится в:
Prabhanjan Kambadur 2004-11-02 19:12:11 +00:00
родитель dec119b2a0
Коммит d7cd3dcef1
5 изменённых файлов: 23 добавлений и 2 удалений

Просмотреть файл

@ -51,9 +51,12 @@ char *ompi_os_path(bool relative, ...)
path[0] = 0; path[0] = 0;
if (relative) { if (relative) {
strcpy(path, "."); strcpy(path, ".");
strcat(path, ompi_system_info.path_sep);
} }
else { else {
#ifndef WIN32
strcpy(path, ompi_system_info.path_sep); strcpy(path, ompi_system_info.path_sep);
#endif
} }
return(path); return(path);
} }
@ -75,6 +78,12 @@ char *ompi_os_path(bool relative, ...)
strcpy(path, "."); strcpy(path, ".");
} }
/* get the first element here so that we don't have duplicate first
seperators */
if (NULL != (element = va_arg(ap1, char*))) {
strcat(path, element);
}
while (NULL != (element=va_arg(ap1, char*))) { while (NULL != (element=va_arg(ap1, char*))) {
strcat(path, ompi_system_info.path_sep); strcat(path, ompi_system_info.path_sep);
strcat(path, element); strcat(path, element);

Просмотреть файл

@ -75,7 +75,7 @@ static bool ompi_is_empty(char *pathname);
#define OMPI_DEFAULT_TMPDIR "tmp" #define OMPI_DEFAULT_TMPDIR "C:\\cygwin\\tmp"
static int ompi_check_dir(bool create, char *directory) static int ompi_check_dir(bool create, char *directory)
{ {
@ -155,7 +155,7 @@ int ompi_session_dir(bool create, char *prfx, char *usr, char *hostid,
} }
if (NULL == ompi_process_info.top_session_dir) { if (NULL == ompi_process_info.top_session_dir) {
if (0 > asprintf(&frontend, "openmpi-sessions-%s@%s:%s", user, hostname, batchname)) { if (0 > asprintf(&frontend, "openmpi-sessions-%s@%s_%s", user, hostname, batchname)) {
return_code = OMPI_ERROR; return_code = OMPI_ERROR;
goto CLEANUP; goto CLEANUP;
} }

Просмотреть файл

@ -3,8 +3,10 @@
*/ */
extern const mca_base_component_t mca_allocator_bucket_component; extern const mca_base_component_t mca_allocator_bucket_component;
extern const mca_base_component_t mca_allocator_basic_component;
const mca_base_component_t *mca_allocator_base_static_components[] = { const mca_base_component_t *mca_allocator_base_static_components[] = {
&mca_allocator_bucket_component, &mca_allocator_bucket_component,
&mca_allocator_basic_component,
NULL NULL
}; };

Просмотреть файл

@ -19,6 +19,10 @@ static __inline char *basename(char *path) {
char *p = path; char *p = path;
char *ret; char *ret;
if (path[strlen(path)-1] == '\\') {
path[strlen(path)-1] = '\0';
}
while (*p != '\0') p++; while (*p != '\0') p++;
while (*p != '\\') p--; while (*p != '\\') p--;
ret = strdup(++p); ret = strdup(++p);

Просмотреть файл

@ -2452,6 +2452,12 @@
<Filter <Filter
Name="components" Name="components"
Filter=""> Filter="">
<File
RelativePath="..\..\src\mca\allocator\basic\allocator_basic.c">
</File>
<File
RelativePath="..\..\src\mca\allocator\basic\allocator_basic.h">
</File>
<File <File
RelativePath="..\..\src\mca\allocator\bucket\allocator_bucket.c"> RelativePath="..\..\src\mca\allocator\bucket\allocator_bucket.c">
</File> </File>