machnr.inc 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. {
  2. $Id$
  3. Translated xnu/osfmk/mach/syscall_sw.h to Pascal by Jonas Maebe, 2003/05/25
  4. }
  5. {*
  6. * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
  7. *
  8. * @APPLE_LICENSE_HEADER_START@
  9. *
  10. * The contents of this file constitute Original Code as defined in and
  11. * are subject to the Apple Public Source License Version 1.1 (the
  12. * "License"). You may not use this file except in compliance with the
  13. * License. Please obtain a copy of the License at
  14. * http://www.apple.com/publicsource and read it before using this file.
  15. *
  16. * This Original Code and all software distributed under the License are
  17. * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  18. * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  19. * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  20. * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
  21. * License for the specific language governing rights and limitations
  22. * under the License.
  23. *
  24. * @APPLE_LICENSE_HEADER_END@
  25. */
  26. /*
  27. * @OSF_COPYRIGHT@
  28. */
  29. /*
  30. * Mach Operating System
  31. * Copyright (c) 1991,1990,1989,1988,1987 Carnegie Mellon University
  32. * All Rights Reserved.
  33. *
  34. * Permission to use, copy, modify and distribute this software and its
  35. * documentation is hereby granted, provided that both the copyright
  36. * notice and this permission notice appear in all copies of the
  37. * software, derivative works or modified versions, and any portions
  38. * thereof, and that both notices appear in supporting documentation.
  39. *
  40. * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
  41. * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
  42. * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
  43. *
  44. * Carnegie Mellon requests users of this software to return to
  45. *
  46. * Software Distribution Coordinator or [email protected]
  47. * School of Computer Science
  48. * Carnegie Mellon University
  49. * Pittsburgh PA 15213-3890
  50. *
  51. * any improvements or extensions that they make and grant Carnegie Mellon
  52. * the rights to redistribute these changes.
  53. *}
  54. {*
  55. * These trap numbers should be taken from the
  56. * table in <kern/syscall_sw.c>.
  57. *}
  58. const
  59. machtrap_mach_reply_port = -26; { 0 args }
  60. machtrap_thread_self_trap = -27; { 0 args }
  61. machtrap_task_self_trap = -28; { 0 args }
  62. machtrap_host_self_trap = -29; { 0 args }
  63. machtrap_mach_msg_trap = -31; { 7 args }
  64. machtrap_mach_msg_overwrite_trap = -32; { 9 args }
  65. machtrap_semaphore_signal_trap = -33; { 1 args }
  66. machtrap_semaphore_signal_all_trap = -34; { 1 args }
  67. machtrap_semaphore_signal_thread_trap = -35; { 2 args }
  68. machtrap_semaphore_wait_trap = -36; { 1 args }
  69. machtrap_semaphore_wait_signal_trap = -37; { 2 args }
  70. machtrap_semaphore_timedwait_trap = -38; { 3 args }
  71. machtrap_semaphore_timedwait_signal_trap = -39; { 4 args }
  72. machtrap_init_process = -41; { 0 args }
  73. machtrap_map_fd = -43; { 5 args }
  74. machtrap_task_for_pid = -45; { 3 args }
  75. machtrap_pid_for_task = -46; { 2 args }
  76. machtrap_macx_swapon = -48; { 4 args }
  77. machtrap_macx_swapoff = -49; { 2 args }
  78. machtrap_macx_triggers = -51; { 4 args }
  79. machtrap_swtch_pri = -59; { 1 args }
  80. machtrap_swtch = -60; { 0 args }
  81. machtrap_syscall_thread_switch = -61; { 3 args }
  82. machtrap_clock_sleep_trap = -62; { 5 args }
  83. machtrap_mach_timebase_info = -89; { 1 args }
  84. machtrap_mach_wait_until = -90; { 2 args }
  85. machtrap_mk_wait_until = -90; { 2 args }
  86. machtrap_mk_timer_create = -91; { 0 args }
  87. machtrap_mk_timer_destroy = -92; { 1 args }
  88. machtrap_mk_timer_arm = -93; { 3 args }
  89. machtrap_mk_timer_cancel = -94; { 2 args }
  90. machtrap_MKGetTimeBaseInfo = -95; { 5 args }
  91. {
  92. $Log$
  93. Revision 1.2 2003-05-26 19:32:21 jonas
  94. * added missing Const
  95. Revision 1.1 2003/05/25 12:59:57 jonas
  96. * several fixes, addition of Mach trap numbers (thye are simply syscalls
  97. with a negative number)
  98. }