ADD_DEFINITIONS("-D_DOWNLOAD_BOOSTER_SUPPORT")
ENDIF (SUPPORT_DOWNLOAD_BOOSTER)
+IF(SUPPORT_LARGE_FILE)
+ MESSAGE("Large file:On")
+ SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -D_FILE_OFFSET_BITS=64")
+ENDIF(SUPPORT_LARGE_FILE)
+
FOREACH(flag ${subpkgs_CFLAGS})
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
ENDFOREACH(flag)
* The solution for reducing fflush is needed */
//fflush((FILE *) fd);
if (write_success_len != buffer_size) {
- DA_LOGE("write fails ");
+ DA_LOGE("write fails [%d]", errno);
if (errno == ENOSPC)
ret = DA_ERR_DISK_FULL;
else
* The solution for reducing fflush is needed */
//fflush((FILE *) fd);
if (write_success_len != (size_t)body_len) {
- DA_LOGE("write fails ");
+ DA_LOGE("write fails [%d]", errno);
if (errno == ENOSPC)
ret = DA_ERR_DISK_FULL;
else
DA_SECURE_LOGI(" total = %lf ", total_size);
DA_SECURE_LOGI(" available = %lf ", available_size);
- DA_LOGV("Available Memory(f_bavail) : %lu", filesys_info.f_bavail);
+ DA_LOGV("Available Memory(f_bavail) : %llu", filesys_info.f_bavail);
DA_LOGV("Available Memory(f_bsize) : %d", filesys_info.f_bsize);
- DA_LOGD("Available Memory(kbytes) : %lu", (filesys_info.f_bavail/1024)*filesys_info.f_bsize);
+ DA_LOGD("Available Memory(kbytes) : %llu", (filesys_info.f_bavail/1024)*filesys_info.f_bsize);
DA_LOGV("Content: %llu", len);
if (available_size < (len
+ SAVE_FILE_BUFFERING_SIZE_50KB)) /* 50KB buffering */
MESSAGE("Companion:Off")
ENDIF(SUPPORT_COMPANION_MODE)
+IF(SUPPORT_LARGE_FILE)
+ MESSAGE("Large file:On")
+ SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -D_FILE_OFFSET_BITS=64")
+ENDIF(SUPPORT_LARGE_FILE)
+
## INCLUDES
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/include ${CMAKE_SOURCE_DIR}/agent/include)