Skip to content

Commit 0f05637

Browse files
committed
Constant
1 parent fb89291 commit 0f05637

File tree

6 files changed

+23
-1
lines changed

6 files changed

+23
-1
lines changed

pkgs/unix_api/constants.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
- UF_HIDDEN
5757
"<errno.h>":
5858
- EACCES
59+
- EBADF
5960
- EDOM
6061
- EEXIST
6162
- EINTR

pkgs/unix_api/lib/src/constant_bindings.g.dart

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkgs/unix_api/lib/src/constants.g.dart

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkgs/unix_api/src/constants.g.c

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkgs/unix_api/src/constants.g.h

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkgs/unix_api/test/mmap_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ void main() {
8282
final address = mmap(nullptr, 0, PROT_READ, MAP_SHARED, -1, 0);
8383

8484
expect(address, MAP_FAILED);
85-
expect(errno, EINVAL);
85+
expect(errno, anyOf([EINVAL, EBADF]);
8686
});
8787

8888
test('mprotect success', () {

0 commit comments

Comments
 (0)