Avoid conflict with gnulib open/close macros.
authorRoland McGrath <mcgrathr@google.com>
Wed, 2 Mar 2022 00:03:58 +0000 (16:03 -0800)
committerRoland McGrath <mcgrathr@google.com>
Thu, 3 Mar 2022 19:21:36 +0000 (11:21 -0800)
commit8674f082e3f0d3f27ded5d93ebbd11cd702f5f04
tree1e12f26e02b8e3909639f4ea7b4b675fb4ff5cfc
parentdb120fb808dc24538e89b851d6dda1890aad5a1f
Avoid conflict with gnulib open/close macros.

On some systems, the gnulib configuration will decide to define open
and/or close as macros to replace the POSIX C functions.  This
interferes with using those names in C++ class or namespace scopes.

gdbsupport/
* event-pipe.cc (event_pipe::open): Renamed to ...
(event_pipe::open_pipe): ... this.
(event_pipe::close): Renamed to ...
(event_pipe::close_pipe): ... this.
* event-pipe.h (class event_pipe): Updated.
gdb/
* inf-ptrace.h (async_file_open, async_file_close): Updated.
gdbserver/
* gdbserver/linux-low.cc (linux_process_target::async): Likewise.
gdb/inf-ptrace.h
gdbserver/linux-low.cc
gdbsupport/event-pipe.cc
gdbsupport/event-pipe.h