public inbox for
help / color / mirror / Atom feed
From: Joel Sherrill <>
Subject: [newlib-cygwin] newlib/libc/sys/rtems/include/machine/param.h: Add _KERNEL to stop method leakage
Date: Fri, 19 Oct 2018 14:32:00 -0000	[thread overview]
Message-ID: <> (raw);h=037428fae327bb25c4421d01b35036f7f1e81a96

commit 037428fae327bb25c4421d01b35036f7f1e81a96
Author: Joel Sherrill <>
Date:   Thu Oct 18 17:19:50 2018 -0500

    newlib/libc/sys/rtems/include/machine/param.h: Add _KERNEL to stop method leakage
    The following FreeBSD kernel methods are not in any standard and
    prototypes/definitions were leaking into application space:
      + round_page()
      + trunc_page()
      + atop()
      + ptoa()
      + pgtok()

 newlib/libc/sys/rtems/include/machine/param.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/newlib/libc/sys/rtems/include/machine/param.h b/newlib/libc/sys/rtems/include/machine/param.h
index 4892b61..e37d056 100644
--- a/newlib/libc/sys/rtems/include/machine/param.h
+++ b/newlib/libc/sys/rtems/include/machine/param.h
@@ -71,6 +71,7 @@
 #define	MAXPAGESIZES	1		/* maximum number of supported page sizes */
+#ifdef _KERNEL
  * Mach derived conversion macros
@@ -82,4 +83,6 @@
 #define	pgtok(x)		((unsigned long)(x) * (PAGE_SIZE / 1024))
 #endif /* !_MACHINE_PARAM_H_ */

                 reply	other threads:[~2018-10-19 14:32 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).