Project1/xv6/kernel/sysproc.c
int
sys_getppid(void)
{

 if(proc->parent != NULL){
   return proc->parent->pid;
 }else{
   return -1;
 }

}
//added code here for Project 1
added code here for Project 1
added code here for Project 1
int
sys_getppid(void)
{
 if(proc->parent != NULL){
   return proc->parent->pid;
 }else{
   return -1;
 }
}
int sys_getppid ( void ) { if ( proc -> parent != NULL ) { return proc -> parent -> pid ; } else { return -1 ; } }
added code here for Project 1
added code here for Project 1