From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 4 13:18:01 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C4F811065670 for ; Mon, 4 Jun 2012 13:18:01 +0000 (UTC) (envelope-from bryan@shatow.net) Received: from secure.xzibition.com (secure.xzibition.com [173.160.118.92]) by mx1.freebsd.org (Postfix) with ESMTP id 254BB8FC15 for ; Mon, 4 Jun 2012 13:18:00 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; c=nofws; d=shatow.net; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=sweb; b=XLWecp YlxSZRiL/CDZeBIZ1jt2WUXRn2Mht6YCycmS/VVRDjiKfzqph8CPkvd8641Kf4aL COsTFvLUhVipPw/KqoI/3AOea5aIw4CKANc6j17PzIgKWsKSPkOQ1wcJ+0d/FCoh wRCkiXJKQ9VhZ/1yossbbm0RtzfzWfcubocG4= DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=shatow.net; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; s=sweb; bh=3ej0YcYr+BIF WnwlzZCVlBmuKCc8GsixGpFuvGnYnEI=; b=w12EEEjXtH81yokQdlx6tYro2TwA 57PXuXijIRA99YK5M4+0s9nsOmGwXUp17dvgn5IXqlCt67VFEofr55r3fb5+ui+l UbGtcsFQYu2HvWmM1QCmZl45VjmDhThYC1wUkZqqJ5isvw5IOr5gHLbt6mfy/ovU dNQwnssiN1q4EVQ= Received: (qmail 83846 invoked from network); 4 Jun 2012 08:17:59 -0500 Received: from unknown (HELO ?10.10.1.87?) (bryan@shatow.net@10.10.1.87) by sweb.xzibition.com with ESMTPA; 4 Jun 2012 08:17:59 -0500 Message-ID: <4FCCB584.4050808@shatow.net> Date: Mon, 04 Jun 2012 08:17:56 -0500 From: Bryan Drewery User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: Pawel Jakub Dawidek References: <4FCC126C.1020600@shatow.net> <20120604094214.GC1387@garage.freebsd.pl> In-Reply-To: <20120604094214.GC1387@garage.freebsd.pl> X-Enigmail-Version: 1.4.1 OpenPGP: id=3C9B0CF9; url=http://www.shatow.net/bryan/bryan.asc Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: [RFC] last(1) with security.bsd.see_other_uids support X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jun 2012 13:18:01 -0000 On 6/4/2012 4:42 AM, Pawel Jakub Dawidek wrote: > A library is definiately a better place, although then I wouldn't pass > see_other_uids as an argument, but obtain it within the function itself. Does libc make sense for this? I'm thinking yes since it's where the utx functions live. In particular this change seems to make sense in getutxent(3). Though I do not want to violate POSIX... The endutxent(), getutxent(), getutxid(), getutxline() and setutxent() functions are expected to conform to IEEE Std 1003.1-2008 (``POSIX.1''). Bryan