mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-07 11:27:29 +00:00
libc: Add fd status and flags to File_descriptor
Those values need to be stored local to the FD. Including them in the 'File_descriptor' eases the handling of libc plugins.
This commit is contained in:
parent
8e74fdc585
commit
dd9b606182
@ -39,10 +39,12 @@ namespace Libc {
|
||||
|
||||
struct File_descriptor
|
||||
{
|
||||
int libc_fd;
|
||||
char *fd_path; /* for 'fchdir()' */
|
||||
Plugin *plugin;
|
||||
Plugin_context *context;
|
||||
int libc_fd = -1;
|
||||
char *fd_path = 0; /* for 'fchdir', 'fstat' */
|
||||
Plugin *plugin = 0;
|
||||
Plugin_context *context = 0;
|
||||
unsigned flags = 0; /* for 'fcntl' */
|
||||
unsigned status = 0; /* for 'fcntl' */
|
||||
Genode::Lock lock;
|
||||
|
||||
void path(char const *newpath)
|
||||
|
Loading…
x
Reference in New Issue
Block a user