Adhemerval Zanella
e0d2eb5a79
linux: Implement tmpfile with O_TMPFILE (BZ#21530)
...
This patch adds O_TMPFILE support to tmpfile on Linux. This is
similar to the previous suggestion by Andreas Schwab [1] with the
difference the file descriptor creation is parameterized to
compartmentalize Linux only open flags (O_TMPFILE) on sysdeps.
Checked on x86_64-linux-gnu.
Adhemerval Zanella <adhemerval.zanella@linaro.org>
Andreas Schwab <schwab@suse.de>
[BZ #21530 ]
* include/stdio.h (__gen_tempfd): New function.
* stdio-common/Makefile (routines): Add gentempfd.
* stdio-common/gentempfd.c: New file.
* sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
* stdio-common/tmpfile.c (tmpfile): First try to use a system specific
unnamed file first.
[1] https://sourceware.org/ml/libc-alpha/2017-06/msg01293.html
2017-09-01 09:52:47 -03:00
..
2017-01-01 00:14:16 +00:00
2017-06-29 09:34:45 +02:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2013-06-05 20:44:03 +00:00
2017-02-25 09:59:46 -05:00
2012-05-17 12:59:08 -04:00
2014-12-15 10:09:33 +01:00
2014-12-15 10:09:33 +01:00
2014-12-15 10:09:33 +01:00
2017-03-22 08:44:32 -04:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2017-04-07 07:48:57 -04:00
2017-09-01 09:52:47 -03:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2017-09-01 09:52:47 -03:00
2017-01-01 00:14:16 +00:00
2017-08-31 18:52:00 +02:00
2017-06-07 17:08:21 -03:00
2017-06-07 17:08:21 -03:00
2017-01-01 00:14:16 +00:00
2017-06-07 17:08:21 -03:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2017-06-08 13:58:17 -04:00
2013-10-12 14:47:50 +02:00
2017-08-18 10:53:47 -03:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2017-08-22 07:50:57 -07:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2017-02-25 09:59:46 -05:00
2017-02-25 09:59:46 -05:00
2017-01-01 00:14:16 +00:00
2017-02-25 09:59:46 -05:00
2015-09-03 20:24:54 +00:00
2015-09-03 20:24:54 +00:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2017-06-14 07:51:30 -04:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2015-08-06 02:59:04 -04:00
2017-01-01 00:14:16 +00:00
2017-02-25 09:59:46 -05:00
2013-06-07 22:24:35 +00:00
2017-01-01 00:14:16 +00:00
2017-09-01 09:52:47 -03:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2014-11-05 15:24:08 +05:30
2015-08-06 02:59:04 -04:00
2017-01-01 00:14:16 +00:00
2017-02-16 17:33:18 -05:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2012-03-08 03:02:24 -05:00
2017-01-01 00:14:16 +00:00
2017-02-25 09:47:51 -05:00
2017-01-01 00:14:16 +00:00
2014-11-05 15:24:08 +05:30
2014-11-05 15:24:08 +05:30
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2017-02-25 09:59:46 -05:00
2017-01-01 00:14:16 +00:00
2017-02-25 09:59:46 -05:00
2017-01-01 00:14:16 +00:00
2014-11-05 15:24:08 +05:30
2017-01-01 00:14:16 +00:00
2017-02-25 09:59:46 -05:00
2017-01-01 00:14:16 +00:00
2014-11-05 15:24:08 +05:30
2017-01-01 00:14:16 +00:00
2014-11-05 15:24:08 +05:30
2017-01-01 00:14:16 +00:00
2017-02-25 09:59:46 -05:00
2017-06-29 09:33:44 +02:00
2017-06-29 16:46:03 +02:00
2017-02-16 17:33:18 -05:00
2014-11-05 15:24:08 +05:30
2017-02-25 09:59:46 -05:00
2017-01-01 00:14:16 +00:00
2017-01-01 00:14:16 +00:00
2016-11-16 22:46:48 +00:00
2017-08-31 18:52:00 +02:00
2017-06-20 20:30:06 -04:00
2017-01-01 00:14:16 +00:00
2015-10-16 20:21:49 +00:00