/third_party/musl/src/thread/ |
H A D | pthread_mutex_trylock.c | 37 if (own || (old && !(type & 4))) return EBUSY; in __pthread_mutex_trylock_owner() 56 return EBUSY; in __pthread_mutex_trylock_owner() 65 return (type&4) ? ENOTRECOVERABLE : EBUSY; in __pthread_mutex_trylock_owner() 88 return a_cas(&m->_m_lock, 0, EBUSY) & EBUSY; in __pthread_mutex_trylock()
|
H A D | mtx_trylock.c | 7 return (a_cas(&m->_m_lock, 0, EBUSY) & EBUSY) ? thrd_busy : thrd_success; in mtx_trylock() 13 case EBUSY: return thrd_busy; in mtx_trylock()
|
H A D | pthread_mutex_timedlock.c | 65 if (r != EBUSY) return r; in __pthread_mutex_timedlock_inner() 70 if (r != EBUSY) return r; in __pthread_mutex_timedlock_inner() 76 while ((r=__pthread_mutex_trylock(m)) == EBUSY) { in __pthread_mutex_timedlock_inner() 98 && !a_cas(&m->_m_lock, 0, EBUSY)) in __pthread_mutex_timedlock()
|
H A D | pthread_rwlock_timedwrlock.c | 12 if (r != EBUSY) return r; in __pthread_rwlock_timedwrlock() 17 while ((r=__pthread_rwlock_trywrlock(rw))==EBUSY) { in __pthread_rwlock_timedwrlock()
|
H A D | pthread_rwlock_timedrdlock.c | 9 if (r != EBUSY) return r; in __pthread_rwlock_timedrdlock() 14 while ((r=__pthread_rwlock_tryrdlock(rw))==EBUSY) { in __pthread_rwlock_timedrdlock()
|
/third_party/musl/porting/liteos_a/user/src/thread/ |
H A D | pthread_mutex_trylock.c | 20 if (own || (old && !(type & 4))) return EBUSY; in __pthread_mutex_trylock_owner() 33 return EBUSY; in __pthread_mutex_trylock_owner() 55 return a_cas(&m->_m_lock, 0, EBUSY) & EBUSY; in __pthread_mutex_trylock()
|
H A D | pthread_mutex_timedlock.c | 59 && !a_cas(&m->_m_lock, 0, EBUSY)) in __pthread_mutex_timedlock() 66 if (r != EBUSY) return r; in __pthread_mutex_timedlock() 71 while ((r=__pthread_mutex_trylock(m)) == EBUSY) { in __pthread_mutex_timedlock()
|
/third_party/musl/src/unistd/ |
H A D | dup3.c | 13 while ((r=__syscall(SYS_dup3, old, new, flags))==-EBUSY); in __dup3() 17 while ((r=__syscall(SYS_dup2, old, new))==-EBUSY); in __dup3() 21 while ((r=__syscall(SYS_dup3, old, new, flags))==-EBUSY); in __dup3()
|
H A D | dup2.c | 10 while ((r=__syscall(SYS_dup2, old, new))==-EBUSY); in dup2() 16 while ((r=__syscall(SYS_dup3, old, new, 0))==-EBUSY); in dup2()
|
H A D | faccessat.c | 45 if (pipe2(p, O_CLOEXEC)) return __syscall_ret(-EBUSY); in faccessat() 54 ret = -EBUSY; in faccessat()
|
/third_party/musl/porting/linux/user/src/thread/ |
H A D | pthread_mutex_timedlock.c | 79 if (r != EBUSY) return r; in __pthread_mutex_timedlock_inner() 83 if (r != EBUSY) return r; in __pthread_mutex_timedlock_inner() 89 while ((r=__pthread_mutex_trylock(m)) == EBUSY) { in __pthread_mutex_timedlock_inner() 111 && !a_cas(&m->_m_lock, 0, EBUSY)) in __pthread_mutex_timedlock()
|
H A D | pthread_rwlock_timedwrlock.c | 27 if (r != EBUSY) return r; in __pthread_rwlock_timedwrlock() 32 while ((r=__pthread_rwlock_trywrlock(rw))==EBUSY) { in __pthread_rwlock_timedwrlock()
|
H A D | pthread_rwlock_timedrdlock.c | 24 if (r != EBUSY) return r; in __pthread_rwlock_timedrdlock() 29 while ((r=__pthread_rwlock_tryrdlock(rw))==EBUSY) { in __pthread_rwlock_timedrdlock()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_trylock/ |
H A D | 1-1.c | 17 pthread_mutex_trylock() and EBUSY is expected 46 /* Trylock the mutex and expect it returns EBUSY */ in main() 48 if (rc != EBUSY) { in main() 49 fprintf(stderr, "Expected %d(EBUSY), got %d\n", EBUSY, rc); in main() 63 } else if (rc == EBUSY) { in main()
|
H A D | 4-1.c | 10 * -[EBUSY] The mutex could not be acquired because it was already locked. 15 * -- Try to lock the mutex using pthread_mutex_trylock() and expect EBUSY 36 if (rc != EBUSY) { in main() 37 fprintf(stderr, "Expected %d(EBUSY), got %d\n", EBUSY, rc); in main()
|
/third_party/ltp/testcases/kernel/fs/proc/ |
H A D | proc01.c | 82 {"open", "/proc/acpi/event", EBUSY}, 83 {"open", "/proc/sal/cpe/data", EBUSY}, 84 {"open", "/proc/sal/cmc/data", EBUSY}, 85 {"open", "/proc/sal/init/data", EBUSY}, 86 {"open", "/proc/sal/mca/data", EBUSY},
|
/third_party/NuttX/fs/vfs/ |
H A D | fs_rmdir.c | 58 return -EBUSY; in check_target() 64 return -EBUSY; in check_target() 75 return -EBUSY; in check_target()
|
H A D | fs_rename.c | 64 return -EBUSY; in check_rename_target() 80 return -EBUSY; in check_rename_target() 85 return -EBUSY; in check_rename_target() 100 return -EBUSY; in check_path_invalid()
|
/third_party/ltp/testcases/kernel/syscalls/umount2/ |
H A D | umount2.h | 28 if (ret == 0 || errno != EBUSY) in umount2_retry() 31 tst_resm(TINFO, "umount('%s', %i) failed with EBUSY, try %2i...", in umount2_retry() 40 errno = EBUSY; in umount2_retry()
|
H A D | umount2_02.c | 59 if (ret == 0 || errno != EBUSY) in umount2_retry() 62 tst_res(TINFO, "umount('%s', %i) failed with EBUSY, try %2i...", in umount2_retry() 71 errno = EBUSY; in umount2_retry()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_destroy/speculative/ |
H A D | 4-2.c | 9 * locked mutex, it fails and returns EBUSY 15 * 4. Check that this may fail with EBUSY 43 if (rc != EBUSY) { in main() 44 printf(ERROR_PREFIX "Test PASS: Expected %d(EBUSY) got %d, " in main() 45 "though the standard states 'may' fail\n", EBUSY, rc); in main()
|
/third_party/musl/libc-test/src/regression/ |
H A D | pthread_rwlock-ebusy.c | 2 // pthread_rwlock_try* should fail with EBUSY 13 if (r != EBUSY) in tryrdlock() 14 t_error("tryrdlock for wrlocked lock returned %s, want EBUSY\n", strerror(r)); in tryrdlock() 21 if (r != EBUSY) in trywrlock() 22 t_error("trywrlock for rdlocked lock returned %s, want EBUSY\n", strerror(r)); in trywrlock()
|
/third_party/rust/crates/nix/src/ |
H A D | errno.rs | 164 EBUSY => "Device or resource busy", 1140 EBUSY = libc::EBUSY, 1285 libc::EBUSY => EBUSY, 1430 EBUSY = libc::EBUSY, 1548 libc::EBUSY => EBUSY, 1666 EBUSY [all...] |
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_destroy/speculative/ |
H A D | 4-1.c | 9 * Test that EBUSY is returned when pthread_cond_destroy() is called on a cond 89 if (rc != EBUSY) { in main() 90 printf("UNSUPPORTED: The standard recommends returning %d, EBUSY, but got %d, %s\n", in main() 91 EBUSY, rc, strerror(rc)); in main() 94 printf("PASSED: received EBUSY as per recommendation\n"); in main()
|
/third_party/alsa-utils/alsactl/ |
H A D | lock.c | 77 if (errno == EBUSY || errno == EAGAIN) { in state_lock_() 92 err = -EBUSY; in state_lock_() 134 err = -EBUSY; in state_lock_()
|