Changeset 9d95ef9 in rtems


Ignore:
Timestamp:
Sep 2, 2014, 11:07:15 PM (6 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 5, master
Children:
3bff410
Parents:
78364c7d
git-author:
Joel Sherrill <joel.sherrill@…> (09/02/14 23:07:15)
git-committer:
Joel Sherrill <joel.sherrill@…> (09/04/14 14:08:04)
Message:

mprotect.c: Remove warning for no prototype

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/posix/src/mprotect.c

    r78364c7d r9d95ef9  
    44 * @brief Change Memory Protection
    55 * @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.
    615 */
    716
    817/*
    9  *  COPYRIGHT (c) 1989-2007.
     18 *  COPYRIGHT (c) 1989-2014.
    1019 *  On-Line Applications Research Corporation (OAR).
    1120 *
     
    2231
    2332/*
    24  *  12.2.3 Change Memory Protection, P1003.1b-1996, p. 277.
    25  *
    26  *  This is not a functional version but the SPARC backend for at least
    27  *  gcc 2.8.1 plus gnat 3.13p and gcc 3.0.1 require it to be there and
    28  *  return 0.
    29  *
    30  *  As of gcc 4.2.2, the gcc SPARC backend doesn't appear to have a
    31  *  way to call this for RTEMS anymore but it doesn't hurt to leave it.
     33 * RTEMS does not have <sys/mman.h> so we need a prototype here to
     34 * avoid warnings.
    3235 */
     36
     37int mprotect( const void *, size_t, int );
    3338
    3439int mprotect(
Note: See TracChangeset for help on using the changeset viewer.