d082a63734
After seeing the uglyness that is removing directories in the codebase I decided to push down this to the OPAL by extending the opal/os_create_dirpath.(c|h) to contain some more functionality. In this process I renamed 'os_create_dirpath' to 'os_dirpath' since it is a bit more general now. Added a few functions to: - check if an directory is empty - check to see if the access permissions are set correctly - destroy the directory at the end of the dirpath - By using a caller callback function (a la Perl, I believe) for every file, the caller can have fine grained control over whether a specific file is deleted or not. This simplifies things a bit for orte_session_dir_(finalize|cleanup) as it should no longer contain any of this functionality, but uses these functions to do the work. From the external perspective nothing has changed, from the developer point of view we have some cleaner, more generic code. This commit was SVN r10640.
98 строки
2.2 KiB
Makefile
98 строки
2.2 KiB
Makefile
#
|
|
# 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$
|
|
#
|
|
|
|
SUBDIRS = keyval
|
|
|
|
AM_LFLAGS = -Popal_show_help_yy
|
|
LEX_OUTPUT_ROOT = lex.opal_show_help_yy
|
|
|
|
noinst_LTLIBRARIES = libopalutil.la
|
|
|
|
# Source code files
|
|
|
|
headers = \
|
|
argv.h \
|
|
basename.h \
|
|
bit_ops.h \
|
|
cmd_line.h \
|
|
crc.h \
|
|
convert.h \
|
|
daemon_init.h \
|
|
error.h \
|
|
few.h \
|
|
if.h \
|
|
keyval_parse.h \
|
|
malloc.h \
|
|
numtostr.h \
|
|
opal_environ.h \
|
|
os_dirpath.h \
|
|
os_path.h \
|
|
output.h \
|
|
path.h \
|
|
pow2.h \
|
|
printf.h \
|
|
opal_pty.h \
|
|
qsort.h \
|
|
show_help.h \
|
|
show_help_lex.h \
|
|
stacktrace.h \
|
|
strncpy.h \
|
|
trace.h
|
|
|
|
libopalutil_la_SOURCES = \
|
|
$(headers) \
|
|
argv.c \
|
|
basename.c \
|
|
cmd_line.c \
|
|
crc.c \
|
|
convert.c \
|
|
daemon_init.c \
|
|
error.c \
|
|
few.c \
|
|
if.c \
|
|
keyval_parse.c \
|
|
malloc.c \
|
|
numtostr.c \
|
|
opal_environ.c \
|
|
os_dirpath.c \
|
|
os_path.c \
|
|
output.c \
|
|
path.c \
|
|
pow2.c \
|
|
printf.c \
|
|
opal_pty.c \
|
|
qsort.c \
|
|
show_help.c \
|
|
show_help_lex.l \
|
|
stacktrace.c \
|
|
strncpy.c \
|
|
trace.c
|
|
libopalutil_la_LIBADD = \
|
|
keyval/libopalutilkeyval.la
|
|
libopalutil_la_DEPENDENCIES = \
|
|
keyval/libopalutilkeyval.la
|
|
|
|
# Conditionally install the header files
|
|
|
|
if WANT_INSTALL_HEADERS
|
|
ompidir = $(includedir)/openmpi/opal/util
|
|
ompi_HEADERS = $(headers)
|
|
else
|
|
ompidir = $(includedir)
|
|
endif
|