home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / amiga / os / bsdss4.tz / bsdss4 / bsdss / server / sys / ptrace.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-05-25  |  4.5 KB  |  112 lines

  1. /* 
  2.  * Mach Operating System
  3.  * Copyright (c) 1992 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:    ptrace.h,v $
  29.  * Revision 2.2  92/05/25  14:46:07  rwd
  30.  *     Picked up ptrace code from net.
  31.  *     [92/05/20            rwd]
  32.  * 
  33.  * Revision 2.1  92/04/21  17:16:15  rwd
  34.  * BSDSS
  35.  * 
  36.  *
  37.  */
  38.  
  39. /*-
  40.  * Copyright (c) 1984 The Regents of the University of California.
  41.  * All rights reserved.
  42.  *
  43.  * Redistribution and use in source and binary forms, with or without
  44.  * modification, are permitted provided that the following conditions
  45.  * are met:
  46.  * 1. Redistributions of source code must retain the above copyright
  47.  *    notice, this list of conditions and the following disclaimer.
  48.  * 2. Redistributions in binary form must reproduce the above copyright
  49.  *    notice, this list of conditions and the following disclaimer in the
  50.  *    documentation and/or other materials provided with the distribution.
  51.  * 3. All advertising materials mentioning features or use of this software
  52.  *    must display the following acknowledgement:
  53.  *    This product includes software developed by the University of
  54.  *    California, Berkeley and its contributors.
  55.  * 4. Neither the name of the University nor the names of its contributors
  56.  *    may be used to endorse or promote products derived from this software
  57.  *    without specific prior written permission.
  58.  *
  59.  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  60.  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  61.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  62.  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  63.  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  64.  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  65.  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  66.  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  67.  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  68.  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  69.  * SUCH DAMAGE.
  70.  *
  71.  *    @(#)ptrace.h    7.4 (Berkeley) 2/22/91
  72.  */
  73.  
  74. #ifndef    _PTRACE_H_
  75. #define    _PTRACE_H_
  76.  
  77. #define    PT_TRACE_ME    0    /* child declares it's being traced */
  78. #define    PT_READ_I    1    /* read word in child's I space */
  79. #define    PT_READ_D    2    /* read word in child's D space */
  80. #define    PT_READ_U    3    /* read word in child's user structure */
  81. #define    PT_WRITE_I    4    /* write word in child's I space */
  82. #define    PT_WRITE_D    5    /* write word in child's D space */
  83. #define    PT_WRITE_U    6    /* write word in child's user structure */
  84. #define    PT_CONTINUE    7    /* continue the child */
  85. #define    PT_KILL        8    /* kill the child process */
  86. #define    PT_STEP        9    /* single step the child */
  87. #define PT_ATTACH    10    /* attach to running process */
  88. #define PT_DETACH    11    /* detach from previously attached process */
  89. /*#define PT_SYSCALL    12    /* trace system calls */
  90. #define PT_DUMP        13    /* make a core dump */
  91. #define PT_BREAD_I    14    /* read data from child's I space */
  92. #define PT_BREAD_D    15    /* read data from child's D space */
  93. #define PT_BWRITE_I    16    /* write data to child's I space */
  94. #define PT_BWRITE_D    17    /* write data to child's D space */
  95. #define PT_GETREGS    18    /* get all registers */
  96. #define PT_SETREGS    19    /* set all registers */
  97. #define PT_GETFPREGS    20    /* get all floating point registers */
  98. #define PT_SETFPREGS    21    /* set all floating point registers */
  99. #define PT_INHERIT    22    /* let tracees children inherit trace flag */
  100.  
  101. #ifndef KERNEL
  102.  
  103. #include <sys/cdefs.h>
  104.  
  105. __BEGIN_DECLS
  106. int    ptrace __P((int _request, pid_t _pid, caddr_t _addr, int _data));
  107. __END_DECLS
  108.  
  109. #endif /* !KERNEL */
  110.  
  111. #endif    /* !_PTRACE_H_ */
  112.