LCOV - code coverage report
Current view: top level - zephyr/posix/sys - mman.h Hit Total Coverage
Test: new.info Lines: 0 24 0.0 %
Date: 2024-12-22 00:14:23

          Line data    Source code
       1           0 : /*
       2             :  * Copyright (c) 2024, Tenstorrent AI ULC
       3             :  *
       4             :  * SPDX-License-Identifier: Apache-2.0
       5             :  */
       6             : 
       7             : #ifndef ZEPHYR_INCLUDE_ZEPHYR_POSIX_SYS_MMAN_H_
       8             : #define ZEPHYR_INCLUDE_ZEPHYR_POSIX_SYS_MMAN_H_
       9             : 
      10             : #include <stddef.h>
      11             : #include <sys/types.h>
      12             : 
      13           0 : #define PROT_NONE  0x0
      14           0 : #define PROT_READ  0x1
      15           0 : #define PROT_WRITE 0x2
      16           0 : #define PROT_EXEC  0x4
      17             : 
      18           0 : #define MAP_SHARED  0x1
      19           0 : #define MAP_PRIVATE 0x2
      20           0 : #define MAP_FIXED   0x4
      21             : 
      22             : /* for Linux compatibility */
      23           0 : #define MAP_ANONYMOUS 0x20
      24             : 
      25           0 : #define MS_SYNC       0x0
      26           0 : #define MS_ASYNC      0x1
      27           0 : #define MS_INVALIDATE 0x2
      28             : 
      29           0 : #define MAP_FAILED ((void *)-1)
      30             : 
      31           0 : #define MCL_CURRENT 0
      32           0 : #define MCL_FUTURE  1
      33             : 
      34             : #ifdef __cplusplus
      35             : extern "C" {
      36             : #endif
      37             : 
      38           0 : int mlock(const void *addr, size_t len);
      39           0 : int mlockall(int flags);
      40           0 : void *mmap(void *addr, size_t len, int prot, int flags, int fildes, off_t off);
      41           0 : int msync(void *addr, size_t length, int flags);
      42           0 : int munlock(const void *addr, size_t len);
      43           0 : int munlockall(void);
      44           0 : int munmap(void *addr, size_t len);
      45           0 : int shm_open(const char *name, int oflag, mode_t mode);
      46           0 : int shm_unlink(const char *name);
      47             : 
      48             : #ifdef __cplusplus
      49             : }
      50             : #endif
      51             : 
      52             : #endif /* ZEPHYR_INCLUDE_ZEPHYR_POSIX_SYS_MMAN_H_ */

Generated by: LCOV version 1.14