forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit64ef572
committed
Remove configure probes for sockaddr_storage members.
Remove four probes for members of sockaddr_storage. Keep only the probefor sockaddr's sa_len, which is enough for our two remaining places thatknow about _len fields:1. ifaddr.c needs to know if sockaddr has sa_len to understand theresult of ioctl(SIOCGIFCONF). Only AIX is still using the relevant codetoday, but it seems like a good idea to keep it compilable on Linux.2. ip.c was testing for presence of ss_len to decide whether to fill insun_len in our getaddrinfo_unix() function. It's just as good to testfor sa_len. If you have one, you have them all.(The code in#2 isn't actually needed at all on several OSes I checkedsince modern versions ignore sa_len on input to system calls. Provingthat's the case for all relevant OSes is left for another day, butwouldn't get rid of that last probe anyway if we still want it for#1.)Discussion:https://postgr.es/m/CA%2BhUKGJJjF2AqdU_Aug5n2MAc1gr%3DGykNjVBZq%2Bd6Jrcp3Dyvg%40mail.gmail.com1 parent838f798 commit64ef572
File tree
7 files changed
+8
-91
lines changed- config
- src
- common
- include
- libpq
- tools/msvc
7 files changed
+8
-91
lines changedLines changed: 6 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
73 | 73 |
| |
74 | 74 |
| |
75 | 75 |
| |
76 |
| - | |
77 |
| - | |
78 |
| - | |
79 |
| - | |
80 |
| - | |
81 |
| - | |
82 |
| - | |
83 |
| - | |
84 |
| - | |
85 |
| - | |
86 |
| - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
87 | 81 |
| |
88 | 82 |
| |
89 |
| - | |
| 83 | + | |
90 | 84 |
| |
91 | 85 |
| |
92 | 86 |
| |
|
Lines changed: 0 additions & 48 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
14990 | 14990 |
| |
14991 | 14991 |
| |
14992 | 14992 |
| |
14993 |
| - | |
14994 |
| - | |
14995 |
| - | |
14996 |
| - | |
14997 |
| - | |
14998 |
| - | |
14999 |
| - | |
15000 |
| - | |
15001 |
| - | |
15002 |
| - | |
15003 |
| - | |
15004 |
| - | |
15005 |
| - | |
15006 |
| - | |
15007 |
| - | |
15008 |
| - | |
15009 |
| - | |
15010 |
| - | |
15011 |
| - | |
15012 |
| - | |
15013 |
| - | |
15014 |
| - | |
15015 |
| - | |
15016 |
| - | |
15017 |
| - | |
15018 |
| - | |
15019 |
| - | |
15020 |
| - | |
15021 |
| - | |
15022 |
| - | |
15023 |
| - | |
15024 |
| - | |
15025 |
| - | |
15026 |
| - | |
15027 |
| - | |
15028 |
| - | |
15029 |
| - | |
15030 |
| - | |
15031 |
| - | |
15032 |
| - | |
15033 |
| - | |
15034 |
| - | |
15035 |
| - | |
15036 |
| - | |
15037 |
| - | |
15038 |
| - | |
15039 |
| - | |
15040 |
| - | |
15041 | 14993 |
| |
15042 | 14994 |
| |
15043 | 14995 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1614 | 1614 |
| |
1615 | 1615 |
| |
1616 | 1616 |
| |
1617 |
| - | |
| 1617 | + | |
1618 | 1618 |
| |
1619 | 1619 |
| |
1620 | 1620 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
227 | 227 |
| |
228 | 228 |
| |
229 | 229 |
| |
230 |
| - | |
| 230 | + | |
231 | 231 |
| |
232 | 232 |
| |
233 | 233 |
| |
|
Lines changed: 0 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
24 |
| - | |
25 |
| - | |
26 |
| - | |
27 |
| - | |
28 |
| - | |
29 |
| - | |
30 |
| - | |
31 |
| - | |
32 |
| - | |
33 |
| - | |
34 |
| - | |
35 |
| - | |
36 |
| - | |
37 | 24 |
| |
38 | 25 |
| |
39 | 26 |
| |
|
Lines changed: 0 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
442 | 442 |
| |
443 | 443 |
| |
444 | 444 |
| |
445 |
| - | |
446 |
| - | |
447 |
| - | |
448 |
| - | |
449 |
| - | |
450 |
| - | |
451 |
| - | |
452 |
| - | |
453 |
| - | |
454 |
| - | |
455 |
| - | |
456 |
| - | |
457 | 445 |
| |
458 | 446 |
| |
459 | 447 |
| |
|
Lines changed: 0 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
343 | 343 |
| |
344 | 344 |
| |
345 | 345 |
| |
346 |
| - | |
347 |
| - | |
348 |
| - | |
349 |
| - | |
350 | 346 |
| |
351 | 347 |
| |
352 | 348 |
| |
|
0 commit comments
Comments
(0)