/*-
* See the file LICENSE for redistribution information.
*
* Copyright (c) 1997, 1998
* Sleepycat Software. All rights reserved.
*/
#include "config.h"
#ifndef lint
#endif /* not lint */
#ifndef NO_SYSTEM_INCLUDES
#include <errno.h>
#endif
#include "db_int.h"
#include "os_jump.h"
1, /* DB_MUTEXLOCKS */
0, /* DB_PAGEYIELD */
0, /* DB_REGION_ANON, DB_REGION_NAME */
0, /* DB_REGION_INIT */
0, /* DB_TSL_SPINS */
};
/*
* db_jump_set --
* Replace functions for the DB package.
*/
int
void *func;
int which;
{
switch (which) {
case DB_FUNC_CLOSE:
break;
case DB_FUNC_DIRFREE:
break;
case DB_FUNC_DIRLIST:
break;
case DB_FUNC_EXISTS:
break;
case DB_FUNC_FREE:
break;
case DB_FUNC_FSYNC:
break;
case DB_FUNC_IOINFO:
break;
case DB_FUNC_MALLOC:
break;
case DB_FUNC_MAP:
break;
case DB_FUNC_OPEN:
break;
case DB_FUNC_READ:
break;
case DB_FUNC_REALLOC:
break;
case DB_FUNC_RUNLINK:
break;
case DB_FUNC_SEEK:
break;
case DB_FUNC_SLEEP:
break;
case DB_FUNC_UNLINK:
break;
case DB_FUNC_UNMAP:
break;
case DB_FUNC_WRITE:
break;
case DB_FUNC_YIELD:
break;
default:
return (EINVAL);
}
return (0);
}
/*
* db_value_set --
* Replace values for the DB package.
*/
int
{
int ret;
switch (which) {
case DB_MUTEXLOCKS:
break;
case DB_PAGEYIELD:
break;
case DB_REGION_ANON:
return (ret);
break;
case DB_REGION_INIT:
break;
case DB_REGION_NAME:
return (ret);
break;
case DB_TSL_SPINS:
if (value <= 0)
return (EINVAL);
break;
default:
return (EINVAL);
}
return (0);
}