summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/monitor_fdpass.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* use the new variant log macros instead of prepending __func__ anddjm2020-10-181-11/+9
| | | | appending ssh_err(r) manually; ok markus@
* Print ssize_t with %zd; ok deraadt@ mmcc@jca2016-02-291-5/+3
|
* zero cmsgbuf before use; we initialise the bits we use butdjm2015-02-251-1/+3
| | | | valgrind still spams warning on it
* avoid spinning when fd passing on nonblocking sockets by calling poll()djm2010-01-121-5/+16
| | | | in the EINTR/EAGAIN path, much like we do in atomicio; ok dtucker@
* Retry sendmsg/recvmsg on EAGAIN and EINTR; ok djm@dtucker2008-11-301-3/+9
|
* msg_controllen has to be CMSG_SPACE so that the kernel can account forderaadt2008-03-241-3/+3
| | | | | | | each cmsg_len (ie. msg_controllen = sum of CMSG_ALIGN(cmsg_len). This works now that kernel fd passing has been fixed to accept a bit of sloppiness because of this ABI repair. lots of discussion with kettenis
* Repair the simple cases for msg_controllen where it should just bederaadt2008-03-151-3/+3
| | | | | CMSG_SIZE(sizeof(int)), not sizeof(buffer) which may be larger because of alignment; ok kettenis hshoexer
* Correct CMSG_SPACE and CMSG_LEN usage everywhere in the tree. Due toderaadt2008-03-131-9/+9
| | | | an extensive discussion with otto, kettenis, millert, and hshoexer
* use a union to ensure alignment of the cmsg (pay attention: various otherderaadt2008-03-021-5/+11
| | | | parts of the tree need this treatment too); ok djm
* make file descriptor passing code return an error rather than call fatal()djm2007-09-041-14/+30
| | | | | when it encounters problems, and use this to make session multiplexing masters survive slaves failing to pass all stdio FDs; ok markus@
* almost entirely get rid of the culture of ".h files that include .h files"deraadt2006-08-031-3/+2
| | | | | ok djm, sort of ok stevesk makes the pain stop in one easy step
* move #include <string.h> out of includes.hstevesk2006-07-221-1/+2
|
* move #include <errno.h> out of includes.h; ok markus@stevesk2006-07-111-1/+3
|
* move #include <sys/socket.h> out of includes.hstevesk2006-07-081-1/+3
|
* Put $OpenBSD$ tags back (as comments) to replace the RCSID()s thatdjm2006-03-251-0/+1
| | | | Theo nuked - our scripts to sync -portable need them in the files
* RCSID() can diederaadt2006-03-191-1/+0
|
* extra check for no message case; ok markus, deraadt, hshoexer, henningdjm2004-08-131-1/+3
|
* make ssh -Wshadow clean, no functional changesavsm2004-06-211-5/+5
| | | | markus@ ok
* use ssize_t for recvmsg() and sendmsg() returnderaadt2002-06-261-7/+8
|
* __FUNCTION__ -> __func__markus2002-06-041-6/+6
|
* minor cleanup and more error checking; ok markus@stevesk2002-03-241-7/+17
|
* file descriptor passing abstraction for ssh-privsepprovos2002-03-181-0/+86