libc: handle modified files

Issue #1784.
This commit is contained in:
Josef Söntgen
2019-04-18 15:15:13 +02:00
committed by Christian Helmuth
parent 94b63924ed
commit 180f9e6384
2 changed files with 34 additions and 7 deletions

View File

@ -53,8 +53,9 @@ namespace Libc {
Plugin *plugin;
Plugin_context *context;
int flags = 0; /* for 'fcntl' */
bool cloexec = 0; /* for 'fcntl' */
int flags = 0; /* for 'fcntl' */
bool cloexec = 0; /* for 'fcntl' */
bool modified = false;
File_descriptor(Id_space &id_space, Plugin &plugin, Plugin_context &context)
: _elem(*this, id_space), plugin(&plugin), context(&context) { }