Function report |
Source Code:fs\open.c |
Create Date:2022-07-28 20:00:59 |
| Last Modify:2020-03-18 10:16:03 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:build_open_flags
Proto:static inline int build_open_flags(int flags, umode_t mode, struct open_flags *op)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| int | flags | |
| umode_t | mode | |
| struct open_flags * | op |
| 960 | lookup_flags = 0 |
| 971 | Else mode = 0 |
| 986 | If flags & __O_TMPFILE Then |
| 987 | If (flags & O_TMPFILE_MASK) != O_TMPFILE Then Return -EINVAL |
| 996 | flags &= O_DIRECTORY | O_NOFOLLOW | O_PATH |
| 997 | acc_mode = 0 |
| 1008 | If flags & O_APPEND Then acc_mode |= MAY_APPEND |
| 1013 | intent = If flags & O_PATH Then 0 Else ... in open |
| 1016 | intent |= ... in object creation |
| 1017 | If flags & O_EXCL Then intent |= ... in exclusive creation |
| 1021 | If flags & O_DIRECTORY Then lookup_flags |= quire a directory |
| 1023 | If Not (flags & O_NOFOLLOW) Then lookup_flags |= llow links at the end |
| 1025 | lookup_flags = lookup_flags |
| 1026 | Return 0 |
| Name | Describe |
|---|---|
| file_open_name | le_open_name - open file and return file pointer*@name: struct filename containing path to open*@flags: open flags as per the open(2) second argument*@mode: mode for the new file if O_CREAT is set, else ignored* This is the helper to open a file from |
| file_open_root | |
| do_sys_open |
| 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 |