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
This commit is contained in:
Joel Sherrill 2012-09-06 13:05:53 -05:00
parent 4e18d8b807
commit 14d4d7aa23

View File

@ -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 */