Lines Matching refs:lock_file

268 lock_file(int fd, boolean_t read_lock, boolean_t set_lock)
370 if (lock_file(fd, B_FALSE, B_TRUE) != 0) {
380 (void) lock_file(fd, B_FALSE, B_FALSE);
390 (void) lock_file(fd, B_FALSE, B_FALSE);
470 (void) lock_file(fd, B_FALSE, B_FALSE);
478 (void) lock_file(fd, B_FALSE, B_FALSE);
531 if (lock_file(*fd, read_lock, B_TRUE) != 0) {
540 (void) lock_file(*fd, B_TRUE, B_FALSE); /* unlock file */
551 if (lock_file(*fd, B_TRUE, B_FALSE) != 0) {
564 if (lock_file(*fd, read_lock, B_TRUE) != 0) {
569 (void) lock_file(*fd, B_TRUE, B_FALSE); /* unlock */
665 if (lock_file(desc_fd, read_lock, B_FALSE) == 1) {
1004 if (lock_file(fd, B_TRUE, B_FALSE) != 0) {
1056 if (lock_file(fd, B_TRUE, B_FALSE) < 0) {
1109 if (lock_file(fd, B_TRUE, B_FALSE) < 0) {
1160 if (lock_file(fd, B_TRUE, B_FALSE) < 0) {
1273 if (lock_file(new_fd, B_FALSE, B_TRUE) != 0) {
1275 (void) lock_file(old_fd, B_TRUE, B_FALSE);
1397 (void) lock_file(old_fd, B_TRUE, B_FALSE);
1398 (void) lock_file(new_fd, B_FALSE, B_FALSE);
1762 if (lock_file(fd, B_FALSE, B_FALSE) < 0) {
1856 (void) lock_file(fd, B_TRUE, B_FALSE);
1927 (void) lock_file(ks_fd, B_TRUE, B_FALSE);
1948 (void) lock_file(ks_fd, B_TRUE, B_FALSE);
1956 (void) lock_file(ks_fd, B_TRUE, B_FALSE);
1970 (void) lock_file(ks_fd, B_TRUE, B_FALSE);
1976 (void) lock_file(ks_fd, B_TRUE, B_FALSE);
2148 (void) lock_file(fd, B_TRUE, B_FALSE);
2288 if (lock_file(obj_fd, B_FALSE, B_TRUE) != 0) {
2418 if (lock_file(fd, B_FALSE, B_FALSE) != 0) {
2437 (void) lock_file(fd, B_FALSE, B_FALSE);
2501 (void) lock_file(ks_fd, B_FALSE, B_FALSE);
2650 if (lock_file(fd, B_FALSE, B_FALSE) < 0) {
2658 if (lock_file(ks_fd, B_FALSE, B_FALSE) != 0) {
2679 (void) lock_file(ks_fd, B_FALSE, B_FALSE);
2742 (void) lock_file(obj_fd, B_FALSE, B_FALSE);
2747 (void) lock_file(obj_fd, B_FALSE, B_FALSE);
2758 if (lock_file(fd, B_FALSE, B_FALSE) != 0) {
2814 if (lock_file(fd, B_TRUE, B_FALSE) < 0) {
2886 if (lock_file(fd, B_TRUE, B_FALSE) < 0) {