mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-23 05:31:54 +08:00
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:
parent
4e18d8b807
commit
14d4d7aa23
@ -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 */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user