1 //===-- ProcessLaunchInfo.h -------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef liblldb_Target_FileAction_h
11 #define liblldb_Target_FileAction_h
15 namespace lldb_private
35 bool Duplicate(int fd, int dup_fd);
37 bool Open(int fd, const char *path, bool read, bool write);
52 GetActionArgument() const
57 const char *GetPath() const;
60 Action m_action; // The action for this file
61 int m_fd; // An existing file descriptor
62 int m_arg; // oflag for eFileActionOpen*, dup_fd for eFileActionDuplicate
63 std::string m_path; // A file path to use for opening after fork or posix_spawn
66 } // namespace lldb_private