From owner-svn-src-head@freebsd.org Wed Aug 5 16:49:53 2015 Return-Path: Delivered-To: svn-src-head@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 2962B9B4B97 for ; Wed, 5 Aug 2015 16:49:53 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from nm2-vm1.bullet.mail.bf1.yahoo.com (nm2-vm1.bullet.mail.bf1.yahoo.com [98.139.213.158]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D10E31E33 for ; Wed, 5 Aug 2015 16:49:52 +0000 (UTC) (envelope-from pfg@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1438793388; bh=iHquILCHdNBvIBAMvcXSmdtIa1RKwtevIr/o2PF6V74=; h=Subject:To:References:From:Date:In-Reply-To:From:Subject; b=i+J5issgIrMvGMSlCPbwXLK5tIJIKFdH5d6NomaSXzuRyY/DUIrWfzOGdAtQb3qASURsSHr4mooyEka/E+Zc6ILrlCLqVJ7qr2xq/jDKNME91fwvapt44FIjD7EfBKGDKWTmGUiXB1x8pcsRAR4h+yelE1hnGOp7TfWkgQ++kng94TMdyKT7m35PvVtDUm7xu9kGyPX04lM4MP7+MNrgWDIMt/MZ7E+Ke1Pi7rW322iC8CV+N6w+L5nuTi2WPnfDCuiJUaM0+Dett8uvAczm14Wm+axDYqmt+ZM4j6V7ppTjdW72E0660oDb0ktc+jzKye+FQnutSSt67CVTJ6FD8w== Received: from [66.196.81.174] by nm2.bullet.mail.bf1.yahoo.com with NNFMP; 05 Aug 2015 16:49:48 -0000 Received: from [68.142.230.72] by tm20.bullet.mail.bf1.yahoo.com with NNFMP; 05 Aug 2015 16:49:48 -0000 Received: from [127.0.0.1] by smtp229.mail.bf1.yahoo.com with NNFMP; 05 Aug 2015 16:49:48 -0000 X-Yahoo-Newman-Id: 655504.93598.bm@smtp229.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: diaqHVwVM1nJwvmnaHOHm1ycFlXvinB4ZooFZl.3rC3oPBz 5wCbZVc9JiWx8oSKSfjYisO_PzUp_z0P10jHISmeQmX49tu7_Qbi1LuIVP3i KgIFzKw17rfzW.YwlOHZ9PMdnE5S_1QdyOwwQWwnIcvlnc.4N.YdjeBQdZW8 4WlOxCbTqYG.ERSIdVNmMWps1Fsw3lln3HgAJnl1Qc4lrIIIZU2tYdeQSXHm h4RRl37qog7tS.epn9BLHnlxJTeu.36Sq79EyvCfF8.QvkYmNB1H7E.AIa.1 968G1ljih9SVqvv7b_gCFa_6JhO_QrVds7EY0DodOYvoFNEiJ3oHu4MOgE3Z HAVWxmBy0SNdot4OIYbVSl.VqeO79ZCjlY2.6xOgauUg3ib_i3zoW56uL0Sf 1PdbW9QsbiUnhSslhlY.mnx8VFqx3eW3dpvXyUJpj2QA48DhfR1WlH6gUzUO GmgHVVEzhIyJqhSDjlTC7pnTt3jGJNdo2HCU3QiKD0XYAewjjrLnN6_9yJGS bqa2TA4ypXaqGcCHdNhRio1kAOO7cZN0- X-Yahoo-SMTP: xcjD0guswBAZaPPIbxpWwLcp9Unf Subject: Re: svn commit: r286323 - head/sys/compat/cloudabi To: Ed Schouten , svn-src-head@freebsd.org References: <201508051615.t75GFhdD003652@repo.freebsd.org> From: Pedro Giffuni Message-ID: <55C23EB1.20903@FreeBSD.org> Date: Wed, 5 Aug 2015 11:49:53 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <201508051615.t75GFhdD003652@repo.freebsd.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Aug 2015 16:49:53 -0000 Hi Ed; This just reminded me: Clang has support for type-safety attributes[1] for fcntl and ioctls. I gave them a try[2] but they broke compatibility. For a clean ABI you should consider them. Best regards, Pedro. [1] http://clang.llvm.org/docs/AttributeReference.html#type-safety-checking [2] https://reviews.freebsd.org/D2411 On 08/05/15 11:15, Ed Schouten wrote: > Author: ed > Date: Wed Aug 5 16:15:43 2015 > New Revision: 286323 > URL: https://svnweb.freebsd.org/changeset/base/286323 > > Log: > Make fcntl(F_SETFL) work. > > The stat_put() system call can be used to modify file descriptor > attributes, such as flags, but also Capsicum permission bits. Support > for changing Capsicum bits will be added as soon as its dependent > changes have been pushed through code review. > > Obtained from: https://github.com/NuxiNL/freebsd >