Lines Matching defs:int

40 int do_truncate(struct mnt_idmap *idmap, struct dentry *dentry,
41 loff_t length, unsigned int time_attrs, struct file *filp)
43 int ret;
125 unsigned int lookup_flags = LOOKUP_FOLLOW;
127 int error;
157 long do_sys_ftruncate(unsigned int fd, loff_t length, int small)
162 int error;
203 SYSCALL_DEFINE2(ftruncate, unsigned int, fd, unsigned long, length)
209 COMPAT_SYSCALL_DEFINE2(ftruncate, unsigned int, fd, compat_ulong_t, length)
222 SYSCALL_DEFINE2(ftruncate64, unsigned int, fd, loff_t, length)
237 COMPAT_SYSCALL_DEFINE3(ftruncate64, unsigned int, fd,
244 int vfs_fallocate(struct file *file, int mode, loff_t offset, loff_t len)
341 int ksys_fallocate(int fd, int mode, loff_t offset, loff_t len)
344 int error = -EBADF;
353 SYSCALL_DEFINE4(fallocate, int, fd, int, mode, loff_t, offset, loff_t, len)
359 COMPAT_SYSCALL_DEFINE6(fallocate, int, fd, int, mode, compat_arg_u64_dual(offset),
375 static bool access_need_override_creds(int flags)
457 static long do_faccessat(int dfd, const char __user *filename, int mode, int flags)
461 int res;
462 unsigned int lookup_flags = LOOKUP_FOLLOW;
529 SYSCALL_DEFINE3(faccessat, int, dfd, const char __user *, filename, int, mode)
534 SYSCALL_DEFINE4(faccessat2, int, dfd, const char __user *, filename, int, mode,
535 int, flags)
540 SYSCALL_DEFINE2(access, const char __user *, filename, int, mode)
548 int error;
549 unsigned int lookup_flags = LOOKUP_FOLLOW | LOOKUP_DIRECTORY;
571 SYSCALL_DEFINE1(fchdir, unsigned int, fd)
574 int error;
596 int error;
597 unsigned int lookup_flags = LOOKUP_FOLLOW | LOOKUP_DIRECTORY;
626 int chmod_common(const struct path *path, umode_t mode)
631 int error;
656 int vfs_fchmod(struct file *file, umode_t mode)
662 SYSCALL_DEFINE2(fchmod, unsigned int, fd, umode_t, mode)
665 int err = -EBADF;
674 static int do_fchmodat(int dfd, const char __user *filename, umode_t mode,
675 unsigned int flags)
678 int error;
679 unsigned int lookup_flags;
701 SYSCALL_DEFINE4(fchmodat2, int, dfd, const char __user *, filename,
702 umode_t, mode, unsigned int, flags)
707 SYSCALL_DEFINE3(fchmodat, int, dfd, const char __user *, filename,
748 int chown_common(const struct path *path, uid_t user, gid_t group)
754 int error;
794 int do_fchownat(int dfd, const char __user *filename, uid_t user, gid_t group,
795 int flag)
798 int error = -EINVAL;
799 int lookup_flags;
826 SYSCALL_DEFINE5(fchownat, int, dfd, const char __user *, filename, uid_t, user,
827 gid_t, group, int, flag)
843 int vfs_fchown(struct file *file, uid_t user, gid_t group)
845 int error;
856 int ksys_fchown(unsigned int fd, uid_t user, gid_t group)
859 int error = -EBADF;
868 SYSCALL_DEFINE3(fchown, unsigned int, fd, uid_t, user, gid_t, group)
873 static int do_dentry_open(struct file *f,
875 int (*open)(struct inode *, struct file *))
878 int error;
1018 int finish_open(struct file *file, struct dentry *dentry,
1019 int (*open)(struct inode *, struct file *))
1042 int finish_no_open(struct file *file, struct dentry *dentry)
1049 char *file_path(struct file *filp, char *buf, int buflen)
1060 int vfs_open(const struct path *path, struct file *file)
1066 struct file *dentry_open(const struct path *path, int flags,
1069 int error;
1104 struct file *dentry_create(const struct path *path, int flags, umode_t mode,
1108 int error;
1141 struct file *kernel_file_open(const struct path *path, int flags,
1145 int error;
1176 struct file *backing_file_open(const struct path *path, int flags,
1181 int error;
1203 inline struct open_how build_open_how(int flags, umode_t mode)
1219 inline int build_open_flags(const struct open_how *how, struct open_flags *op)
1223 int lookup_flags = 0;
1224 int acc_mode = ACC_MODE(flags);
1357 struct file *file_open_name(struct filename *name, int flags, umode_t mode)
1361 int err = build_open_flags(&how, &op);
1378 struct file *filp_open(const char *filename, int flags, umode_t mode)
1392 const char *filename, int flags, umode_t mode)
1396 int err = build_open_flags(&how, &op);
1403 static long do_sys_openat2(int dfd, const char __user *filename,
1407 int fd = build_open_flags(how, &op);
1431 long do_sys_open(int dfd, const char __user *filename, int flags, umode_t mode)
1438 SYSCALL_DEFINE3(open, const char __user *, filename, int, flags, umode_t, mode)
1445 SYSCALL_DEFINE4(openat, int, dfd, const char __user *, filename, int, flags,
1453 SYSCALL_DEFINE4(openat2, int, dfd, const char __user *, filename,
1456 int err;
1483 COMPAT_SYSCALL_DEFINE3(open, const char __user *, filename, int, flags, umode_t, mode)
1492 COMPAT_SYSCALL_DEFINE4(openat, int, dfd, const char __user *, filename, int, flags, umode_t, mode)
1506 int flags = O_CREAT | O_WRONLY | O_TRUNC;
1518 static int filp_flush(struct file *filp, fl_owner_t id)
1520 int retval = 0;
1538 int filp_close(struct file *filp, fl_owner_t id)
1540 int retval;
1554 SYSCALL_DEFINE1(close, unsigned int, fd)
1556 int retval;
1592 SYSCALL_DEFINE3(close_range, unsigned int, fd, unsigned int, max_fd,
1593 unsigned int, flags)
1617 int generic_file_open(struct inode * inode, struct file * filp)
1629 * reason it returns an 'int' and not 'void' is so that it can be plugged
1632 int nonseekable_open(struct inode *inode, struct file *filp)
1647 * stream_open never fails and is marked to return int so that it could be
1650 int stream_open(struct inode *inode, struct file *filp)