Function report |
Source Code:fs\binfmt_script.c |
Create Date:2022-07-28 20:27:48 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:load_script
Proto:static int load_script(struct linux_binprm *bprm)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct linux_binprm * | bprm |
| 51 | If interp_flags & BINPRM_FLAGS_PATH_INACCESSIBLE Then Return -ENOENT |
| 57 | file = NULL |
| 75 | If Not cp Then |
| 76 | cp = next_non_spacetab(buf + 2, buf_end) |
| 83 | If Not next_terminator(cp, buf_end) Then Return -ENOEXEC |
| 88 | cp = '\0' |
| 98 | Return -ENOEXEC |
| 100 | i_arg = NULL |
| 104 | cp++ = '\0' |
| 117 | retval = Arguments are '\0' separated strings found at the location bprm->p* points to; chop off the first by relocating brpm->p to right after* the first '\0' encountered. |
| 123 | argc++ |
| 124 | If i_arg Then |
| 128 | argc++ |
| 133 | argc++ |
| 134 | retval = bprm_change_interp(i_name, bprm) |
| 146 | retval = Fill the binprm structure from the inode.* Check permissions, then read the first BINPRM_BUF_SIZE bytes* This may be called multiple times for binary chains (scripts for example). |
| 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 |