OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
CVS: cvs.openbsd.org: src

From: Anil Madhavapeddy (avsmcvs.openbsd.org)
Date: Tue May 24 2005 - 12:32:44 CDT


CVSROOT: /cvs
Module name: src
Changes by: avsmcvs.openbsd.org 2005/05/24 11:32:44

Modified files:
        usr.bin/ssh : atomicio.c atomicio.h authfd.c monitor_wrap.c
                         msg.c scp.c sftp-client.c ssh-keyscan.c
                         sshconnect.c

Log message:
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