X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=lib%2Fringbuf.h;h=2bef6d3a308fb851b9a7b18b92e377c86ff0e8a2;hb=12906cb1c84b4de54874365d4a02a040ed9632d1;hp=209687512bed8f2bd71bb15be7d27ae30981acca;hpb=df29adc0f1b41be0d4c74eb1c5c975dbe11bda99;p=mirror_frr.git diff --git a/lib/ringbuf.h b/lib/ringbuf.h index 209687512..2bef6d3a3 100644 --- a/lib/ringbuf.h +++ b/lib/ringbuf.h @@ -1,21 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Circular buffer implementation. * Copyright (C) 2017 Cumulus Networks * Quentin Young - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the Free - * Software Foundation; either version 2 of the License, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for - * more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; see the file COPYING; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef _FRR_RINGBUF_H_ #define _FRR_RINGBUF_H_ @@ -126,17 +113,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