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

Thoughts about adding mkfifoat #1391

Open
rusty-snake opened this issue Mar 6, 2025 · 2 comments · May be fixed by #1399
Open

Thoughts about adding mkfifoat #1391

rusty-snake opened this issue Mar 6, 2025 · 2 comments · May be fixed by #1399
Labels
enhancement New feature or request

Comments

@rusty-snake
Copy link
Contributor

Thoughts about adding mkfifoat

@sunfishcode sunfishcode added the enhancement New feature or request label Mar 6, 2025
@sunfishcode
Copy link
Member

Rustix does have mknodat, so mkfifoat can be done today using mknodat(dir, path, FileType::Fifo, mode, 0).

That said, it looks like POSIX recommends using mkfifoat instead, so I'm not opposed to adding a mkfifoat to rustix as well.

@rusty-snake
Copy link
Contributor Author

Yeah, mkfifoat is nothing more than mknodat but more readable and less error prone.

so I'm not opposed to adding a mkfifoat to rustix as well.

I'll give it a try.

@rusty-snake rusty-snake linked a pull request Mar 7, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants