aboutsummaryrefslogtreecommitdiff
path: root/mach/error_compat.c
diff options
context:
space:
mode:
authorZack Weinberg <zackw@panix.com>2017-06-08 15:39:03 -0400
committerZack Weinberg <zackw@panix.com>2017-06-08 15:39:03 -0400
commit5046dbb4a7eba5eccfd258f92f4735c9ffc8d069 (patch)
tree4470480d904b65cf14ca524f96f79eca818c3eaf /mach/error_compat.c
parent199fc19d3aaaf57944ef036e15904febe877fc93 (diff)
downloadglibc-5046dbb4a7eba5eccfd258f92f4735c9ffc8d069.tar
glibc-5046dbb4a7eba5eccfd258f92f4735c9ffc8d069.tar.gz
glibc-5046dbb4a7eba5eccfd258f92f4735c9ffc8d069.tar.bz2
glibc-5046dbb4a7eba5eccfd258f92f4735c9ffc8d069.zip
Prepare for radical source tree reorganization.zack/build-layout-experiment
All top-level files and directories are moved into a temporary storage directory, REORG.TODO, except for files that will certainly still exist in their current form at top level when we're done (COPYING, COPYING.LIB, LICENSES, NEWS, README), all old ChangeLog files (which are moved to the new directory OldChangeLogs, instead), and the generated file INSTALL (which is just deleted; in the new order, there will be no generated files checked into version control).
Diffstat (limited to 'mach/error_compat.c')
-rw-r--r--mach/error_compat.c67
1 files changed, 0 insertions, 67 deletions
diff --git a/mach/error_compat.c b/mach/error_compat.c
deleted file mode 100644
index 8f7bd87c0f..0000000000
--- a/mach/error_compat.c
+++ /dev/null
@@ -1,67 +0,0 @@
-/*
- * Mach Operating System
- * Copyright (c) 1991,1990,1989 Carnegie Mellon University
- * All Rights Reserved.
- *
- * Permission to use, copy, modify and distribute this software and its
- * documentation is hereby granted, provided that both the copyright
- * notice and this permission notice appear in all copies of the
- * software, derivative works or modified versions, and any portions
- * thereof, and that both notices appear in supporting documentation.
- *
- * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
- * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
- * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
- *
- * Carnegie Mellon requests users of this software to return to
- *
- * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
- * School of Computer Science
- * Carnegie Mellon University
- * Pittsburgh PA 15213-3890
- *
- * any improvements or extensions that they make and grant Carnegie Mellon
- * the rights to redistribute these changes.
- */
-
-/* This file was broken out from:
-
- Revision 2.3 92/04/01 19:38:18 rpd
-
- The static do_compat function is renamed to be globally accessible.
- */
-
-#include <mach/error.h>
-#include <mach_error.h>
-#include <errorlib.h>
-
-
-void
-__mach_error_map_compat(mach_error_t *org_err)
-{
- mach_error_t err = *org_err;
-
- /*
- * map old error numbers to
- * to new error sys & subsystem
- */
-
- if ((-200 < err) && (err <= -100))
- err = -(err + 100) | IPC_SEND_MOD;
- else if ((-300 < err) && (err <= -200))
- err = -(err + 200) | IPC_RCV_MOD;
- else if ((-400 < err) && (err <= -300))
- err = -(err + 300) | MACH_IPC_MIG_MOD;
- else if ((1000 <= err) && (err < 1100))
- err = (err - 1000) | SERV_NETNAME_MOD;
- else if ((1600 <= err) && (err < 1700))
- err = (err - 1600) | SERV_ENV_MOD;
- else if ((27600 <= err) && (err < 27700))
- err = (err - 27600) | SERV_EXECD_MOD;
- else if ((2500 <= err) && (err < 2600))
- err = (err - 2500) | KERN_DEVICE_MOD;
- else if ((5000 <= err) && (err < 5100))
- err = (err - 5000) | BOOTSTRAP_FS_MOD;
-
- *org_err = err;
-}