Searched refs:lock_flag (Results 1 – 2 of 2) sorted by relevance
67 int lock_flag = -1; in krb5_lock_file() local79 lock_flag = LOCK_SH; in krb5_lock_file()85 lock_flag = LOCK_EX; in krb5_lock_file()91 lock_flag = LOCK_UN; in krb5_lock_file()95 if (lock_flag == -1) in krb5_lock_file()103 lock_flag |= LOCK_NB; in krb5_lock_file()123 if (flock(fd, lock_flag) == -1) in krb5_lock_file()
1357 int lock_flag; in krb5_fcc_open_file() local1412 lock_flag = KRB5_LOCKMODE_SHARED; in krb5_fcc_open_file()1414 lock_flag = KRB5_LOCKMODE_EXCLUSIVE; in krb5_fcc_open_file()1415 if ((retval = krb5_lock_file(context, f, lock_flag))) { in krb5_fcc_open_file()