Function report |
Source Code:security\tomoyo\util.c |
Create Date:2022-07-28 19:48:15 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:moyo_path_matches_pattern2 - Do pathname pattern matching.*@f: The start of string to check.*@p: The start of pattern to compare.* Returns true if @f matches @p, false otherwise.
Proto:static bool tomoyo_path_matches_pattern2(const char *f, const char *p)
Type:bool
Parameter:
| Type | Parameter | Name |
|---|---|---|
| const char * | f | |
| const char * | p |
| 838 | f_delimiter = strchr - Find the first occurrence of the character c in the string s.*@s: the string to be searched*@c: the character to search for |
| 839 | If Not f_delimiter Then f_delimiter = f + strlen - Find the length of a string*@s: The string to be sized |
| 841 | p_delimiter = strchr - Find the first occurrence of the character c in the string s.*@s: the string to be searched*@c: the character to search for |
| 842 | If Not p_delimiter Then p_delimiter = p + strlen - Find the length of a string*@s: The string to be sized |
| 849 | f = f_delimiter |
| 852 | p = p_delimiter |
| 859 | p += 2 |
| 861 | recursive : |
| 868 | If *(p - 1) != '/' || p_delimiter <= p + 3 || p_delimiter != '/' || *(p_delimiter - 1) != '}' || *(p_delimiter - 2) != '\\' Then Return false |
| 871 | Do |
| 877 | f = f_delimiter |
| 878 | If Not f Then Break |
| 880 | f++ |
| 885 | When f_delimiter cycle |
| 886 | Return false |
| Name | Describe |
|---|---|
| tomoyo_path_matches_pattern2 | moyo_path_matches_pattern2 - Do pathname pattern matching.*@f: The start of string to check.*@p: The start of pattern to compare.* Returns true if @f matches @p, false otherwise. |
| tomoyo_path_matches_pattern | moyo_path_matches_pattern - Check whether the given filename matches the given pattern.*@filename: The filename to check.*@pattern: The pattern to compare.* Returns true if matches, false otherwise.* The following patterns are available.* \\ \ itself. |
| 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 |