source: rtems/cpukit/posix/src/mprotect.c @ 8f6b7b51

4.104.115
Last change on this file since 8f6b7b51 was 92f4671, checked in by Ralf Corsepius <ralf.corsepius@…>, on 01/02/09 at 10:04:24

Add attribute((unused)) to unused function args.

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