-
Notifications
You must be signed in to change notification settings - Fork 9
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
POSIX compatibility #5
Comments
Fixed. Thank you for your comments! |
Well... there are several more instances of these or similar problems still present in the codebase... how do you plan to address them? The 3 cases I reported above were just a few examples I noticed from a quick look. |
We are planning to review our design recently. I will figure it out then. |
Any updates? |
No. Till now we haven't figured out what else is not compatible to POSIX. |
Is there a linter that automatically find non POSIX complaint function calls? |
This package is targeted at "POSIX compatible OS". However, looking at the code, I noticed several incompatibilities with POSIX. These are a couple of examples I saw so far, but I only took a quick look and there may be others:
ndn-iot-package-over-posix/adaptation/udp/udp-face.c
Lines 203 to 204 in 4b31168
MSG_DONTWAIT
is not specified by POSIX.ndn-iot-package-over-posix/adaptation/udp/udp-face.c
Line 208 in 4b31168
POSIX.1-2001 allows either
EAGAIN
orEWOULDBLOCK
to be returned for this case, and does not guarantee that these constants have the same value, so a portable application should check for both.ndn-iot-package-over-posix/adaptation/udp/udp-face.c
Line 58 in 4b31168
FIONBIO
is non-standard. You should usefcntl(...O_NONBLOCK...)
instead.The text was updated successfully, but these errors were encountered: