process.cc (13995:5d459168a680) | process.cc (14014:ce216ee5d886) |
---|---|
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; --- 71 unchanged lines hidden (view full) --- 80unameFunc(SyscallDesc *desc, int callnum, ThreadContext *tc) 81{ 82 int index = 0; 83 auto process = tc->getProcessPtr(); 84 TypedBufferArg<Linux::utsname> name(process->getSyscallArg(tc, index)); 85 86 strcpy(name->sysname, "Linux"); 87 strcpy(name->nodename, "sim.gem5.org"); | 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; --- 71 unchanged lines hidden (view full) --- 80unameFunc(SyscallDesc *desc, int callnum, ThreadContext *tc) 81{ 82 int index = 0; 83 auto process = tc->getProcessPtr(); 84 TypedBufferArg<Linux::utsname> name(process->getSyscallArg(tc, index)); 85 86 strcpy(name->sysname, "Linux"); 87 strcpy(name->nodename, "sim.gem5.org"); |
88 strcpy(name->release, "3.0.0"); | 88 strcpy(name->release, process->release.c_str()); |
89 strcpy(name->version, "#1 Mon Aug 18 11:32:15 EDT 2003"); 90 strcpy(name->machine, "alpha"); 91 92 name.copyOut(tc->getMemProxy()); 93 return 0; 94} 95 96/// Target osf_getsysyinfo() handler. Even though this call is --- 526 unchanged lines hidden --- | 89 strcpy(name->version, "#1 Mon Aug 18 11:32:15 EDT 2003"); 90 strcpy(name->machine, "alpha"); 91 92 name.copyOut(tc->getMemProxy()); 93 return 0; 94} 95 96/// Target osf_getsysyinfo() handler. Even though this call is --- 526 unchanged lines hidden --- |