OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [20000403-1.c] - Blame information for rev 299

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
struct utsname {
2
        char    sysname[32 ];
3
        char    version[32 ];
4
};
5
int
6
uname(name)
7
        struct utsname *name;
8
{
9
        int mib[2], rval;
10
        long len;
11
        char *p;
12
        int oerrno;
13
        if (sysctl(mib, 2, &name->sysname, &len, 0 , 0) == -1)
14
          ;
15
        for (p = name->version; len--; ++p) {
16
                                *p = ' ';
17
        }
18
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.