Lines Matching +full:license +full:- +full:path

2  * SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
4 * SPDX-License-Identifier: Apache-2.0
17 * - empty, skip the component
18 * - if it is '.', skip the component
19 * - if it is '..'
20 * - and out_level == 0, ??? ('/..')
21 * - otherwise, reverse-search for '/', set out_pos to that - 1, decrement out_level
22 * - otherwise, add the component to output, increment out_level
29 /* allowed as an extension, allocate memory for the output path */ in realpath()
37 /* canonical path starts with / */ in realpath()
40 /* pointers moving over the input and output path buffers */ in realpath()
43 /* number of path components in the output buffer */ in realpath()
48 /* "path component" is the part between two '/' path separators. in realpath()
49 * locate the next path component in the input path: in realpath()
52 size_t path_component_len = end_of_path_component - in_ptr; in realpath()
56 /* empty path component or '.' - nothing to do */ in realpath()
58 /* '..' - remove one path component from the output */ in realpath()
62 /* there is only one path component in output; in realpath()
69 /* remove last path component and the separator preceding it */ in realpath()
74 --out_depth; in realpath()
77 /* copy path component to output; +1 is for the separator */ in realpath()
78 if (out_ptr - out_path + 1 + path_component_len > PATH_MAX - 1) { in realpath()
94 /* move input pointer to separator right after this path component */ in realpath()
120 int chdir(const char *path) in chdir() argument
122 (void) path; in chdir()
124 return -1; in chdir()