summaryrefslogtreecommitdiffhomepage
path: root/digital/ucoolib/ucoolib/arch/syscalls_cc.cc
diff options
context:
space:
mode:
authorNicolas Schodet2012-11-05 00:09:10 +0100
committerNicolas Schodet2012-12-01 18:45:17 +0100
commit47b1617af97bde84ef273479eedae61d46490498 (patch)
tree4d9ce88122b0daf2bde0fb3b6a9ceea864c0632f /digital/ucoolib/ucoolib/arch/syscalls_cc.cc
parenta2e0f176e7e5b1983ce34ed1b66794cc82d7e50d (diff)
digital/ucoolib/ucoolib/arch: add newlib syscalls
Minimal implementation on minimal system.
Diffstat (limited to 'digital/ucoolib/ucoolib/arch/syscalls_cc.cc')
-rw-r--r--digital/ucoolib/ucoolib/arch/syscalls_cc.cc36
1 files changed, 36 insertions, 0 deletions
diff --git a/digital/ucoolib/ucoolib/arch/syscalls_cc.cc b/digital/ucoolib/ucoolib/arch/syscalls_cc.cc
new file mode 100644
index 00000000..030e7b40
--- /dev/null
+++ b/digital/ucoolib/ucoolib/arch/syscalls_cc.cc
@@ -0,0 +1,36 @@
+// ucoolib - Microcontroller object oriented library. {{{
+//
+// Copyright (C) 2012 Nicolas Schodet
+//
+// APBTeam:
+// Web: http://apbteam.org/
+// Email: team AT apbteam DOT org
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+//
+// }}}
+
+namespace __gnu_cxx {
+
+/// Replaces the default verbose terminate handler.
+/// Avoids the inclusion of code to inpect C++ objects.
+void
+__verbose_terminate_handler ()
+{
+ while (1)
+ ;
+}
+
+} //namespace __gnu_cxx