Home
last modified time | relevance | path

Searched refs:EBUSY (Results 1 - 25 of 263) sorted by relevance

1234567891011

/third_party/musl/src/thread/
H A Dpthread_mutex_trylock.c37 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 Dmtx_trylock.c7 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 Dpthread_mutex_timedlock.c65 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 Dpthread_rwlock_timedwrlock.c12 if (r != EBUSY) return r; in __pthread_rwlock_timedwrlock()
17 while ((r=__pthread_rwlock_trywrlock(rw))==EBUSY) { in __pthread_rwlock_timedwrlock()
H A Dpthread_rwlock_timedrdlock.c9 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 Dpthread_mutex_trylock.c20 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 Dpthread_mutex_timedlock.c59 && !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 Ddup3.c13 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 Ddup2.c10 while ((r=__syscall(SYS_dup2, old, new))==-EBUSY); in dup2()
16 while ((r=__syscall(SYS_dup3, old, new, 0))==-EBUSY); in dup2()
H A Dfaccessat.c45 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 Dpthread_mutex_timedlock.c79 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 Dpthread_rwlock_timedwrlock.c27 if (r != EBUSY) return r; in __pthread_rwlock_timedwrlock()
32 while ((r=__pthread_rwlock_trywrlock(rw))==EBUSY) { in __pthread_rwlock_timedwrlock()
H A Dpthread_rwlock_timedrdlock.c24 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 D1-1.c17 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 D4-1.c10 * -[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 Dproc01.c82 {"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 Dfs_rmdir.c58 return -EBUSY; in check_target()
64 return -EBUSY; in check_target()
75 return -EBUSY; in check_target()
H A Dfs_rename.c64 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 Dumount2.h28 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 Dumount2_02.c59 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 D4-2.c9 * 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 Dpthread_rwlock-ebusy.c2 // 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 Derrno.rs164 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 D4-1.c9 * 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 Dlock.c77 if (errno == EBUSY || errno == EAGAIN) { in state_lock_()
92 err = -EBUSY; in state_lock_()
134 err = -EBUSY; in state_lock_()

Completed in 8 milliseconds

1234567891011