process.cc (13995:5d459168a680) process.cc (14014:ce216ee5d886)
1/*
2 * Copyright (c) 2007 The Hewlett-Packard Development Company
3 * All rights reserved.
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

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

94unameFunc(SyscallDesc *desc, int callnum, ThreadContext *tc)
95{
96 int index = 0;
97 auto process = tc->getProcessPtr();
98 TypedBufferArg<Linux::utsname> name(process->getSyscallArg(tc, index));
99
100 strcpy(name->sysname, "Linux");
101 strcpy(name->nodename, "sim.gem5.org");
1/*
2 * Copyright (c) 2007 The Hewlett-Packard Development Company
3 * All rights reserved.
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

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

94unameFunc(SyscallDesc *desc, int callnum, ThreadContext *tc)
95{
96 int index = 0;
97 auto process = tc->getProcessPtr();
98 TypedBufferArg<Linux::utsname> name(process->getSyscallArg(tc, index));
99
100 strcpy(name->sysname, "Linux");
101 strcpy(name->nodename, "sim.gem5.org");
102 strcpy(name->release, "3.2.0");
102 strcpy(name->release, process->release.c_str());
103 strcpy(name->version, "#1 Mon Aug 18 11:32:15 EDT 2003");
104 strcpy(name->machine, "x86_64");
105
106 name.copyOut(tc->getMemProxy());
107
108 return 0;
109}
110

--- 823 unchanged lines hidden ---
103 strcpy(name->version, "#1 Mon Aug 18 11:32:15 EDT 2003");
104 strcpy(name->machine, "x86_64");
105
106 name.copyOut(tc->getMemProxy());
107
108 return 0;
109}
110

--- 823 unchanged lines hidden ---