mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-05 09:14:03 +00:00
- Use pid_t type instead of just int.
Approved by: kib (mentor)
This commit is contained in:
parent
442646f5c1
commit
be305c9c9f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=239501
@ -32,7 +32,7 @@
|
||||
*/
|
||||
|
||||
extern int setup_and_wait(char **);
|
||||
extern int start_tracing(int);
|
||||
extern int start_tracing(pid_t);
|
||||
extern void restore_proc(int);
|
||||
extern void waitevent(struct trussinfo *);
|
||||
extern const char *ioctlname(unsigned long val);
|
||||
|
@ -57,7 +57,7 @@ __FBSDID("$FreeBSD$");
|
||||
#include "truss.h"
|
||||
#include "extern.h"
|
||||
|
||||
static int child_pid;
|
||||
static pid_t child_pid;
|
||||
|
||||
/*
|
||||
* setup_and_wait() is called to start a process. All it really does
|
||||
@ -69,7 +69,7 @@ static int child_pid;
|
||||
int
|
||||
setup_and_wait(char *command[])
|
||||
{
|
||||
int pid;
|
||||
pid_t pid;
|
||||
int waitval;
|
||||
|
||||
pid = vfork();
|
||||
@ -100,7 +100,7 @@ setup_and_wait(char *command[])
|
||||
*/
|
||||
|
||||
int
|
||||
start_tracing(int pid)
|
||||
start_tracing(pid_t pid)
|
||||
{
|
||||
int waitval;
|
||||
int ret;
|
||||
|
@ -464,7 +464,7 @@ get_syscall(const char *name)
|
||||
*/
|
||||
|
||||
static int
|
||||
get_struct(int pid, void *offset, void *buf, int len)
|
||||
get_struct(pid_t pid, void *offset, void *buf, int len)
|
||||
{
|
||||
struct ptrace_io_desc iorequest;
|
||||
|
||||
@ -539,7 +539,7 @@ char *
|
||||
print_arg(struct syscall_args *sc, unsigned long *args, long retval, struct trussinfo *trussinfo)
|
||||
{
|
||||
char *tmp = NULL;
|
||||
int pid = trussinfo->pid;
|
||||
pid_t pid = trussinfo->pid;
|
||||
|
||||
switch (sc->type & ARG_MASK) {
|
||||
case Hex:
|
||||
|
@ -45,7 +45,7 @@ struct threadinfo
|
||||
|
||||
struct trussinfo
|
||||
{
|
||||
int pid;
|
||||
pid_t pid;
|
||||
int flags;
|
||||
int pr_why;
|
||||
int pr_data;
|
||||
|
Loading…
Reference in New Issue
Block a user