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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 688 jeremybenn
typedef unsigned int    __kernel_dev_t;
2
typedef __kernel_dev_t          dev_t;
3
struct ustat {
4
};
5
typedef unsigned int kdev_t;
6
static inline kdev_t to_kdev_t(int dev)
7
{
8
        int major, minor;
9
        major = (dev >> 8);
10
        minor = (dev & 0xff);
11
        return ((( major ) << 22 ) | (  minor )) ;
12
}
13
struct super_block {
14
};
15
struct super_block * get_super (kdev_t dev);
16
int sys_ustat(dev_t dev, struct ustat * ubuf)
17
{
18
        struct super_block *s;
19
        s = get_super(to_kdev_t(dev));
20
}

powered by: WebSVN 2.1.0

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