summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/arbits/slbt_archive_ctx.c4
-rw-r--r--src/util/slbt_map_input.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/arbits/slbt_archive_ctx.c b/src/arbits/slbt_archive_ctx.c
index 777b0d5..a110e97 100644
--- a/src/arbits/slbt_archive_ctx.c
+++ b/src/arbits/slbt_archive_ctx.c
@@ -23,7 +23,7 @@ static int slbt_map_raw_archive(
{
struct slbt_input mapinfo = {0,0};
- if (slbt_map_input(dctx,fd,path,prot,&mapinfo) < 0)
+ if (slbt_fs_map_input(dctx,fd,path,prot,&mapinfo) < 0)
return SLBT_NESTED_ERROR(dctx);
if (mapinfo.size == 0)
@@ -44,7 +44,7 @@ static int slbt_unmap_raw_archive(struct slbt_raw_archive * map)
mapinfo.addr = map->map_addr;
mapinfo.size = map->map_size;
- return slbt_unmap_input(&mapinfo);
+ return slbt_fs_unmap_input(&mapinfo);
}
static int slbt_ar_free_archive_ctx_impl(struct slbt_archive_ctx_impl * ctx, int ret)
diff --git a/src/util/slbt_map_input.c b/src/util/slbt_map_input.c
index ca0b06b..0a7b6d3 100644
--- a/src/util/slbt_map_input.c
+++ b/src/util/slbt_map_input.c
@@ -16,7 +16,7 @@
#include "slibtool_driver_impl.h"
#include "slibtool_errinfo_impl.h"
-int slbt_map_input(
+int slbt_fs_map_input(
const struct slbt_driver_ctx * dctx,
int fd,
const char * path,
@@ -61,7 +61,7 @@ int slbt_map_input(
: 0;
}
-int slbt_unmap_input(struct slbt_input * map)
+int slbt_fs_unmap_input(struct slbt_input * map)
{
return map->size ? munmap(map->addr,map->size) : 0;
}