Lines Matching +defs:name +defs:pos
72 // compute the name of the lock file for this file
279 AtomicFile::ropen(const char *const name, int flags, mode_t mode)
337 int result = sandbox_check(getpid(), "file-read-data", (sandbox_filter_type) (SANDBOX_FILTER_PATH | SANDBOX_CHECK_NO_REPORT), name);
346 int result = sandbox_check(getpid(), "file-write-data", (sandbox_filter_type) (SANDBOX_FILTER_PATH | SANDBOX_CHECK_NO_REPORT), name);
356 fd = ::open(name, flags, mode);
479 ssize_t pos = 0;
484 ssize_t bytesRead = ::read(mFileRef, mBuffer + pos, bytesToRead);
498 pos += bytesRead;
610 // we now generate our temporary file name through sandbox API's.
694 off_t pos;
697 pos = ::lseek(mFileRef, 0, SEEK_END);
698 if (pos == -1)
706 pos = inOffset;
715 ssize_t bytesWritten = ::pwrite(mFileRef, ptr, toWrite, pos);
741 pos += bytesWritten;
809 // To clear something up - newPath is the name the keychain will become - which is the name of the file being replaced
1098 NetworkFileLocker::xcreat(const char *const name, mode_t mode, time_t &tim)
1105 return myrename(uniquePath, name);