1 /*
2 * Mach Operating System
3 * Copyright (c) 1993,1991,1990,1989 Carnegie Mellon University
4 * All Rights Reserved.
5 *
6 * Permission to use, copy, modify and distribute this software and its
7 * documentation is hereby granted, provided that both the copyright
8 * notice and this permission notice appear in all copies of the
9 * software, derivative works or modified versions, and any portions
10 * thereof, and that both notices appear in supporting documentation.
11 *
12 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
13 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
14 * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
15 *
16 * Carnegie Mellon requests users of this software to return to
17 *
18 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
19 * School of Computer Science
20 * Carnegie Mellon University
21 * Pittsburgh PA 15213-3890
22 *
23 * any improvements or extensions that they make and grant Carnegie Mellon
24 * the rights to redistribute these changes.
25 */
26 /*
27 * HISTORY
28 * $Log: syscall_subr.h,v $
29 * Revision 2.6 93/11/17 17:26:38 dbg
30 * ANSI-fied. Removed ancient history.
31 * [93/10/13 dbg]
32 *
33 * Revision 2.5 91/05/18 14:33:56 rpd
34 * Added thread_depress_timeout.
35 * [91/03/31 rpd]
36 *
37 * Revision 2.4 91/05/14 16:47:37 mrt
38 * Correcting copyright
39 *
40 * Revision 2.3 91/02/05 17:29:40 mrt
41 * Changed to new Mach copyright
42 * [91/02/01 16:18:24 mrt]
43 *
44 * Revision 2.2 90/06/02 14:56:22 rpd
45 * Created.
46 * [90/03/26 23:52:40 rpd]
47 *
48 */
49
50 #ifndef _KERN_SYSCALL_SUBR_H_
51 #define _KERN_SYSCALL_SUBR_H_
52
53 #include <mach/boolean.h>
54 #include <mach/message.h>
55 #include <kern/kern_types.h>
56
57 extern boolean_t
58 swtch(void); /* obsolete */
59
60 extern boolean_t
61 swtch_pri(int pri); /* obsolete */
62
63 extern kern_return_t
64 thread_switch(
65 mach_port_t thread_name,
66 int option,
67 mach_msg_timeout_t option_time);
68
69 extern kern_return_t
70 thread_depress_abort(
71 thread_t thread);
72
73 #endif /* _KERN_SYSCALL_SUBR_H_ */
Cache object: b098774a6f28c1462e7a52deed5960bf
|