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 syscall getdents #833

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add syscall getdents #833

wants to merge 1 commit into from

Conversation

grief8
Copy link
Contributor

@grief8 grief8 commented May 11, 2024

This PR adds support for the sys_getdents (get directory entries) system call in our operating system's kernel, which enables user-space applications to read the contents of a directory incrementally.

Key Changes:

  • Defined Dirent and Dirent64 structures to represent directory entries in 32-bit and 64-bit formats, respectively.
  • Released syscall tests related to sys_getdents.

kernel/aster-nix/src/syscall/getdents64.rs Outdated Show resolved Hide resolved
kernel/aster-nix/src/syscall/getdents64.rs Outdated Show resolved Hide resolved
kernel/aster-nix/src/syscall/getdents64.rs Outdated Show resolved Hide resolved
@liqinggd
Copy link
Contributor

LGTM

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.

None yet

3 participants