forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit414a9a5
Remove configure probe and related tests for getrlimit.
getrlimit() is in SUSv2 and all targeted systems have it.Windows doesn't have it. We could just use #ifndef WIN32, but for alittle more explanation about why we're making things conditional, let'sretain the HAVE_GETRLIMIT macro. It's defined in port.h for Unix systems.On systems that have it, it's not necessary to test for RLIMIT_CORE,RLIMIT_STACK or RLIMIT_NOFILE macros, since SUSv2 requires those and alltargeted systems have them. Also remove references to a pre-historicalternative spelling of RLIMIT_NOFILE, and coding that seemed to believethat Cygwin didn't have it.Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>Reviewed-by: Andres Freund <andres@anarazel.de>Discussion:https://postgr.es/m/CA+hUKGJ3LHeP9w5Fgzdr4G8AnEtJ=z=p6hGDEm4qYGEUX5B6fQ@mail.gmail.com1 parentbb5fd4e commit414a9a5
File tree
10 files changed
+17
-26
lines changed- src
- backend
- storage/file
- tcop
- bin
- pg_ctl
- pgbench
- include
- test/regress
- tools/msvc
10 files changed
+17
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16039 | 16039 | | |
16040 | 16040 | | |
16041 | 16041 | | |
16042 | | - | |
| 16042 | + | |
16043 | 16043 | | |
16044 | 16044 | | |
16045 | 16045 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1797 | 1797 | | |
1798 | 1798 | | |
1799 | 1799 | | |
1800 | | - | |
1801 | 1800 | | |
1802 | 1801 | | |
1803 | 1802 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
895 | 895 | | |
896 | 896 | | |
897 | 897 | | |
898 | | - | |
899 | 898 | | |
900 | | - | |
901 | | - | |
902 | | - | |
903 | 899 | | |
904 | 900 | | |
905 | 901 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4770 | 4770 | | |
4771 | 4771 | | |
4772 | 4772 | | |
4773 | | - | |
| 4773 | + | |
4774 | 4774 | | |
4775 | 4775 | | |
4776 | 4776 | | |
| |||
4789 | 4789 | | |
4790 | 4790 | | |
4791 | 4791 | | |
4792 | | - | |
4793 | | - | |
| 4792 | + | |
4794 | 4793 | | |
4795 | 4794 | | |
4796 | | - | |
4797 | | - | |
4798 | | - | |
4799 | 4795 | | |
4800 | 4796 | | |
4801 | 4797 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
| 163 | + | |
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| |||
776 | 776 | | |
777 | 777 | | |
778 | 778 | | |
779 | | - | |
| 779 | + | |
780 | 780 | | |
781 | 781 | | |
782 | 782 | | |
| |||
949 | 949 | | |
950 | 950 | | |
951 | 951 | | |
952 | | - | |
| 952 | + | |
953 | 953 | | |
954 | 954 | | |
955 | 955 | | |
| |||
2069 | 2069 | | |
2070 | 2070 | | |
2071 | 2071 | | |
2072 | | - | |
| 2072 | + | |
2073 | 2073 | | |
2074 | 2074 | | |
2075 | 2075 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6662 | 6662 | | |
6663 | 6663 | | |
6664 | 6664 | | |
6665 | | - | |
6666 | 6665 | | |
6667 | | - | |
6668 | | - | |
6669 | | - | |
6670 | 6666 | | |
6671 | 6667 | | |
6672 | 6668 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | 232 | | |
236 | 233 | | |
237 | 234 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
519 | 519 | | |
520 | 520 | | |
521 | 521 | | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
522 | 530 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | | - | |
| 132 | + | |
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| |||
2229 | 2229 | | |
2230 | 2230 | | |
2231 | 2231 | | |
2232 | | - | |
| 2232 | + | |
2233 | 2233 | | |
2234 | 2234 | | |
2235 | 2235 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
274 | | - | |
275 | 274 | | |
276 | 275 | | |
277 | 276 | | |
| |||
0 commit comments
Comments
(0)