From owner-freebsd-hackers@freebsd.org Thu Feb 4 11:07:05 2016 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4B524A9CD22 for ; Thu, 4 Feb 2016 11:07:05 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from zxy.spb.ru (zxy.spb.ru [195.70.199.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0CBC21434; Thu, 4 Feb 2016 11:07:05 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from slw by zxy.spb.ru with local (Exim 4.86 (FreeBSD)) (envelope-from ) id 1aRHkb-0006Hy-I7; Thu, 04 Feb 2016 14:07:01 +0300 Date: Thu, 4 Feb 2016 14:07:01 +0300 From: Slawa Olhovchenkov To: Ian Lepore Cc: Konstantin Belousov , Mateusz Guzik , freebsd-hackers@freebsd.org, Mateusz Guzik Subject: Re: [PATCH 1/2] fork: pass arguments to fork1 in a dedicated structure Message-ID: <20160204110701.GB88527@zxy.spb.ru> References: <20160201103632.GL91220@kib.kiev.ua> <1454386069-29657-1-git-send-email-mjguzik@gmail.com> <1454386069-29657-2-git-send-email-mjguzik@gmail.com> <20160202131145.GT91220@kib.kiev.ua> <1454423299.11162.27.camel@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1454423299.11162.27.camel@freebsd.org> User-Agent: Mutt/1.5.24 (2015-08-30) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: slw@zxy.spb.ru X-SA-Exim-Scanned: No (on zxy.spb.ru); SAEximRunCond expanded to false X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Feb 2016 11:07:05 -0000 On Tue, Feb 02, 2016 at 07:28:19AM -0700, Ian Lepore wrote: > > Would be great to not use initializer in declaration, i.e. use > > bzero() > > instead of c99 designated initializers. > > This would be a better suggestion if the compiler recognized and > optimized bzero() with inline code like it does for those forbidden > assignments. This is imposible until bzero() is nonstandart and implemeted in seperate file.