Adhemerval Zanella
456b3c08b6
io: Refactor close_range and closefrom
...
Now that Hurd implementis both close_range and closefrom (f2c996597d),
we can make close_range() a base ABI, and make the default closefrom()
implementation on top of close_range().
The generic closefrom() implementation based on __getdtablesize() is
moved to generic close_range(). On Linux it will be overriden by
the auto-generation syscall while on Hurd it will be a system specific
implementation.
The closefrom() now calls close_range() and __closefrom_fallback().
Since on Hurd close_range() does not fail, __closefrom_fallback() is an
empty static inline function set by__ASSUME_CLOSE_RANGE.
The __ASSUME_CLOSE_RANGE also allows optimize Linux
__closefrom_fallback() implementation when --enable-kernel=5.9 or
higher is used.
Finally the Linux specific tst-close_range.c is moved to io and
enabled as default. The Linuxism and CLOSE_RANGE_UNSHARE are
guarded so it can be built for Hurd (I have not actually test it).
Checked on x86_64-linux-gnu, i686-linux-gnu, and with a i686-gnu
build.
2021-11-24 09:09:37 -03:00
..
2021-07-19 07:56:21 +02:00
2021-11-17 12:20:13 +01:00
2021-01-02 12:17:34 -08:00
2014-12-16 18:18:49 +00:00
2020-07-21 07:33:20 +02:00
2021-07-28 17:45:14 +05:30
2020-12-10 11:11:20 +01:00
2020-07-08 17:25:57 +02:00
2021-09-27 09:13:06 -03:00
2021-06-25 11:55:27 +02:00
2020-07-08 17:25:57 +02:00
2021-01-02 12:17:34 -08:00
2018-06-27 19:20:37 +02:00
2021-01-02 12:17:34 -08:00
2019-02-16 08:25:16 +01:00
2017-10-01 15:10:27 -07:00
2019-03-01 15:21:32 -03:00
2018-02-15 21:00:02 +00:00
2021-01-02 12:17:34 -08:00
2017-10-03 01:33:38 +02:00
2021-11-17 12:20:13 +01:00
2021-09-03 22:06:44 +05:30
2021-07-14 06:33:58 -07:00
2017-05-15 10:23:28 -03:00
2014-12-11 21:41:30 +00:00
2016-10-28 22:40:16 -04:00
2018-02-23 13:54:53 +00:00
2021-06-22 12:09:52 -03:00
2021-07-07 08:41:24 +02:00
2017-09-26 16:53:44 -07:00
2019-06-18 16:42:10 +02:00
2016-09-23 08:43:56 -04:00
2020-03-25 14:34:23 -05:00
2020-11-13 12:59:19 -03:00
2019-03-01 15:26:36 -03:00
2016-09-23 08:43:56 -04:00
2018-06-26 13:22:53 -03:00
2021-06-15 10:42:11 -03:00
2021-08-01 21:24:04 -04:00
2018-09-04 19:52:06 +00:00
2021-06-22 12:09:52 -03:00
2021-01-05 11:33:16 -03:00
2019-08-15 15:18:34 +00:00
2014-12-11 21:41:30 +00:00
2017-10-01 17:52:15 -07:00
2019-02-16 08:25:16 +01:00
2021-06-15 10:42:11 -03:00
2021-06-15 10:42:11 -03:00
2017-04-07 07:45:53 -04:00
2021-07-01 16:46:59 +02:00
2017-10-01 15:15:30 -07:00
2021-01-02 12:17:34 -08:00
2016-04-29 22:18:21 -04:00
2020-07-21 07:33:20 +02:00
2020-07-21 07:33:20 +02:00
2021-01-05 11:33:16 -03:00
2017-09-28 01:05:18 +02:00
2017-10-01 17:35:46 -07:00
2021-01-02 12:17:34 -08:00
2021-09-03 22:06:44 +05:30
2021-09-21 08:00:44 -07:00
2020-12-08 18:15:27 +00:00
2019-02-16 08:25:16 +01:00
2021-01-02 12:17:34 -08:00
2021-05-21 22:35:00 +02:00
2021-05-22 05:09:15 -07:00
2021-07-07 18:33:52 +02:00
2020-05-06 17:35:40 +02:00
2021-01-02 12:17:34 -08:00
2021-10-21 11:23:53 -03:00
2021-09-03 22:06:44 +05:30
2021-09-03 22:06:44 +05:30
2021-01-02 12:17:34 -08:00
2021-07-22 18:38:04 +05:30
2021-01-02 12:17:34 -08:00
2021-09-15 22:57:35 +00:00
2021-07-22 18:38:02 +05:30
2017-10-01 17:37:42 -07:00
2020-04-30 08:52:08 -05:00
2021-06-25 12:21:12 +02:00
2021-07-07 18:33:52 +02:00
2021-07-19 07:56:57 +02:00
2021-07-07 18:33:52 +02:00
2017-11-23 14:08:11 +01:00
2016-09-23 08:43:56 -04:00
2017-10-01 17:31:05 -07:00
2020-04-30 08:52:08 -05:00
2021-06-25 12:20:47 +02:00
2021-06-30 08:43:37 +02:00
2020-07-21 07:33:20 +02:00
2021-01-02 12:17:34 -08:00
2019-02-16 08:25:16 +01:00
2021-09-21 08:00:44 -07:00
2019-02-16 08:25:16 +01:00
2021-03-12 10:19:22 -03:00
2021-07-19 07:56:21 +02:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2020-02-20 08:57:01 +01:00
2021-01-05 11:33:16 -03:00
2019-05-02 11:42:51 +02:00
2021-01-02 12:17:34 -08:00
2021-11-22 13:43:22 -03:00
2020-07-21 07:33:20 +02:00
2021-07-09 20:09:14 +02:00
2021-05-05 17:19:38 +02:00
2020-11-11 02:36:22 +01:00
2019-10-09 17:48:41 -03:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-09-24 20:11:56 +00:00
2019-03-13 09:42:09 -04:00
2016-09-23 08:43:56 -04:00
2021-07-07 18:33:52 +02:00
2021-07-22 18:37:57 +05:30
2021-10-26 16:51:29 -05:00
2020-10-27 09:54:50 -03:00
2020-04-06 23:05:11 +02:00
2020-05-05 19:36:25 +02:00
2017-10-01 17:48:24 -07:00
2021-08-15 07:09:58 +09:00
2016-09-23 08:43:56 -04:00
2021-11-24 09:09:37 -03:00
2021-06-30 08:43:37 +02:00
2021-01-02 12:17:34 -08:00
2019-11-06 09:20:52 -03:00
2019-02-16 08:25:16 +01:00
2020-04-30 08:52:08 -05:00
2017-06-08 13:58:17 -04:00