doc/api/libbabeltrace2/DoxygenLayout.xml: use `topics` tab
[babeltrace.git] / src / compat / mman.c
index 7cd7a6fd8105dff245209cf3311473c0e8e84957..251e87354d1a40e1908c522d4031d7095b1eed47 100644 (file)
@@ -20,7 +20,6 @@
  * On macOS, we need a dummy symbol so that the linker won't
  * complain of an empty table of contents.
  */
-BT_HIDDEN
 int bt_mman_dummy_symbol;
 #endif /* __APPLE__ */
 
@@ -153,9 +152,8 @@ DWORD map_prot_flags(int prot, DWORD *dwDesiredAccess)
        return 0;
 }
 
-BT_HIDDEN
-void *bt_mmap(void *addr, size_t length, int prot, int flags, int fd,
-               off_t offset, int log_level)
+void *bt_mmap(size_t length, int prot, int flags, int fd, off_t offset,
+               int log_level)
 {
        struct mmap_mapping *mapping = NULL;
        void *mapping_addr;
@@ -254,8 +252,7 @@ error:
        return MAP_FAILED;
 }
 
-BT_HIDDEN
-int bt_munmap(void *addr, size_t length)
+int bt_munmap(void *addr, size_t length __attribute__((unused)))
 {
        int ret = 0;
        struct mmap_mapping *mapping = addr;
@@ -283,13 +280,12 @@ end:
        return ret;
 }
 
-BT_HIDDEN
 size_t bt_mmap_get_offset_align_size(int log_level)
 {
        SYSTEM_INFO sysinfo;
 
        GetNativeSystemInfo(&sysinfo);
-       BT_LOG_WRITE_CUR_LVL(BT_LOG_DEBUG, log_level, BT_LOG_TAG,
+       BT_LOG_WRITE_PRINTF_CUR_LVL(BT_LOG_DEBUG, log_level, BT_LOG_TAG,
                "Allocator granularity is %lu.",
                sysinfo.dwAllocationGranularity);
 
This page took 0.025131 seconds and 4 git commands to generate.