asst3-Virtual Memory Translation/kern/syscall/proc_syscalls.c
int
sys_waitpid(pid_t pid, userptr_t retstatus, int flags, pid_t *retval)
{
	int status;
	int result;

	result = pid_wait(pid, &status, flags, retval);
	if (result) {
		return result;
	}

	if (retstatus != NULL) {
		result = copyout(&status, retstatus, sizeof(int));
	}
	return result;
}
/*
 * sys_waitpid
 * just pass off the work to the pid code.
 */
sys_waitpid
just pass off the work to the pid code.
sys_waitpid just pass off the work to the pid code .
int
sys_waitpid(pid_t pid, userptr_t retstatus, int flags, pid_t *retval)
{
	int status;
	int result;
	result = pid_wait(pid, &status, flags, retval);
	if (result) {
		return result;
	}
	if (retstatus != NULL) {
		result = copyout(&status, retstatus, sizeof(int));
	}
	return result;
}
int sys_waitpid ( pid_t pid , userptr_t retstatus , int flags , pid_t * retval ) { int status ; int result ; result = pid_wait ( pid , & status , flags , retval ) ; if ( result ) { return result ; } if ( retstatus != NULL ) { result = copyout ( & status , retstatus , sizeof ( int ) ) ; } return result ; }
sys_waitpid
 just pass off the work to the pid code.
sys_waitpid just pass off the work to the pid code .