[PATCH 1/2] namespace.h: Reversed additional hidden names.
Lou Woods
irnhorse4 at gmail.com
Mon May 6 17:39:32 UTC 2019
From: Lou Woods <Lou.Woods at OARCorp.com>
These hidden names were unresolved external symbols in
libbsd when loaded by the RTL.
The symbols _nanosleep, _accept, _select, and _listen are used
by rcmd.c and needed to be mapped to the correct name.
These symbols were removed from un-namespace.h as well.
---
freebsd/lib/libc/include/namespace.h | 4 ++++
freebsd/lib/libc/include/un-namespace.h | 3 ---
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/freebsd/lib/libc/include/namespace.h b/freebsd/lib/libc/include/namespace.h
index 08a8c67..4485aee 100644
--- a/freebsd/lib/libc/include/namespace.h
+++ b/freebsd/lib/libc/include/namespace.h
@@ -256,8 +256,11 @@
#define _getprogname getprogname
#define _getsockname getsockname
#ifdef __rtems__
+#define _accept accept
#define _bind bind
#define _getsockopt getsockopt
+#define _listen listen
+#define _nanosleep nanosleep
#define _poll poll
#define _pthread_getspecific pthread_getspecific
#define _pthread_key_create pthread_key_create
@@ -268,6 +271,7 @@
#define _pthread_rwlock_unlock pthread_rwlock_unlock
#define _pthread_rwlock_wrlock pthread_rwlock_wrlock
#define _pthread_setspecific pthread_setspecific
+#define _select select
#endif /* __rtems__ */
#endif /* _NAMESPACE_H_ */
diff --git a/freebsd/lib/libc/include/un-namespace.h b/freebsd/lib/libc/include/un-namespace.h
index 33c7b00..126ae03 100644
--- a/freebsd/lib/libc/include/un-namespace.h
+++ b/freebsd/lib/libc/include/un-namespace.h
@@ -32,7 +32,6 @@
#define _UN_NAMESPACE_H_
#ifdef __rtems__
-#undef accept
#undef __acl_aclcheck_fd
#undef __acl_delete_fd
#undef __acl_get_fd
@@ -62,7 +61,6 @@
#undef getsockopt
#undef ioctl
#undef kevent
-#undef listen
#undef nanosleep
#undef open
#undef openat
@@ -195,7 +193,6 @@
#undef recvfrom
#undef recvmsg
#undef recvmmsg
-#undef select
#undef sem_close
#undef sem_destroy
#undef sem_getvalue
--
1.8.3.1
More information about the devel
mailing list