🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.linux.development.apps
Article #3

Linux - Error : storage size of var not known

#3
From: Darin Arrick
Date: Wed, 06 Sep 1995 22:13
31 lines
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!usenet

Show 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