Commit 1f81ef4
committed
Atomically set CLOEXEC on duplicated sockets
For Bitrig, NetBSD and OpenBSD the constant was incorrectly in posix01, when
it's actually posix08, so we move it. This is a [breaking-change], but we
already had one in #27930.
Fix NetBSD's F_DUPFD_CLOEXEC constant.
For a similar feature detection, see this musl thread:
http://comments.gmane.org/gmane.linux.lib.musl.general/2963
This assumes that an int literal has type `c_int` for varidic functions.1 parent 4bb9023 commit 1f81ef4
2 files changed
+31
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3614 | 3614 | | |
3615 | 3615 | | |
3616 | 3616 | | |
| 3617 | + | |
3617 | 3618 | | |
3618 | 3619 | | |
3619 | 3620 | | |
| |||
4285 | 4286 | | |
4286 | 4287 | | |
4287 | 4288 | | |
| 4289 | + | |
4288 | 4290 | | |
4289 | 4291 | | |
4290 | 4292 | | |
4291 | 4293 | | |
4292 | 4294 | | |
| 4295 | + | |
4293 | 4296 | | |
4294 | 4297 | | |
4295 | 4298 | | |
| |||
4657 | 4660 | | |
4658 | 4661 | | |
4659 | 4662 | | |
4660 | | - | |
4661 | 4663 | | |
4662 | 4664 | | |
4663 | 4665 | | |
| |||
4739 | 4741 | | |
4740 | 4742 | | |
4741 | 4743 | | |
| 4744 | + | |
4742 | 4745 | | |
4743 | 4746 | | |
4744 | 4747 | | |
4745 | 4748 | | |
4746 | 4749 | | |
| 4750 | + | |
4747 | 4751 | | |
4748 | 4752 | | |
4749 | 4753 | | |
| |||
5186 | 5190 | | |
5187 | 5191 | | |
5188 | 5192 | | |
| 5193 | + | |
5189 | 5194 | | |
5190 | 5195 | | |
5191 | 5196 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
| 18 | + | |
17 | 19 | | |
18 | | - | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
73 | 93 | | |
74 | 94 | | |
75 | 95 | | |
| |||
0 commit comments