Deleted Added
sdiff udiff text old ( 11875:8e928c0f98d1 ) new ( 11885:79af314e9f0d )
full compact
1/*
2 * Copyright (c) 2003-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 715 unchanged lines hidden (view full) ---

724 /**
725 * Alpha Linux convention for pipe() is that fd[0] is returned as
726 * the return value of the function, and fd[1] is returned in r20.
727 */
728 tc->setIntReg(SyscallPseudoReturnReg, tgt_fds[1]);
729 return sim_fds[0];
730}
731
732
733SyscallReturn
734getpidPseudoFunc(SyscallDesc *desc, int callnum, Process *process,
735 ThreadContext *tc)
736{
737 // Make up a PID. There's no interprocess communication in
738 // fake_syscall mode, so there's no way for a process to know it's
739 // not getting a unique value.
740

--- 34 unchanged lines hidden (view full) ---

775 warn("Ignoring call to setuid(%d)\n", process->getSyscallArg(tc, index));
776 return 0;
777}
778
779SyscallReturn
780getpidFunc(SyscallDesc *desc, int callnum, Process *process,
781 ThreadContext *tc)
782{
783 // Make up a PID. There's no interprocess communication in
784 // fake_syscall mode, so there's no way for a process to know it's
785 // not getting a unique value.
786
787 tc->setIntReg(SyscallPseudoReturnReg, process->ppid()); //PID
788 return process->pid();
789}
790
791SyscallReturn
792getppidFunc(SyscallDesc *desc, int callnum, Process *process,
793 ThreadContext *tc)
794{
795 return process->ppid();

--- 160 unchanged lines hidden ---