• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/Security-57031.1.35/Security/include/security_cdsa_utilities/

Lines Matching refs:flags

39 UnixDb::UnixDb(const char *path, int flags, int mode, DBTYPE type) : mDb(NULL)
41 open(path, flags, mode);
44 UnixDb::UnixDb(const std::string &path, int flags, int mode, DBTYPE type) : mDb(NULL)
46 open(path, flags, mode);
54 void UnixDb::open(const char *path, int flags, int mode, DBTYPE type)
56 if (DB* newDb = ::dbopen(path, flags, mode, type, NULL)) {
60 secdebug("unixdb", "open(%s,0x%x,0x%x,type=%d)=%p", path, flags, mode, type, mDb);
65 void UnixDb::open(const std::string &path, int flags, int mode, DBTYPE type)
67 open(path.c_str(), flags, mode);
80 bool UnixDb::get(const CssmData &key, CssmData &value, int flags) const
84 int rc = mDb->get(mDb, &dKey, &val, flags);
85 secdebug("unixdb", "get(%p,[:%ld],flags=0x%x)=%d[:%ld]",
86 mDb, key.length(), flags, rc, value.length());
95 bool UnixDb::get(const CssmData &key, CssmOwnedData &value, int flags) const
98 if (get(key, val, flags)) {
105 bool UnixDb::put(const CssmData &key, const CssmData &value, int flags)
109 int rc = mDb->put(mDb, &dKey, &dValue, flags);
110 secdebug("unixdb", "put(%p,[:%ld],[:%ld],flags=0x%x)=%d",
111 mDb, key.length(), value.length(), flags, rc);
116 void UnixDb::erase(const CssmData &key, int flags)
119 secdebug("unixdb", "delete(%p,[:%ld],flags=0x%x)", mDb, key.length(), flags);
120 checkError(mDb->del(mDb, &dKey, flags));
123 bool UnixDb::next(CssmData &key, CssmData &value, int flags /* = R_NEXT */) const
126 int rc = mDb->seq(mDb, &dKey, &dValue, flags);
137 void UnixDb::flush(int flags)
139 checkError(mDb->sync(mDb, flags));