函数逻辑报告 |
Source Code:lib\earlycpio.c |
Create Date:2022-07-27 07:12:04 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:pio_data find_cpio_data - Search for files in an uncompressed cpio*@path: The directory to search for, including a slash at the end*@data: Pointer to the the cpio archive or a header inside*@len: Remaining length of the cpio based on data
函数原型:struct cpio_data find_cpio_data(const char *path, void *data, size_t len, long *nextoff)
返回类型:struct cpio_data
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| const char * | path | |
| void * | data | |
| size_t | len | |
| long * | nextoff |
| 62 | cpio_header_len等于8乘C_NFIELDS减2 |
| 67 | mypathsize等于strlen(path) |
| 72 | 当len大于cpio_header_len循环 |
| 73 | 如果非p则 |
| 80 | j等于6 |
| 109 | len减等于cpio_header_len |
| 111 | dptr等于PTR_ALIGN(p + ch[C_NAMESIZE], 4) |
| 112 | nptr等于PTR_ALIGN(dptr + ch[C_FILESIZE], 4) |
| 117 | 如果ch[C_MODE]按位与0170000的值恒等于0100000且ch[C_NAMESIZE]大于等于mypathsize且非memcmp(p, path, mypathsize)则 |
| 124 | 如果ch[C_NAMESIZE]减mypathsize大于等于MAX_CPIO_FILE_NAME则 |
| 125 | 打印警告信息("File %s exceeding MAX_CPIO_FILE_NAME [%d]\n", p, MAX_CPIO_FILE_NAME) |
| 129 | 长字符串复制 |
| 132 | size等于ch[C_FILESIZE] |
| 133 | 返回:cd |
| 139 | quit : |
| 140 | 返回:cd |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |