Lines Matching refs:mName
41 mName = new char[nameLen]; in TempFile()
42 strcpy(mName, path); in TempFile()
44 strcat(mName, "/"); in TempFile()
46 strcat(mName, "XXXXXX"); in TempFile()
47 mName = mktemp(mName); in TempFile()
48 LOG_FATAL_IF(mName == nullptr, "could not create temp filename %s. errno=%d", mName, errno); in TempFile()
50 int result = TEMP_FAILURE_RETRY(mkfifo(mName, S_IRWXU)); in TempFile()
51 LOG_FATAL_IF(result < 0, "could not create fifo %s. errno=%d", mName, errno); in TempFile()
53 mFd = TEMP_FAILURE_RETRY(open(mName, O_RDWR | O_NONBLOCK)); in TempFile()
54 LOG_FATAL_IF(mFd < 0, "could not open fifo %s. errno=%d", mName, errno); in TempFile()
58 if (unlink(mName) < 0) { in ~TempFile()
59 ALOGE("could not unlink %s. errno=%d", mName, errno); in ~TempFile()
64 delete[] mName; in ~TempFile()
68 mName = new char[sizeof(kTmpDirTemplate)]; in TempDir()
69 strcpy(mName, kTmpDirTemplate); in TempDir()
70 mName = mkdtemp(mName); in TempDir()
71 LOG_FATAL_IF(mName == nullptr, "could not allocate tempdir %s", mName); in TempDir()
75 auto tmpDir = opendir(mName); in ~TempDir()
85 rmdir(mName); in ~TempDir()
86 delete mName; in ~TempDir()
90 return new TempFile(mName); in newTempFile()