syscall_emul.hh (5208:8ec8ba9ee9fd) | syscall_emul.hh (5282:2dba627b6646) |
---|---|
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; --- 504 unchanged lines hidden (view full) --- 513 // Adjust path for current working directory 514 path = process->fullPath(path); 515 516 DPRINTF(SyscallVerbose, "opening file %s\n", path.c_str()); 517 518 // open the file 519 int fd = open(path.c_str(), hostFlags, mode); 520 | 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; --- 504 unchanged lines hidden (view full) --- 513 // Adjust path for current working directory 514 path = process->fullPath(path); 515 516 DPRINTF(SyscallVerbose, "opening file %s\n", path.c_str()); 517 518 // open the file 519 int fd = open(path.c_str(), hostFlags, mode); 520 |
521 return (fd == -1) ? -errno : process->alloc_fd(fd); | 521 return (fd == -1) ? -errno : process->alloc_fd(fd,path.c_str(),hostFlags,mode, false); |
522} 523 524 525/// Target chmod() handler. 526template <class OS> 527SyscallReturn 528chmodFunc(SyscallDesc *desc, int callnum, LiveProcess *process, 529 ThreadContext *tc) --- 494 unchanged lines hidden --- | 522} 523 524 525/// Target chmod() handler. 526template <class OS> 527SyscallReturn 528chmodFunc(SyscallDesc *desc, int callnum, LiveProcess *process, 529 ThreadContext *tc) --- 494 unchanged lines hidden --- |