mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-28 01:50:48 +00:00
[gdb] Handle EINTR in ser-event.c
Use gdb syscall wrappers to handle EINTR in ser-event.c. Tested on aarch64-linux.
This commit is contained in:
@@ -101,6 +101,17 @@ read (int fd, void *buf, size_t count)
|
||||
return gdb::handle_eintr (-1, ::read, fd, buf, count);
|
||||
}
|
||||
|
||||
template<typename... Args> int fcntl (int fd, int op, Args... args)
|
||||
{
|
||||
return gdb::handle_eintr (-1, ::fcntl, fd, op, args...);
|
||||
}
|
||||
|
||||
inline ssize_t
|
||||
write (int fd, const void *buf, size_t count)
|
||||
{
|
||||
return gdb::handle_eintr (-1, ::write, fd, buf, count);
|
||||
}
|
||||
|
||||
} /* namespace gdb */
|
||||
|
||||
#endif /* GDBSUPPORT_EINTR_H */
|
||||
|
||||
Reference in New Issue
Block a user