home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NeXTSTEP 3.2 (Developer)
/
NS_dev_3.2.iso
/
NextDeveloper
/
Headers
/
mach
/
mach_traps.h
< prev
next >
Wrap
Text File
|
1993-10-19
|
3KB
|
112 lines
/*
* Mach Operating System
* Copyright (c) 1989 Carnegie-Mellon University
* Copyright (c) 1988 Carnegie-Mellon University
* Copyright (c) 1987 Carnegie-Mellon University
* All rights reserved. The CMU software License Agreement specifies
* the terms and conditions for use and redistribution.
*/
/*
* HISTORY
* $Log: mach_traps.h,v $
* 23-Apr-90 Morris Meyer (mmeyer) at NeXT
* Converted all macros to conform to the ANSI standard.
* Cannot have nested ifdef's inside of defined macros in ANSI C.
*
* Revision 2.6 89/10/11 14:38:46 dlb
* Add host traps.
* [89/01/25 dlb]
*
* Revision 2.5 89/03/09 20:20:46 rpd
* More cleanup.
*
* Revision 2.4 89/02/25 18:37:15 gm0w
* Changes for cleanup.
*
* Revision 2.3 89/02/19 12:57:44 rpd
* Moved from kern/ to mach/.
*
* Revision 2.2 89/01/15 16:24:46 rpd
* Updated includes for the new mach/ directory.
* [89/01/15 15:03:03 rpd]
*
* 18-Jan-88 David Golub (dbg) at Carnegie-Mellon University
* Add thread_reply. Leave in task_data as an alternate name -
* they are functionally indistinguishable.
*
* 15-Oct-86 Avadis Tevanian (avie) at Carnegie-Mellon University
* Include ../kern/mach_types.h instead of <kern/mach_types.h> when
* building for the kernel.
*
* 1-Sep-86 Michael Young (mwyoung) at Carnegie-Mellon University
* Created, mostly to help build the lint library.
* Should eventually include this in "syscall_sw.c".
*
*/
/*
* Definitions of general Mach system traps.
*
* IPC traps are defined in <mach/message.h>.
* Kernel RPC functions are defined in <mach/mach_interface.h>.
*/
#ifndef _MACH_MACH_TRAPS_H_
#define _MACH_MACH_TRAPS_H_
#define _MACH_INIT_ 1
#import <mach/mach_types.h>
#ifdef KERNEL
port_t task_self();
port_t task_data();
port_t task_notify();
port_t thread_self();
port_t thread_reply();
port_t host_self();
port_t host_priv_self();
#if NeXT
port_t device_master_self();
port_t _event_port_by_tag();
port_t _lookupd_port();
#endif
#else KERNEL
#if NeXT
task_t (task_self)(void);
port_t task_notify(void);
thread_t thread_self(void);
port_t thread_reply(void);
host_t host_self(void);
host_priv_t host_priv_self(void);
port_t device_master_self(void);
port_t _event_port_by_tag(int tag);
port_t _lookupd_port(port_t);
task_t task_by_pid(int pid);
kern_return_t init_process(void);
kern_return_t map_fd(
int fd,
vm_offset_t offset,
vm_offset_t *va,
boolean_t findspace,
vm_size_t size);
boolean_t swtch(void);
boolean_t swtch_pri(int pri);
kern_return_t thread_switch(
thread_t thread_name,
int option,
int option_time);
#else NeXT
task_t task_self();
port_t task_data();
port_t task_notify();
thread_t thread_self();
port_t thread_reply();
host_t host_self();
host_priv_t host_priv_self();
port_t device_master_self();
port_t _event_port_by_tag();
#endif NeXT
#endif KERNEL
#endif _MACH_MACH_TRAPS_H_