Re: Small statfs madness

2012-12-28 Thread Vadim Zhukov
25.12.2012 18:25 пользователь Vadim Zhukov persg...@gmail.com написал: Hello all (again). Process of looking at the *statfs() implementations discovered something fun: 0. struct mount contains mnt_stat pointer to struct statfs, and the later one is even called a cache in

Re: M_DONTWAIT - M_NOWAIT

2012-12-28 Thread Todd C. Miller
On Fri, 28 Dec 2012 11:50:49 -0200, Gleydson Soares wrote: following diff tweak malloc(9) to use M_NOWAIT instead of M_DONTWAIT. this will make the code more consistent since that M_DONTWAIT is a flag defin ed for mbuf(9), so we shouldn't to confuse. no functional change since that

Re: M_DONTWAIT - M_NOWAIT

2012-12-28 Thread Gleydson Soares
On Fri, Dec 28, 2012 at 1:25 PM, Todd C. Miller todd.mil...@courtesan.com wrote: OK for all but that m_split() change where M_DONTWAIT is actually appropriate. We shouldn't be using M_DONTWAIT for malloc() but it is correct for the mbuf functions. Ooops. good catch. m_split() was changed by a

Re: relayd uses more socket splicing

2012-12-28 Thread Alexander Bluhm
Hi, benno@ triggered a crash in with previous relayd splicing diff, so here is the fixed version for -current. bluhm Index: usr.sbin/relayd/relay.c === RCS file: /data/mirror/openbsd/cvs/src/usr.sbin/relayd/relay.c,v retrieving