1/* 2 * Copyright (c) 2001-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; --- 446 unchanged lines hidden (view full) --- 455BEGIN_DECLARE_SIM_OBJECT_PARAMS(LiveProcess) 456 457 VectorParam<string> cmd; 458 Param<string> executable; 459 Param<string> input; 460 Param<string> output; 461 VectorParam<string> env; 462 SimObjectParam<System *> system; |
463 Param<uint64_t> uid; 464 Param<uint64_t> euid; 465 Param<uint64_t> gid; 466 Param<uint64_t> egid; 467 Param<uint64_t> pid; 468 Param<uint64_t> ppid; |
469 470END_DECLARE_SIM_OBJECT_PARAMS(LiveProcess) 471 472 473BEGIN_INIT_SIM_OBJECT_PARAMS(LiveProcess) 474 475 INIT_PARAM(cmd, "command line (executable plus arguments)"), 476 INIT_PARAM(executable, "executable (overrides cmd[0] if set)"), 477 INIT_PARAM(input, "filename for stdin (dflt: use sim stdin)"), 478 INIT_PARAM(output, "filename for stdout/stderr (dflt: use sim stdout)"), 479 INIT_PARAM(env, "environment settings"), |
480 INIT_PARAM(system, "system"), 481 INIT_PARAM(uid, "user id"), 482 INIT_PARAM(euid, "effective user id"), 483 INIT_PARAM(gid, "group id"), 484 INIT_PARAM(egid, "effective group id"), 485 INIT_PARAM(pid, "process id"), 486 INIT_PARAM(ppid, "parent process id") |
487 488END_INIT_SIM_OBJECT_PARAMS(LiveProcess) 489 490 491CREATE_SIM_OBJECT(LiveProcess) 492{ 493 string in = input; 494 string out = output; --- 26 unchanged lines hidden --- |