public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
* [PATCH 0/4] New line reading implementation
@ 2022-06-17  3:10 David Gibson
  2022-06-17  3:10 ` [PATCH 1/4] Add cleaner line-by-line reading primitives David Gibson
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: David Gibson @ 2022-06-17  3:10 UTC (permalink / raw)
  To: passt-dev

[-- Attachment #1: Type: text/plain, Size: 886 bytes --]

As discussed on our call, the current line_read() implementation is
pretty ugly and has some definite bugs.  This series replaces it with
a new implementation which should be more solid and more readable.

The new implementation is larger than I'd really like, but it turns
out its fiddlier to handle the various edge cases than you might
think.

David Gibson (4):
  Add cleaner line-by-line reading primitives
  Parse resolv.conf with new lineread implementation
  Use new lineread implementation for procfs_scan_listen()
  Remove unused line_read()

 Makefile   |   8 ++--
 conf.c     |  22 +++++++----
 lineread.c | 108 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 lineread.h |  23 ++++++++++++
 util.c     |  64 +++----------------------------
 5 files changed, 155 insertions(+), 70 deletions(-)
 create mode 100644 lineread.c
 create mode 100644 lineread.h

-- 
2.36.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-06-24  2:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-17  3:10 [PATCH 0/4] New line reading implementation David Gibson
2022-06-17  3:10 ` [PATCH 1/4] Add cleaner line-by-line reading primitives David Gibson
2022-06-23  9:31   ` Stefano Brivio
2022-06-24  2:12     ` David Gibson
2022-06-17  3:10 ` [PATCH 2/4] Parse resolv.conf with new lineread implementation David Gibson
2022-06-17  3:10 ` [PATCH 3/4] Use new lineread implementation for procfs_scan_listen() David Gibson
2022-06-17  3:10 ` [PATCH 4/4] Remove unused line_read() David Gibson

Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).