[opensuse] Which header is supposed to have ENOENT, ENOTDIR for struct stat??
Listmates,
The GNU C library doc says
On Tuesday 18 August 2009 05:58:29 David C. Rankin wrote:
Listmates,
The GNU C library doc says
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
On Monday 17 August 2009 11:55:26 pm Andreas Jaeger wrote:
On Tuesday 18 August 2009 05:58:29 David C. Rankin wrote:
Listmates,
The GNU C library doc says
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
, Andreas
ARRGH -- smacks self for missing the obvious... -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Mon, 2009-08-17 at 22:58 -0500, David C. Rankin wrote:
The GNU C library doc says
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: 22:32 alchemy:~/prg/ccpp/src-c/prj/depo> gcc -o getln getln.c getln.c: In function ‘main’: getln.c:22: error: ‘ENOENT’ undeclared (first use in this function) Grepping around /usr/include, I found the DEFINE statements in the apache header and I can compile just fine with that, but I know that is a cludge. What package am I missing that gives the correct header for the "usual file name errors"?
include
participants (3)
-
Adam Tauno Williams
-
Andreas Jaeger
-
David C. Rankin