From owner-freebsd-current@FreeBSD.ORG Fri Jul 18 22:22:08 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C167D9F4 for ; Fri, 18 Jul 2014 22:22:08 +0000 (UTC) Received: from nm19-vm0.bullet.mail.bf1.yahoo.com (nm19-vm0.bullet.mail.bf1.yahoo.com [98.139.213.162]) (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 67AE32606 for ; Fri, 18 Jul 2014 22:22:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1405721929; bh=veLh5x8qanhUm8FFwQ/oDkY/eHwPm0RueGEv5kjHyrE=; h=Received:Received:Received:X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:Content-Type:Content-Transfer-Encoding; b=BpdiNcxwMljyaTqrqKfzOhs+k/xJ5RWNRrKh7BC3n997UewdCRbEQeS1V83uoy6KfU69Qa/p2iG7dn+AxGulWRMWttthQfkgs0rG8KXyJbjtw2t1tzBO3o5kQwvxfcj6MBnoos73jnUZgl+2BdhwojoHR4LZsA1l/NneS3I1zE1S0F/67nzXPgE+N6jb0P97m9p13GTKUAmki5w+8aTXG444SG4UmNOTU/GsL5ZWCaJXbG/AhUrQRYnLDdNCMZ9N/F3A7NJx0sLtOmCXX8bcEk2G6oB8fRKL7AU+bBHEqEZA5YqWhTbvEz02ti4gVdpU9ob6/8/Yi409qBN0EYlE1Q== DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s2048; d=yahoo.com; b=Mnt/71/2c2BciPER0uvsgnpqv5aEvljIpIpNTMLQwFZ6+7D+BNVeG3UIcdD0brg8417bD59nnVshB3rZqeQeHHz0v2ia8DxDBrwt4OMmyhjTmlHbDEechbRztr96ZlWW1ondWDMqMMQbDMiOGZAVep0lm7lbVecwlpLvBvi+F34aZr4NPBNkQ3JV9EZVmhBK5NbYgDv+1ssnKTj0nd//zmbSn2sKDdSvQzIPnRpmFTJVdWyIp+e/2XIv9kv/mCMSKZ4JWN9WIgsO9eMgMHcmblbJ1Yz7BhsZzi3FmZ3gqmoeMV86LBw45fUvYKbCw2CFbwvb3mjK1xNIojTLoPR8jw==; Received: from [66.196.81.170] by nm19.bullet.mail.bf1.yahoo.com with NNFMP; 18 Jul 2014 22:18:49 -0000 Received: from [68.142.230.75] by tm16.bullet.mail.bf1.yahoo.com with NNFMP; 18 Jul 2014 22:18:49 -0000 Received: from [127.0.0.1] by smtp232.mail.bf1.yahoo.com with NNFMP; 18 Jul 2014 22:18:49 -0000 X-Yahoo-Newman-Id: 729364.2279.bm@smtp232.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: PXuc.qcVM1nwapM7rmbb_SMvGgAUSt5HyOc_RPepj7W1KCw 4gSr77Fwa78ITs9i46QHWvPYAFbWPkjyyGTCwcHyjBQPFoEo48km1w9LzrZ1 guIYE04nDgM1wQW4DrhRRA7ZvhZfjH_UvUHF_IvZK.HoHTLHENyxa5aAGV3L XEu8VAF_IW0RvTCKFn5wNjtTsvMlLXtsNLrWqTYh5f.wfEVB_s8RyxyUgkhg Kcn9YlU1uedET1EanL7uimf3ZSY2_FpZRYxsZe6XWgc_tULbjphgx_tOBbuE TC4aRsiYGAycMCcwc0gpOrkGag5gCZRRyap3t5NQquPjIS4nOcnNUHUDgKBz LKWtxYfRaF8NJKJNme5_wQjBALQpe3wILJeNT07owKO0zlsbyii6ZsEbTFyz GyVHq8q4v0MmSH6QfHji996XE_TfLZE0fELlzlI2Imm91HYx3lYX6Crt94aA wbPq04yGFYLzh3fG8Wuqb50pOcEsgCbVMhFtSDW4Ud7JTIkKNTSSDfZ7AUUu VkA7vj7QU3pdVF3z4P2tjB7VuOh3NSbET_zwKEUYqhM3o2gSj4DX8J7wTK8J zC7KHggMQPBBBvbCpSilEOTGmyZW_xwtyQSLT.aV52xq7hKs- X-Yahoo-SMTP: xcjD0guswBAZaPPIbxpWwLcp9Unf Message-ID: <53C99D4F.8070603@freebsd.org> Date: Fri, 18 Jul 2014 17:18:55 -0500 From: Pedro Giffuni User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: freebsd-current@FreeBSD.org Subject: CFR - fflush() behaviour change Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jul 2014 22:22:08 -0000 Hi; Out of curiosity I took a peek at Apple's libc and generated some diffs against the libc in FreeBSD's 8. Most of the changes are not relevant to FreeBSD anymore as we have grown alternative implementations for things like xlocale. Nevertheless, there are still some small things to look at. In the hope of avoiding surprises, and because I wanted to try out phabricator, I have this change for review: https://phabric.freebsd.org/D440 While the change was inspired on Apple's patch, it was cleaned up with help from Bruce Evans. I did some basic testing but it can still use some more review/testing. Pedro.