Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions so3/fs/vfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ int vfs_set_open_mode(int gfd, uint32_t flags_open_mode)

uint32_t vfs_get_access_mode(int gfd)
{
uint32_t ret;
uint32_t ret = 0;

mutex_lock(&vfs_lock);

Expand All @@ -314,7 +314,7 @@ void vfs_set_access_mode(int gfd, uint32_t flags_access_mode)

uint32_t vfs_get_operating_mode(int gfd)
{
uint32_t ret;
uint32_t ret = 0;
mutex_lock(&vfs_lock);

if (open_fds[gfd])
Expand Down
6 changes: 3 additions & 3 deletions so3/include/vfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,9 @@ void vfs_set_priv(int gfd, void *data);
void *vfs_get_priv(int gfd);
int vfs_clone_fd(int *gfd_src, int *gfd_dst);

uint32_t vfs_get_access_mode(int fd);
uint32_t vfs_get_open_mode(int fd);
uint32_t vfs_get_operating_mode(int fd);
uint32_t vfs_get_access_mode(int gfd);
uint32_t vfs_get_open_mode(int gfd);
uint32_t vfs_get_operating_mode(int gfd);

void vfs_set_access_mode(int gfd, uint32_t flags_access_mode);
int vfs_set_open_mode(int gfd, uint32_t flags_open_mode);
Expand Down