Lines Matching defs:int

33 int wrap_directory_iterator(struct file *file,
35 int (*iter)(struct file *, struct dir_context *))
38 int ret;
87 int iterate_dir(struct file *file, struct dir_context *ctx)
90 int res = -ENOTDIR;
146 static int verify_dirent_name(const char *name, int len)
176 int result;
179 static bool fillonedir(struct dir_context *ctx, const char *name, int namlen,
180 loff_t offset, u64 ino, unsigned int d_type)
216 SYSCALL_DEFINE3(old_readdir, unsigned int, fd,
217 struct old_linux_dirent __user *, dirent, unsigned int, count)
219 int error;
253 int prev_reclen;
254 int count;
255 int error;
258 static bool filldir(struct dir_context *ctx, const char *name, int namlen,
259 loff_t offset, u64 ino, unsigned int d_type)
265 int reclen = ALIGN(offsetof(struct linux_dirent, d_name) + namlen + 2,
267 int prev_reclen;
307 SYSCALL_DEFINE3(getdents, unsigned int, fd,
308 struct linux_dirent __user *, dirent, unsigned int, count)
316 int error;
341 int prev_reclen;
342 int count;
343 int error;
346 static bool filldir64(struct dir_context *ctx, const char *name, int namlen,
347 loff_t offset, u64 ino, unsigned int d_type)
352 int reclen = ALIGN(offsetof(struct linux_dirent64, d_name) + namlen + 1,
354 int prev_reclen;
390 SYSCALL_DEFINE3(getdents64, unsigned int, fd,
391 struct linux_dirent64 __user *, dirent, unsigned int, count)
399 int error;
433 int result;
437 int namlen, loff_t offset, u64 ino,
438 unsigned int d_type)
474 COMPAT_SYSCALL_DEFINE3(old_readdir, unsigned int, fd,
475 struct compat_old_linux_dirent __user *, dirent, unsigned int, count)
477 int error;
505 int prev_reclen;
506 int count;
507 int error;
510 static bool compat_filldir(struct dir_context *ctx, const char *name, int namlen,
511 loff_t offset, u64 ino, unsigned int d_type)
517 int reclen = ALIGN(offsetof(struct compat_linux_dirent, d_name) +
519 int prev_reclen;
558 COMPAT_SYSCALL_DEFINE3(getdents, unsigned int, fd,
559 struct compat_linux_dirent __user *, dirent, unsigned int, count)
567 int error;