Function report |
Source Code:fs\file.c |
Create Date:2022-07-28 20:08:32 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:do_dup2
Proto:static int do_dup2(struct files_struct *files, struct file *file, unsigned fd, unsigned flags)__releases(&files->file_lock)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct files_struct * | files | |
struct file * | file | |
unsigned | fd | |
unsigned | flags |
864 | fdt = files_fdtable(files) |
865 | tofree = current fd array [fd] |
866 | If Not tofree && fd_is_open(fd, fdt) Then Go to Ebusy |
870 | __set_open_fd(fd, fdt) |
871 | If flags & O_CLOEXEC Then __set_close_on_exec(fd, fdt) |
873 | Else __clear_close_on_exec(fd, fdt) |
880 | Return fd |
882 | Ebusy : |
884 | Return -EBUSY |
Name | Describe |
---|---|
replace_fd | |
ksys_dup3 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |