24 #include <linux/kernel.h>
27 #include <linux/sched.h>
29 #include <linux/ptrace.h>
30 #include <linux/slab.h>
31 #include <asm/errno.h>
32 #include <asm/uaccess.h>
40 error = PTR_ERR(filename);
70 #define NAME_OFFSET(de) ((int) ((de)->d_name - (char __user *) (de)))
72 static int filldir(
void * __buf,
const char *
name,
int namlen, loff_t
offset,
81 if (reclen > buf->
count)
84 if (
sizeof(d_ino) <
sizeof(ino) && d_ino != ino) {
101 buf->
count -= reclen;
134 error = count - buf.
count;
142 const char *fstype,
const char *dataptr,
int datalen)
153 if (!new_valid_dev(stat->
dev) || !new_valid_dev(stat->
rdev))
157 tmp.st_dev = new_encode_dev(stat->
dev);
163 tmp.st_rdev = new_encode_dev(stat->
rdev);
179 error = cp_hpux_stat(&stat, statbuf);
190 error = cp_hpux_stat(&stat, statbuf);
202 error = cp_hpux_stat(&stat, statbuf);