process.cc (3669:3607aaed36b6) process.cc (5128:69fb816fa927)
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;

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

331 std::vector<std::string> &envp,
332 const std::string &cwd,
333 uint64_t _uid,
334 uint64_t _euid,
335 uint64_t _gid,
336 uint64_t _egid,
337 uint64_t _pid,
338 uint64_t _ppid)
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;

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

331 std::vector<std::string> &envp,
332 const std::string &cwd,
333 uint64_t _uid,
334 uint64_t _euid,
335 uint64_t _gid,
336 uint64_t _egid,
337 uint64_t _pid,
338 uint64_t _ppid)
339 : SparcLiveProcess(name, objFile, system,
339 : Sparc64LiveProcess(name, objFile, system,
340 stdin_fd, stdout_fd, stderr_fd, argv, envp, cwd,
341 _uid, _euid, _gid, _egid, _pid, _ppid),
342 Num_Syscall_Descs(sizeof(syscallDescs) / sizeof(SyscallDesc))
343{
344 // The sparc syscall table must be <= 284 entries because that is all there
345 // is space for.
346 assert(Num_Syscall_Descs <= 284);
347}
348
349
350
351SyscallDesc*
352SparcSolarisProcess::getDesc(int callnum)
353{
354 if (callnum < 0 || callnum > Num_Syscall_Descs)
355 return NULL;
356 return &syscallDescs[callnum];
357}
340 stdin_fd, stdout_fd, stderr_fd, argv, envp, cwd,
341 _uid, _euid, _gid, _egid, _pid, _ppid),
342 Num_Syscall_Descs(sizeof(syscallDescs) / sizeof(SyscallDesc))
343{
344 // The sparc syscall table must be <= 284 entries because that is all there
345 // is space for.
346 assert(Num_Syscall_Descs <= 284);
347}
348
349
350
351SyscallDesc*
352SparcSolarisProcess::getDesc(int callnum)
353{
354 if (callnum < 0 || callnum > Num_Syscall_Descs)
355 return NULL;
356 return &syscallDescs[callnum];
357}