Home
last modified time | relevance | path

Searched refs:errno (Results 1001 - 1025 of 6046) sorted by relevance

1...<<41424344454647484950>>...242

/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/
H A D19-3.c11 * Test that sched_setscheduler() sets errno == EINVAL when the
18 #include <errno.h>
47 if (result == -1 && errno == EINVAL) { in main()
53 } else if (errno == EPERM) { in main()
H A D19-2.c11 * Test that sched_setscheduler() sets errno == EINVAL when the
18 #include <errno.h>
42 if (result == -1 && errno == EINVAL) { in main()
48 } else if (errno == EPERM) { in main()
H A D21-1.c11 * Test that sched_setscheduler() sets errno == ESRCH when no process can be
19 #include <errno.h>
50 if (result == -1 && errno == ESRCH) { in main()
56 } else if (errno == EPERM) { in main()
61 perror("errno is not ESRCH"); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_open/
H A D15-1.c24 #include <errno.h>
35 if (result != 0 && errno != ENOENT) { in main()
54 } else if (result == -1 && errno == EBADF) { in main()
H A D20-1.c21 #include <errno.h>
32 if (result != 0 && errno != ENOENT) { in main()
47 if (result == -1 && errno == EINVAL) { in main()
H A D20-2.c21 #include <errno.h>
32 if (result != 0 && errno != ENOENT) { in main()
50 } else if (result == -1 && errno == EINVAL) { in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaddset/
H A D4-1.c10 * errno to indicate the error.
15 * the signal set, and errno is set to indicate the error.
17 #include <errno.h>
39 if (ret != -1 || errno != EINVAL) { in main()
41 printf("Failed sigaddset(..., %i) ret=%i errno=%i\n", in main()
42 sigs[i], ret, errno); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigdelset/
H A D4-1.c12 * errno to indicate the error.
17 * the signal set, and errno is set to indicate the error.
21 #include <errno.h>
41 if (ret != -1 || errno != EINVAL) { in main()
43 printf("Failed sigdelset(..., %i) ret=%i errno=%i\n", in main()
44 sigs[i], ret, errno); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigismember/
H A D5-1.c12 * errno to indicate the error.
16 * 3) Verify that -1 is returned and errno is set to indicate the error.
20 #include <errno.h>
41 if (ret != -1 || errno != EINVAL) { in main()
43 printf("Failed sigaddset(..., %i) ret=%i errno=%i\n", in main()
44 sigs[i], ret, errno); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigpause/
H A D4-1.c8 This program verifies that sigpause() returns -1 and sets errno to EINVAL
17 #include <errno.h>
38 if (errno == EINVAL) { in main()
40 "set errno to EINVAL\n"); in main()
43 printf("Test FAILED: sigpause did not set errno " in main()
49 if (errno == EINVAL) in main()
50 printf("Test FAILED: sigpause did not set errno " in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigrelse/
H A D3-1.c12 * return -1 and set errno to EINVAL
20 #include <errno.h>
36 if (ret != -1 || errno != EINVAL) { in main()
38 printf("Failed sigrelse(%i) ret=%i errno=%i\n", in main()
39 sigs[i], ret, errno); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/
H A D2-2.c30 #include <errno.h>
51 printf(TNAME " Error at open(): %s\n", strerror(errno)); in main()
58 printf(TNAME " Error at aio_cancel(): %s\n", strerror(errno)); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/
H A D9-1.c41 #include <errno.h>
69 UNRESOLVED(errno, "Failed to fork"); in main()
89 UNRESOLVED(errno, "Waitpid returned the wrong PID"); in main()
H A D4-1.c38 #include <errno.h>
59 UNRESOLVED(errno, "Failed to fork"); in main()
77 UNRESOLVED(errno, "Waitpid returned the wrong PID"); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/
H A D6-2.c40 #include <errno.h>
101 while ((ret == -1) && (errno == EINTR)); in threaded()
103 UNRESOLVED(errno, "Failed to wait for the semaphore"); in threaded()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigqueue/
H A D3-1.c10 function will fail with errno set to EPERM, unless the sending process
23 #include <errno.h>
46 if (errno == EPERM) { in set_nonroot()
82 if (EPERM != errno) { in main()
/third_party/musl/libc-test/src/functionalext/supplement/dirent/dirent_gtest/
H A Ddirent_readdir64_test.cpp2 #include <errno.h>
24 errno = 0; in HWTEST_F()
29 EXPECT_EQ(0, errno); in HWTEST_F()
H A Ddirent_opendir_test.cpp2 #include <errno.h>
35 EXPECT_EQ(ENOENT, errno); in HWTEST_F()
37 EXPECT_EQ(ENOTDIR, errno); in HWTEST_F()
/third_party/musl/libc-test/src/common/
H A Dsetrlim.c2 #include <errno.h>
11 t_error("getrlimit %d: %s\n", r, strerror(errno)); in t_setrlim()
21 t_error("setrlimit(%d, %ld): %s\n", r, lim, strerror(errno)); in t_setrlim()
/third_party/musl/libc-test/src/functionalext/supplement/multibyte/multibyte_gtest/
H A Dmultibyte_mbrtowc_test.cpp1 #include <errno.h>
18 * convert an invalid multi byte sequence to a wide character, the function should return -1 and set errno to
28 errno = 0; in HWTEST_F()
31 EXPECT_TRUE(EILSEQ == errno); in HWTEST_F()
/third_party/musl/libc-test/src/functionalext/supplement/multibyte/
H A Dmbtowc.c52 EXPECT_EQ("mbtowc_0200", errno, EILSEQ); in mbtowc_0200()
56 EXPECT_EQ("mbtowc_0200", errno, EILSEQ); in mbtowc_0200()
60 EXPECT_EQ("mbtowc_0200", errno, EILSEQ); in mbtowc_0200()
/third_party/musl/libc-test/src/functionalext/supplement/stat/stat_gtest/
H A Dstat_stat_test.cpp1 #include <errno.h>
38 errno = 0; in HWTEST_F()
40 EXPECT_EQ(ENOENT, errno); in HWTEST_F()
/third_party/musl/libc-test/src/functionalext/supplement/termios/
H A Dcfsetospeed.c16 #include <errno.h>
47 errno = 0; in cfsetospeed_0200()
53 if (errno != EINVAL) { in cfsetospeed_0200()
54 t_error("%s errno should be EINVAL", __func__); in cfsetospeed_0200()
/third_party/python/Lib/test/subprocessdata/
H A Dfd_status.py9 import errno namespace
28 if e.errno == errno.EBADF:
/third_party/selinux/libselinux/src/
H A Dpolicyvers.c5 #include <errno.h>
20 errno = ENOENT; in security_policyvers()
27 if (errno == ENOENT) in security_policyvers()

Completed in 6 milliseconds

1...<<41424344454647484950>>...242