Skip to content

Commit

Permalink
Merge pull request #918 from Dennisbonke/append
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennisbonke authored Oct 7, 2023
2 parents 61529ce + 58a6349 commit 4c34b6c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sysdeps/managarm/generic/file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1426,6 +1426,8 @@ int sys_openat(int dirfd, const char *path, int flags, mode_t mode, int *fd) {
return EOPNOTSUPP;

uint32_t proto_flags = 0;
if(flags & O_APPEND)
proto_flags |= managarm::posix::OpenFlags::OF_APPEND;
if(flags & O_CREAT)
proto_flags |= managarm::posix::OpenFlags::OF_CREATE;
if(flags & O_EXCL)
Expand Down

0 comments on commit 4c34b6c

Please sign in to comment.