summaryrefslogtreecommitdiff
path: root/include/mach/kern_return.h
diff options
context:
space:
mode:
authorAgustina Arzille <avarzille@riseup.net>2016-04-04 19:16:31 -0300
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2016-04-15 18:17:59 +0200
commit2e69ebf6999102c27c21615b610400a0d922e8c9 (patch)
treef74126f2e1b0902bf866400940b19ddb932b1d6f /include/mach/kern_return.h
parent962d56bd3720f10e38ee48df8654c5a6d413a394 (diff)
Lightweight synchronization mechanism
* Makefrag.am (libkernel_a_SOURCES): Add kern/gsync.c and kern/gsync.h. * include/mach/gnumach.defs (gsync_wait, gsync_wake, gsync_requeue): New routines. * include/mach/kern_return.h (KERN_TIMEDOUT, KERN_INTERRUPTED): New error codes. * kern/gsync.c: New file. * kern/gsync.h: New file. * kern/startup.c: Include <kern/gsync.h> (setup_main): Call gsync_setup.
Diffstat (limited to 'include/mach/kern_return.h')
-rw-r--r--include/mach/kern_return.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/mach/kern_return.h b/include/mach/kern_return.h
index 2274328b..a9d16e94 100644
--- a/include/mach/kern_return.h
+++ b/include/mach/kern_return.h
@@ -157,4 +157,10 @@
/* Object has been terminated and is no longer available.
*/
+#define KERN_TIMEDOUT 27
+ /* Kernel operation timed out. */
+
+#define KERN_INTERRUPTED 28
+ /* Kernel operation was interrupted. */
+
#endif /* _MACH_KERN_RETURN_H_ */