Home
last modified time | relevance | path

Searched refs:fileFD (Results 1 – 5 of 5) sorted by relevance

/openbmc/openpower-debug-collector/dump/
H A Dcreate_pel.cpp162 calloutFile("/tmp/phalPELCalloutsJson.XXXXXX"), fileFD(-1) in FFDCFile()
174 return fileFD; in getFileFD()
186 fileFD = mkostemp(const_cast<char*>(calloutFile.c_str()), O_RDWR); in createCalloutFile()
188 if (fileFD == -1) in createCalloutFile()
200 ssize_t rc = write(fileFD, calloutData.c_str(), calloutData.size()); in writeCalloutData()
221 int rc = lseek(fileFD, 0, SEEK_SET); in setCalloutFileSeekPos()
237 close(fileFD); in removeCalloutFile()
H A Dcreate_pel.hpp109 int fileFD; member in openpower::dump::pel::FFDCFile
/openbmc/openpower-proc-control/extensions/phal/
H A Dcreate_pel.cpp289 calloutFile("/tmp/phalPELCalloutsJson.XXXXXX"), fileFD(-1) in FFDCFile()
301 return fileFD; in getFileFD()
313 fileFD = mkostemp(const_cast<char*>(calloutFile.c_str()), O_RDWR); in createCalloutFile()
315 if (fileFD == -1) in createCalloutFile()
327 ssize_t rc = write(fileFD, calloutData.c_str(), calloutData.size()); in writeCalloutData()
349 int rc = lseek(fileFD, 0, SEEK_SET); in setCalloutFileSeekPos()
365 close(fileFD); in removeCalloutFile()
H A Dcreate_pel.hpp108 int fileFD; member in openpower::pel::FFDCFile
/openbmc/phosphor-logging/test/openpower-pels/
H A Dpel_manager_test.cpp1256 int fileFD = -1; in createHWIsolatedCalloutFile() local
1258 fileFD = mkostemp(calloutFile.data(), O_RDWR); in createHWIsolatedCalloutFile()
1259 if (fileFD == -1) in createHWIsolatedCalloutFile()
1265 ssize_t rc = write(fileFD, calloutData.c_str(), calloutData.size()); in createHWIsolatedCalloutFile()
1269 close(fileFD); in createHWIsolatedCalloutFile()
1274 rc = lseek(fileFD, 0, SEEK_SET); in createHWIsolatedCalloutFile()
1278 close(fileFD); in createHWIsolatedCalloutFile()
1281 return {fileFD, calloutFile}; in createHWIsolatedCalloutFile()