summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
ec90d60)
Now that the python-bindings load the private headers too (to get
Context::StopRequest() in Context.hpp), we get some naming conflict.
Interestingly, that's only visible on some architectures, not globally.
CHECK_INCLUDE_FILE("sys/sendfile.h" HAVE_SENDFILE_H)
CHECK_FUNCTION_EXISTS(sendfile HAVE_SENDFILE)
if(HAVE_SENDFILE_H AND HAVE_SENDFILE)
CHECK_INCLUDE_FILE("sys/sendfile.h" HAVE_SENDFILE_H)
CHECK_FUNCTION_EXISTS(sendfile HAVE_SENDFILE)
if(HAVE_SENDFILE_H AND HAVE_SENDFILE)
+ set(SG_HAVE_SENDFILE 1)
+ set(SG_HAVE_SENDFILE 0)
endif()
if(enable_model-checking AND NOT "${CMAKE_SYSTEM}" MATCHES "Linux|FreeBSD")
endif()
if(enable_model-checking AND NOT "${CMAKE_SYSTEM}" MATCHES "Linux|FreeBSD")
/* We have PAPI to fine-grain trace execution time */
#cmakedefine01 HAVE_PAPI
/* We have sendfile to efficiently copy files for dl-open privatization */
/* We have PAPI to fine-grain trace execution time */
#cmakedefine01 HAVE_PAPI
/* We have sendfile to efficiently copy files for dl-open privatization */
-#cmakedefine01 HAVE_SENDFILE
+#cmakedefine01 SG_HAVE_SENDFILE
/* Other function checks */
/* Function dlfunc */
/* Other function checks */
/* Function dlfunc */
# define HAVE_WORKING_MMAP 1
#endif
# define HAVE_WORKING_MMAP 1
#endif
#include <sys/sendfile.h>
#endif
#include <sys/sendfile.h>
#endif
XBT_DEBUG("Copy %" PRIdMAX " bytes into %s", static_cast<intmax_t>(fdin_size), target.c_str());
bool slow_copy = true;
XBT_DEBUG("Copy %" PRIdMAX " bytes into %s", static_cast<intmax_t>(fdin_size), target.c_str());
bool slow_copy = true;
ssize_t sent_size = sendfile(fdout, fdin, NULL, fdin_size);
if (sent_size == fdin_size)
slow_copy = false;
ssize_t sent_size = sendfile(fdout, fdin, NULL, fdin_size);
if (sent_size == fdin_size)
slow_copy = false;