-
Notifications
You must be signed in to change notification settings - Fork 666
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
#602 added unistd::mkfifo #774
Conversation
src/unistd.rs
Outdated
/// - the path name is too long (longer than `PATH_MAX`, usually 4096 on linux, 1024 on OS X) | ||
/// | ||
/// For a full list consult | ||
/// [man mkfifo(3)](http://man7.org/linux/man-pages/man3/mkfifo.3.html) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Odd that you apparently develop on OSX but reference Linux man pages. However, nix is cross-platform, so the best man pages to use are opengroup's. Could you please change the link to this?
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/mkfifo.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well not that odd considering all other man page links in that file are pointing to http://man7.org/linux.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, we've been slowly moving them as we go, but we haven't mass-converted.
Could you also please add an entry to the CHANGELOG? |
you can probably adapt the tests from the code I made here: https://github.com/nix-rust/nix/pull/751/files#diff-899c5a4ff7ee773df222af8874b4761eR115 |
Is there anything else needed for this PR? |
Just a squash, then I'll merge it. |
Squashed. Thank you. |
bors r+ |
Sorry, but I just noticed one more problem: |
Damn my out-of-date browser windows! I guess this one slipped by. |
Sorry, my bad. I should have read the comment on the top of the file. You may also want to consider moving
From http://pubs.opengroup.org/onlinepubs/009695399/basedefs/sys/stat.h.html:
int chmod(const char *, mode_t);
int fchmod(int, mode_t);
int fstat(int, struct stat *);
int lstat(const char *restrict, struct stat *restrict);
int mkdir(const char *, mode_t);
int mkfifo(const char *, mode_t);
[XSI][Option Start]
int mknod(const char *, mode_t, dev_t);
[Option End]
int stat(const char *restrict, struct stat *restrict);
mode_t umask(mode_t); And indeed the http://pubs.opengroup.org/onlinepubs/7908799/xsh/unistd.h.html does not list Do you want me to do something about this? |
Since libc has mkfifo already I have just copied mkdir and adapted to mkfifo. I have tested that on MacOS only.