u_int32_t locker; int flags;
u_int32_t locker, flags;
lock_get(lt, locker, flags, obj, lock_mode, lock)	DB_LOCKTAB *lt;	u_int32_t locker;	int flags;	const DBT *obj;	db_lockmode_t lock_mode;	DB_LOCK *lock;{	struct __db_lock *lockp;	int ret;	/* Validate arguments. */	if ((ret =	    __db_fchk(lt->dbenv, "lock_get", flags, DB_LOCK_NOWAIT)) != 0)		return (ret);	LOCK_LOCKREGION(lt);	ret = __lock_validate_region(lt);	if (ret == 0 && (ret = __lock_get_internal(lt,	    locker, flags, obj, lock_mode, &lockp)) == 0) {		*lock = LOCK_TO_OFFSET(lt, lockp);		lt->region->nrequests++;	}	UNLOCK_LOCKREGION(lt);	return (ret);}