aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/tools/cython/Cython/Includes/posix/mman.pxd
diff options
context:
space:
mode:
authororivej <orivej@yandex-team.ru>2022-02-10 16:44:49 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:44:49 +0300
commit718c552901d703c502ccbefdfc3c9028d608b947 (patch)
tree46534a98bbefcd7b1f3faa5b52c138ab27db75b7 /contrib/tools/cython/Cython/Includes/posix/mman.pxd
parente9656aae26e0358d5378e5b63dcac5c8dbe0e4d0 (diff)
downloadydb-718c552901d703c502ccbefdfc3c9028d608b947.tar.gz
Restoring authorship annotation for <orivej@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/tools/cython/Cython/Includes/posix/mman.pxd')
-rw-r--r--contrib/tools/cython/Cython/Includes/posix/mman.pxd198
1 files changed, 99 insertions, 99 deletions
diff --git a/contrib/tools/cython/Cython/Includes/posix/mman.pxd b/contrib/tools/cython/Cython/Includes/posix/mman.pxd
index c810f431b3..483547621a 100644
--- a/contrib/tools/cython/Cython/Includes/posix/mman.pxd
+++ b/contrib/tools/cython/Cython/Includes/posix/mman.pxd
@@ -1,99 +1,99 @@
-# http://pubs.opengroup.org/onlinepubs/009695399/basedefs/sys/mman.h.html
-
-from posix.types cimport off_t, mode_t
-
-cdef extern from "<sys/mman.h>" nogil:
- enum: PROT_EXEC # protection bits for mmap/mprotect
- enum: PROT_READ
- enum: PROT_WRITE
- enum: PROT_NONE
-
- enum: MAP_PRIVATE # flag bits for mmap
- enum: MAP_SHARED
- enum: MAP_FIXED
- enum: MAP_ANON # These three are not in POSIX, but are
- enum: MAP_ANONYMOUS # fairly common in spelling/semantics
- enum: MAP_STACK
-
- enum: MAP_LOCKED # Typically available only on Linux
- enum: MAP_HUGETLB
- enum: MAP_POPULATE
- enum: MAP_NORESERVE
- enum: MAP_GROWSDOWN
-
- enum: MAP_NOCORE # Typically available only on BSD
- enum: MAP_NOSYNC
-
- void *MAP_FAILED
-
- void *mmap(void *addr, size_t Len, int prot, int flags, int fd, off_t off)
- int munmap(void *addr, size_t Len)
- int mprotect(void *addr, size_t Len, int prot)
-
- enum: MS_ASYNC
- enum: MS_SYNC
- enum: MS_INVALIDATE
- int msync(void *addr, size_t Len, int flags)
-
- enum: POSIX_MADV_NORMAL # POSIX advice flags
- enum: POSIX_MADV_SEQUENTIAL
- enum: POSIX_MADV_RANDOM
- enum: POSIX_MADV_WILLNEED
- enum: POSIX_MADV_DONTNEED
- int posix_madvise(void *addr, size_t Len, int advice)
-
- enum: MCL_CURRENT
- enum: MCL_FUTURE
- int mlock(const void *addr, size_t Len)
- int munlock(const void *addr, size_t Len)
- int mlockall(int flags)
- int munlockall()
- # Linux-specific
- enum: MLOCK_ONFAULT
- enum: MCL_ONFAULT
- int mlock2(const void *addr, size_t len, int flags)
-
- int shm_open(const char *name, int oflag, mode_t mode)
- int shm_unlink(const char *name)
-
- # often available
- enum: MADV_NORMAL # pre-POSIX advice flags; should translate 1-1 to POSIX_*
- enum: MADV_RANDOM # but in practice it is not always the same.
- enum: MADV_SEQUENTIAL
- enum: MADV_WILLNEED
- enum: MADV_DONTNEED
- enum: MADV_REMOVE # other pre-POSIX advice flags; often available
- enum: MADV_DONTFORK
- enum: MADV_DOFORK
- enum: MADV_HWPOISON
- enum: MADV_MERGEABLE,
- enum: MADV_UNMERGEABLE
- enum: MADV_SOFT_OFFLINE
- enum: MADV_HUGEPAGE
- enum: MADV_NOHUGEPAGE
- enum: MADV_DONTDUMP
- enum: MADV_DODUMP
- enum: MADV_FREE
- enum: MADV_WIPEONFORK
- enum: MADV_KEEPONFORK
- int madvise(void *addr, size_t Len, int advice)
-
- # sometimes available
- int mincore(void *addr, size_t Len, unsigned char *vec)
-
- # These two are Linux specific but sometimes very efficient
- void *mremap(void *old_addr, size_t old_len, size_t new_len, int flags, ...)
- int remap_file_pages(void *addr, size_t Len, int prot,
- size_t pgoff, int flags)
-
- # The rare but standardized typed memory option
- enum: POSIX_TYPED_MEM_ALLOCATE
- enum: POSIX_TYPED_MEM_ALLOCATE_CONTIG
- enum: POSIX_TYPED_MEM_MAP_ALLOCATABLE
- int posix_typed_mem_open(const char *name, int oflag, int tflag)
- int posix_mem_offset(const void *addr, size_t Len, off_t *off,
- size_t *contig_len, int *fildes)
-
- cdef struct posix_typed_mem_info:
- size_t posix_tmi_length
- int posix_typed_mem_get_info(int fildes, posix_typed_mem_info *info)
+# http://pubs.opengroup.org/onlinepubs/009695399/basedefs/sys/mman.h.html
+
+from posix.types cimport off_t, mode_t
+
+cdef extern from "<sys/mman.h>" nogil:
+ enum: PROT_EXEC # protection bits for mmap/mprotect
+ enum: PROT_READ
+ enum: PROT_WRITE
+ enum: PROT_NONE
+
+ enum: MAP_PRIVATE # flag bits for mmap
+ enum: MAP_SHARED
+ enum: MAP_FIXED
+ enum: MAP_ANON # These three are not in POSIX, but are
+ enum: MAP_ANONYMOUS # fairly common in spelling/semantics
+ enum: MAP_STACK
+
+ enum: MAP_LOCKED # Typically available only on Linux
+ enum: MAP_HUGETLB
+ enum: MAP_POPULATE
+ enum: MAP_NORESERVE
+ enum: MAP_GROWSDOWN
+
+ enum: MAP_NOCORE # Typically available only on BSD
+ enum: MAP_NOSYNC
+
+ void *MAP_FAILED
+
+ void *mmap(void *addr, size_t Len, int prot, int flags, int fd, off_t off)
+ int munmap(void *addr, size_t Len)
+ int mprotect(void *addr, size_t Len, int prot)
+
+ enum: MS_ASYNC
+ enum: MS_SYNC
+ enum: MS_INVALIDATE
+ int msync(void *addr, size_t Len, int flags)
+
+ enum: POSIX_MADV_NORMAL # POSIX advice flags
+ enum: POSIX_MADV_SEQUENTIAL
+ enum: POSIX_MADV_RANDOM
+ enum: POSIX_MADV_WILLNEED
+ enum: POSIX_MADV_DONTNEED
+ int posix_madvise(void *addr, size_t Len, int advice)
+
+ enum: MCL_CURRENT
+ enum: MCL_FUTURE
+ int mlock(const void *addr, size_t Len)
+ int munlock(const void *addr, size_t Len)
+ int mlockall(int flags)
+ int munlockall()
+ # Linux-specific
+ enum: MLOCK_ONFAULT
+ enum: MCL_ONFAULT
+ int mlock2(const void *addr, size_t len, int flags)
+
+ int shm_open(const char *name, int oflag, mode_t mode)
+ int shm_unlink(const char *name)
+
+ # often available
+ enum: MADV_NORMAL # pre-POSIX advice flags; should translate 1-1 to POSIX_*
+ enum: MADV_RANDOM # but in practice it is not always the same.
+ enum: MADV_SEQUENTIAL
+ enum: MADV_WILLNEED
+ enum: MADV_DONTNEED
+ enum: MADV_REMOVE # other pre-POSIX advice flags; often available
+ enum: MADV_DONTFORK
+ enum: MADV_DOFORK
+ enum: MADV_HWPOISON
+ enum: MADV_MERGEABLE,
+ enum: MADV_UNMERGEABLE
+ enum: MADV_SOFT_OFFLINE
+ enum: MADV_HUGEPAGE
+ enum: MADV_NOHUGEPAGE
+ enum: MADV_DONTDUMP
+ enum: MADV_DODUMP
+ enum: MADV_FREE
+ enum: MADV_WIPEONFORK
+ enum: MADV_KEEPONFORK
+ int madvise(void *addr, size_t Len, int advice)
+
+ # sometimes available
+ int mincore(void *addr, size_t Len, unsigned char *vec)
+
+ # These two are Linux specific but sometimes very efficient
+ void *mremap(void *old_addr, size_t old_len, size_t new_len, int flags, ...)
+ int remap_file_pages(void *addr, size_t Len, int prot,
+ size_t pgoff, int flags)
+
+ # The rare but standardized typed memory option
+ enum: POSIX_TYPED_MEM_ALLOCATE
+ enum: POSIX_TYPED_MEM_ALLOCATE_CONTIG
+ enum: POSIX_TYPED_MEM_MAP_ALLOCATABLE
+ int posix_typed_mem_open(const char *name, int oflag, int tflag)
+ int posix_mem_offset(const void *addr, size_t Len, off_t *off,
+ size_t *contig_len, int *fildes)
+
+ cdef struct posix_typed_mem_info:
+ size_t posix_tmi_length
+ int posix_typed_mem_get_info(int fildes, posix_typed_mem_info *info)