patch-2.1.115 linux/include/asm-ppc/xstat.h
Next file: linux/include/asm-sparc/ap1000/pgtapmmu.h
Previous file: linux/include/asm-ppc/vc_ioctl.h
Back to the patch index
Back to the overall index
- Lines: 36
- Date:
Wed Dec 31 16:00:00 1969
- Orig file:
v2.1.114/linux/include/asm-ppc/xstat.h
- Orig date:
Thu Apr 23 20:21:37 1998
diff -u --recursive --new-file v2.1.114/linux/include/asm-ppc/xstat.h linux/include/asm-ppc/xstat.h
@@ -1,35 +0,0 @@
-/* $Id: xstat.h,v 1.1 1998/02/06 12:51:55 jj Exp $
- * xstat.h: sys_xstat/xmknod architecture dependent stuff.
- *
- * Copyright (C) 1998 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
- */
-
-extern __inline__ int cp_xstat(struct inode *inode, struct stat64 *s, unsigned long blocks, int blksize)
-{
- struct stat64 tmp;
-
- memset (&tmp, 0, sizeof(tmp));
- tmp.st_dev.major = MAJOR(inode->i_dev);
- tmp.st_dev.minor = MINOR(inode->i_dev);
- tmp.st_ino = inode->i_ino;
- tmp.st_mode = inode->i_mode;
- tmp.st_nlink = inode->i_nlink;
- tmp.st_uid = inode->i_uid;
- tmp.st_gid = inode->i_gid;
- tmp.st_rdev.major = MAJOR(inode->i_rdev);
- tmp.st_rdev.minor = MINOR(inode->i_rdev);
- tmp.st_size = inode->i_size;
- tmp.st_blksize = blksize;
- tmp.st_blocks = blocks;
- tmp.st_atime = inode->i_atime;
- tmp.st_mtime = inode->i_mtime;
- tmp.st_ctime = inode->i_ctime;
- return copy_to_user(s,&tmp,sizeof(tmp));
-}
-
-extern __inline__ int get_user_new_dev_t(kdev_t *kdev, __new_dev_t *udev) {
- __new_dev_t ndev;
- if (copy_from_user (&ndev, udev, sizeof(__new_dev_t))) return -EFAULT;
- *kdev = MKDEV(ndev.major, ndev.minor);
- return 0;
-}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov