summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/slibtool/slibtool.h4
-rw-r--r--src/arbits/slbt_archive_ctx.c4
-rw-r--r--src/util/slbt_map_input.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/include/slibtool/slibtool.h b/include/slibtool/slibtool.h
index f26e4aa..0ba929b 100644
--- a/include/slibtool/slibtool.h
+++ b/include/slibtool/slibtool.h
@@ -339,11 +339,11 @@ struct slbt_archive_ctx {
};
/* raw input api */
-slbt_api int slbt_map_input (const struct slbt_driver_ctx *,
+slbt_api int slbt_fs_map_input (const struct slbt_driver_ctx *,
int, const char *, int,
struct slbt_input *);
-slbt_api int slbt_unmap_input (struct slbt_input *);
+slbt_api int slbt_fs_unmap_input (struct slbt_input *);
/* driver api */
slbt_api int slbt_lib_get_driver_ctx (char ** argv, char ** envp, uint64_t flags,
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;
}