Skip to content

support for opendir/readdir and dirents? #142

@luxe

Description

@luxe

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions