sim-se: Add prlimit system call
[gem5.git] / src / sim / fd_array.hh
index 1d57c4654f4bbf38bcf6301f59f92a7279d74eb8..a41e078e76231227fadfd0e4ba50498dfdf900a3 100644 (file)
@@ -103,6 +103,14 @@ class FDArray
      */
     int getSize() const { return _fdArray.size(); }
 
+    /**
+     * Put the pointer specified by fdep into the _fdArray entry indexed
+     * by tgt_fd.
+     * @param tgt_fd Use target file descriptors to index the array.
+     * @param fdep Incoming pointer used to set the entry pointed to by tgt_fd.
+     */
+    void setFDEntry(int tgt_fd, std::shared_ptr<FDEntry> fdep);
+
     /**
      * Try to close the host file descriptor. If successful, set the
      * specified file descriptor entry object pointer to nullptr.