From owner-freebsd-hackers@freebsd.org Mon Mar 14 14:39:34 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 1C4A5AD0663 for ; Mon, 14 Mar 2016 14:39:34 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 08BBE21C for ; Mon, 14 Mar 2016 14:39:34 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: by mailman.ysv.freebsd.org (Postfix) id 08715AD0662; Mon, 14 Mar 2016 14:39:34 +0000 (UTC) Delivered-To: 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 08051AD0661 for ; Mon, 14 Mar 2016 14:39:34 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from smtp.digiware.nl (unknown [IPv6:2001:4cb8:90:ffff::3]) (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 C95FA21B for ; Mon, 14 Mar 2016 14:39:33 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from rack1.digiware.nl (unknown [127.0.0.1]) by smtp.digiware.nl (Postfix) with ESMTP id 4BDE6153413 for ; Mon, 14 Mar 2016 15:39:29 +0100 (CET) X-Virus-Scanned: amavisd-new at digiware.nl Received: from smtp.digiware.nl ([127.0.0.1]) by rack1.digiware.nl (rack1.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wij2QY3zjcHZ; Mon, 14 Mar 2016 15:39:11 +0100 (CET) Received: from [IPv6:2001:4cb8:3:1:a05d:3dc6:57ab:71e4] (unknown [IPv6:2001:4cb8:3:1:a05d:3dc6:57ab:71e4]) by smtp.digiware.nl (Postfix) with ESMTP id F3A0D15340A for ; Mon, 14 Mar 2016 15:08:43 +0100 (CET) To: hackers@freebsd.org From: Willem Jan Withagen Subject: Mising ENODATA Organization: Digiware Management b.v. Message-ID: <56E6C5EA.2080005@digiware.nl> Date: Mon, 14 Mar 2016 15:08:42 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Mar 2016 14:39:34 -0000 Hi, According the standard is ENODATA an extention of errno.h defines... http://pubs.opengroup.org/onlinepubs/9699919799/ The Open Group Base Specifications Issue 7 IEEE Std 1003.1, 2013 Edition [ENODATA] [OB XSR] [Option Start] No message available. No message is available on the STREAM head read queue. [Option End] [XSR] [Option Start] XSI STREAMS [Option End] The functionality described is optional. The functionality described is also an extension to the ISO C standard. Where applicable, functions are marked with the XSR margin legend in the SYNOPSIS section. Where additional semantics apply to a function, the material is identified by use of the XSR margin legend. [OB] [Option Start] Obsolescent [Option End] The functionality described may be removed in a future version of this volume of POSIX.1-2008. Strictly Conforming POSIX Applications and Strictly Conforming XSI Applications shall not use obsolescent features. Where applicable, the material is identified by use of the OB margin legend. ---- The OB part makes a bit strange to ask for definition, but would it be possible to add ENODATA to our headers? The alternative question is: why would we not? Reason I ask, is that while porting Ceph, I keep on running into the fact that ENODATA is not defined. Currently we try to set it equal to ENOATTR, but that sort of feels silly. The next part comes with the additional tools ea. like cython, they don't really know about a missing definition. So this just propagates further and further. In the archives I was not able to find arguments on why not to add it. Hence my question. Thanx, --WjW