Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/sys
File: mman.h
/* Definitions for BSD-style memory management.
[0] Fix | Delete
Copyright (C) 1994-2018 Free Software Foundation, Inc.
[1] Fix | Delete
This file is part of the GNU C Library.
[2] Fix | Delete
[3] Fix | Delete
The GNU C Library is free software; you can redistribute it and/or
[4] Fix | Delete
modify it under the terms of the GNU Lesser General Public
[5] Fix | Delete
License as published by the Free Software Foundation; either
[6] Fix | Delete
version 2.1 of the License, or (at your option) any later version.
[7] Fix | Delete
[8] Fix | Delete
The GNU C Library is distributed in the hope that it will be useful,
[9] Fix | Delete
but WITHOUT ANY WARRANTY; without even the implied warranty of
[10] Fix | Delete
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
[11] Fix | Delete
Lesser General Public License for more details.
[12] Fix | Delete
[13] Fix | Delete
You should have received a copy of the GNU Lesser General Public
[14] Fix | Delete
License along with the GNU C Library; if not, see
[15] Fix | Delete
<http://www.gnu.org/licenses/>. */
[16] Fix | Delete
[17] Fix | Delete
#ifndef _SYS_MMAN_H
[18] Fix | Delete
#define _SYS_MMAN_H 1
[19] Fix | Delete
[20] Fix | Delete
#include <features.h>
[21] Fix | Delete
#include <bits/types.h>
[22] Fix | Delete
#define __need_size_t
[23] Fix | Delete
#include <stddef.h>
[24] Fix | Delete
[25] Fix | Delete
#ifndef __off_t_defined
[26] Fix | Delete
# ifndef __USE_FILE_OFFSET64
[27] Fix | Delete
typedef __off_t off_t;
[28] Fix | Delete
# else
[29] Fix | Delete
typedef __off64_t off_t;
[30] Fix | Delete
# endif
[31] Fix | Delete
# define __off_t_defined
[32] Fix | Delete
#endif
[33] Fix | Delete
[34] Fix | Delete
#ifndef __mode_t_defined
[35] Fix | Delete
typedef __mode_t mode_t;
[36] Fix | Delete
# define __mode_t_defined
[37] Fix | Delete
#endif
[38] Fix | Delete
[39] Fix | Delete
#include <bits/mman.h>
[40] Fix | Delete
[41] Fix | Delete
/* Return value of `mmap' in case of an error. */
[42] Fix | Delete
#define MAP_FAILED ((void *) -1)
[43] Fix | Delete
[44] Fix | Delete
__BEGIN_DECLS
[45] Fix | Delete
/* Map addresses starting near ADDR and extending for LEN bytes. from
[46] Fix | Delete
OFFSET into the file FD describes according to PROT and FLAGS. If ADDR
[47] Fix | Delete
is nonzero, it is the desired mapping address. If the MAP_FIXED bit is
[48] Fix | Delete
set in FLAGS, the mapping will be at ADDR exactly (which must be
[49] Fix | Delete
page-aligned); otherwise the system chooses a convenient nearby address.
[50] Fix | Delete
The return value is the actual mapping address chosen or MAP_FAILED
[51] Fix | Delete
for errors (in which case `errno' is set). A successful `mmap' call
[52] Fix | Delete
deallocates any previous mapping for the affected region. */
[53] Fix | Delete
[54] Fix | Delete
#ifndef __USE_FILE_OFFSET64
[55] Fix | Delete
extern void *mmap (void *__addr, size_t __len, int __prot,
[56] Fix | Delete
int __flags, int __fd, __off_t __offset) __THROW;
[57] Fix | Delete
#else
[58] Fix | Delete
# ifdef __REDIRECT_NTH
[59] Fix | Delete
extern void * __REDIRECT_NTH (mmap,
[60] Fix | Delete
(void *__addr, size_t __len, int __prot,
[61] Fix | Delete
int __flags, int __fd, __off64_t __offset),
[62] Fix | Delete
mmap64);
[63] Fix | Delete
# else
[64] Fix | Delete
# define mmap mmap64
[65] Fix | Delete
# endif
[66] Fix | Delete
#endif
[67] Fix | Delete
#ifdef __USE_LARGEFILE64
[68] Fix | Delete
extern void *mmap64 (void *__addr, size_t __len, int __prot,
[69] Fix | Delete
int __flags, int __fd, __off64_t __offset) __THROW;
[70] Fix | Delete
#endif
[71] Fix | Delete
[72] Fix | Delete
/* Deallocate any mapping for the region starting at ADDR and extending LEN
[73] Fix | Delete
bytes. Returns 0 if successful, -1 for errors (and sets errno). */
[74] Fix | Delete
extern int munmap (void *__addr, size_t __len) __THROW;
[75] Fix | Delete
[76] Fix | Delete
/* Change the memory protection of the region starting at ADDR and
[77] Fix | Delete
extending LEN bytes to PROT. Returns 0 if successful, -1 for errors
[78] Fix | Delete
(and sets errno). */
[79] Fix | Delete
extern int mprotect (void *__addr, size_t __len, int __prot) __THROW;
[80] Fix | Delete
[81] Fix | Delete
/* Synchronize the region starting at ADDR and extending LEN bytes with the
[82] Fix | Delete
file it maps. Filesystem operations on a file being mapped are
[83] Fix | Delete
unpredictable before this is done. Flags are from the MS_* set.
[84] Fix | Delete
[85] Fix | Delete
This function is a cancellation point and therefore not marked with
[86] Fix | Delete
__THROW. */
[87] Fix | Delete
extern int msync (void *__addr, size_t __len, int __flags);
[88] Fix | Delete
[89] Fix | Delete
#ifdef __USE_MISC
[90] Fix | Delete
/* Advise the system about particular usage patterns the program follows
[91] Fix | Delete
for the region starting at ADDR and extending LEN bytes. */
[92] Fix | Delete
extern int madvise (void *__addr, size_t __len, int __advice) __THROW;
[93] Fix | Delete
#endif
[94] Fix | Delete
#ifdef __USE_XOPEN2K
[95] Fix | Delete
/* This is the POSIX name for this function. */
[96] Fix | Delete
extern int posix_madvise (void *__addr, size_t __len, int __advice) __THROW;
[97] Fix | Delete
#endif
[98] Fix | Delete
[99] Fix | Delete
/* Guarantee all whole pages mapped by the range [ADDR,ADDR+LEN) to
[100] Fix | Delete
be memory resident. */
[101] Fix | Delete
extern int mlock (const void *__addr, size_t __len) __THROW;
[102] Fix | Delete
[103] Fix | Delete
/* Unlock whole pages previously mapped by the range [ADDR,ADDR+LEN). */
[104] Fix | Delete
extern int munlock (const void *__addr, size_t __len) __THROW;
[105] Fix | Delete
[106] Fix | Delete
/* Cause all currently mapped pages of the process to be memory resident
[107] Fix | Delete
until unlocked by a call to the `munlockall', until the process exits,
[108] Fix | Delete
or until the process calls `execve'. */
[109] Fix | Delete
extern int mlockall (int __flags) __THROW;
[110] Fix | Delete
[111] Fix | Delete
/* All currently mapped pages of the process' address space become
[112] Fix | Delete
unlocked. */
[113] Fix | Delete
extern int munlockall (void) __THROW;
[114] Fix | Delete
[115] Fix | Delete
#ifdef __USE_MISC
[116] Fix | Delete
/* mincore returns the memory residency status of the pages in the
[117] Fix | Delete
current process's address space specified by [start, start + len).
[118] Fix | Delete
The status is returned in a vector of bytes. The least significant
[119] Fix | Delete
bit of each byte is 1 if the referenced page is in memory, otherwise
[120] Fix | Delete
it is zero. */
[121] Fix | Delete
extern int mincore (void *__start, size_t __len, unsigned char *__vec)
[122] Fix | Delete
__THROW;
[123] Fix | Delete
#endif
[124] Fix | Delete
[125] Fix | Delete
#ifdef __USE_GNU
[126] Fix | Delete
/* Remap pages mapped by the range [ADDR,ADDR+OLD_LEN) to new length
[127] Fix | Delete
NEW_LEN. If MREMAP_MAYMOVE is set in FLAGS the returned address
[128] Fix | Delete
may differ from ADDR. If MREMAP_FIXED is set in FLAGS the function
[129] Fix | Delete
takes another parameter which is a fixed address at which the block
[130] Fix | Delete
resides after a successful call. */
[131] Fix | Delete
extern void *mremap (void *__addr, size_t __old_len, size_t __new_len,
[132] Fix | Delete
int __flags, ...) __THROW;
[133] Fix | Delete
[134] Fix | Delete
/* Remap arbitrary pages of a shared backing store within an existing
[135] Fix | Delete
VMA. */
[136] Fix | Delete
extern int remap_file_pages (void *__start, size_t __size, int __prot,
[137] Fix | Delete
size_t __pgoff, int __flags) __THROW;
[138] Fix | Delete
#endif
[139] Fix | Delete
[140] Fix | Delete
[141] Fix | Delete
/* Open shared memory segment. */
[142] Fix | Delete
extern int shm_open (const char *__name, int __oflag, mode_t __mode);
[143] Fix | Delete
[144] Fix | Delete
/* Remove shared memory segment. */
[145] Fix | Delete
extern int shm_unlink (const char *__name);
[146] Fix | Delete
[147] Fix | Delete
__END_DECLS
[148] Fix | Delete
[149] Fix | Delete
#endif /* sys/mman.h */
[150] Fix | Delete
[151] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function