Re: ptrace(2) autoconf tests

Michael Chastain
2004-08-08T21:42:15Z

Here's all the ptrace(2) prototypes I found on hp testdrive machines.

Michael C

===

alpha-unknown-freebsd5.1
/usr/include/sys/ptrace.h
int ptrace(int _request, pid_t _pid, caddr_t _addr, int _data);
man 2 ptrace
int ptrace(int request, pid_t pid, caddr_t addr, int data);

alphaev56-dec-osf4.0g
/usr/include
no prototype found anywhere
man 2 ptrace
int ptrace ( long request, long int process, ulong_t *address, ulong_t data );

alphaev68-dec-osf5.1b
/usr/include
no prototype found anywhere
man 2 ptrace
int ptrace ( long int request, long int process, ulong_t *address, ulong_t data );

alphaev67-unknown-linux-gnu + debian-unknown
alphaev67-unknown-linux-gnu + redhat-7.2
i686-pc-linux-gnu + debian-unknown
ia64-unknown-linux-gnu + debian-woody
/usr/include/sys/ptrace.h
extern long int ptrace (enum __ptrace_request __request, ...) __THROW;
man 2 ptrace
long int ptrace(enum __ptrace_request request, pid_t pid, void * addr, void * data);

i686-pc-linux-gnu + mandrake 10.0
i686-pc-linux-gnu + redhat-3AS
i686-pc-linux-gnu + redhat-3ES
i686-pc-linux-gnu + suse-9
ia64-unknown-linux-gnu + redhat-3AS
ia64-unknown-linux-gnu + suse-9
/usr/include/sys/ptrace.h
extern long int ptrace (enum __ptrace_request __request, ...) __THROW;
man 2 ptrace
long ptrace(enum __ptrace_request request, pid_t pid, void *addr, void *data);

hppa2.0w-hp-hpux11.11
/usr/include/sys/ptrace.h
#if !defined(__STDC_32__MODE__)
extern long ptrace(int, pid_t, long, long, long);
extern int64_t ptrace64(int, pid_t, uint64_t, uint64_t, uint64_t);
#else
extern int ptrace(int, pid_t, int, int, int);
#endif
man 2 ptrace
int ptrace( int request, pid_t pid, int addr, int data, int addr2);

ia64-hp-hpux11.23
/usr/include/sys/ptrace.h
#if !defined(__STDC_32__MODE__)
# if defined(__ia64) && !defined(_LIBC)
/* pragmas needed to support -B protected */
# pragma extern ptrace64
# endif
extern long ptrace(int, pid_t, long, long, long);
extern int64_t ptrace64(int, pid_t, uint64_t, uint64_t, uint64_t);
#else
extern int ptrace(int, pid_t, int, int, int);
#endif
man 2 ptrace
long ptrace( int request, pid_t pid, long addr, long data, long addr2);

i386-unknown-freebsd4.9
i386-unknown-netbsdelf1.6
/usr/include/sys/ptrace.h
int ptrace __P((int _request, pid_t _pid, caddr_t _addr, int _data));
man 2 ptrace
int ptrace(int request, pid_t pid, caddr_t addr, int data);