[rtems-libbsd commit] Hide most error number definitions

Sebastian Huber sebh at rtems.org
Wed Apr 18 12:57:44 UTC 2012


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Wed Apr 18 14:55:02 2012 +0200

Hide most error number definitions

---

 freebsd/sys/errno.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/freebsd/sys/errno.h b/freebsd/sys/errno.h
index 26209fc..9b68014 100644
--- a/freebsd/sys/errno.h
+++ b/freebsd/sys/errno.h
@@ -46,6 +46,7 @@ __END_DECLS
 #define	errno		(* __error())
 #endif
 
+#ifndef __rtems__
 #define	EPERM		1		/* Operation not permitted */
 #define	ENOENT		2		/* No such file or directory */
 #define	ESRCH		3		/* No such process */
@@ -180,6 +181,7 @@ __END_DECLS
 #ifndef _POSIX_SOURCE
 #define	ELAST		93		/* Must be equal largest errno */
 #endif /* _POSIX_SOURCE */
+#endif /* __rtems__ */
 
 #ifdef _KERNEL
 /* pseudo-errors returned inside kernel to modify return to process */




More information about the vc mailing list