Re: 'errno' undefined? - Mailing list pgsql-hackers

From Philip Warner
Subject Re: 'errno' undefined?
Date
Msg-id 3.0.5.32.20000708152158.02ab9e70@mail.rhyme.com.au
Whole thread Raw
In response to Re: 'errno' undefined?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: 'errno' undefined?
List pgsql-hackers
At 01:17 8/07/00 -0400, Tom Lane wrote:
>Hmm.  The stuff I just removed doesn't look like it would cause an
>inclusion of errno.h.  Which other system headers include errno.h
>on your box?
>
>The answer probably is that pqformat.h needs to include <errno.h>,
>but I'm just curious to understand why it didn't before ...
>

pjw@Cerberus2:~/work/postgresql-cvs/pgsql > grep errno.h /usr/include/*.h
/usr/include/argz.h:#include <errno.h>
/usr/include/envz.h:#include <errno.h>
/usr/include/errno.h: * ISO C Standard: 4.1.3 Errors    <errno.h>
/usr/include/errno.h:#endif /* errno.h  */
/usr/include/errnos.h:# include <linux/errno.h>
/usr/include/pthread.h:#include <errno.h>

pjw@Cerberus2:~/work/postgresql-cvs/pgsql > grep errno.h /usr/include/*/*.h
/usr/include/X11/Xlibint.h:#include <errno.h>
/usr/include/X11/Xos.h:#include <errno.h>
/usr/include/asm/unistd.h:/* user-visible error numbers are in the range -1
- -122: see <asm-i386/errno.h> */
/usr/include/linux/errno.h:#include <asm/errno.h>
/usr/include/linux/isdn.h:#include <linux/errno.h>
/usr/include/linux/mm.h:#include <linux/errno.h>
/usr/include/linux/notifier.h:#include <linux/errno.h>
/usr/include/linux/quota.h:#include <linux/errno.h>
/usr/include/mysql/my_sys.h:#include <errno.h>                  /* errno is
a define */
/usr/include/python1.5/Python.h:#include <errno.h>
/usr/include/rpcsvc/bootparam.h:#include <sys/errno.h>
/usr/include/rpcsvc/bootparam_prot.h:#include <sys/errno.h>
/usr/include/sys/errno.h:#include <errno.h>

no matches in local/include
----------------------------------------------------------------
Philip Warner                    |     __---_____
Albatross Consulting Pty. Ltd.   |----/       -  \
(A.C.N. 008 659 498)             |          /(@)   ______---_
Tel: (+61) 0500 83 82 81         |                 _________  \
Fax: (+61) 0500 83 82 82         |                 ___________ |
Http://www.rhyme.com.au          |                /           \|                                |    --________--
PGP key available upon request,  |  /
and from pgp5.ai.mit.edu:11371   |/


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: 'errno' undefined?
Next
From: Tom Lane
Date:
Subject: Re: 'errno' undefined?