summaryrefslogtreecommitdiffstats
path: root/freebsd/include
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-10-17 10:38:34 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-10-31 13:18:48 +0100
commitd01564c473842adfd93148bb367fa0679f99e6b8 (patch)
treec838d184a92e6df21f32950392190e9b1842adf1 /freebsd/include
parentSimplify getopt() to getopt_r() translation (diff)
downloadrtems-libbsd-d01564c473842adfd93148bb367fa0679f99e6b8.tar.bz2
Move program control to thread structure
Diffstat (limited to 'freebsd/include')
-rw-r--r--freebsd/include/err.h15
1 files changed, 2 insertions, 13 deletions
diff --git a/freebsd/include/err.h b/freebsd/include/err.h
index 772d654f..65aff6f2 100644
--- a/freebsd/include/err.h
+++ b/freebsd/include/err.h
@@ -47,19 +47,6 @@
#include <sys/cdefs.h>
#include <rtems/bsd/sys/_types.h>
-#ifdef __rtems__
-#include <setjmp.h>
-typedef struct rtems_shell_globals_s {
- jmp_buf exit_jmp;
- int exit_code;
-} rtems_shell_globals_t;
-extern rtems_shell_globals_t *rtems_shell_globals;
-void rtems_shell_exit (int code);
-
-#define exit rtems_shell_exit
-#endif
-
-
__BEGIN_DECLS
void err(int, const char *, ...) __dead2 __printf0like(2, 3);
void verr(int, const char *, __va_list) __dead2 __printf0like(2, 0);
@@ -74,8 +61,10 @@ void warnc(int, const char *, ...) __printf0like(2, 3);
void vwarnc(int, const char *, __va_list) __printf0like(2, 0);
void warnx(const char *, ...) __printflike(1, 2);
void vwarnx(const char *, __va_list) __printflike(1, 0);
+#ifndef __rtems__
void err_set_file(void *);
void err_set_exit(void (*)(int));
+#endif /* __rtems__ */
__END_DECLS
#endif /* !_ERR_H_ */