Fork me on GitHub
new_ufd            19 kernel/syscalls/dup.c 	int new_ufd;
new_ufd            26 kernel/syscalls/dup.c 	if((new_ufd = get_new_user_fd(0)) < 0) {
new_ufd            27 kernel/syscalls/dup.c 		return new_ufd;
new_ufd            31 kernel/syscalls/dup.c 	printk(" -> %d\n", new_ufd);
new_ufd            34 kernel/syscalls/dup.c 	current->fd[new_ufd] = current->fd[ufd];
new_ufd            35 kernel/syscalls/dup.c 	fd_table[current->fd[new_ufd]].count++;
new_ufd            36 kernel/syscalls/dup.c 	return new_ufd;
new_ufd            16 kernel/syscalls/dup2.c int sys_dup2(int old_ufd, int new_ufd)
new_ufd            19 kernel/syscalls/dup2.c 	printk("(pid %d) sys_dup2(%d, %d)", current->pid, old_ufd, new_ufd);
new_ufd            23 kernel/syscalls/dup2.c 	if(new_ufd < 0 || new_ufd > OPEN_MAX) {
new_ufd            26 kernel/syscalls/dup2.c 	if(old_ufd == new_ufd) {
new_ufd            27 kernel/syscalls/dup2.c 		return new_ufd;
new_ufd            29 kernel/syscalls/dup2.c 	if(current->fd[new_ufd]) {
new_ufd            30 kernel/syscalls/dup2.c 		sys_close(new_ufd);
new_ufd            32 kernel/syscalls/dup2.c 	if((new_ufd = get_new_user_fd(new_ufd)) < 0) {
new_ufd            33 kernel/syscalls/dup2.c 		return new_ufd;
new_ufd            35 kernel/syscalls/dup2.c 	current->fd[new_ufd] = current->fd[old_ufd];
new_ufd            36 kernel/syscalls/dup2.c 	fd_table[current->fd[new_ufd]].count++;
new_ufd            38 kernel/syscalls/dup2.c 	printk(" --> returning %d\n", new_ufd);
new_ufd            40 kernel/syscalls/dup2.c 	return new_ufd;
new_ufd            20 kernel/syscalls/fcntl.c 	int new_ufd, errno;
new_ufd            33 kernel/syscalls/fcntl.c 			if((new_ufd = get_new_user_fd(arg)) < 0) {
new_ufd            34 kernel/syscalls/fcntl.c 				return new_ufd;
new_ufd            36 kernel/syscalls/fcntl.c 			current->fd[new_ufd] = current->fd[ufd];
new_ufd            37 kernel/syscalls/fcntl.c 			fd_table[current->fd[new_ufd]].count++;
new_ufd            39 kernel/syscalls/fcntl.c 			printk("\t--> returning %d\n", new_ufd);
new_ufd            41 kernel/syscalls/fcntl.c 			return new_ufd;