syscall_emul.cc (14129:7a41ca7e465c) | syscall_emul.cc (14130:62df30844a66) |
---|---|
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; --- 969 unchanged lines hidden (view full) --- 978pipe2Func(SyscallDesc *desc, int callnum, ThreadContext *tc) 979{ 980 // call pipeImpl since the only difference between pipe and pipe2 is 981 // the flags values and what they do (at the end of pipeImpl) 982 return pipeImpl(desc, callnum, tc, false, true); 983} 984 985SyscallReturn | 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; --- 969 unchanged lines hidden (view full) --- 978pipe2Func(SyscallDesc *desc, int callnum, ThreadContext *tc) 979{ 980 // call pipeImpl since the only difference between pipe and pipe2 is 981 // the flags values and what they do (at the end of pipeImpl) 982 return pipeImpl(desc, callnum, tc, false, true); 983} 984 985SyscallReturn |
986getpgrpFunc(SyscallDesc *desc, int callnum, ThreadContext *tc) 987{ 988 auto process = tc->getProcessPtr(); 989 return process->pgid(); 990} 991 992SyscallReturn |
|
986setpgidFunc(SyscallDesc *desc, int callnum, ThreadContext *tc) 987{ 988 int index = 0; 989 auto process = tc->getProcessPtr(); 990 int pid = process->getSyscallArg(tc, index); 991 int pgid = process->getSyscallArg(tc, index); 992 993 if (pgid < 0) --- 841 unchanged lines hidden --- | 993setpgidFunc(SyscallDesc *desc, int callnum, ThreadContext *tc) 994{ 995 int index = 0; 996 auto process = tc->getProcessPtr(); 997 int pid = process->getSyscallArg(tc, index); 998 int pgid = process->getSyscallArg(tc, index); 999 1000 if (pgid < 0) --- 841 unchanged lines hidden --- |