summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/atomicio.c
AgeCommit message (Collapse)Author
2006-04-16reorder sanity test so that it cannot dereference past the end of theDamien Miller
iov array; well spotted canacar@!
2006-04-16introduce atomiciov() function that wraps readv/writev to retryDamien Miller
interrupted transfers like atomicio() does for read/write; feedback deraadt@ dtucker@ stevesk@ ok deraadt@
2006-04-01ANSIfy; requested deraadt@Damien Miller
2006-03-25Put $OpenBSD$ tags back (as comments) to replace the RCSID()s thatDamien Miller
Theo nuked - our scripts to sync -portable need them in the files
2006-03-19RCSID() can dieTheo de Raadt
2006-02-11type correctness; from Ray Lai in PR 5011; ok millert@Otto Moerbeek
2005-05-24Switch atomicio to use a simpler interface; it now returns a size_tAnil Madhavapeddy
(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@
2003-07-31correct comment: atomicio takes vwrite, not write; deraadt@ okAnil Madhavapeddy
2003-06-28deal with typing of write vs read in atomicioTheo de Raadt
2001-05-08no need for xmalloc.h, thanks to espie@Markus Friedl
2001-03-02make copyright lines the same formatTheo de Raadt
2001-01-21split ssh.h and try to cleanup the #include mess. remove unnecessary #includes.Markus Friedl
rename util.[ch] -> misc.[ch]
2000-10-18undoMarkus Friedl
2000-10-17return number of characters processed; ok deraadt@Markus Friedl
2000-09-07cleanup copyright notices on all files. I have attempted to be accurate withTheo de Raadt
the details. everything is now under Tatu's licence (which I copied from his readme), and/or the core-sdi bsd-ish thing for deattack, or various openbsd developers under a 2-term bsd licence. We're not changing any rules, just being accurate.
2000-06-20OpenBSD tagMarkus Friedl
2000-03-16-pedantic: signed vs. unsigned, void*-arithm, etcMarkus Friedl
2000-02-01int atomicio -> ssize_t (for alpha). ok deraadt@David Leonard
1999-12-06move atomicio into it's own file. wrap all socket write()s which were doingTheo de Raadt
write(sock, buf, len) != len, with atomicio() calls.