• Damien Miller's avatar
    - avsm@cvs.openbsd.org 2005/05/24 17:32:44 · b253cc42
    Damien Miller authored
         [atomicio.c atomicio.h authfd.c monitor_wrap.c msg.c scp.c sftp-client.c]
         [ssh-keyscan.c sshconnect.c]
         Switch atomicio to use a simpler interface; it now returns a size_t
         (containing number of bytes read/written), and indicates error by
         returning 0.  EOF is signalled by errno==EPIPE.
         Typical use now becomes:
    
         if (atomicio(read, ..., len) != len)
                 err(1,"read");
    
         ok deraadt@, cloder@, djm@
    b253cc42
authfd.c 16.4 KB