/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/ |
H A D | vlan_ioctl.c | 33 "failed: %s", __func__, strerror(errno)); in vlan_rem() 44 "%s", __func__, if_name, strerror(errno)); in vlan_rem() 79 "failed: %s", __func__, strerror(errno)); in vlan_add() 117 __func__, if_request.device1, strerror(errno)); in vlan_add() 137 __func__, strerror(errno)); in vlan_set_name_type() 148 __func__, name_type, strerror(errno)); in vlan_set_name_type()
|
/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()
|
/third_party/musl/libc-test/src/functionalext/supplement/passwd/ |
H A D | getgrgid.c | 16 #include <errno.h> 29 errno = 0; in getgrgid_0100() 34 if (errno != 0) { in getgrgid_0100() 35 t_error("%s failed, errno is %d\n", __func__, errno); in getgrgid_0100()
|
H A D | getgrnam.c | 16 #include <errno.h> 29 errno = 0; in getgrnam_0100() 34 if (errno != 0) { in getgrnam_0100() 35 t_error("%s failed, errno is %d\n", __func__, errno); in getgrnam_0100()
|
H A D | setpwent.c | 16 #include <errno.h> 30 errno = 0; in setpwent_0100() 36 if (errno != 0) { in setpwent_0100() 37 t_error("%s failed: getpwent. errno = %ld\n", __func__, errno); in setpwent_0100()
|
H A D | setgrent.c | 16 #include <errno.h> 30 errno = 0; in setgrent_0100() 36 if (errno != 0) { in setgrent_0100() 37 t_error("%s failed: errno = %ld\n", __func__, errno); in setgrent_0100()
|
/third_party/musl/libc-test/src/functionalext/supplement/process/process_gtest/ |
H A D | process_unsetenv_test.cpp | 1 #include <errno.h> 28 * @tc.desc: Check how the unsetenv function handles invalid input parameters and whether it sets the errno 34 errno = 0; in HWTEST_F() 37 EXPECT_EQ(EINVAL, errno); in HWTEST_F() 40 EXPECT_EQ(EINVAL, errno); in HWTEST_F()
|
/third_party/musl/libc-test/src/functionalext/supplement/unistd/ |
H A D | unlinkat.c | 16 #include <errno.h> 47 errno = 0; in unlinkat_0200() 55 if (errno != ENOENT) { in unlinkat_0200() 56 t_error("%s failed: errno = %d\n", __func__, errno); in unlinkat_0200()
|
/third_party/selinux/libselinux/src/ |
H A D | setfilecon.c | 5 #include <errno.h> 14 if (rc < 0 && errno == ENOTSUP) { in setfilecon_raw() 16 int err = errno; in setfilecon_raw() 21 errno = err; in setfilecon_raw()
|
H A D | lsetfilecon.c | 5 #include <errno.h> 14 if (rc < 0 && errno == ENOTSUP) { in lsetfilecon_raw() 16 int err = errno; in lsetfilecon_raw() 21 errno = err; in lsetfilecon_raw()
|