Server IP : 85.214.239.14 / Your IP : 3.137.186.26 Web Server : Apache/2.4.62 (Debian) System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.18 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /proc/2/task/2/root/proc/2/cwd/usr/include/postgresql/9.6/server/portability/ |
Upload File : |
/*------------------------------------------------------------------------- * * mem.h * portability definitions for various memory operations * * Copyright (c) 2001-2016, PostgreSQL Global Development Group * * src/include/portability/mem.h * *------------------------------------------------------------------------- */ #ifndef MEM_H #define MEM_H #define IPCProtection (0600) /* access/modify by user only */ #ifdef SHM_SHARE_MMU /* use intimate shared memory on Solaris */ #define PG_SHMAT_FLAGS SHM_SHARE_MMU #else #define PG_SHMAT_FLAGS 0 #endif /* Linux prefers MAP_ANONYMOUS, but the flag is called MAP_ANON on other systems. */ #ifndef MAP_ANONYMOUS #define MAP_ANONYMOUS MAP_ANON #endif /* BSD-derived systems have MAP_HASSEMAPHORE, but it's not present (or needed) on Linux. */ #ifndef MAP_HASSEMAPHORE #define MAP_HASSEMAPHORE 0 #endif /* * BSD-derived systems use the MAP_NOSYNC flag to prevent dirty mmap(2) * pages from being gratuitously flushed to disk. */ #ifndef MAP_NOSYNC #define MAP_NOSYNC 0 #endif #define PG_MMAP_FLAGS (MAP_SHARED|MAP_ANONYMOUS|MAP_HASSEMAPHORE) /* Some really old systems don't define MAP_FAILED. */ #ifndef MAP_FAILED #define MAP_FAILED ((void *) -1) #endif #endif /* MEM_H */