mariadb/storage/innobase/buf
Daniel Black fafec1a9cc MDEV-8743: where O_CLOEXEC is available, use for innodb buf_dump
As this is the only moderately critical fopened for writing file,
create an alternate path to use open and fdopen for non-glibc platforms
that support O_CLOEXEC (BSDs).

Tested on Linux (by modifing the GLIBC defination) to take this
alternate path:

$ cd /proc/23874
$ more fdinfo/71
pos:    0
flags:  02100001
mnt_id: 24
$ ls -la fd/71
l-wx------. 1 dan dan 64 Mar 14 13:30 fd/71 -> /dev/shm/var_auto_i7rl/mysqld.1/data/ib_buffer_pool.incomplete
2018-03-14 13:31:31 +11:00
..
buf0buddy.cc Merge branch 'github/10.1' into 10.2 2018-02-06 14:50:50 +01:00
buf0buf.cc Allocate lock_sys statically 2018-02-23 08:18:18 +02:00
buf0checksum.cc MDEV-11939: innochecksum mistakes a file for an encrypted one (page 0 invalid) 2017-08-03 08:29:36 +03:00
buf0dblwr.cc MDEV-11369 Instant ADD COLUMN for InnoDB 2017-10-06 09:50:10 +03:00
buf0dump.cc MDEV-8743: where O_CLOEXEC is available, use for innodb buf_dump 2018-03-14 13:31:31 +11:00
buf0flu.cc Make possible to use clang on Windows (clang-cl) 2018-02-20 21:17:36 +00:00
buf0lru.cc Merge branch 'github/10.1' into 10.2 2018-02-06 14:50:50 +01:00
buf0rea.cc Adjust the instrumentation and test 2017-10-18 11:53:45 +03:00