Deleted Added
sdiff udiff text old ( 13569:47a2291177a7 ) new ( 13570:b6484720c6a9 )
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;

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

274closeFunc(SyscallDesc *desc, int num, Process *p, ThreadContext *tc)
275{
276 int index = 0;
277 int tgt_fd = p->getSyscallArg(tc, index);
278
279 return p->fds->closeFDEntry(tgt_fd);
280}
281
282SyscallReturn
283lseekFunc(SyscallDesc *desc, int num, Process *p, ThreadContext *tc)
284{
285 int index = 0;
286 int tgt_fd = p->getSyscallArg(tc, index);
287 uint64_t offs = p->getSyscallArg(tc, index);
288 int whence = p->getSyscallArg(tc, index);
289
290 auto ffdp = std::dynamic_pointer_cast<FileFDEntry>((*p->fds)[tgt_fd]);

--- 1279 unchanged lines hidden ---