1/* 2 * Copyright (c) 2014 Advanced Micro Devices, Inc. 3 * Copyright (c) 2001-2005 The Regents of The University of Michigan 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 175 unchanged lines hidden (view full) --- 184 185 // provide program name for debug messages 186 virtual const char *progName() const { return "<unknown>"; } 187 188 // map simulator fd sim_fd to target fd tgt_fd 189 void dup_fd(int sim_fd, int tgt_fd); 190 191 // generate new target fd for sim_fd |
192 int alloc_fd(int sim_fd, const std::string& filename, int flags, int mode, |
193 bool pipe); 194 195 // free target fd (e.g., after close) 196 void free_fd(int tgt_fd); 197 198 // look up simulator fd for given target fd 199 int sim_fd(int tgt_fd); 200 --- 151 unchanged lines hidden --- |