Article View: comp.os.linux.development.apps
Article #3Linux - Error : storage size of var not known
From: Darin Arrick
Date: Wed, 06 Sep 1995 22:13
Date: Wed, 06 Sep 1995 22:13
31 lines
1501 bytes
1501 bytes
I am trying to use the stat() function under Linux, and am getting the
error:
storage size of 'stbuf' is not known
What is causing this? Code fragment is below. E-mail answer is preferable.
Thank you in advance.
-------- BEGIN INCLUDED CODE FRAGMENT --------
void fred(void)
{
char *name;
struct stat stbuf;
/* also tried "struct new_stat stbuf;" */
/* it seems Linux has struct old_stat (functionally the same as struct stat)
and new_stat (old_stat with some other fields) */
if(stat(name, &stbuf) != NULL)
{
/* do something */
}
}
-------- END INCLUDED CODE FRAGMENT --------
+-----------------------------------+------------------------------------+
| Darin Arrick, KB5KHR | Network Cybernetics Corporation |
| darrick@ncc.com | |
+-----------------------------------+------------------------------------+
Technical Details
Message-ID:
<42l6dl$ra6@news.onramp.net>Path:
arc1-ca.pugleaf.net!news.onramp.net!usenetShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news.onramp.net!usenet From: darrick@ncc.com (Darin Arrick) Newsgroups: comp.os.linux.development.apps,comp.lang.c,comp.unix.programmer Subject: Linux - Error : storage size of var not known Date: 6 Sep 1995 22:13:09 GMT Organization: Network Cybernetics Corp. Distribution: world Message-ID: <42l6dl$ra6@news.onramp.net> Reply-To: darrick@ncc.com NNTP-Posting-Host: nimon.ncc.com Summary: Linux - Error : storage size of var not known Keywords: Linux - Error : storage size of var not known X-Newsreader: IBM NewsReader/2 v1.02