From owner-freebsd-hackers@freebsd.org Mon May 23 21:41:06 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 593B3B47947 for ; Mon, 23 May 2016 21:41:06 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3BC6D128E for ; Mon, 23 May 2016 21:41:06 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from ralph.baldwin.cx (c-73-231-226-104.hsd1.ca.comcast.net [73.231.226.104]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 43336B978; Mon, 23 May 2016 17:41:05 -0400 (EDT) From: John Baldwin To: freebsd-hackers@freebsd.org Cc: Willem Jan Withagen Subject: Re: Mising ENODATA Date: Mon, 23 May 2016 13:47:26 -0700 Message-ID: <5030334.fMbvND8flt@ralph.baldwin.cx> User-Agent: KMail/4.14.3 (FreeBSD/10.2-STABLE; KDE/4.14.3; amd64; ; ) In-Reply-To: <56E6C5EA.2080005@digiware.nl> References: <56E6C5EA.2080005@digiware.nl> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Mon, 23 May 2016 17:41:05 -0400 (EDT) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 May 2016 21:41:06 -0000 On Monday, March 14, 2016 03:08:42 PM Willem Jan Withagen wrote: > 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? Well, it's defined for STREAMS and FreeBSD (and BSDs in general) don't implement STREAMS. OTOH, if Ceph has (ab)used it for their own internal errors then we could perhaps add our own ENODATA. Do you want to make a patch to do so? -- John Baldwin