Searched refs:lock_mode (Results 1 – 2 of 2) sorted by relevance
/external/ltp/testcases/kernel/sched/sched_stress/ |
D | sched_tc6.c | 360 int lock_mode; in lock_file() local 363 lock_mode = F_SETLK; /* return if lock fails */ in lock_file() 365 lock_mode = F_SETLKW; /* set lock and use system wait */ in lock_file() 379 while (fcntl(fd, lock_mode, flock_ptr) == -1) { in lock_file()
|
/external/python/cpython2/Modules/ |
D | _bsddb.c | 1274 db_lockmode_t lock_mode, int flags) in newDBLockObject() argument 1284 err = myenv->db_env->lock_get(myenv->db_env, locker, flags, obj, lock_mode, in newDBLockObject() 6332 int locker, lock_mode; in DBEnv_lock_get() local 6336 if (!PyArg_ParseTuple(args, "iOi|i:lock_get", &locker, &objobj, &lock_mode, &flags)) in DBEnv_lock_get() 6343 return (PyObject*)newDBLockObject(self, locker, &obj, lock_mode, flags); in DBEnv_lock_get()
|