Mailinglist Archive: opensuse (1558 mails)
| < Previous | Next > |
Re: [opensuse] Which header is supposed to have ENOENT, ENOTDIR for struct stat??
- From: Andreas Jaeger <aj@xxxxxxxxxx>
- Date: Tue, 18 Aug 2009 06:55:26 +0200
- Message-id: <200908180655.26887.aj@xxxxxxxxxx>
On Tuesday 18 August 2009 05:58:29 David C. Rankin wrote:
No, that's not what the section says. Read it again - and then read the
section called "Checking for Errors" - and include <errno.h>,
Andreas
--
Andreas Jaeger, aj@{novell.com,opensuse.org}
Twitter: jaegerandi | Identica: jaegerandi
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
Maxfeldstr. 5, 90409 Nürnberg, Germany
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
Listmates,
The GNU C library doc says <sys/stat.h> is supposed to have the struct
stat file errors defined. (See GNUlibc 14.9.2 Reading the Attributes of a
File) However compiling a simple test program with the sys/stat.h header
returns:
No, that's not what the section says. Read it again - and then read the
section called "Checking for Errors" - and include <errno.h>,
Andreas
--
Andreas Jaeger, aj@{novell.com,opensuse.org}
Twitter: jaegerandi | Identica: jaegerandi
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
Maxfeldstr. 5, 90409 Nürnberg, Germany
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
| < Previous | Next > |