|
@@ -73,6 +73,7 @@ static void *starpu_stdio_alloc(void *base, size_t size)
|
|
|
/* fail */
|
|
|
if (id < 0)
|
|
|
{
|
|
|
+ _STARPU_DISP("Could not create temporary file in directory '%s', mskostemp failed with error '%s'\n", (char*)base, strerror(errno));
|
|
|
free(obj);
|
|
|
free(baseCpy);
|
|
|
return NULL;
|
|
@@ -98,6 +99,11 @@ static void *starpu_stdio_alloc(void *base, size_t size)
|
|
|
/* fail */
|
|
|
if (val < 0)
|
|
|
{
|
|
|
+#ifdef STARPU_HAVE_WINDOWS
|
|
|
+ _STARPU_DISP("Could not truncate file, _chsize failed with error '%s'\n", strerror(errno));
|
|
|
+#else
|
|
|
+ _STARPU_DISP("Could not truncate file, ftruncate failed with error '%s'\n", strerror(errno));
|
|
|
+#endif
|
|
|
fclose(f);
|
|
|
close(id);
|
|
|
unlink(baseCpy);
|