/linux-2.4.37.9/fs/ |
D | stat.c | 35 static int cp_old_stat(struct inode * inode, struct __old_kernel_stat * statbuf) in cp_old_stat() argument 68 return copy_to_user(statbuf,&tmp,sizeof(tmp)) ? -EFAULT : 0; in cp_old_stat() 73 static int cp_new_stat(struct inode * inode, struct stat * statbuf) in cp_new_stat() argument 132 return copy_to_user(statbuf,&tmp,sizeof(tmp)) ? -EFAULT : 0; in cp_new_stat() 141 asmlinkage long sys_stat(char * filename, struct __old_kernel_stat * statbuf) in sys_stat() argument 150 error = cp_old_stat(nd.dentry->d_inode, statbuf); in sys_stat() 157 asmlinkage long sys_newstat(char * filename, struct stat * statbuf) in sys_newstat() argument 166 error = cp_new_stat(nd.dentry->d_inode, statbuf); in sys_newstat() 178 asmlinkage long sys_lstat(char * filename, struct __old_kernel_stat * statbuf) in sys_lstat() argument 187 error = cp_old_stat(nd.dentry->d_inode, statbuf); in sys_lstat() [all …]
|
/linux-2.4.37.9/arch/sparc64/solaris/ |
D | fs.c | 128 asmlinkage int solaris_stat(u32 filename, u32 statbuf) in solaris_stat() argument 144 if (putstat ((struct sol_stat *)A(statbuf), &s)) in solaris_stat() 150 asmlinkage int solaris_xstat(int vers, u32 filename, u32 statbuf) in solaris_xstat() argument 153 return solaris_stat(filename, statbuf); in solaris_xstat() 156 asmlinkage int solaris_stat64(u32 filename, u32 statbuf) in solaris_stat64() argument 172 if (putstat64 ((struct sol_stat64 *)A(statbuf), &s)) in solaris_stat64() 178 asmlinkage int solaris_lstat(u32 filename, u32 statbuf) in solaris_lstat() argument 194 if (putstat ((struct sol_stat *)A(statbuf), &s)) in solaris_lstat() 200 asmlinkage int solaris_lxstat(int vers, u32 filename, u32 statbuf) in solaris_lxstat() argument 202 return solaris_lstat(filename, statbuf); in solaris_lxstat() [all …]
|
/linux-2.4.37.9/arch/parisc/hpux/ |
D | fs.c | 123 static int cp_hpux_stat(struct inode * inode, struct hpux_stat64 * statbuf) in cp_hpux_stat() argument 162 return copy_to_user(statbuf,&tmp,sizeof(tmp)) ? -EFAULT : 0; in cp_hpux_stat() 195 long hpux_fstat64(unsigned int fd, struct hpux_stat64 *statbuf) in hpux_fstat64() argument 207 err = cp_hpux_stat(dentry->d_inode, statbuf); in hpux_fstat64() 214 long hpux_lstat64(char *filename, struct hpux_stat64 *statbuf) in hpux_lstat64() argument 224 error = cp_hpux_stat(nd.dentry->d_inode, statbuf); in hpux_lstat64()
|
/linux-2.4.37.9/arch/ia64/kernel/ |
D | sys_ia64.c | 309 cp_ia64_old_stat (struct inode *inode, struct ia64_oldstat *statbuf) in cp_ia64_old_stat() argument 362 return copy_to_user(statbuf,&tmp,sizeof(tmp)) ? -EFAULT : 0; in cp_ia64_old_stat() 366 ia64_oldstat (char *filename, struct ia64_oldstat *statbuf) in ia64_oldstat() argument 375 error = cp_ia64_old_stat(nd.dentry->d_inode, statbuf); in ia64_oldstat() 383 ia64_oldlstat (char *filename, struct ia64_oldstat *statbuf) { in ia64_oldlstat() argument 391 error = cp_ia64_old_stat(nd.dentry->d_inode, statbuf); in ia64_oldlstat() 398 ia64_oldfstat (unsigned int fd, struct ia64_oldstat *statbuf) in ia64_oldfstat() argument 409 err = cp_ia64_old_stat(dentry->d_inode, statbuf); in ia64_oldfstat()
|
/linux-2.4.37.9/arch/mips/kernel/ |
D | sysirix.c | 1261 extern asmlinkage int sys_newstat(char * filename, struct stat * statbuf); 1263 asmlinkage int irix_xstat(int version, char *filename, struct stat *statbuf) in irix_xstat() argument 1269 current->comm, current->pid, version, filename, statbuf); in irix_xstat() 1284 retval = irix_xstat32_xlate(&kb, statbuf); in irix_xstat() 1289 retval = sys_newstat(filename, statbuf); in irix_xstat() 1296 irix_xstat64_xlate(statbuf); in irix_xstat() 1310 extern asmlinkage int sys_newlstat(char * filename, struct stat * statbuf); 1312 asmlinkage int irix_lxstat(int version, char *filename, struct stat *statbuf) in irix_lxstat() argument 1318 current->comm, current->pid, version, filename, statbuf); in irix_lxstat() 1333 error = irix_xstat32_xlate(&kb, statbuf); in irix_lxstat() [all …]
|
/linux-2.4.37.9/arch/ppc64/kernel/ |
D | sys_ppc32.c | 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() [all …]
|
/linux-2.4.37.9/arch/s390x/kernel/ |
D | linux32.c | 1509 static int cp_new_stat32(struct inode *inode, struct stat32 *statbuf) in cp_new_stat32() argument 1539 err = put_user(kdev_t_to_nr(dev), &statbuf->st_dev); in cp_new_stat32() 1540 err |= put_user(ino, &statbuf->st_ino); in cp_new_stat32() 1541 err |= put_user(mode, &statbuf->st_mode); in cp_new_stat32() 1542 err |= put_user(nlink, &statbuf->st_nlink); in cp_new_stat32() 1543 err |= put_user(high2lowuid(uid), &statbuf->st_uid); in cp_new_stat32() 1544 err |= put_user(high2lowgid(gid), &statbuf->st_gid); in cp_new_stat32() 1545 err |= put_user(kdev_t_to_nr(rdev), &statbuf->st_rdev); in cp_new_stat32() 1546 err |= put_user(size, &statbuf->st_size); in cp_new_stat32() 1547 err |= put_user(atime, &statbuf->st_atime); in cp_new_stat32() [all …]
|
/linux-2.4.37.9/drivers/isdn/pcbit/ |
D | drv.c | 743 static char statbuf[STATBUF_LEN]; variable 771 memcpy_to_COND(user, buf, statbuf + stat_st, len); in pcbit_stat() 778 memcpy_to_COND(user, buf, statbuf + stat_st, in pcbit_stat() 780 memcpy_to_COND(user, buf, statbuf, in pcbit_stat() 787 memcpy_to_COND(user, buf, statbuf + stat_st, in pcbit_stat() 810 statbuf[i]=str[i]; in pcbit_logstat()
|
/linux-2.4.37.9/arch/sparc64/kernel/ |
D | sys_sparc32.c | 1536 static int cp_new_stat32(struct inode *inode, struct stat32 *statbuf) in cp_new_stat32() argument 1566 err = put_user(kdev_t_to_nr(dev), &statbuf->st_dev); in cp_new_stat32() 1567 err |= put_user(ino, &statbuf->st_ino); in cp_new_stat32() 1568 err |= put_user(mode, &statbuf->st_mode); in cp_new_stat32() 1569 err |= put_user(nlink, &statbuf->st_nlink); in cp_new_stat32() 1570 err |= put_user(high2lowuid(uid), &statbuf->st_uid); in cp_new_stat32() 1571 err |= put_user(high2lowgid(gid), &statbuf->st_gid); in cp_new_stat32() 1572 err |= put_user(kdev_t_to_nr(rdev), &statbuf->st_rdev); in cp_new_stat32() 1573 err |= put_user(size, &statbuf->st_size); in cp_new_stat32() 1574 err |= put_user(atime, &statbuf->st_atime); in cp_new_stat32() [all …]
|
/linux-2.4.37.9/arch/x86_64/ia32/ |
D | sys_ia32.c | 116 extern asmlinkage long sys_newstat(char * filename, struct stat * statbuf); 119 sys32_newstat(char * filename, struct stat32 *statbuf) in sys32_newstat() argument 135 return putstat(statbuf, &s); in sys32_newstat() 138 extern asmlinkage long sys_newlstat(char * filename, struct stat * statbuf); 141 sys32_newlstat(char * filename, struct stat32 *statbuf) in sys32_newlstat() argument 157 return putstat(statbuf, &s); in sys32_newlstat() 160 extern asmlinkage long sys_newfstat(unsigned int fd, struct stat * statbuf); 163 sys32_newfstat(unsigned int fd, struct stat32 *statbuf) in sys32_newfstat() argument 174 return putstat(statbuf, &s); in sys32_newfstat() 219 sys32_stat64(char * filename, struct stat64 *statbuf) in sys32_stat64() argument [all …]
|
/linux-2.4.37.9/arch/ia64/ia32/ |
D | sys_ia32.c | 205 extern asmlinkage long sys_newstat (char * filename, struct stat * statbuf); 208 sys32_newstat (char *filename, struct stat32 *statbuf) in sys32_newstat() argument 222 if (putstat(statbuf, &s)) in sys32_newstat() 227 extern asmlinkage long sys_newlstat(char * filename, struct stat * statbuf); 230 sys32_newlstat (char *filename, struct stat32 *statbuf) in sys32_newlstat() argument 244 if (putstat(statbuf, &s)) in sys32_newlstat() 249 extern asmlinkage long sys_newfstat(unsigned int fd, struct stat * statbuf); 252 sys32_newfstat (unsigned int fd, struct stat32 *statbuf) in sys32_newfstat() argument 261 if (putstat(statbuf, &s)) in sys32_newfstat() 3729 sys32_stat64 (char *filename, struct stat64 *statbuf) in sys32_stat64() argument [all …]
|
/linux-2.4.37.9/arch/parisc/kernel/ |
D | sys_parisc32.c | 848 static int cp_new_stat32(struct inode *inode, struct stat32 *statbuf) in cp_new_stat32() argument 905 return copy_to_user(statbuf,&tmp,sizeof(tmp)) ? -EFAULT : 0; in cp_new_stat32() 908 asmlinkage long sys32_newstat(char * filename, struct stat32 *statbuf) in sys32_newstat() argument 917 error = cp_new_stat32(nd.dentry->d_inode, statbuf); in sys32_newstat() 923 asmlinkage long sys32_newlstat(char * filename, struct stat32 *statbuf) in sys32_newlstat() argument 932 error = cp_new_stat32(nd.dentry->d_inode, statbuf); in sys32_newlstat() 938 asmlinkage long sys32_newfstat(unsigned int fd, struct stat32 *statbuf) in sys32_newfstat() argument 949 err = cp_new_stat32(dentry->d_inode, statbuf); in sys32_newfstat()
|
/linux-2.4.37.9/include/asm-s390x/ |
D | unistd.h | 343 static inline _syscall2(long,stat,char *,filename,struct stat *,statbuf) in _syscall0()
|
/linux-2.4.37.9/include/asm-s390/ |
D | unistd.h | 374 static inline _syscall2(long,stat,char *,filename,struct stat *,statbuf) in _syscall0()
|
/linux-2.4.37.9/arch/mips64/kernel/ |
D | linux32.c | 104 static int cp_new_stat32(struct inode * inode, struct stat32 * statbuf) in cp_new_stat32() argument 159 return copy_to_user(statbuf,&tmp,sizeof(tmp)) ? -EFAULT : 0; in cp_new_stat32() 162 asmlinkage int sys32_newstat(char * filename, struct stat32 *statbuf) in sys32_newstat() argument 171 error = cp_new_stat32(nd.dentry->d_inode, statbuf); in sys32_newstat() 179 asmlinkage int sys32_newlstat(char * filename, struct stat32 *statbuf) in sys32_newlstat() argument 188 error = cp_new_stat32(nd.dentry->d_inode, statbuf); in sys32_newlstat() 196 asmlinkage long sys32_newfstat(unsigned int fd, struct stat32 * statbuf) in sys32_newfstat() argument 207 err = cp_new_stat32(dentry->d_inode, statbuf); in sys32_newfstat()
|
/linux-2.4.37.9/drivers/s390/misc/ |
D | chandev.c | 2802 struct stat statbuf; in chandev_read_conf() local 2818 if(stat(CHANDEV_FILE,&statbuf)==0) in chandev_read_conf() 2821 buff=vmalloc(statbuf.st_size+1); in chandev_read_conf() 2828 left=statbuf.st_size; in chandev_read_conf() 2837 chandev_do_setup(TRUE,buff,statbuf.st_size); in chandev_read_conf()
|
/linux-2.4.37.9/drivers/net/ |
D | de4x5.c | 5638 struct pkt_stats statbuf; in de4x5_ioctl() local 5639 ioc->len = sizeof(statbuf); in de4x5_ioctl() 5641 memcpy(&statbuf, &lp->pktStats, ioc->len); in de4x5_ioctl() 5643 if (copy_to_user(ioc->data, &statbuf, ioc->len)) in de4x5_ioctl()
|