aboutsummaryrefslogtreecommitdiff
path: root/io/channel-null.c
diff options
context:
space:
mode:
authormanish.mishra <manish.mishra@nutanix.com>2022-12-20 18:44:17 +0000
committerJuan Quintela <quintela@redhat.com>2023-02-06 19:22:56 +0100
commit84615a19ddf2bfb38d7b3a0d487d2397ee55e4f3 (patch)
tree80eff6fda458ab19eb99ba928aac2da4f5e66b17 /io/channel-null.c
parentbd9510d38546a19aa2e58e1a94597acfb0fd82d4 (diff)
io: Add support for MSG_PEEK for socket channel
MSG_PEEK peeks at the channel, The data is treated as unread and the next read shall still return this data. This support is currently added only for socket class. Extra parameter 'flags' is added to io_readv calls to pass extra read flags like MSG_PEEK. Reviewed-by: Peter Xu <peterx@redhat.com> Reviewed-by: Daniel P. Berrange <berrange@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Suggested-by: Daniel P. Berrange <berrange@redhat.com> Signed-off-by: manish.mishra <manish.mishra@nutanix.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'io/channel-null.c')
-rw-r--r--io/channel-null.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/io/channel-null.c b/io/channel-null.c
index 75e3781507..4fafdb770d 100644
--- a/io/channel-null.c
+++ b/io/channel-null.c
@@ -60,6 +60,7 @@ qio_channel_null_readv(QIOChannel *ioc,
size_t niov,
int **fds G_GNUC_UNUSED,
size_t *nfds G_GNUC_UNUSED,
+ int flags,
Error **errp)
{
QIOChannelNull *nioc = QIO_CHANNEL_NULL(ioc);