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 long int k_dev;

  /* We must convert the value to dev_t type used by the kernel.  */
  k_dev =  dev & ((1ULL << 32) - 1);
  if (k_dev != dev)
      __set_errno (EINVAL);
      return -1;

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