source: rtems/cpukit/posix/src/mprotect.c @ 1d572eba

5
Last change on this file since 1d572eba was e7eeb38d, checked in by Gedare Bloom <gedare@…>, on 07/29/16 at 19:28:49

posix: move sys/mman.h to newlib and test it in psxhdrs

  • Property mode set to 100644
File size: 913 bytes
Line 
1/**
2 * @file
3 *
4 * @brief Change Memory Protection
5 * @ingroup POSIXAPI
6 *
7 * 12.2.3 Change Memory Protection, P1003.1b-1996, p. 277.
8 *
9 * This is not a functional version of mprotect() but the SPARC backend
10 * for at least gcc 2.8.1 plus gnat 3.13p and gcc 3.0.1 require it to
11 * be there and return 0.
12 *
13 * As of gcc 4.2.2, the gcc SPARC backend doesn't appear to have a
14 * way to call this for RTEMS anymore but it doesn't hurt to leave it.
15 */
16
17/*
18 *  COPYRIGHT (c) 1989-2014.
19 *  On-Line Applications Research Corporation (OAR).
20 *
21 *  The license and distribution terms for this file may be
22 *  found in the file LICENSE in this distribution or at
23 *  http://www.rtems.org/license/LICENSE.
24 */
25
26#if HAVE_CONFIG_H
27#include "config.h"
28#endif
29
30#include <unistd.h>
31#include <sys/mman.h>
32
33int mprotect(
34  const void *addr,
35  size_t len,
36  int prot
37)
38{
39  (void) addr;
40  (void) len;
41  (void) prot;
42  return 0;
43}
Note: See TracBrowser for help on using the repository browser.