Home
last modified time | relevance | path

Searched refs:errno (Results 876 - 900 of 15600) sorted by relevance

1...<<31323334353637383940>>...624

/third_party/node/deps/uv/src/unix/
H A Dnetbsd.c26 #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 Dpoll-posix.c40 #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 Dtest_ossaudiodev.py14 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 Dmock_os_account_musl.cpp34 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 Dkey_utils.cpp40 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 Drpc_test_main.cpp22 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 Drpc_test_main.cpp22 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 Dipc_unmuxed.c10 #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 Dipc_unmuxed.c10 #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 Deintr_wrapper.h24 #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 Dcpuctl_fj_simple_echo.c26 * 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 Dpthread_atfork-errno-clobber.c1 #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 Dmktemp.c4 #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 Dttyname_r.c2 #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 D10-1.c10 * 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 D8-1.c10 * 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 D7-1.c16 #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 D7-1.c11 * 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 D26-1.c11 * 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 D7-1.c25 #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 D23-1.c26 #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 D5-1.c17 #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 Dswapoff.c16 #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 Dswapon.c16 #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 Dtcsetattr.c16 #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()

Completed in 6 milliseconds

1...<<31323334353637383940>>...624