#include <sys/select.h>
#include "log.h"
+#include "osl.h"
#include "error.h"
/**
goto out;
}
*size = file_status.st_size;
- ret = -E_EMPTY;
+ ret = -E_OSL_EMPTY;
DEBUG_LOG("%s: size %zu\n", path, *size);
if (!*size)
goto out;
*map = mmap(NULL, *size, mmap_prot, mmap_flags, fd, 0);
if (*map == MAP_FAILED) {
*map = NULL;
- ret = -E_MMAP;
+ ret = -E_OSL_MMAP;
goto out;
}
ret = 1;