diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2012-09-06 13:05:53 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2012-09-06 13:05:53 -0500 |
commit | 14d4d7aa232e068d787212e2d21daac5022bf2de (patch) | |
tree | b03863d02cbb90dec6835f7c5b47a1a23f7d4a95 | |
parent | libc *.h: Add multiple user space .h file wrappers (diff) | |
download | rtems-libbsd-14d4d7aa232e068d787212e2d21daac5022bf2de.tar.bz2 |
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
-rw-r--r-- | 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 8c73c4c7..d8fbc5aa 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 */ |