1/* 2 * Copyright (c) 2016 Advanced Micro Devices, Inc. 3 * All rights reserved. 4 * 5 * For use for simulation and test purposes only 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions are met: --- 66 unchanged lines hidden (view full) --- 75 */ 76class HBFDEntry: public FDEntry 77{ 78 public: 79 HBFDEntry(int flags, int sim_fd, bool close_on_exec = false) 80 : FDEntry(close_on_exec), _flags(flags), _simFD(sim_fd) 81 { } 82 |
83 HBFDEntry(HBFDEntry const& reg, bool close_on_exec = false) 84 : FDEntry(close_on_exec), _flags(reg._flags), _simFD(reg._simFD) 85 { } 86 87 std::shared_ptr<FDEntry> 88 clone() const override 89 { 90 return std::make_shared<HBFDEntry>(*this); 91 } 92 |
93 int getFlags() const { return _flags; } 94 int getSimFD() const { return _simFD; } 95 96 void setFlags(int flags) { _flags = flags; } 97 void setSimFD(int sim_fd) { _simFD = sim_fd; } 98 99 protected: 100 int _flags; --- 149 unchanged lines hidden --- |