From owner-freebsd-arch@FreeBSD.ORG Wed Jan 7 00:12:39 2015 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id F2F20785; Wed, 7 Jan 2015 00:12:38 +0000 (UTC) Received: from na01-by2-obe.outbound.protection.outlook.com (mail-by2on0143.outbound.protection.outlook.com [207.46.100.143]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "MSIT Machine Auth CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 95E276482F; Wed, 7 Jan 2015 00:12:38 +0000 (UTC) Received: from CO2PR05CA015.namprd05.prod.outlook.com (10.141.241.143) by CO1PR05MB443.namprd05.prod.outlook.com (10.141.73.152) with Microsoft SMTP Server (TLS) id 15.1.49.12; Wed, 7 Jan 2015 00:12:26 +0000 Received: from BL2FFO11FD026.protection.gbl (2a01:111:f400:7c09::119) by CO2PR05CA015.outlook.office365.com (2a01:111:e400:1429::15) with Microsoft SMTP Server (TLS) id 15.1.49.12 via Frontend Transport; Wed, 7 Jan 2015 00:12:25 +0000 Received: from P-EMF02-SAC.jnpr.net (66.129.239.16) by BL2FFO11FD026.mail.protection.outlook.com (10.173.161.105) with Microsoft SMTP Server (TLS) id 15.1.49.13 via Frontend Transport; Wed, 7 Jan 2015 00:12:25 +0000 Received: from magenta.juniper.net (172.17.27.123) by P-EMF02-SAC.jnpr.net (172.24.192.21) with Microsoft SMTP Server (TLS) id 14.3.146.0; Tue, 6 Jan 2015 16:12:24 -0800 Received: from idle.juniper.net (idleski.juniper.net [172.25.4.26]) by magenta.juniper.net (8.11.3/8.11.3) with ESMTP id t070CLW34831; Tue, 6 Jan 2015 16:12:21 -0800 (PST) (envelope-from phil@juniper.net) Received: from idle.juniper.net (localhost [127.0.0.1]) by idle.juniper.net (8.14.4/8.14.3) with ESMTP id t070C0mO005107; Tue, 6 Jan 2015 19:12:01 -0500 (EST) (envelope-from phil@idle.juniper.net) Message-ID: <201501070012.t070C0mO005107@idle.juniper.net> To: "Simon J. Gerraty" Subject: Re: Libxo bugs and fixes. In-Reply-To: <2472.1420571203@chaos> Date: Tue, 6 Jan 2015 19:12:00 -0500 From: Phil Shafer MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 0 Received-SPF: SoftFail (protection.outlook.com: domain of transitioning juniper.net discourages use of 66.129.239.16 as permitted sender) Authentication-Results: spf=softfail (sender IP is 66.129.239.16) smtp.mailfrom=phil@juniper.net; X-Forefront-Antispam-Report: CIP:66.129.239.16; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(189002)(199003)(164054003)(51704005)(47776003)(20776003)(50986999)(64706001)(68736005)(76506005)(1941001)(105596002)(6806004)(84676001)(54356999)(4396001)(53416004)(110136001)(69596002)(2950100001)(77096005)(87936001)(99396003)(48376002)(107046002)(81156004)(106466001)(21056001)(92566001)(31966008)(86362001)(46102003)(50466002)(97736003)(77156002)(120916001)(62966003); DIR:OUT; SFP:1102; SCL:1; SRVR:CO1PR05MB443; H:P-EMF02-SAC.jnpr.net; FPR:; SPF:SoftFail; MLV:sfv; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-DmarcAction: None X-Microsoft-Antispam: UriScan:; X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(3005003);SRVR:CO1PR05MB443; X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004); SRVR:CO1PR05MB443; X-Forefront-PRVS: 044968D9E1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:;SRVR:CO1PR05MB443; X-OriginatorOrg: juniper.net X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jan 2015 00:12:25.1778 (UTC) X-MS-Exchange-CrossTenant-Id: bea78b3c-4cdb-4130-854a-1d193232e5f4 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=bea78b3c-4cdb-4130-854a-1d193232e5f4; Ip=[66.129.239.16] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR05MB443 X-Mailman-Approved-At: Wed, 07 Jan 2015 02:32:31 +0000 Cc: Alfred Perlstein , John-Mark Gurney , Alfred Perlstein , Marcel Moolenaar , "arch@freebsd.org" , Poul-Henning Kamp , Marcel Moolenaar , freebsd-arch , Konstantin Belousov X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jan 2015 00:12:39 -0000 "Simon J. Gerraty" writes: >Calling flush for every xo_* call would seem like a bad idea no? Yup, so callers would need to set the XOF_FLUSH flag by hand if they want this odd behavior. >The app/caller is the only one to know when a suitable flush point has >been reached (if necessary). > >It should suffice if xo_flush() does what the name implies. Cool. Then I'm done ;^) >If someone is using something other than stdio for a handle, they just >need to tell libxo a function to call in response to xo_flush ? Exactly. Or just flush it themselves in their write function, if they needed an immediate flushing model. >Does it need to be more complicated than that? Nope. Thanks, Phil