Back to index

glibc  2.9
ustat.c File Reference
#include <errno.h>
#include <sys/ustat.h>
#include <sys/sysmacros.h>
#include <sysdep.h>
#include <sys/syscall.h>
#include <bp-checks.h>

Go to the source code of this file.


int ustat (dev_t dev, struct ustat *ubuf)

Function Documentation

int ustat ( dev_t  dev,
struct ustat ubuf 

Definition at line 29 of file ustat.c.

  unsigned long k_dev;

  /* We must convert the value to dev_t type used by the kernel.  */
  k_dev = ((major (dev) & 0xff) << 8) | (minor (dev) & 0xff);

  return INLINE_SYSCALL (ustat, 2, k_dev, CHECK_1 (ubuf));