source: rtems/cpukit/posix/src/mprotect.c @ 6a3a81c

4.104.114.84.95
Last change on this file since 6a3a81c was bc51d7e9, checked in by Joel Sherrill <joel.sherrill@…>, on 09/13/01 at 13:23:37

2001-09-13 Joel Sherrill <joel@…>

  • src/mprotect.c: New file. Stub required by some gcc's to pass tests. In particular, about 350 ACATS tests fail if this is not present.
  • src/getpagesize.c: Ditto.
  • src/sysconf.c: Addition of Solaris value for _SC_STACK_PROT required to pass about 350 ACATS test cases.
  • src/Makefile.am: Added new files.
  • Property mode set to 100644
File size: 388 bytes
Line 
1/*
2 *  $Id$
3 */
4
5#if HAVE_CONFIG_H
6#include "config.h"
7#endif
8
9#include <unistd.h>
10
11/*PAGE
12 *
13 *  12.2.3 Change Memory Protection, P1003.1b-1996, p. 277.
14 *
15 *  This is not a functional version but the SPARC backend for at least
16 *  gcc 2.8.1 plus gnat 3.13p and gcc 3.0.1 require it to be there and
17 *  return 0.
18 */
19
20int mprotect(const void *addr, size_t len, int prot)
21{
22  return 0;
23}
Note: See TracBrowser for help on using the repository browser.