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

support for opendir/readdir and dirents? #142

Open
luxe opened this issue Feb 18, 2020 · 0 comments
Open

support for opendir/readdir and dirents? #142

luxe opened this issue Feb 18, 2020 · 0 comments

Comments

@luxe
Copy link

luxe commented Feb 18, 2020

Problem:

hey, I was hoping to use JNR Posix for opendir and readdir.

In particular, I wanted to obtain inodes without needing to call stat().
This would seem possible given that dirents carry their inode numbers:

struct dirent {
    ino_t          d_ino;       /* Inode number */
    off_t          d_off;       /* Not an offset; see below */
    unsigned short d_reclen;    /* Length of this record */
    unsigned char  d_type;      /* Type of file; not supported by all filesystem types */
    char           d_name[256]; /* Null-terminated filename */
}

However, since these functions are c libraries and not syscalls they do not seem supported by your library. Not supported in the sense that when I create a default POSIX handler they are not available in that interface.

Question:

Will these be supported in the future? Is there a way I can use JNR Posix to get access to these kinds of functions and dirents?

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

No branches or pull requests

1 participant