Home
last modified time | relevance | path

Searched refs:lock_type (Results 1 – 21 of 21) sorted by relevance

/netbsd-src/usr.bin/scmdctl/
H A Dscmdctl.c166 int lock_type = -1; in main() local
527 lock_type = valid_cmd(lockcmdtypes,__arraycount(lockcmdtypes),argv[3]); in main()
528 if (lock_type == -1) { in main()
533 lock_type = lockcmdtypes[lock_type].id; in main()
536 fprintf(stderr,"Lock type in lock command: %d\n",lock_type); in main()
540 error = common_get_lock_state(&func_block, fd, debug, lock_type, &lock_state); in main()
543 error = common_set_lock_state(&func_block, fd, debug, lock_type, SCMD_LOCK_LOCKED); in main()
546 error = common_set_lock_state(&func_block, fd, debug, lock_type, SCMD_LOCK_UNLOCK); in main()
608 if (lock_type in main()
[all...]
/netbsd-src/external/gpl2/lvm2/dist/lib/locking/
H A Dcluster_locking.c389 const char *lock_type = ""; in _lock_resource() local
431 lock_type = "UN"; in _lock_resource()
434 lock_type = "NL"; in _lock_resource()
437 lock_type = "CR"; in _lock_resource()
440 lock_type = "PR"; in _lock_resource()
443 lock_type = "PW"; in _lock_resource()
446 lock_type = "EX"; in _lock_resource()
455 lock_type, in _lock_resource()
/netbsd-src/external/gpl2/lvm2/dist/lib/misc/
H A Dlvm-file.c209 int fcntl_lock_file(const char *file, short lock_type, int warn_if_read_only) in fcntl_lock_file() argument
215 .l_type = lock_type, in fcntl_lock_file()
237 (lock_type == F_WRLCK) ? "F_WRLCK" : "F_RDLCK", in fcntl_lock_file()
238 lock_type); in fcntl_lock_file()
H A Dlvm-file.h49 int fcntl_lock_file(const char *file, short lock_type, int warn_if_read_only);
/netbsd-src/external/ibm-public/postfix/dist/src/util/
H A Ddict_alloc.c126 return (myflock(dict->lock_fd, dict->lock_type, operation)); in dict_default_lock()
155 dict->lock_type = INTERNAL_LOCK; in dict_alloc()
H A Ddict.h91 int lock_type; /* for read/write lock */ member
H A Ddict_lmdb.c657 dict_lmdb->dict.lock_type = MYFLOCK_STYLE_FCNTL; in dict_lmdb_open()
/netbsd-src/external/gpl2/lvm2/dist/tools/
H A Dtoollib.h29 uint32_t lock_type);
39 struct volume_group *vg, uint32_t lock_type,
/netbsd-src/sys/kern/
H A Dvfs_trans.c520 _fstrans_start(struct mount *mp, enum fstrans_lock_type lock_type, int wait) in _fstrans_start()
540 if (__predict_true(grant_lock(fmi, lock_type))) { in _fstrans_start()
542 fli->fli_lock_type = lock_type; in _fstrans_start()
553 while (! grant_lock(fmi, lock_type)) in _fstrans_start()
556 fli->fli_lock_type = lock_type; in _fstrans_start()
517 _fstrans_start(struct mount * mp,enum fstrans_lock_type lock_type,int wait) _fstrans_start() argument
/netbsd-src/external/gpl2/lvm2/dist/include/
H A Dlvm-file.h49 int fcntl_lock_file(const char *file, short lock_type, int warn_if_read_only);
/netbsd-src/crypto/external/bsd/heimdal/dist/lib/hdb/
H A Dhdb.h118 int lock_type; member
H A Dhdb-mitdb.c728 if (db->lock_type == HDB_WLOCK || db->lock_count == operation) in mdb_lock()
/netbsd-src/sys/uvm/
H A Duvm_fault.c275 krw_t lock_type; in uvmfault_anonget() local
316 lock_type = rw_lock_op(anon->an_lock); in uvmfault_anonget()
358 if (lock_type == RW_READER) { in uvmfault_anonget()
406 rw_enter(anon->an_lock, lock_type); in uvmfault_anonget()
421 KASSERT(lock_type == RW_WRITER); in uvmfault_anonget()
/netbsd-src/external/gpl3/gcc.old/dist/gcc/fortran/
H A Diso-fortran-env.def123 NAMED_DERIVED_TYPE (ISOFORTRAN_LOCK_TYPE, "lock_type", \
H A Dparse.c2974 bool coarray, lock_type, event_type, allocatable, pointer; in check_component() local
2975 coarray = lock_type = event_type = allocatable = pointer = false; in check_component()
3036 lock_type = 1; in check_component()
3063 if (pointer && !coarray && lock_type) in check_component()
3074 if (lock_type && allocatable && !coarray) in check_component()
3077 else if (lock_type && allocatable && c->ts.type == BT_DERIVED in check_component()
3083 if (sym->attr.coarray_comp && !coarray && lock_type) in check_component()
3090 if (sym->attr.lock_comp && coarray && !lock_type) in check_component()
H A Dresolve.c10147 gfc_symbol *lock_type; in resolve_critical() local
10157 lock_type = symtree->n.sym; in resolve_critical()
10163 lock_type = symtree->n.sym; in resolve_critical()
10164 lock_type->attr.flavor = FL_DERIVED; in resolve_critical()
10165 lock_type->attr.zero_comp = 1; in resolve_critical()
10166 lock_type->from_intmod = INTMOD_ISO_FORTRAN_ENV; in resolve_critical()
10167 lock_type->intmod_sym_id = ISOFORTRAN_LOCK_TYPE; in resolve_critical()
10180 symtree->n.sym->ts.u.derived = lock_type; in resolve_critical()
/netbsd-src/external/gpl3/gcc/dist/gcc/fortran/
H A Diso-fortran-env.def123 NAMED_DERIVED_TYPE (ISOFORTRAN_LOCK_TYPE, "lock_type", \
H A Dparse.cc3224 bool coarray, lock_type, event_type, allocatable, pointer; in check_component() local
3225 coarray = lock_type = event_type = allocatable = pointer = false; in check_component()
3286 lock_type = 1; in check_component()
3313 if (pointer && !coarray && lock_type) in check_component()
3324 if (lock_type && allocatable && !coarray) in check_component()
3327 else if (lock_type && allocatable && c->ts.type == BT_DERIVED in check_component()
3333 if (sym->attr.coarray_comp && !coarray && lock_type) in check_component()
3340 if (sym->attr.lock_comp && coarray && !lock_type) in check_component()
H A Dresolve.cc10286 gfc_symbol *lock_type; in resolve_critical() local
10296 lock_type = symtree->n.sym; in resolve_critical()
10302 lock_type = symtree->n.sym; in resolve_critical()
10303 lock_type->attr.flavor = FL_DERIVED; in resolve_critical()
10304 lock_type->attr.zero_comp = 1; in resolve_critical()
10305 lock_type->from_intmod = INTMOD_ISO_FORTRAN_ENV; in resolve_critical()
10306 lock_type->intmod_sym_id = ISOFORTRAN_LOCK_TYPE; in resolve_critical()
10319 symtree->n.sym->ts.u.derived = lock_type; in resolve_critical()
H A DChangeLog-20152071 * trans-types.c (gfc_get_derived_type): For lock_type with
2074 Handle lock_type with -fcoarray=lib.
H A DChangeLog-20111828 * parse.c (parse_derived): Add lock_type
1831 resolve_lock_unlock, resolve_symbol): Fix lock_type