From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4150 Path: news.gmane.org!not-for-mail From: Paul Schutte Newsgroups: gmane.linux.lib.musl.general Subject: Re: Error codes Date: Thu, 24 Oct 2013 16:28:27 +0200 Message-ID: References: <20131024142159.GE20515@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8f50350e74fa9204e97d7299 X-Trace: ger.gmane.org 1382624916 3359 80.91.229.3 (24 Oct 2013 14:28:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Oct 2013 14:28:36 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-4154-gllmg-musl=m.gmane.org@lists.openwall.com Thu Oct 24 16:28:41 2013 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1VZLtw-00014I-Gc for gllmg-musl@plane.gmane.org; Thu, 24 Oct 2013 16:28:40 +0200 Original-Received: (qmail 30605 invoked by uid 550); 24 Oct 2013 14:28:38 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 30597 invoked from network); 24 Oct 2013 14:28:38 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=kGGs5XK/eQOtm71iBoMqesRKEYwLKH/9ds03mcMLMq8=; b=tF6q/tHU1XUi8VR2epXQua3DHePMZo2OAMWqq5//+6Y6T4cgSuO27ddSeChi3aqkCT fqG7I5agXKwYKMVnzhJjEeSGA6zZ4zGCylyxChLk7GART8gs/ddCt8jWL4o+MkU9D3Oa jjRMYIb4x0Q3xNUrv8Lfyjh81+LX/QhEE5Xn7qBvziDhuGrRKX9qDb4tnyJKyKPqR5s9 CWhuvTDGwIrUathVO+sesH3ZPPEQ9Dkn7LlyBtjRgDpons9SWCJdaJHw3pbrzBSJLoYX A6zENzjU6zobGIQc0N+sQXF5a4ZJXg/FyJCUopL6AVvQtxxfLry5eGDb27D0h593kKRr ZsFQ== X-Received: by 10.180.36.80 with SMTP id o16mr2540122wij.1.1382624907293; Thu, 24 Oct 2013 07:28:27 -0700 (PDT) In-Reply-To: <20131024142159.GE20515@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:4150 Archived-At: --e89a8f50350e74fa9204e97d7299 Content-Type: text/plain; charset=ISO-8859-1 Thanks On Thu, Oct 24, 2013 at 4:21 PM, Rich Felker wrote: > On Thu, Oct 24, 2013 at 12:34:53PM +0200, Paul Schutte wrote: > > Hi, > > > > I am trying to compile a program that uses rename. > > > > I get the following error: > > > > error: 'EXDEV' undeclared (first use in this function) > > > > It looks like this is defined in bits/errno.h > > > > My question therefore is whether I should modify the program to include > > or should be included by as standard ? > > The program should be including . > > Rich > --e89a8f50350e74fa9204e97d7299 Content-Type: text/html; charset=ISO-8859-1
Thanks


On Thu, Oct 24, 2013 at 4:21 PM, Rich Felker <dalias@aerifal.cx> wrote:
On Thu, Oct 24, 2013 at 12:34:53PM +0200, Paul Schutte wrote:
> Hi,
>
> I am trying to compile a program that uses rename.
>
> I get the following error:
>
> error: 'EXDEV' undeclared (first use in this function)
>
> It looks like this is defined in bits/errno.h
>
> My question therefore is whether I should modify the program to include
> <errno.h> or should <bits/errno.h> be included by <stdio.h> as standard ?

The program should be including <errno.h>.

Rich

--e89a8f50350e74fa9204e97d7299--