Function report |
Source Code:security\tomoyo\util.c |
Create Date:2022-07-28 19:47:30 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:moyo_parse_ulong - Parse an "unsigned long" value.*@result: Pointer to "unsigned long".*@str: Pointer to string to parse.* Returns one of values in "enum tomoyo_value_type".* The @src is updated to point the first character after the value* on success.
Proto:u8 tomoyo_parse_ulong(unsigned long *result, char **str)
Type:u8
Parameter:
| Type | Parameter | Name |
|---|---|---|
| unsigned long * | result | |
| char ** | str |
| 187 | base = 10 |
| 189 | If cp == '0' Then |
| 201 | If cp == ep Then Return TOMOYO_VALUE_TYPE_INVALID |
| 205 | Case base == 16 |
| 206 | Return TOMOYO_VALUE_TYPE_HEXADECIMAL |
| 207 | Case base == 8 |
| 208 | Return TOMOYO_VALUE_TYPE_OCTAL |
| 209 | Default |
| 210 | Return TOMOYO_VALUE_TYPE_DECIMAL |
| Name | Describe |
|---|---|
| tomoyo_parse_number_union | moyo_parse_number_union - Parse a tomoyo_number_union.*@param: Pointer to "struct tomoyo_acl_param".*@ptr: Pointer to "struct tomoyo_number_union".* Returns true on success, false otherwise. |
| 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 |