Lines Matching defs:int
36 int do_truncate(struct dentry *dentry, loff_t length, unsigned int time_attrs,
39 int ret;
68 int error;
133 static long do_sys_ftruncate(unsigned int fd, loff_t length, int small)
138 int error;
184 SYSCALL_DEFINE2(ftruncate, unsigned int, fd, unsigned long, length)
206 SYSCALL_DEFINE(ftruncate64)(unsigned int fd, loff_t length)
216 return SYSC_ftruncate64((unsigned int) fd, length);
223 int do_fallocate(struct file *file, int mode, loff_t offset, loff_t len)
265 SYSCALL_DEFINE(fallocate)(int fd, int mode, loff_t offset, loff_t len)
268 int error = -EBADF;
282 return SYSC_fallocate((int)fd, (int)mode, offset, len);
292 SYSCALL_DEFINE3(faccessat, int, dfd, const char __user *, filename, int, mode)
298 int res;
362 SYSCALL_DEFINE2(access, const char __user *, filename, int, mode)
370 int error;
388 SYSCALL_DEFINE1(fchdir, unsigned int, fd)
392 int error;
417 int error;
442 SYSCALL_DEFINE2(fchmod, unsigned int, fd, mode_t, mode)
447 int err = -EBADF;
480 SYSCALL_DEFINE3(fchmodat, int, dfd, const char __user *, filename, mode_t, mode)
484 int error;
518 static int chown_common(struct path *path, uid_t user, gid_t group)
521 int error;
548 int error;
564 SYSCALL_DEFINE5(fchownat, int, dfd, const char __user *, filename, uid_t, user,
565 gid_t, group, int, flag)
568 int error = -EINVAL;
569 int follow;
592 int error;
608 SYSCALL_DEFINE3(fchown, unsigned int, fd, uid_t, user, gid_t, group)
611 int error = -EBADF;
637 static inline int __get_file_write_access(struct inode *inode,
640 int error;
662 int (*open)(struct inode *, struct file *),
666 int error;
760 int (*open)(struct inode *, struct file *))
807 struct file *dentry_open(struct dentry *dentry, struct vfsmount *mnt, int flags,
810 int error;
840 static void __put_unused_fd(struct files_struct *files, unsigned int fd)
848 void put_unused_fd(unsigned int fd)
871 void fd_install(unsigned int fd, struct file *file)
884 long do_sys_open(int dfd, const char __user *filename, int flags, int mode)
887 int fd = PTR_ERR(tmp);
906 SYSCALL_DEFINE3(open, const char __user *, filename, int, flags, int, mode)
919 SYSCALL_DEFINE4(openat, int, dfd, const char __user *, filename, int, flags,
920 int, mode)
939 SYSCALL_DEFINE2(creat, const char __user *, pathname, int, mode)
950 int filp_close(struct file *filp, fl_owner_t id)
952 int retval = 0;
975 SYSCALL_DEFINE1(close, unsigned int, fd)
980 int retval;
1029 int generic_file_open(struct inode * inode, struct file * filp)
1046 * reason it returns an 'int' and not 'void' is so that it can be plugged
1049 int nonseekable_open(struct inode *inode, struct file *filp)