Deleted Added
sdiff udiff text old ( 6712:b95abe00dd9d ) new ( 6731:2e67bb7c9b4c )
full compact
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;

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

301
302 return 0;
303}
304
305SyscallReturn
306getcwdFunc(SyscallDesc *desc, int num, LiveProcess *p, ThreadContext *tc)
307{
308 int result = 0;
309 int index;
310 Addr bufPtr = p->getSyscallArg(tc, index);
311 unsigned long size = p->getSyscallArg(tc, index);
312 BufferArg buf(bufPtr, size);
313
314 // Is current working directory defined?
315 string cwd = p->getcwd();
316 if (!cwd.empty()) {
317 if (cwd.length() >= size) {

--- 512 unchanged lines hidden ---