noux: Enable setting of file handle flags

Fixes #1765
This commit is contained in:
Sebastian Sumpf 2015-11-05 11:07:19 +01:00 committed by Christian Helmuth
parent f6863e3f4b
commit 06fe755f8c
2 changed files with 6 additions and 0 deletions

View File

@ -58,6 +58,8 @@ class Vfs::Vfs_handle
int status_flags() const { return _status_flags; }
void status_flags(int flags) { _status_flags = flags; }
/**
* Return seek offset in bytes
*/

View File

@ -109,6 +109,10 @@ namespace Noux {
sysio->fcntl_out.result = _fh->status_flags();
return true;
case Sysio::FCNTL_CMD_SET_FILE_STATUS_FLAGS:
_fh->status_flags(sysio->fcntl_in.long_arg);
return true;
default:
PWRN("invalid fcntl command %d", sysio->fcntl_in.cmd);