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

open() on a directory is not supported #751

Open
tadziopazur opened this issue Oct 4, 2017 · 1 comment
Open

open() on a directory is not supported #751

tadziopazur opened this issue Oct 4, 2017 · 1 comment
Assignees

Comments

@tadziopazur
Copy link

tadziopazur commented Oct 4, 2017

In TizenRT there is no notion of a dirfd.
open(path_to_directory, _, _) returns -1 with errno set to EISDIR.

POSIX (POSIX.1-2008) mandates that open works on directories, returning a descriptor suitable for
directory streaming operations (fstatat, openat, [un]linkat, readlinkat, renameat and the like).

Is TizenRT interested in having this functionality (open on directories) provided?
We (IoT.js) could use this functionality, since some tests require that a directory can be open'ed and resulting fd be able to be stat'ed.

@sunghan-chang Would you please voice your opinion on this one?

@pholat
Copy link

pholat commented Apr 15, 2018

@tadziopazur Does your catalog have '/' at the end of the path? It's perfectly legit and praiseworthy on Linux, but it was the issue in my case when I tried opening/creating catalogs.

Though my errno was different - ENXIO I believe.

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

3 participants