• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/BerkeleyDB-21/db/env/

Lines Matching refs:registry

22 	__os_fdlock(env, (env)->dbenv->registry, (off_t)(pos), 1, nowait)
24 __os_fdlock(env, (env)->dbenv->registry, (off_t)(pos), 0, 0)
36 * The registry feature is configured by specifying the DB_REGISTER flag to the
37 * DbEnv.open method. If DB_REGISTER is specified, DB opens the registry file
38 * in the database environment home directory. The registry file is formatted
73 * Whenever a process opens a new DbEnv handle, it walks the registry file and
78 * It's possible to get corruption in the registry file. If a write system
80 * the registry file, or a partial entry at the end of the file. This is OK.
81 * A corrupted entry will be flagged as a non-empty line during the registry
94 * already exists in Berkeley DB, too, the registry code doesn't make it any
99 * can do that if they maintain their own process registry outside of Berkeley
138 /* Build the path name and open the registry file. */
143 DB_OSO_CREATE, DB_MODE_660, &dbenv->registry)) != 0)
160 * system by removing the registry file and restarting the application.
163 env, pp, dbenv->registry, &mbytes, &bytes, NULL)) != 0)
190 if (dbenv->registry != NULL)
191 (void)__os_closehandle(env, dbenv->registry);
192 dbenv->registry = NULL;
228 __db_msg(env, "%lu: adding self to registry", (u_long)pid);
236 if ((ret = __os_seek(env, dbenv->registry, 0, 0, 0)) != 0)
249 env, dbenv->registry, buf, PID_LEN, &nr)) != 0)
330 env, NULL, dbenv->registry, &mbytes, &bytes, NULL)) != 0)
342 if ((ret = __os_seek(env, dbenv->registry, 0, 0, 0)) != 0)
347 dbenv->registry, PID_EMPTY, PID_LEN, &nw)) != 0)
355 if ((ret = __os_seek(env, dbenv->registry, 0, 0, 0)) != 0)
359 env, dbenv->registry, buf, PID_LEN, &nr)) != 0)
371 dbenv->registry, 0, 0, (u_int32_t)pos)) != 0 ||
373 dbenv->registry, pid_buf, PID_LEN, &nw)) != 0)
421 dbenv->registry, 0, 0, dbenv->registry_off)) != 0 ||
423 env, dbenv->registry, PID_EMPTY, PID_LEN, &nw)) != 0)
440 __os_closehandle(env, dbenv->registry)) != 0 && ret == 0)
443 dbenv->registry = NULL;