Home
last modified time | relevance | path

Searched refs:errno (Results 126 - 150 of 14177) sorted by relevance

12345678910>>...568

/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_close/
H A D3-2.c47 #include <errno.h>
100 if (sem == SEM_FAILED && errno == EEXIST) { in main()
106 UNRESOLVED(errno, "Failed to create the semaphore"); in main()
112 } while (ret != 0 && errno == EINTR); in main()
115 UNRESOLVED(errno, "Failed to wait for the semaphore"); in main()
122 UNRESOLVED(errno, "Failed to close the semaphore"); in main()
129 UNRESOLVED(errno, "Failed to re-open the semaphore"); in main()
136 UNRESOLVED(errno, "Failed to get semaphore value"); in main()
148 UNRESOLVED(errno, "Failed to close the semaphore"); in main()
154 UNRESOLVED(errno, "Faile in main()
[all...]
/third_party/musl/libc-test/src/functionalext/supplement/linux/
H A Dsetxattr.c16 #include <errno.h>
45 errno = 0; in setxattr_0100()
51 if (errno != 0) { in setxattr_0100()
52 t_error("%s failed: errno = %d\n", __func__, errno); in setxattr_0100()
57 errno = 0; in setxattr_0100()
63 if (errno != 0) { in setxattr_0100()
64 t_error("%s failed: errno = %d\n", __func__, errno); in setxattr_0100()
81 errno in setxattr_0200()
[all...]
/third_party/musl/libc-test/src/functionalext/supplement/sched/
H A Dsched_rr_get_interval.c16 #include <errno.h>
33 errno = 0; in sched_rr_get_interval_0100()
35 if (result != 0 || errno != 0) { in sched_rr_get_interval_0100()
37 t_error("%s failed: errno = %d\n", __func__, errno); in sched_rr_get_interval_0100()
56 errno = 0; in sched_rr_get_interval_0200()
58 if (result == 0 || errno == 0) { in sched_rr_get_interval_0200()
60 t_error("%s failed: errno = %d\n", __func__, errno); in sched_rr_get_interval_0200()
74 errno in sched_rr_get_interval_time64_0100()
[all...]
/third_party/selinux/libselinux/src/
H A Dfsetfilecon.c5 #include <errno.h>
13 int rc, fd_flag, saved_errno = errno; in fsetxattr_wrapper()
16 if (rc == 0 || errno != EBADF) in fsetxattr_wrapper()
22 errno = EBADF; in fsetxattr_wrapper()
27 errno = saved_errno; in fsetxattr_wrapper()
29 if (rc < 0 && errno == ENOENT) in fsetxattr_wrapper()
30 errno = EBADF; in fsetxattr_wrapper()
38 if (rc < 0 && errno == ENOTSUP) { in fsetfilecon_raw()
40 int err = errno; in fsetfilecon_raw()
45 errno in fsetfilecon_raw()
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
H A Dtest_bpffs.c35 if (CHECK(err, "unshare", "failed: %d\n", errno)) in fn()
39 if (CHECK(err, "mount /", "failed: %d\n", errno)) in fn()
43 if (CHECK(err, "umount " TDIR, "failed: %d\n", errno)) in fn()
47 if (CHECK(err, "mount", "mount root failed: %d\n", errno)) in fn()
51 if (CHECK(err, "mkdir "TDIR"/fs1", "failed: %d\n", errno)) in fn()
54 if (CHECK(err, "mkdir "TDIR"/fs2", "failed: %d\n", errno)) in fn()
58 if (CHECK(err, "mount bpffs "TDIR"/fs1", "failed: %d\n", errno)) in fn()
61 if (CHECK(err, "mount bpffs " TDIR "/fs2", "failed: %d\n", errno)) in fn()
85 if (CHECK(pid == -1, "clone", "clone failed %d", errno)) in test_test_bpffs()
90 if (CHECK(err == -1 && errno ! in test_test_bpffs()
[all...]
/kernel/linux/linux-5.10/samples/binderfs/
H A Dbinderfs_example.c4 #include <errno.h>
26 strerror(errno)); in main()
33 strerror(errno)); in main()
38 if (ret < 0 && errno != EEXIST) { in main()
40 strerror(errno)); in main()
47 strerror(errno)); in main()
56 strerror(errno)); in main()
61 saved_errno = errno; in main()
63 errno = saved_errno; in main()
66 strerror(errno)); in main()
[all...]
/kernel/linux/linux-6.6/samples/binderfs/
H A Dbinderfs_example.c4 #include <errno.h>
26 strerror(errno)); in main()
33 strerror(errno)); in main()
38 if (ret < 0 && errno != EEXIST) { in main()
40 strerror(errno)); in main()
47 strerror(errno)); in main()
56 strerror(errno)); in main()
61 saved_errno = errno; in main()
63 errno = saved_errno; in main()
66 strerror(errno)); in main()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/futex/functional/
H A Dfutex_requeue.c36 printf("waiter failed errno %d\n", errno); in waiterfn()
77 error("pthread_create failed\n", errno); in main()
85 res ? errno : res, in main()
86 res ? strerror(errno) : ""); in main()
95 res ? errno : res, in main()
96 res ? strerror(errno) : ""); in main()
109 error("pthread_create failed\n", errno); in main()
118 res ? errno : res, in main()
119 res ? strerror(errno) in main()
[all...]
/kernel/liteos_a/testsuites/unittest/extended/signal/full/
H A Dpipe_test_003.cpp58 errno = 0; in TestPipeSingleProcessFcntl()
72 printf("Receive %d bytes data : %s,%d\n", retValue, readbuffer, errno); in TestPipeSingleProcessFcntl()
73 printf("Receive %d bytes data : %s,%d\n", retValue, readbuffer + 13, errno); // 13, readbuffer offset. in TestPipeSingleProcessFcntl()
74 printf("Receive %d bytes data : %s,%d\n", retValue, readbuffer + 26, errno); // 26, readbuffer offset. in TestPipeSingleProcessFcntl()
75 ICUNIT_ASSERT_SIZE_STRING_EQUAL(readbuffer, "Hello World0", strlen(sentence1), errno); in TestPipeSingleProcessFcntl()
76 ICUNIT_ASSERT_SIZE_STRING_EQUAL(readbuffer + 13, "Hello World1", strlen(sentence1), errno); // 13, readbuffer offset. in TestPipeSingleProcessFcntl()
77 ICUNIT_ASSERT_SIZE_STRING_EQUAL(readbuffer + 26, "Hello World2", strlen(sentence1), errno); // 26, readbuffer offset. in TestPipeSingleProcessFcntl()
86 printf("Receive %d bytes data : %s,%d\n", retValue, readbuffer, errno); in TestPipeSingleProcessFcntl()
89 ICUNIT_ASSERT_EQUAL(errno, EAGAIN, errno); in TestPipeSingleProcessFcntl()
[all...]
/kernel/liteos_a/testsuites/unittest/process/basic/process/smoke/
H A Dprocess_test_054.cpp40 ret = errno; in TestCase()
44 ret = errno; in TestCase()
48 ret = errno; in TestCase()
52 ret = errno; in TestCase()
56 ret = errno; in TestCase()
60 ret = errno; in TestCase()
64 ret = errno; in TestCase()
68 ret = errno; in TestCase()
72 ret = errno; in TestCase()
76 ret = errno; in TestCase()
[all...]
/third_party/ltp/testcases/kernel/syscalls/fcntl/
H A Dfcntl10.c103 * Log the errno and Issue a FAIL message.
107 * Print errno log and/or timing stats if options given
116 #include <errno.h>
164 "fcntl(%s, F_SETLKW, &flocks) flocks.l_type = %s Failed, errno=%d : %s", in main()
183 "fcntl(%s, F_SETLKW, &flocks) flocks.l_type = F_UNLCK Failed, errno=%d : %s", in main()
215 "creat(%s, 0644) Failed, errno=%d : %s", fname, errno, in setup()
216 strerror(errno)); in setup()
218 tst_brkm(TBROK, cleanup, "close(%s) Failed, errno=%d : %s", in setup()
219 fname, errno, strerro in setup()
[all...]
H A Dfcntl09.c103 * Log the errno and Issue a FAIL message.
107 * Print errno log and/or timing stats if options given
116 #include <errno.h>
164 "fcntl(%s, F_SETLK, &flocks) flocks.l_type = %s Failed, errno=%d : %s", in main()
185 "fcntl(%s, F_SETLK, &flocks) flocks.l_type = F_UNLCK Failed, errno=%d : %s", in main()
216 "creat(%s, 0644) Failed, errno=%d : %s", fname, errno, in setup()
217 strerror(errno)); in setup()
219 tst_brkm(TBROK, cleanup, "close(%s) Failed, errno=%d : %s", in setup()
220 fname, errno, strerro in setup()
[all...]
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/
H A D16-1.c45 #include <errno.h>
72 UNRESOLVED(errno, "Failed to open shared memory segment"); in main()
78 UNRESOLVED(errno, "Failed to open shared memory segment"); in main()
85 UNRESOLVED(errno, "Failed to size the shared memory segment"); in main()
91 UNRESOLVED(errno, "Failed to size the shared memory segment"); in main()
100 UNRESOLVED(errno, "Failed to mmap the shared memory segment"); in main()
108 UNRESOLVED(errno, in main()
121 UNRESOLVED(errno, "Failed to fork"); in main()
147 UNRESOLVED(errno, "Waitpid returned the wrong PID"); in main()
166 UNRESOLVED(errno, "Faile in main()
[all...]
H A D3-1.c38 #include <errno.h>
60 UNRESOLVED(errno, "Failed to fork"); in main()
72 UNRESOLVED(errno, "Waitpid returned the wrong PID"); in main()
79 if ((ret == 0) || (errno != ESRCH)) { in main()
80 output("Kill returned %d (%d: %s)\n", ret, errno, in main()
81 strerror(errno)); in main()
86 if ((ret == 0) || (errno != ESRCH)) { in main()
87 output("Kill returned %d (%d: %s)\n", ret, errno, in main()
88 strerror(errno)); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_init/
H A D3-3.c44 #include <errno.h>
102 UNRESOLVED(errno, "Failed to open shared memory segment"); in main()
109 UNRESOLVED(errno, "Failed to size the shared memory segment"); in main()
118 UNRESOLVED(errno, "Failed to mmap the shared memory segment"); in main()
127 UNRESOLVED(errno, "Failed to init the semaphore"); in main()
134 UNRESOLVED(errno, "Failed to fork"); in main()
143 UNRESOLVED(errno, "Failed to post the semaphore"); in main()
154 UNRESOLVED(errno, "Waitpid returned the wrong PID"); in main()
165 UNRESOLVED(errno, "Failed to get semaphore count"); in main()
177 UNRESOLVED(errno, "Faile in main()
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/net/
H A Dtcp_fastopen_backup_key.c17 #include <errno.h>
58 error(1, errno, "Unable to get key"); in get_keys()
63 error(1, errno, "Unable to read %s", PROC_FASTOPEN_KEY); in get_keys()
76 error(1, errno, "Unable to set key"); in set_keys()
88 error(1, errno, "Unable to write %s", PROC_FASTOPEN_KEY); in set_keys()
128 error(1, errno, "failed to create receive socket"); in build_rcv_fd()
131 error(1, errno, "failed to set SO_REUSEPORT"); in build_rcv_fd()
133 error(1, errno, "failed to bind receive socket"); in build_rcv_fd()
136 error(1, errno, "failed to set TCP_FASTOPEN"); in build_rcv_fd()
139 error(1, errno, "faile in build_rcv_fd()
[all...]
H A Dreuseport_addr_any.c10 #include <errno.h>
50 error(1, errno, "inet_pton failed: %s", addr_str); in build_rcv_fd()
60 error(1, errno, "inet_pton failed: %s", addr_str); in build_rcv_fd()
77 error(1, errno, "failed to create receive socket"); in build_rcv_fd()
82 error(1, errno, "failed to set SO_REUSEPORT"); in build_rcv_fd()
85 error(1, errno, "failed to bind receive socket"); in build_rcv_fd()
88 error(1, errno, "tcp: failed to listen on receive port"); in build_rcv_fd()
93 error(1, errno, "failed to setsockopt"); in build_rcv_fd()
96 error(1, errno, "dccp: failed to listen on receive port"); in build_rcv_fd()
118 error(1, errno, "inet_pto in connect_and_send()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/net/
H A Dtcp_fastopen_backup_key.c17 #include <errno.h>
56 error(1, errno, "Unable to get key"); in get_keys()
61 error(1, errno, "Unable to read %s", PROC_FASTOPEN_KEY); in get_keys()
74 error(1, errno, "Unable to set key"); in set_keys()
86 error(1, errno, "Unable to write %s", PROC_FASTOPEN_KEY); in set_keys()
126 error(1, errno, "failed to create receive socket"); in build_rcv_fd()
129 error(1, errno, "failed to set SO_REUSEPORT"); in build_rcv_fd()
131 error(1, errno, "failed to bind receive socket"); in build_rcv_fd()
134 error(1, errno, "failed to set TCP_FASTOPEN"); in build_rcv_fd()
137 error(1, errno, "faile in build_rcv_fd()
[all...]
H A Dreuseport_addr_any.c10 #include <errno.h>
50 error(1, errno, "inet_pton failed: %s", addr_str); in build_rcv_fd()
60 error(1, errno, "inet_pton failed: %s", addr_str); in build_rcv_fd()
77 error(1, errno, "failed to create receive socket"); in build_rcv_fd()
82 error(1, errno, "failed to set SO_REUSEPORT"); in build_rcv_fd()
85 error(1, errno, "failed to bind receive socket"); in build_rcv_fd()
88 error(1, errno, "tcp: failed to listen on receive port"); in build_rcv_fd()
93 error(1, errno, "failed to setsockopt"); in build_rcv_fd()
96 error(1, errno, "dccp: failed to listen on receive port"); in build_rcv_fd()
118 error(1, errno, "inet_pto in connect_and_send()
[all...]
/kernel/linux/linux-5.10/arch/um/os-Linux/skas/
H A Dprocess.c11 #include <errno.h>
38 return -errno; in ptrace_dump_regs()
71 "errno = %d\n", errno); in wait_stub_done()
83 "errno = %d\n", -err); in wait_stub_done()
85 "pid = %d, n = %d, errno = %d, status = 0x%x\n", pid, n, errno, in wait_stub_done()
105 "errno = %d\n", pid, errno); in get_skas_faultinfo()
148 "failed, errno in handle_trap()
[all...]
/kernel/linux/linux-6.6/arch/um/os-Linux/skas/
H A Dprocess.c11 #include <errno.h>
86 return -errno; in ptrace_dump_regs()
121 printk(UM_KERN_ERR "%s : continue failed, errno = %d\n", in wait_stub_done()
122 __func__, errno); in wait_stub_done()
133 printk(UM_KERN_ERR "Failed to get registers from stub, errno = %d\n", in wait_stub_done()
135 printk(UM_KERN_ERR "%s : failed to wait for SIGTRAP, pid = %d, n = %d, errno = %d, status = 0x%x\n", in wait_stub_done()
136 __func__, pid, n, errno, status); in wait_stub_done()
155 "errno = %d\n", pid, errno); in get_skas_faultinfo()
197 printk(UM_KERN_ERR "%s - nullifying syscall failed, errno in handle_trap()
[all...]
/third_party/node/deps/uv/src/unix/
H A Dtcp.c28 #include <errno.h>
54 return UV__ERR(errno); in new_socket()
59 return UV__ERR(errno); in new_socket()
90 return UV__ERR(errno); in maybe_new_socket()
103 return UV__ERR(errno); in maybe_new_socket()
165 return UV__ERR(errno); in uv__tcp_bind()
177 if (errno == EOPNOTSUPP) in uv__tcp_bind()
180 return UV__ERR(errno); in uv__tcp_bind()
186 errno = 0; in uv__tcp_bind()
188 if (err == -1 && errno ! in uv__tcp_bind()
[all...]
/third_party/ntfs-3g/libntfs-3g/
H A Dattrlist.c36 #include <errno.h>
55 * Return 1 if inode need attribute list, 0 if not, -1 on error with errno set
56 * to the error code. If function succeed errno set to 0. The following error
67 errno = EINVAL; in ntfs_attrlist_need()
75 errno = EINVAL; in ntfs_attrlist_need()
81 errno = EINVAL; in ntfs_attrlist_need()
85 errno = 0; in ntfs_attrlist_need()
100 * Return 0 on success and -1 on error with errno set to the error code. The
122 errno = EINVAL; in ntfs_attrlist_entry_add()
133 errno in ntfs_attrlist_entry_add()
[all...]
/third_party/ltp/testcases/kernel/syscalls/nftw/
H A Dlib64.c67 strerror(errno)); in get_long_name_buffer()
74 strerror(errno)); in get_long_name_buffer()
89 strerror(errno)); in get_long_name_buffer()
108 errno = 0; in execute_function()
124 if (errno != ENAMETOOLONG) { in execute_function()
125 tst_resm(TFAIL, "%s failed: errno should be %i but is %i", name, in execute_function()
126 ENAMETOOLONG, errno); in execute_function()
185 strerror(errno)); in test_ENAMETOOLONG_path()
196 pcPathMax + 2, strerror(errno)); in test_ENAMETOOLONG_path()
251 errno in test_ENOENT_empty()
[all...]
H A Dlib.c67 strerror(errno)); in get_long_name_buffer()
74 strerror(errno)); in get_long_name_buffer()
89 strerror(errno)); in get_long_name_buffer()
108 errno = 0; in execute_function()
124 if (errno != ENAMETOOLONG) { in execute_function()
125 tst_resm(TFAIL, "%s failed: errno should be %i but is %i", name, in execute_function()
126 ENAMETOOLONG, errno); in execute_function()
185 strerror(errno)); in test_ENAMETOOLONG_path()
196 pcPathMax + 2, strerror(errno)); in test_ENAMETOOLONG_path()
251 errno in test_ENOENT_empty()
[all...]

Completed in 8 milliseconds

12345678910>>...568