DPRINTF(("siginfo [pid %d signo %d code %d errno %d status %d]\n",
DPRINTF(("siginfo [pid %ld signo %d code %d errno %d status %d]\n",
svr4_setinfo(p, st, s)	struct proc *p;	int st;	svr4_siginfo_t *s;{	svr4_siginfo_t i;	bzero(&i, sizeof(i));	i.si_signo = SVR4_SIGCHLD;	i.si_errno = 0;	/* XXX? */	if (p) {		i.si_pid = p->p_pid;		i.si_stime = p->p_ru->ru_stime.tv_sec;		i.si_utime = p->p_ru->ru_utime.tv_sec;	}	if (WIFEXITED(st)) {		i.si_status = WEXITSTATUS(st);		i.si_code = SVR4_CLD_EXITED;	}	else if (WIFSTOPPED(st)) {		i.si_status = bsd_to_svr4_sig[WSTOPSIG(st)];		if (i.si_status == SVR4_SIGCONT)			i.si_code = SVR4_CLD_CONTINUED;		else			i.si_code = SVR4_CLD_STOPPED;	} else {		i.si_status = bsd_to_svr4_sig[WTERMSIG(st)];		if (WCOREDUMP(st))			i.si_code = SVR4_CLD_DUMPED;		else			i.si_code = SVR4_CLD_KILLED;	}	DPRINTF(("siginfo [pid %d signo %d code %d errno %d status %d]\n",		 i.si_pid, i.si_signo, i.si_code, i.si_errno, i.si_status));	return copyout(&i, s, sizeof(i));}