Skip to content
Snippets Groups Projects
Commit 105a63de authored by Konstantin Osipov's avatar Konstantin Osipov
Browse files

C-coding-style: document the coding style in use.

Document the coding style in use. Quote Linux Kernel
coding style as the basis. Add Tarantool-specific
extensions.
parent 4e27362f
No related merge requests found
......@@ -673,6 +673,16 @@ read_atleast(int fd, struct tbuf *b, size_t to_read)
return 0;
}
/** Write all data to a socket.
*
* This function is equivalent to 'write', except it would ensure
* that all data is written to the file unless a non-ignorable
* error occurs.
*
* @retval 0 Success
*
* @reval 1 An error occurred (not EINTR).
*/
static int
write_all(int fd, void *data, size_t len)
{
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment