• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 # Utils
2 
3 ## Introduction
4 
5 Utils provides OpenHarmony basic components, which provide enhanced C, C++, and JS APIs for OpenHarmony service subsystems and upper-layer applications. Utils provides the following components in **/commonlibrary**:
6 ```
7 /commonlibrary
8     ├── c_utils                  # c and c++ utils.
9     ├── ets_utils                # extended TypeScript (eTS) utils.
10     └── utils_lite               # Utils in c and JS for LiteOS.
11 ```
12 The following lists the functions provided by each utils.
13 
14 **c_utils**
15 
16 -   Enhanced APIs for operations related to files, paths, and strings
17 -   APIs for read/write locks, semaphores, timers, threads, and thread pools
18 -   APIs for security data containers and data serialization
19 -   Error codes for each subsystem
20 
21 **ets_utils**
22 
23 -   JS APIs for URI, URL, and XML operations
24 -   JS APIs for string encoding and decoding
25 -   JS APIs for process-related operations
26 -   Multithreading capability in JS
27 
28 **utils_lite**
29 
30 -   Hardware Abstraction Layer (HAL) APIs for file operations
31 -   APIs for internal functions, such as the timer
32 
33 ## Related Documents
34 [Utils Development Guide](https://gitee.com/openharmony/docs/blob/master/en/device-dev/subsystems/subsys-utils-guide.md)
35 
36 ## Repositories Involved
37 
38 **Utils**
39 
40 
41 [commonlibrary\_c\_utils](https://gitee.com/openharmony/commonlibrary_c_utils)
42 
43 [commonlibrary\_ets\_utils](https://gitee.com/openharmony/commonlibrary_ets_utils)
44 
45 [commonlibrary\_utils\_lite](https://gitee.com/openharmony/commonlibrary_utils_lite)
46