Lines Matching refs:statbuf
886 static int cp_new_stat32(struct inode *inode, struct stat32 *statbuf) in cp_new_stat32() argument
916 err = put_user(kdev_t_to_nr(dev), &statbuf->st_dev); in cp_new_stat32()
917 err |= put_user(ino, &statbuf->st_ino); in cp_new_stat32()
918 err |= put_user(mode, &statbuf->st_mode); in cp_new_stat32()
919 err |= put_user(nlink, &statbuf->st_nlink); in cp_new_stat32()
920 err |= put_user(uid, &statbuf->st_uid); in cp_new_stat32()
921 err |= put_user(gid, &statbuf->st_gid); in cp_new_stat32()
922 err |= put_user(kdev_t_to_nr(rdev), &statbuf->st_rdev); in cp_new_stat32()
923 err |= put_user(size, &statbuf->st_size); in cp_new_stat32()
924 err |= put_user(atime, &statbuf->st_atime); in cp_new_stat32()
925 err |= put_user(0, &statbuf->__unused1); in cp_new_stat32()
926 err |= put_user(mtime, &statbuf->st_mtime); in cp_new_stat32()
927 err |= put_user(0, &statbuf->__unused2); in cp_new_stat32()
928 err |= put_user(ctime, &statbuf->st_ctime); in cp_new_stat32()
929 err |= put_user(0, &statbuf->__unused3); in cp_new_stat32()
931 err |= put_user(blksize, &statbuf->st_blksize); in cp_new_stat32()
932 err |= put_user(blocks, &statbuf->st_blocks); in cp_new_stat32()
951 err |= put_user(BLOCK_SIZE, &statbuf->st_blksize); in cp_new_stat32()
952 err |= put_user((BLOCK_SIZE / 512) * tmp_blocks, &statbuf->st_blocks); in cp_new_stat32()
956 err |= put_user(0, &statbuf->__unused4[0]); in cp_new_stat32()
957 err |= put_user(0, &statbuf->__unused4[1]); in cp_new_stat32()
971 asmlinkage long sys32_newstat(char* filename, struct stat32* statbuf) in sys32_newstat() argument
976 …stat - running - filename=%s, statbuf=%p, pid=%ld, comm=%s\n", filename, statbuf, current->pid, cu… in sys32_newstat()
982 error = cp_new_stat32(nd.dentry->d_inode, statbuf); in sys32_newstat()
988 asmlinkage long sys32_newlstat(char * filename, struct stat32 *statbuf) in sys32_newlstat() argument
999 error = cp_new_stat32(nd.dentry->d_inode, statbuf); in sys32_newlstat()
1006 asmlinkage long sys32_newfstat(unsigned int fd, struct stat32 *statbuf) in sys32_newfstat() argument
1019 err = cp_new_stat32(dentry->d_inode, statbuf); in sys32_newfstat()
3099 extern asmlinkage int sys_stat(char* filename, struct __old_kernel_stat* statbuf);
3101 static int cp_old_stat32(struct inode* inode, struct __old_kernel_stat32* statbuf) in cp_old_stat32() argument
3123 return copy_to_user(statbuf,&tmp,sizeof(tmp)) ? -EFAULT : 0; in cp_old_stat32()
3126 asmlinkage long sys32_stat(char* filename, struct __old_kernel_stat32* statbuf) in sys32_stat() argument
3137 error = cp_old_stat32(nd.dentry->d_inode, statbuf); in sys32_stat()
3146 asmlinkage long sys32_fstat(unsigned int fd, struct __old_kernel_stat32* statbuf) in sys32_fstat() argument
3159 err = cp_old_stat32(dentry->d_inode, statbuf); in sys32_fstat()
3168 asmlinkage long sys32_lstat(char* filename, struct __old_kernel_stat32* statbuf) in sys32_lstat() argument
3179 error = cp_old_stat32(nd.dentry->d_inode, statbuf); in sys32_lstat()