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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [20000403-1.c] - Blame information for rev 688

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 688 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.