syscall_emul.hh (6685:af13eb1b7f81) syscall_emul.hh (6686:db7e5f2778cf)
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;

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

464
465template<class OS>
466static void
467copyOutStat64Buf(TranslatingPort * mem, Addr addr,
468 hst_stat64 *host, bool fakeTTY = false)
469{
470 typedef TypedBufferArg<typename OS::tgt_stat64> tgt_stat_buf;
471 tgt_stat_buf tgt(addr);
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;

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

464
465template<class OS>
466static void
467copyOutStat64Buf(TranslatingPort * mem, Addr addr,
468 hst_stat64 *host, bool fakeTTY = false)
469{
470 typedef TypedBufferArg<typename OS::tgt_stat64> tgt_stat_buf;
471 tgt_stat_buf tgt(addr);
472 convertStatBuf(tgt, host, fakeTTY);
472 convertStat64Buf<tgt_stat_buf, hst_stat64>(tgt, host, fakeTTY);
473 tgt.copyOut(mem);
474}
475
476/// Target ioctl() handler. For the most part, programs call ioctl()
477/// only to find out if their stdout is a tty, to determine whether to
478/// do line or block buffering.
479template <class OS>
480SyscallReturn

--- 705 unchanged lines hidden ---
473 tgt.copyOut(mem);
474}
475
476/// Target ioctl() handler. For the most part, programs call ioctl()
477/// only to find out if their stdout is a tty, to determine whether to
478/// do line or block buffering.
479template <class OS>
480SyscallReturn

--- 705 unchanged lines hidden ---