Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add directory support to userspace #303

Merged
merged 27 commits into from
Jan 18, 2022
Merged

Add directory support to userspace #303

merged 27 commits into from
Jan 18, 2022

Conversation

vinc
Copy link
Owner

@vinc vinc commented Jan 12, 2022

  • Create dirs from userspace
  • Delete dirs from userspace
  • Read dirs from userspace
  • Add delete syscall
  • Add /dev/null
  • Add proc command
  • Rename stat syscall to info
  • Rename FileStat struct to FileInfo

@vinc
Copy link
Owner Author

vinc commented Jan 16, 2022

The following pages were interesting when implementing the read syscall for directories:

In MOROS the stat syscall on a file or a directory returns the file attributes (called FileStat) that is a subset of its directory entry for userspace programs. The read syscall on a directory returns the same structure for each entry until its buffer cannot fit the next entry.

@vinc vinc marked this pull request as ready for review January 16, 2022 18:03
@vinc
Copy link
Owner Author

vinc commented Jan 16, 2022

Rename stat syscall and FileStat to info and FileInfo.

@vinc vinc merged commit 9708796 into trunk Jan 18, 2022
@vinc vinc deleted the feature/userspace-dir branch January 18, 2022 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant