ustat() system call implementation