mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 10:52:30 +00:00
14 lines
320 B
C++
14 lines
320 B
C++
#pragma once
|
|
|
|
#include <cstddef>
|
|
|
|
/// IO helpers
|
|
|
|
/// Write loop with EINTR handling.
|
|
///
|
|
/// This function is safe to use in static initializers.
|
|
///
|
|
/// @param size - len of @data or 0 to use strlen()
|
|
/// @return true if write was succeed, otherwise false.
|
|
bool writeRetry(int fd, const char * data, size_t size = 0);
|