Fork me on GitHub
ufd                67 fs/locks.c     int posix_lock(int ufd, int cmd, struct flock *fl)
ufd                75 fs/locks.c     	i = fd_table[current->fd[ufd]].inode;
ufd                14 include/fiwix/fs.h #define CHECK_UFD(ufd)							\
ufd                16 include/fiwix/fs.h 	if((ufd) > OPEN_MAX || current->fd[(ufd)] == 0)	 {		\
ufd               327 kernel/process.c void release_user_fd(int ufd)
ufd               329 kernel/process.c 	current->fd[ufd] = 0;
ufd                13 kernel/syscalls/close.c int sys_close(unsigned int ufd)
ufd                19 kernel/syscalls/close.c 	printk("(pid %d) sys_close(%d)\n", current->pid, ufd);
ufd                22 kernel/syscalls/close.c 	CHECK_UFD(ufd);
ufd                23 kernel/syscalls/close.c 	fd = current->fd[ufd];
ufd                24 kernel/syscalls/close.c 	release_user_fd(ufd);
ufd                37 kernel/syscalls/close.c 	printk("WARNING: %s(): ufd %d without the close() method!\n", __FUNCTION__, ufd);
ufd                17 kernel/syscalls/dup.c int sys_dup(unsigned int ufd)
ufd                22 kernel/syscalls/dup.c 	printk("(pid %d) sys_dup(%d)", current->pid, ufd);
ufd                25 kernel/syscalls/dup.c 	CHECK_UFD(ufd);
ufd                34 kernel/syscalls/dup.c 	current->fd[new_ufd] = current->fd[ufd];
ufd                17 kernel/syscalls/fchdir.c int sys_fchdir(unsigned int ufd)
ufd                22 kernel/syscalls/fchdir.c 	printk("(pid %d) sys_fchdir(%d)\n", current->pid, ufd);
ufd                25 kernel/syscalls/fchdir.c 	CHECK_UFD(ufd);
ufd                26 kernel/syscalls/fchdir.c 	i = fd_table[current->fd[ufd]].inode;
ufd                19 kernel/syscalls/fchmod.c int sys_fchmod(int ufd, __mode_t mode)
ufd                24 kernel/syscalls/fchmod.c 	printk("(pid %d) sys_fchmod(%d, %d)\n", current->pid, ufd, mode);
ufd                27 kernel/syscalls/fchmod.c 	CHECK_UFD(ufd);
ufd                28 kernel/syscalls/fchmod.c 	i = fd_table[current->fd[ufd]].inode;
ufd                19 kernel/syscalls/fchown.c int sys_fchown(int ufd, __uid_t owner, __gid_t group)
ufd                24 kernel/syscalls/fchown.c 	printk("(pid %d) sys_fchown(%d, %d, %d)\n", current->pid, ufd, owner, group);
ufd                27 kernel/syscalls/fchown.c 	CHECK_UFD(ufd);
ufd                28 kernel/syscalls/fchown.c 	i = fd_table[current->fd[ufd]].inode;
ufd                18 kernel/syscalls/fcntl.c int sys_fcntl(int ufd, int cmd, unsigned long int arg)
ufd                23 kernel/syscalls/fcntl.c 	printk("(pid %d) sys_fcntl(%d, %d, 0x%08x)\n", current->pid, ufd, cmd, arg);
ufd                26 kernel/syscalls/fcntl.c 	CHECK_UFD(ufd);
ufd                29 kernel/syscalls/fcntl.c 			CHECK_UFD(ufd);
ufd                36 kernel/syscalls/fcntl.c 			current->fd[new_ufd] = current->fd[ufd];
ufd                43 kernel/syscalls/fcntl.c 			return (current->fd_flags[ufd] & FD_CLOEXEC);
ufd                45 kernel/syscalls/fcntl.c 			current->fd_flags[ufd] = (arg & FD_CLOEXEC);
ufd                48 kernel/syscalls/fcntl.c 			return fd_table[current->fd[ufd]].flags;
ufd                50 kernel/syscalls/fcntl.c 			fd_table[current->fd[ufd]].flags &= ~(O_APPEND | O_NONBLOCK);
ufd                51 kernel/syscalls/fcntl.c 			fd_table[current->fd[ufd]].flags |= arg & (O_APPEND | O_NONBLOCK);
ufd                59 kernel/syscalls/fcntl.c 			return posix_lock(ufd, cmd, (struct flock *)arg);
ufd                15 kernel/syscalls/fdatasync.c int sys_fdatasync(int ufd)
ufd                18 kernel/syscalls/fdatasync.c 	printk("(pid %d) sys_fdatasync(%d)\n", current->pid, ufd);
ufd                21 kernel/syscalls/fdatasync.c 	return sys_fsync(ufd);
ufd                17 kernel/syscalls/flock.c int sys_flock(int ufd, int op)
ufd                22 kernel/syscalls/flock.c 	printk("(pid %d) sys_flock(%d, %d)\n", current->pid, ufd, op);
ufd                25 kernel/syscalls/flock.c 	CHECK_UFD(ufd);
ufd                26 kernel/syscalls/flock.c 	i = fd_table[current->fd[ufd]].inode;
ufd                18 kernel/syscalls/fstat.c int sys_fstat(unsigned int ufd, struct old_stat *statbuf)
ufd                24 kernel/syscalls/fstat.c 	printk("(pid %d) sys_fstat(%d, 0x%08x) -> returning structure\n", current->pid, ufd, (unsigned int )statbuf);
ufd                27 kernel/syscalls/fstat.c 	CHECK_UFD(ufd);
ufd                31 kernel/syscalls/fstat.c 	i = fd_table[current->fd[ufd]].inode;
ufd                17 kernel/syscalls/fstatfs.c int sys_fstatfs(unsigned int ufd, struct statfs *statfsbuf)
ufd                23 kernel/syscalls/fstatfs.c 	printk("(pid %d) sys_fstatfs(%d, 0x%08x)\n", current->pid, ufd, (unsigned int)statfsbuf);
ufd                26 kernel/syscalls/fstatfs.c 	CHECK_UFD(ufd);
ufd                30 kernel/syscalls/fstatfs.c 	i = fd_table[current->fd[ufd]].inode;
ufd                19 kernel/syscalls/fsync.c int sys_fsync(int ufd)
ufd                24 kernel/syscalls/fsync.c 	printk("(pid %d) sys_fsync(%d)\n", current->pid, ufd);
ufd                27 kernel/syscalls/fsync.c 	CHECK_UFD(ufd);
ufd                28 kernel/syscalls/fsync.c 	i = fd_table[current->fd[ufd]].inode;
ufd                19 kernel/syscalls/ftruncate.c int sys_ftruncate(int ufd, __off_t length)
ufd                25 kernel/syscalls/ftruncate.c 	printk("(pid %d) sys_ftruncate(%d, %d)\n", current->pid, ufd, length);
ufd                28 kernel/syscalls/ftruncate.c 	CHECK_UFD(ufd);
ufd                29 kernel/syscalls/ftruncate.c 	i = fd_table[current->fd[ufd]].inode;
ufd                30 kernel/syscalls/ftruncate.c 	if((fd_table[current->fd[ufd]].flags & O_ACCMODE) == O_RDONLY) {
ufd                18 kernel/syscalls/getdents.c int sys_getdents(unsigned int ufd, struct dirent *dirent, unsigned int count)
ufd                24 kernel/syscalls/getdents.c 	printk("(pid %d) sys_getdents(%d, 0x%08x, %d)", current->pid, ufd, (unsigned int)dirent, count);
ufd                27 kernel/syscalls/getdents.c 	CHECK_UFD(ufd);
ufd                31 kernel/syscalls/getdents.c 	i = fd_table[current->fd[ufd]].inode;
ufd                38 kernel/syscalls/getdents.c 		errno = i->fsop->readdir(i, &fd_table[current->fd[ufd]], dirent, count);
ufd                18 kernel/syscalls/llseek.c int sys_llseek(unsigned int ufd, unsigned long int offset_high, unsigned long int offset_low, __loff_t *result, unsigned int whence)
ufd                26 kernel/syscalls/llseek.c 	printk("(pid %d) sys_llseek(%d, %u, %u, %08x, %d)", current->pid, ufd, offset_high, offset_low, result, whence);
ufd                29 kernel/syscalls/llseek.c 	CHECK_UFD(ufd);
ufd                33 kernel/syscalls/llseek.c 	i = fd_table[current->fd[ufd]].inode;
ufd                40 kernel/syscalls/llseek.c 			new_offset = fd_table[current->fd[ufd]].offset + offset;
ufd                48 kernel/syscalls/llseek.c 	fd_table[current->fd[ufd]].offset = new_offset;
ufd                18 kernel/syscalls/lseek.c int sys_lseek(unsigned int ufd, __off_t offset, unsigned int whence)
ufd                24 kernel/syscalls/lseek.c 	printk("(pid %d) sys_lseek(%d, %d, %d)", current->pid, ufd, offset, whence);
ufd                27 kernel/syscalls/lseek.c 	CHECK_UFD(ufd);
ufd                29 kernel/syscalls/lseek.c 	i = fd_table[current->fd[ufd]].inode;
ufd                35 kernel/syscalls/lseek.c 			new_offset = fd_table[current->fd[ufd]].offset + offset;
ufd                47 kernel/syscalls/lseek.c 		fd_table[current->fd[ufd]].offset = new_offset;
ufd                17 kernel/syscalls/newfstat.c int sys_newfstat(unsigned int ufd, struct new_stat *statbuf)
ufd                23 kernel/syscalls/newfstat.c 	printk("(pid %d) sys_newfstat(%d, 0x%08x) -> returning structure\n", current->pid, ufd, (unsigned int )statbuf);
ufd                26 kernel/syscalls/newfstat.c 	CHECK_UFD(ufd);
ufd                30 kernel/syscalls/newfstat.c 	i = fd_table[current->fd[ufd]].inode;
ufd                18 kernel/syscalls/open.c 	int fd, ufd;
ufd               117 kernel/syscalls/open.c 	if((ufd = get_new_user_fd(0)) < 0) {
ufd               122 kernel/syscalls/open.c 		return ufd;
ufd               126 kernel/syscalls/open.c 	printk("\t(ufd = %d)\n", ufd);
ufd               130 kernel/syscalls/open.c 	current->fd[ufd] = fd;
ufd               134 kernel/syscalls/open.c 			release_user_fd(ufd);
ufd               142 kernel/syscalls/open.c 		return ufd;
ufd               147 kernel/syscalls/open.c 	release_user_fd(ufd);
ufd                17 kernel/syscalls/read.c int sys_read(unsigned int ufd, char *buf, int count)
ufd                23 kernel/syscalls/read.c 	printk("(pid %d) sys_read(%d, 0x%08x, %d) -> ", current->pid, ufd, buf, count);
ufd                26 kernel/syscalls/read.c 	CHECK_UFD(ufd);
ufd                30 kernel/syscalls/read.c 	if(fd_table[current->fd[ufd]].flags & O_WRONLY) {
ufd                40 kernel/syscalls/read.c 	i = fd_table[current->fd[ufd]].inode;
ufd                42 kernel/syscalls/read.c 		errno = i->fsop->read(i, &fd_table[current->fd[ufd]], buf, count);
ufd                17 kernel/syscalls/write.c int sys_write(unsigned int ufd, const char *buf, int count)
ufd                24 kernel/syscalls/write.c 	printk("(pid %d) sys_write(%d, 0x%08x, %d) -> ", current->pid, ufd, buf, count);
ufd                27 kernel/syscalls/write.c 	CHECK_UFD(ufd);
ufd                31 kernel/syscalls/write.c 	if(fd_table[current->fd[ufd]].flags & O_RDONLY) {
ufd                40 kernel/syscalls/write.c 	i = fd_table[current->fd[ufd]].inode;
ufd                42 kernel/syscalls/write.c 		errno = i->fsop->write(i, &fd_table[current->fd[ufd]], buf, count);