process.hh (2980:eab855f06b79) process.hh (3114:7a4771b9b720)
1/*
2 * Copyright (c) 2003-2004 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;

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

43{
44 public:
45 /// Constructor.
46 SparcLinuxProcess(const std::string &name,
47 ObjectFile *objFile,
48 System * system,
49 int stdin_fd, int stdout_fd, int stderr_fd,
50 std::vector<std::string> &argv,
1/*
2 * Copyright (c) 2003-2004 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;

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

43{
44 public:
45 /// Constructor.
46 SparcLinuxProcess(const std::string &name,
47 ObjectFile *objFile,
48 System * system,
49 int stdin_fd, int stdout_fd, int stderr_fd,
50 std::vector<std::string> &argv,
51 std::vector<std::string> &envp);
51 std::vector<std::string> &envp,
52 uint64_t _uid, uint64_t _euid,
53 uint64_t _gid, uint64_t _egid,
54 uint64_t _pid, uint64_t _ppid);
52
53 virtual SyscallDesc* getDesc(int callnum);
54
55 /// The target system's hostname.
56 static const char *hostname;
57
58 /// Array of syscall descriptors, indexed by call number.
59 static SyscallDesc syscallDescs[];
60
61 const int Num_Syscall_Descs;
62};
63
64SyscallReturn getresuidFunc(SyscallDesc *desc, int num,
55
56 virtual SyscallDesc* getDesc(int callnum);
57
58 /// The target system's hostname.
59 static const char *hostname;
60
61 /// Array of syscall descriptors, indexed by call number.
62 static SyscallDesc syscallDescs[];
63
64 const int Num_Syscall_Descs;
65};
66
67SyscallReturn getresuidFunc(SyscallDesc *desc, int num,
65 Process *p, ThreadContext *tc);
68 LiveProcess *p, ThreadContext *tc);
66
67} // namespace SparcISA
68#endif // __ALPHA_LINUX_PROCESS_HH__
69
70} // namespace SparcISA
71#endif // __ALPHA_LINUX_PROCESS_HH__