summaryrefslogtreecommitdiffhomepage
path: root/src/internal/slibtool_mapfile_impl.c
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-02-18 07:06:15 +0000
committermidipix <writeonce@midipix.org>2024-02-18 07:37:54 +0000
commit4b56dee0873d57ed2a0891a4a2370d20d46845c3 (patch)
tree36b1645696d42bed98625964f471ad8cbcdb19fe /src/internal/slibtool_mapfile_impl.c
parentd603a45e5710cc897681c3395188d7376593dcbe (diff)
downloadslibtool-4b56dee0873d57ed2a0891a4a2370d20d46845c3.tar.bz2
slibtool-4b56dee0873d57ed2a0891a4a2370d20d46845c3.tar.xz
code base: set the visilbity of internal library interfaces to hidden.
Diffstat (limited to 'src/internal/slibtool_mapfile_impl.c')
-rw-r--r--src/internal/slibtool_mapfile_impl.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/internal/slibtool_mapfile_impl.c b/src/internal/slibtool_mapfile_impl.c
index b6c749d..3440484 100644
--- a/src/internal/slibtool_mapfile_impl.c
+++ b/src/internal/slibtool_mapfile_impl.c
@@ -15,6 +15,7 @@
#include "slibtool_errinfo_impl.h"
#include "slibtool_mapfile_impl.h"
+#include "slibtool_visibility_impl.h"
static void slbt_munmap(void * addr, size_t size)
{
@@ -23,7 +24,7 @@ static void slbt_munmap(void * addr, size_t size)
}
}
-struct slbt_map_info * slbt_map_file(
+slbt_hidden struct slbt_map_info * slbt_map_file(
int fdat,
const char * path,
uint32_t flags)
@@ -82,13 +83,13 @@ struct slbt_map_info * slbt_map_file(
return mapinfo;
}
-void slbt_unmap_file(struct slbt_map_info * mapinfo)
+slbt_hidden void slbt_unmap_file(struct slbt_map_info * mapinfo)
{
slbt_munmap(mapinfo->addr,mapinfo->size);
free(mapinfo);
}
-int slbt_mapped_readline(
+slbt_hidden int slbt_mapped_readline(
const struct slbt_driver_ctx * dctx,
struct slbt_map_info * mapinfo,
char * buf,