[rtems-libbsd commit] rtems-bsd-config.h.in: Add FreeBSD macros missing in RTEMS

Joel Sherrill joel at rtems.org
Thu Sep 6 18:04:08 UTC 2012


Module:    rtems-libbsd
Branch:    master
Commit:    14d4d7aa232e068d787212e2d21daac5022bf2de
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=14d4d7aa232e068d787212e2d21daac5022bf2de

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Thu Sep  6 13:05:53 2012 -0500

rtems-bsd-config.h.in: Add FreeBSD macros missing in RTEMS

The following were assumed to be present by multiple libc
methods or networking commands:

  + _PATH_DEVNULL ==> /dev/null
  + SIZE_T_MAX    ==> SIZE_MAX
  + O_EXLOCK      ==> O_EXCL

---

 rtemsbsd/freebsd/machine/rtems-bsd-config.h.in |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/rtemsbsd/freebsd/machine/rtems-bsd-config.h.in b/rtemsbsd/freebsd/machine/rtems-bsd-config.h.in
index 8c73c4c..d8fbc5a 100644
--- a/rtemsbsd/freebsd/machine/rtems-bsd-config.h.in
+++ b/rtemsbsd/freebsd/machine/rtems-bsd-config.h.in
@@ -177,6 +177,26 @@
 /* Missing error number */
 //#define ENOIOCTL EINVAL
 
+/* multiple user space methods and commands use this */
+#ifndef _PATH_DEVNULL
+#define _PATH_DEVNULL "/dev/null"
+#endif
+
+/* used by some user space code */
+#ifndef SIZE_T_MAX
+#define SIZE_T_MAX SIZE_MAX
+#endif
+
+/* used by some user space code */
+#ifndef O_EXLOCK
+#define O_EXLOCK O_EXCL
+#endif
+
+/* from limits.h on FreeBSD */
+#ifndef _POSIX_HOST_NAME_MAX
+#define _POSIX_HOST_NAME_MAX    255
+#endif
+
 #ifndef _RTEMS_BSD_BSD_HH_
 /* Symbol rename */
 




More information about the vc mailing list