simon-git: doit (master): Simon Tatham

Commits to Tartarus hosted VCS tartarus-commits at lists.tartarus.org
Tue Oct 9 20:36:14 BST 2018


TL;DR:
  ab51c9b Move msgbuf out of doit.c.
  861987c Report network errors using msgbuf.

Repository:     https://git.tartarus.org/simon/doit.git
On the web:     https://git.tartarus.org/?p=simon/doit.git
Branch updated: master
Committer:      Simon Tatham <anakin at pobox.com>
Date:           2018-10-09 20:36:14

commit ab51c9bdea71c7dd2faf816033497cdbe01eafdb
web diff https://git.tartarus.org/?p=simon/doit.git;a=commitdiff;h=ab51c9bdea71c7dd2faf816033497cdbe01eafdb;hp=ed986d670acad806c09f12196f72e6728bb4a7f5
Author: Simon Tatham <anakin at pobox.com>
Date:   Tue Oct 9 20:29:54 2018 +0100

    Move msgbuf out of doit.c.
    
    I'm about to reuse it for reporting network errors in listener.c, so
    it needs to be accessible from both sides. While I'm about it, I've
    further separated it into the platform-independent stuff that I could
    include in doitclient too if necessary, and the Windows-specific
    function that gets the last OS error code and formats it.

 Makefile.vc |  6 +++--
 doit.c      | 76 +++----------------------------------------------------------
 msgbuf.c    | 39 +++++++++++++++++++++++++++++++
 msgbuf.h    | 23 +++++++++++++++++++
 winerror.c  | 35 ++++++++++++++++++++++++++++
 5 files changed, 104 insertions(+), 75 deletions(-)

commit 861987c94d3098bd6ebb5add807efe09b3901b36
web diff https://git.tartarus.org/?p=simon/doit.git;a=commitdiff;h=861987c94d3098bd6ebb5add807efe09b3901b36;hp=ab51c9bdea71c7dd2faf816033497cdbe01eafdb
Author: Simon Tatham <anakin at pobox.com>
Date:   Tue Oct 9 20:31:01 2018 +0100

    Report network errors using msgbuf.
    
    This should mean that things like WSAEADDRINUSE get sensible messages,
    without me having to write a huge switch statement to match them all.

 listener.c | 72 +++++++++++++++++++++++++++++++++++++-------------------------
 msgbuf.h   |  1 +
 winerror.c |  5 +++++
 3 files changed, 49 insertions(+), 29 deletions(-)



More information about the tartarus-commits mailing list