-
Notifications
You must be signed in to change notification settings - Fork 6
[unix_api] Generate functions if their types are understood by dart:ffi #273
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
Conversation
pkgs/unix_api/tool/cfunction.dart
Outdated
| } else { | ||
| return '''$firstLine | ||
| #if $implementationGuard | ||
| errno = ENOTSUP; |
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.
Maybe ENOSYS?
If I try to use getrandom or fork_pidfd on too-old Linux, I get ENOSYS. Also dart:io uses ENOSYS for things like process spawning on iOS.
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.
Done.
Contribution guidelines:
dart format.Note that many Dart repos have a weekly cadence for reviewing PRs - please allow for some latency before initial review feedback.