summaryrefslogtreecommitdiff
path: root/lib/Exceptions.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Exceptions.cc')
-rw-r--r--lib/Exceptions.cc14
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/Exceptions.cc b/lib/Exceptions.cc
index a6cfc54..acc948c 100644
--- a/lib/Exceptions.cc
+++ b/lib/Exceptions.cc
@@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-/* $Id: Exceptions.cc,v 1.37 2004-12-27 18:50:00 pixel Exp $ */
+/* $Id: Exceptions.cc,v 1.38 2005-02-17 08:33:50 pixel Exp $ */
#include <string.h>
#include <errno.h>
@@ -178,6 +178,14 @@ int xpipe(int *, int) throw (GeneralException) {
}
#endif
+int xdup(int h) throw(GeneralException) {
+#ifdef __MIPSEL__
+ throw GeneralException(_("Dup isn't supported on PlayStation2 yet"));
+#else
+ return dup(h);
+#endif
+}
+
#ifdef HAVE_FORK
pid_t xfork() throw (GeneralException) {
pid_t p;
@@ -220,6 +228,10 @@ void * Base::calloc(size_t n, size_t s) {
return xmalloc(n * s);
}
+int Base::dup(int h) {
+ return xdup(h);
+}
+
void * Base::operator new(size_t s) {
#ifdef DEBUG
printm(M_BARE, _("Operator new(s) called. Allocating memory.\n"));