12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- #ifndef _SE_MAP_H_
- #define _SE_MAP_H_
- #include <unistd.h>
- #include <sys/mman.h>
- #include <string.h>
- #include <errno.h>
- #include "se_types.h"
- #include <sys/types.h>
- #include <sys/stat.h>
- #include <fcntl.h>
- #include <stdio.h>
- typedef int se_file_handle_t;
- typedef struct {
- uint8_t* base_addr;
- size_t length;
- } map_handle_t;
- #ifdef __cplusplus
- extern "C" {
- #endif
- map_handle_t* map_file(se_file_handle_t fd, uint32_t *size);
- void unmap_file(map_handle_t* mh);
- #ifdef __cplusplus
- }
- #endif
- #endif
|