Searched refs:procFile (Results 1 – 3 of 3) sorted by relevance
/base/startup/init/services/modules/bootchart/ |
D | bootchart.c | 167 FILE *procFile = fopen(BOOTCHART_OUTPUT_PATH"proc_ps.log", "w"); in BootchartThreadMain() local 170 if (statFile == NULL || procFile == NULL || diskFile == NULL) { in BootchartThreadMain() 193 bootchartLogProcess(procFile); in BootchartThreadMain() 201 if (procFile != NULL) { in BootchartThreadMain() 202 (void)fflush(procFile); in BootchartThreadMain() 203 (void)fclose(procFile); in BootchartThreadMain()
|
/base/hiviewdfx/faultloggerd/utils/ |
D | directory_ex.cpp | 25 char procFile[PATH_MAX + 1] = {0}; in GetCurrentProcFullFileName() local 26 int ret = readlink("/proc/self/exe", procFile, PATH_MAX); in GetCurrentProcFullFileName() 30 procFile[ret] = '\0'; in GetCurrentProcFullFileName() 31 return string(procFile); in GetCurrentProcFullFileName()
|
/base/startup/init/services/init/ |
D | init_common_cmds.c | 164 static void SetProcName(const struct CmdArgs *ctx, const char *procFile) in SetProcName() argument 166 int fd = open(procFile, O_WRONLY | O_CREAT | O_CLOEXEC | O_TRUNC, S_IRUSR | S_IWUSR); in SetProcName() 167 INIT_ERROR_CHECK(fd >= 0, return, "Failed to set %s errno: %d", procFile, errno); in SetProcName()
|