From 6c55ee964e600cba385afabb8438b9d09eb509f2 Mon Sep 17 00:00:00 2001 From: Quentin Young Date: Mon, 26 Apr 2021 18:42:19 -0400 Subject: Revert "lib: add ringbuf socket read function" This reverts commit d9d7af1a52d77ed0074ebb72f87678308296e74e. --- lib/ringbuf.h | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'lib/ringbuf.h') diff --git a/lib/ringbuf.h b/lib/ringbuf.h index 209687512..b8f4d9798 100644 --- a/lib/ringbuf.h +++ b/lib/ringbuf.h @@ -126,17 +126,6 @@ void ringbuf_reset(struct ringbuf *buf); */ void ringbuf_wipe(struct ringbuf *buf); -/** - * Perform a socket/file `read()` in to the ring buffer. - * - * \param buf the ring buffer pointer. - * \param sock the file descriptor. - * \returns the number of bytes read, `0` on connection close or `-1` with - * `errno` pointing the error (see `readv()` man page for more - * information.) - */ -ssize_t ringbuf_read(struct ringbuf *buf, int sock); - #ifdef __cplusplus } #endif -- cgit v1.2.3