Cygwin: pinfo: add method to send a serialized path_conv and HANDLE
To allow reopening a file open in another process by HANDLE, introduce a matching file_pathconv method, taking a file descriptor as parameter. The result is a serialized path_conv and a HANDLE value. The HANDLE is valid in the foreign process and MUST be duplicated into the target process before usage. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
@@ -27,7 +27,8 @@ enum picom
|
||||
PICOM_FDS = 4,
|
||||
PICOM_FD = 5,
|
||||
PICOM_PIPE_FHANDLER = 6,
|
||||
PICOM_ENVIRON = 7
|
||||
PICOM_FILE_PATHCONV = 7,
|
||||
PICOM_ENVIRON = 8
|
||||
};
|
||||
|
||||
#define EXITCODE_SET 0x8000000
|
||||
@@ -102,6 +103,7 @@ public:
|
||||
commune_result commune_request (__uint32_t, ...);
|
||||
bool alive ();
|
||||
fhandler_pipe *pipe_fhandler (int64_t, size_t &);
|
||||
void *file_pathconv (int, size_t &);
|
||||
char *fd (int fd, size_t &);
|
||||
char *fds (size_t &);
|
||||
char *root (size_t &);
|
||||
|
Reference in New Issue
Block a user