Home
last modified time | relevance | path

Searched refs:pathBuf (Results 1 - 2 of 2) sorted by relevance

/kernel/liteos_a/syscall/
H A Dsyscall_pub.c108 int UserPathCopy(const char *userPath, char **pathBuf) in UserPathCopy() argument
112 *pathBuf = (char *)LOS_MemAlloc(OS_SYS_MEM_ADDR, PATH_MAX + 1); in UserPathCopy()
113 if (*pathBuf == NULL) { in UserPathCopy()
117 ret = LOS_StrncpyFromUser(*pathBuf, userPath, PATH_MAX + 1); in UserPathCopy()
119 (void)LOS_MemFree(OS_SYS_MEM_ADDR, *pathBuf); in UserPathCopy()
120 *pathBuf = NULL; in UserPathCopy()
123 (void)LOS_MemFree(OS_SYS_MEM_ADDR, *pathBuf); in UserPathCopy()
124 *pathBuf = NULL; in UserPathCopy()
127 (*pathBuf)[ret] = '\0'; in UserPathCopy()
H A Dsyscall_pub.h46 extern int UserPathCopy(const char *userPath, char **pathBuf);

Completed in 1 milliseconds