Home
last modified time | relevance | path

Searched refs:spath (Results 1 – 2 of 2) sorted by relevance

/kernel/liteos_a/syscall/
Dtime_syscall.c48 char *spath = NULL; in SysUtime() local
56 spath = LOS_MemAlloc(m_aucSysMem0, PATH_MAX + 1); in SysUtime()
57 if (spath == NULL) { in SysUtime()
62 ret = LOS_StrncpyFromUser(spath, path, PATH_MAX + 1); in SysUtime()
64 LOS_MemFree(m_aucSysMem0, spath); in SysUtime()
67 LOS_MemFree(m_aucSysMem0, spath); in SysUtime()
71 spath[ret] = '\0'; in SysUtime()
74 LOS_MemFree(m_aucSysMem0, spath); in SysUtime()
79 ret = utime(spath, ptimes ? &sptimes : NULL); in SysUtime()
84 LOS_MemFree(m_aucSysMem0, spath); in SysUtime()
/kernel/linux/linux-5.10/tools/perf/util/
Dnamespaces.c66 char spath[PATH_MAX]; in nsinfo__init() local
99 if (snprintf(spath, PATH_MAX, "/proc/%d/status", nsi->pid) >= PATH_MAX) in nsinfo__init()
102 f = fopen(spath, "r"); in nsinfo__init()