/third_party/node/deps/uv/src/unix/ |
H A D | netbsd.c | 26 #include <errno.h> 85 return UV__ERR(errno); in uv_exepath() 106 return UV__ERR(errno); in uv_get_free_memory() 123 return UV__ERR(errno); in uv_get_total_memory() 171 return UV__ERR(errno); in uv_uptime() 195 return UV__ERR(errno); in uv_cpu_info() 200 return UV__ERR(errno); in uv_cpu_info() 214 return UV__ERR(errno); in uv_cpu_info() 249 return UV__ERR(errno); in uv__random_sysctl()
|
/third_party/pulseaudio/src/pulsecore/ |
H A D | poll-posix.c | 40 #include <errno.h> 109 if ((ready == -1) && (errno == EBADF)) { in pa_poll() 153 } else if (errno == EBADF) in pa_poll() 187 errno = WSAGetLastError(); in pa_poll() 204 if (r == 0 || (r < 0 && errno == ENOTSOCK)) in pa_poll() 211 if (errno == ESHUTDOWN || errno == ECONNRESET || in pa_poll() 212 errno == ECONNABORTED || errno == ENETRESET) { in pa_poll()
|
/third_party/python/Lib/test/ |
H A D | test_ossaudiodev.py | 14 import errno namespace 52 if msg.args[0] in (errno.EACCES, errno.ENOENT, 53 errno.ENODEV, errno.EBUSY): 198 if msg.args[0] in (errno.EACCES, errno.ENOENT, 199 errno.ENODEV, errno.EBUSY):
|
/base/account/os_account/services/accountmgr/test/unittest/os_account/mock/ |
H A D | mock_os_account_musl.cpp | 34 errno = 1; in dlclose() 37 errno = 0; in dlclose() 44 if (errno == 0) { in dlerror() 47 errno = 0; in dlerror()
|
/base/security/code_signature/services/key_enable/utils/src/ |
H A D | key_utils.cpp | 40 LOG_ERROR(LABEL, "Add certificate failed, errno = <%{public}d, %{public}s>",
in AddKey() 41 errno, strerror(errno));
in AddKey() 55 LOG_ERROR(LABEL, "Restrict keyring failed, errno = <%{public}d, %{public}s>",
in KeyctlRestrictKeyring() 56 errno, strerror(errno));
in KeyctlRestrictKeyring()
|
/foundation/communication/wifi/wifi/test/wifi_standard/ipc_framework/cRPC/unittest/ |
H A D | rpc_test_main.cpp | 22 errno = 0; in __wrap_read() 27 errno = EWOULDBLOCK; in __wrap_read() 41 errno = 0; in __wrap_write() 49 errno = EWOULDBLOCK; in __wrap_write()
|
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_base/ |
H A D | rpc_test_main.cpp | 22 errno = 0; in __wrap_read() 27 errno = EWOULDBLOCK; in __wrap_read() 41 errno = 0; in __wrap_write() 49 errno = EWOULDBLOCK; in __wrap_write()
|
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/syscalls/ |
H A D | ipc_unmuxed.c | 10 #include <errno.h> 23 errno = 0; \ 25 printf("\treturned %d, errno %d\n", rc, errno); \ 26 return errno == ENOSYS; \
|
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/syscalls/ |
H A D | ipc_unmuxed.c | 10 #include <errno.h> 23 errno = 0; \ 25 printf("\treturned %d, errno %d\n", rc, errno); \ 26 return errno == ENOSYS; \
|
/third_party/gn/src/base/posix/ |
H A D | eintr_wrapper.h | 24 #include <errno.h> 33 } while (eintr_wrapper_result == -1 && errno == EINTR); \ 45 } while (eintr_wrapper_result == -1 && errno == EINTR && \ 57 if (eintr_wrapper_result == -1 && errno == EINTR) { \
|
/third_party/ltp/testcases/kernel/controllers/cpuctl_fj/ |
H A D | cpuctl_fj_simple_echo.c | 26 * The command "echo" can't return the errno. So we write this program to 38 #include <errno.h> 58 err(errno, "%s", argv[2]); in main() 61 err(errno, "write error"); in main() 65 err(errno, "close error"); in main()
|
/third_party/musl/libc-test/src/regression/ |
H A D | pthread_atfork-errno-clobber.c | 1 #include <errno.h> 14 errno = 0; in handler_errno() 25 while (waitpid(pid, NULL, 0)<0 && errno==EINTR); in main() 27 TEST(errno != 0, "fork failed but errno was clobbered\n"); in main()
|
/third_party/musl/src/temp/ |
H A D | mktemp.c | 4 #include <errno.h> 14 errno = EINVAL; in mktemp() 22 if (errno != ENOENT) *template = 0; in mktemp() 28 errno = EEXIST; in mktemp()
|
/third_party/musl/src/unistd/ |
H A D | ttyname_r.c | 2 #include <errno.h> 12 if (!isatty(fd)) return errno; in ttyname_r() 17 if (l < 0) return errno; in ttyname_r() 23 return errno; in ttyname_r()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mlock/ |
H A D | 10-1.c | 10 * Test that mlock() set errno = EINVAL when addr is not a multiple of 19 #include <errno.h> 29 if (errno) { in main() 48 } else if (result == -1 && errno == EINVAL) { in main() 52 } else if (errno == EPERM) { in main()
|
H A D | 8-1.c | 10 * Test that the mlock() function sets errno = ENOMEM if some or all of the 28 #include <errno.h> 41 if (errno) { in main() 49 if (result == -1 && errno == ENOMEM) { in main() 52 } else if (errno == EPERM) { in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/munlock/ |
H A D | 7-1.c | 16 #include <errno.h> 33 if (errno == EPERM) { in main() 43 if (result == 0 && errno == 0) { in main() 46 } else if (errno == 0) { in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_getscheduler/ |
H A D | 7-1.c | 11 * Test that sched_getscheduler() sets errno == EPERM when the requesting 16 #include <errno.h> 39 if (errno == EPERM) { in set_nonroot() 70 if (result == -1 && errno == EPERM) { in main() 78 if (errno != EPERM) { in main() 79 perror("errno is not EPERM"); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/ |
H A D | 26-1.c | 11 * Test that sched_setparam() sets errno == EPERM when the requesting process 17 #include <errno.h> 39 if (errno == EPERM) { in set_nonroot() 75 if (result == -1 && errno == EPERM) { in main() 78 } else if (errno != EPERM) { in main() 79 perror("errno is not EPERM"); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/fsync/ |
H A D | 7-1.c | 25 #include <errno.h> 36 strerror(errno)); in main() 40 if (fsync(fd[1]) == -1 && errno == EINVAL) { in main() 48 strerror(errno)); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/ |
H A D | 23-1.c | 26 #include <errno.h> 35 printf("Error at pipe(): %s\n", strerror(errno)); in main() 41 if (pa == MAP_FAILED && errno == ENODEV) { in main() 50 strerror(errno)); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/munlockall/ |
H A D | 5-1.c | 17 #include <errno.h> 40 } else if (errno == EPERM) { in main() 59 if (errno) { in main() 60 perror("An errno occurs when calling sysconf().\n"); in main() 69 } else if (errno == EPERM) { in main()
|
/third_party/musl/libc-test/src/functionalext/supplement/linux/ |
H A D | swapoff.c | 16 #include <errno.h> 32 errno = 0; in swapoff_0100() 45 if (errno == ENOSYS) { in swapoff_0100() 46 t_error("%s errno is %d\n", __func__, errno); in swapoff_0100()
|
H A D | swapon.c | 16 #include <errno.h> 32 errno = 0; in swapon_0100() 45 if (errno == ENOSYS) { in swapon_0100() 46 t_error("%s errno is %d\n", __func__, errno); in swapon_0100()
|
/third_party/musl/libc-test/src/functionalext/supplement/manual/termios/ |
H A D | tcsetattr.c | 16 #include <errno.h> 54 errno = 0; in tcsetattr_0200() 60 if (errno == 0) { in tcsetattr_0200() 61 t_error("%s failed: errno = %d\n", __func__, errno); in tcsetattr_0200()
|