process.cc (5958:2d9737bf3c2f) | process.cc (5981:5e7899a2692f) |
---|---|
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 assert(Num_Syscall_Descs <= 284); 332} 333 334 335 336SyscallDesc* 337SparcSolarisProcess::getDesc(int callnum) 338{ | 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 assert(Num_Syscall_Descs <= 284); 332} 333 334 335 336SyscallDesc* 337SparcSolarisProcess::getDesc(int callnum) 338{ |
339 if (callnum < 0 || callnum > Num_Syscall_Descs) | 339 if (callnum < 0 || callnum >= Num_Syscall_Descs) |
340 return NULL; 341 return &syscallDescs[callnum]; 342} | 340 return NULL; 341 return &syscallDescs[callnum]; 342} |