Home
last modified time | relevance | path

Searched refs:errno (Results 201 - 225 of 14177) sorted by relevance

12345678910>>...568

/kernel/liteos_a/testsuites/unittest/basic/mem/vm/smoke/
H A Dmmap_test_006.cpp55 ICUNIT_GOTO_EQUAL(errno, EINVAL, errno, EXIT); in Testcase()
59 ICUNIT_GOTO_EQUAL(errno, EINVAL, errno, EXIT); in Testcase()
69 ICUNIT_GOTO_EQUAL(errno, EINVAL, errno, EXIT); in Testcase()
74 ICUNIT_GOTO_EQUAL(errno, EINVAL, errno, EXIT); in Testcase()
79 ICUNIT_GOTO_EQUAL(errno, EINVAL, errno, EXI in Testcase()
[all...]
/kernel/linux/linux-6.6/drivers/s390/cio/
H A Dvfio_ccw_trace.h53 int errno),
54 TP_ARGS(schid, command, errno),
61 __field(int, errno)
69 __entry->errno = errno;
72 TP_printk("schid=%x.%x.%04x command=0x%x errno=%d",
77 __entry->errno)
107 TP_PROTO(int fctl, struct subchannel_id schid, int errno, char *errstr),
108 TP_ARGS(fctl, schid, errno, errstr),
115 __field(int, errno)
[all...]
/kernel/liteos_a/testsuites/unittest/libc/posix/mqueue/full/
H A DIt_posix_queue_168.cpp56 ICUNIT_GOTO_EQUAL(errno, EINVAL, errno, EXIT1); in Testcase()
60 ICUNIT_GOTO_EQUAL(errno, EINVAL, errno, EXIT1); in Testcase()
64 ICUNIT_GOTO_EQUAL(errno, EINVAL, errno, EXIT1); in Testcase()
68 ICUNIT_GOTO_EQUAL(errno, EINVAL, errno, EXIT1); in Testcase()
72 ICUNIT_GOTO_EQUAL(errno, EINVAL, errno, EXIT in Testcase()
[all...]
/kernel/liteos_a/testsuites/unittest/libc/sys/full/
H A Dsys_test_025.cpp88 ICUNIT_ASSERT_EQUAL(errno, ENOENT, errno); in TestCase1()
89 errno = 0; in TestCase1()
93 ICUNIT_ASSERT_EQUAL(errno, ENOENT, errno); in TestCase1()
94 errno = 0; in TestCase1()
98 ICUNIT_ASSERT_EQUAL(errno, ENOENT, errno); in TestCase1()
99 errno = 0; in TestCase1()
103 ICUNIT_ASSERT_EQUAL(errno, ENOEN in TestCase1()
[all...]
/third_party/musl/libc-test/src/functional/
H A Dtime.c6 #include <errno.h>
53 errno = 0; in sec2tm()
55 if (errno != 0) in sec2tm()
56 t_error("%s: gmtime((time_t)%lld) should not set errno, got %s\n", in sec2tm()
57 m, (long long)t, strerror(errno)); in sec2tm()
58 errno = 0; in sec2tm()
60 if (errno != 0) in sec2tm()
61 t_error("%s: mktime(%s) should not set errno, got %s\n", in sec2tm()
62 m, tm_str(*tm), strerror(errno)); in sec2tm()
74 errno in tm2sec()
[all...]
/kernel/linux/linux-6.6/tools/iio/
H A Diio_generic_buffer.c22 #include <errno.h>
248 return -errno; in enable_disable_all_channels()
383 errno = 0; in main()
385 if (errno) { in main()
386 ret = -errno; in main()
396 errno = 0; in main()
398 if (errno) { in main()
399 ret = -errno; in main()
411 errno = 0; in main()
413 if (errno) { in main()
[all...]
/third_party/ntfs-3g/libntfs-3g/
H A Ddevice.c39 #include <errno.h>
112 * error return NULL with errno set to the error code returned by ntfs_malloc().
120 errno = EINVAL; in ntfs_device_alloc()
127 int eo = errno; in ntfs_device_alloc()
129 errno = eo; in ntfs_device_alloc()
147 * Return 0 on success or -1 on error with errno set to the error code. The
155 errno = EINVAL; in ntfs_device_free()
159 errno = EBUSY; in ntfs_device_free()
201 * On error and nothing has been read, return -1 with errno set appropriately
213 errno in ntfs_pread()
[all...]
H A Dattrib.c41 #include <errno.h>
128 errno = EINVAL; in GenNAttrIno()
131 errno = 0; in GenNAttrIno()
157 errno = EINVAL; in ntfs_get_attribute_value()
169 errno = EOPNOTSUPP; in ntfs_get_attribute_value()
183 errno = 0; in ntfs_get_attribute_value()
191 errno = 0; in ntfs_get_attribute_value()
200 errno = EINVAL; in ntfs_get_attribute_value()
271 errno = EIO; in ntfs_get_attribute_value()
274 errno in ntfs_get_attribute_value()
[all...]
/kernel/liteos_a/compat/posix/src/
H A Dmqueue.c64 errno = EINVAL; in MqNameCheck()
69 errno = EINVAL; in MqNameCheck()
74 errno = ENAMETOOLONG; in MqNameCheck()
84 errno = EINVAL; in GetMqueueCBByID()
139 errno = EAGAIN; in DoMqueueDelete()
142 errno = EINVAL; in DoMqueueDelete()
154 errno = ENOMEM; in SaveMqueueName()
161 errno = EINVAL; in SaveMqueueName()
202 errno = EINVAL; in DoMqueueCreate()
211 errno in DoMqueueCreate()
[all...]
/kernel/liteos_a/testsuites/unittest/libc/misc/full/
H A Dmisc_test_006.cpp45 ICUNIT_ASSERT_EQUAL(errno, EFAULT, errno); in TestCase()
49 ICUNIT_ASSERT_EQUAL(errno, EFAULT, errno); in TestCase()
53 ICUNIT_ASSERT_EQUAL(errno, EFAULT, errno); in TestCase()
57 ICUNIT_ASSERT_EQUAL(errno, EFAULT, errno); in TestCase()
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/str_format/
H A Doutput.cc17 #include <errno.h>
26 ClearErrnoGuard() : old_value(errno) { errno = 0; } in ClearErrnoGuard()
28 if (!errno) errno = old_value; in ~ClearErrnoGuard()
44 // Reset errno to zero in case the libc implementation doesn't set errno in Write()
53 if (errno == EINTR) { in Write()
55 } else if (errno) { in Write()
56 error_ = errno; in Write()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/map_tests/
H A Dmap_in_map_batch_ops.c4 #include <errno.h>
23 strerror(errno)); in get_map_id_from_fd()
46 map_type, map_name, strerror(errno)); in create_inner_maps()
62 map_type, map_name, strerror(errno)); in create_inner_maps()
78 map_type, strerror(errno)); in create_outer_map()
97 outer_map_value, strerror(errno)); in validate_fetch_results()
101 "error=%s\n", strerror(errno)); in validate_fetch_results()
111 inner_map_key, strerror(errno)); in validate_fetch_results()
135 "error=%s\n", strerror(errno)); in fetch_and_validate()
155 if (err && errno in fetch_and_validate()
[all...]
/kernel/liteos_a/testsuites/unittest/net/socket/smoke/
H A Dnet_socket_test_010.cpp109 ICUNIT_ASSERT_NOT_EQUAL(loIndex, 0, errno); in IoctlTestInternal()
110 ICUNIT_ASSERT_NOT_EQUAL(lanIndex, 0, errno); in IoctlTestInternal()
114 ICUNIT_ASSERT_NOT_EQUAL(p, NULL, errno); in IoctlTestInternal()
118 ICUNIT_ASSERT_NOT_EQUAL(p, NULL, errno); in IoctlTestInternal()
126 ICUNIT_ASSERT_NOT_EQUAL(ret, 0, errno); in IoctlTestInternal()
130 ICUNIT_ASSERT_EQUAL(ret, 0, errno); in IoctlTestInternal()
135 ICUNIT_ASSERT_EQUAL(ret, 0, errno); in IoctlTestInternal()
140 ICUNIT_ASSERT_EQUAL(ret, 0, errno); in IoctlTestInternal()
145 ICUNIT_ASSERT_EQUAL(ret, 0, errno); in IoctlTestInternal()
156 ICUNIT_ASSERT_EQUAL(errno, EPER in IoctlTestInternal()
[all...]
/third_party/musl/libc-test/src/functionalext/supplement/errno/
H A D__errno_location.c17 #include <errno.h>
22 * @tc.desc : Test the __errno_location method to get the errno address
29 t_error("%s __errno_location get errno code is %d are not want 0\n", __func__, result); in __errno_location_0100()
35 * @tc.desc : The result returned by __errno_location when the value of errno has just been changed
40 errno = 10; in __errno_location_0200()
42 if (result != errno) { in __errno_location_0200()
43 t_error("%s __errno_location get errno code is %d are not want %d\n", __func__, result, errno); in __errno_location_0200()
45 errno = 0; in __errno_location_0200()
50 * @tc.desc : Test the address returned by __errno_location and compare it with the errno addres
[all...]
/third_party/musl/libc-test/src/functionalext/supplement/linux/
H A Dsbrk.c16 #include <errno.h>
28 errno = 0; in sbrk_0100()
33 if (errno == ENOMEM) { in sbrk_0100()
34 t_error("%s errno is %d\n", __func__, errno); in sbrk_0100()
45 errno = 0; in sbrk_0200()
50 if (errno != ENOMEM) { in sbrk_0200()
51 t_error("%s errno is %d\n", __func__, errno); in sbrk_0200()
/kernel/linux/linux-6.6/tools/testing/selftests/kvm/x86_64/
H A Dsev_migrate_tests.c7 #include <errno.h>
46 "%d failed: return code: %d, errno: %d, fw error: %d", in sev_ioctl()
47 cmd_id, ret, errno, fw_error); in sev_ioctl()
94 TEST_ASSERT(!ret, "Migration failed, ret: %d, errno: %d\n", ret, errno); in sev_migrate_from()
115 TEST_ASSERT(ret == -1 && errno == EIO, in test_sev_migrate_from()
116 "VM that was migrated from should be dead. ret %d, errno: %d\n", ret, in test_sev_migrate_from()
117 errno); in test_sev_migrate_from()
174 TEST_ASSERT(ret == -1 && errno == EINVAL, in test_sev_migrate_parameters()
175 "Migrations require SEV enabled. ret %d, errno in test_sev_migrate_parameters()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/net/
H A Dpsock_snd.c6 #include <errno.h>
178 error(1, errno, "if_nametoindex"); in do_bind()
181 error(1, errno, "bind"); in do_bind()
205 error(1, errno, "if_nametoindex"); in do_send()
211 error(1, errno, "write"); in do_send()
225 error(1, errno, "socket t"); in do_tx()
232 error(1, errno, "setsockopt qdisc bypass"); in do_tx()
236 error(1, errno, "setsockopt vnet"); in do_tx()
246 error(1, errno, "close t"); in do_tx()
259 error(1, errno, "socke in setup_rx()
[all...]
/third_party/ltp/testcases/misc/math/float/
H A Dthread_code.c52 errno = 0; in read_file()
55 if (errno == ETIMEDOUT || errno == EINTR || errno == 0) { in read_file()
57 path, strerror(errno)); in read_file()
68 errno = ENOENT; in read_file()
73 if (errno == EINTR || errno == 0) { in read_file()
74 printf("Error malloc'ing: %s\n", strerror(errno)); in read_file()
84 if (errno in read_file()
[all...]
/third_party/ltp/utils/sctp/func_tests/
H A Dtest_getname.c49 #include <errno.h>
103 tst_brkm(TBROK, tst_exit, "getsockname: %s", strerror(errno)); in main()
111 if ((-1 != error) || (ENOTCONN != errno)) in main()
113 "socket error:%d, errno:%d", error, errno); in main()
137 "socket: %s", strerror(errno)); in main()
147 "socket: %s", strerror(errno)); in main()
162 "socket: %s", strerror(errno)); in main()
173 "socket: %s", strerror(errno)); in main()
210 if (error != -1 || errno ! in main()
[all...]
H A Dtest_1_to_1_recvfrom.c53 #include <errno.h>
124 if (count != -1 || errno != EBADF) in main()
126 "descriptor count:%d, errno:%d", count, errno); in main()
135 filename, strerror(errno)); in main()
139 err_no = errno; in main()
144 "count:%d, errno:%d", count, err_no); in main()
151 if (count != -1 || errno != EFAULT) in main()
153 "pointer count:%d, errno:%d", count, errno); in main()
[all...]
/third_party/libfuse/lib/
H A Dmount_util.c20 #include <errno.h>
62 if (errno == ENOENT) in mtab_needs_update()
76 err = (res == -1) ? errno : 0; in mtab_needs_update()
100 fprintf(stderr, "%s: sigprocmask: %s\n", progname, strerror(errno)); in add_mount()
106 fprintf(stderr, "%s: fork: %s\n", progname, strerror(errno)); in add_mount()
115 fprintf(stderr, "%s: setuid: %s\n", progname, strerror(errno)); in add_mount()
123 progname, strerror(errno)); in add_mount()
128 fprintf(stderr, "%s: waitpid: %s\n", progname, strerror(errno)); in add_mount()
159 fprintf(stderr, "%s: sigprocmask: %s\n", progname, strerror(errno)); in exec_umount()
165 fprintf(stderr, "%s: fork: %s\n", progname, strerror(errno)); in exec_umount()
[all...]
/third_party/ntfs-3g/src/
H A Dntfs-3g.c47 #include <errno.h>
152 (!ops ? -errno \
326 * 0 if not allowed or some error occurred (errno tells why)
405 * 0 if not allowed or some error occurred (errno tells why)
458 errno = ENOMEM; in get_parent_dir()
480 * Returns 0 on success or -errno on error.
546 * <0 Error occurred, return -errno;
558 return -errno; in ntfs_fuse_parse_path()
567 return -errno; in ntfs_fuse_parse_path()
580 *err = -errno; in set_fuse_error()
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/pidfd/
H A Dpidfd_getfd_test.c4 #include <errno.h>
48 strerror(errno)); in __child()
55 strerror(errno)); in __child()
74 strerror(errno)); in __child()
85 strerror(errno)); in __child()
91 strerror(errno)); in __child()
105 strerror(errno)); in child()
139 TH_LOG("%s: failed to create socketpair", strerror(errno)); in FIXTURE_SETUP()
194 EXPECT_EQ(EPERM, errno); in TEST_F()
208 if (ret < 0 && errno in TEST_F()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/pidfd/
H A Dpidfd_getfd_test.c4 #include <errno.h>
48 strerror(errno)); in __child()
55 strerror(errno)); in __child()
74 strerror(errno)); in __child()
85 strerror(errno)); in __child()
91 strerror(errno)); in __child()
105 strerror(errno)); in child()
139 TH_LOG("%s: failed to create socketpair", strerror(errno)); in FIXTURE_SETUP()
194 EXPECT_EQ(EPERM, errno); in TEST_F()
208 if (ret < 0 && errno in TEST_F()
[all...]
/third_party/ltp/testcases/kernel/pty/
H A Dhangup01.c27 #include <errno.h>
66 if (kill(childpid, 0) == 0 || errno == ESRCH) { in cleanup()
146 while (waitpid(childpid, &status, WNOHANG) < 0 && errno != ESRCH) ; in parent()
162 printf("ptsname[child] failed: %s\n", strerror(errno)); in child()
166 printf("open[1] failed: %s\n", strerror(errno)); in child()
170 printf("write failed: %s\n", strerror(errno)); in child()
174 printf("close[1] failed: %s\n", strerror(errno)); in child()
178 printf("open[2] failed: %s\n", strerror(errno)); in child()
182 printf("write[2] failed: %s\n", strerror(errno)); in child()
186 printf("close[2] failed: %s\n", strerror(errno)); in child()
[all...]

Completed in 14 milliseconds

12345678910>>...568