Home
last modified time | relevance | path

Searched refs:errno (Results 26 - 50 of 14177) sorted by relevance

12345678910>>...568

/third_party/musl/libc-test/src/functional/
H A Dstrtol.c4 #include <errno.h>
14 errno = 0, msg = #f, ((r) = (f)) == (x) || \
38 TEST2(i, errno, ERANGE, "missing errno %d != %d"); in main()
41 TEST2(i, errno, ERANGE, "missing errno %d != %d"); in main()
44 TEST2(i, errno, ERANGE, "missing errno %d != %d"); in main()
47 TEST2(i, errno, 0, "spurious errno in main()
[all...]
H A Denv.c6 #include <errno.h>
20 t_error("clrearenv: %s\n", strerror(errno)); in main()
22 t_error("putenv: %s\n", strerror(errno)); in main()
32 t_error("unsetenv: %s\n", strerror(errno)); in main()
37 errno = 0; in main()
39 t_error("setenv: %s\n", strerror(errno)); in main()
44 errno = 0; in main()
46 t_error("setenv: %s\n", strerror(errno)); in main()
49 errno = 0; in main()
51 t_error("setenv: %s\n", strerror(errno)); in main()
[all...]
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/
H A D30-1.c19 * sigaction returns -1 and errno is set to EINVAL if signal number is invalid
44 #include <errno.h>
122 if (errno != EINVAL) { in main()
124 errno, strerror(errno), EINVAL, strerror(EINVAL)); in main()
139 if (errno != EINVAL) { in main()
141 errno, strerror(errno), EINVAL, strerror(EINVAL)); in main()
156 if (errno != EINVAL) { in main()
158 errno, strerro in main()
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/mount/
H A Dnosymfollow-test.c3 #include <errno.h>
50 die("vsnprintf failed: %s\n", strerror(errno)); in vmaybe_write_file()
57 if ((errno == ENOENT) && enoent_ok) in vmaybe_write_file()
59 die("open of %s failed: %s\n", filename, strerror(errno)); in vmaybe_write_file()
68 filename, strerror(errno)); in vmaybe_write_file()
73 die("close of %s failed: %s\n", filename, strerror(errno)); in vmaybe_write_file()
100 die("unshare(CLONE_NEWUSER) failed: %s\n", strerror(errno)); in create_and_enter_ns()
107 die("setgid(0) failed %s\n", strerror(errno)); in create_and_enter_ns()
109 die("setuid(0) failed %s\n", strerror(errno)); in create_and_enter_ns()
112 die("unshare(CLONE_NEWNS) failed: %s\n", strerror(errno)); in create_and_enter_ns()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/mount/
H A Dnosymfollow-test.c3 #include <errno.h>
50 die("vsnprintf failed: %s\n", strerror(errno)); in vmaybe_write_file()
57 if ((errno == ENOENT) && enoent_ok) in vmaybe_write_file()
59 die("open of %s failed: %s\n", filename, strerror(errno)); in vmaybe_write_file()
68 filename, strerror(errno)); in vmaybe_write_file()
73 die("close of %s failed: %s\n", filename, strerror(errno)); in vmaybe_write_file()
100 die("unshare(CLONE_NEWUSER) failed: %s\n", strerror(errno)); in create_and_enter_ns()
107 die("setgid(0) failed %s\n", strerror(errno)); in create_and_enter_ns()
109 die("setuid(0) failed %s\n", strerror(errno)); in create_and_enter_ns()
112 die("unshare(CLONE_NEWNS) failed: %s\n", strerror(errno)); in create_and_enter_ns()
[all...]
/kernel/liteos_a/testsuites/unittest/extended/signal/smoke/
H A Dsignal_test_014.cpp44 ICUNIT_ASSERT_EQUAL(errno, EINVAL, errno); in TestSigErrno()
48 ICUNIT_ASSERT_EQUAL(errno, EINVAL, errno); in TestSigErrno()
50 errno = 0; in TestSigErrno()
52 ICUNIT_ASSERT_EQUAL(errno, 0, errno); in TestSigErrno()
56 ICUNIT_ASSERT_EQUAL(errno, EINVAL, errno); in TestSigErrno()
60 ICUNIT_ASSERT_EQUAL(errno, EINVA in TestSigErrno()
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/map_tests/
H A Dsk_storage_map.c12 #include <errno.h>
151 CHECK(btf_fd == -1, "bpf_load_btf", "btf_fd:%d errno:%d\n", in create_sk_storage_map()
152 btf_fd, errno); in create_sk_storage_map()
159 "bpf_create_map_xattr()", "errno:%d\n", errno); in create_sk_storage_map()
189 err = -errno; in insert_close_thread()
190 fprintf(stderr, "socket(): errno:%d\n", errno); in insert_close_thread()
196 err = -errno; in insert_close_thread()
198 "bpf_map_update_elem(): errno in insert_close_thread()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/map_tests/
H A Dsk_storage_map.c12 #include <errno.h>
147 CHECK(btf_fd == -1, "bpf_load_btf", "btf_fd:%d errno:%d\n", in create_sk_storage_map()
148 btf_fd, errno); in create_sk_storage_map()
155 "bpf_map_create()", "errno:%d\n", errno); in create_sk_storage_map()
185 err = -errno; in insert_close_thread()
186 fprintf(stderr, "socket(): errno:%d\n", errno); in insert_close_thread()
192 err = -errno; in insert_close_thread()
194 "bpf_map_update_elem(): errno in insert_close_thread()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/membarrier/
H A Dmembarrier_test_impl.h6 #include <errno.h>
30 "%s test: flags = %d, errno = %d\n", in test_membarrier_get_registrations()
31 test_name, flags, errno); in test_membarrier_get_registrations()
54 if (errno != EINVAL) { in test_membarrier_cmd_fail()
58 errno, strerror(errno)); in test_membarrier_cmd_fail()
62 "%s test: command = %d, flags = %d, errno = %d. Failed as expected\n", in test_membarrier_cmd_fail()
63 test_name, cmd, flags, errno); in test_membarrier_cmd_fail()
77 if (errno != EINVAL) { in test_membarrier_flags_fail()
81 errno, strerro in test_membarrier_flags_fail()
[all...]
/third_party/ltp/utils/sctp/func_tests/
H A Dtest_1_to_1_socket_bind_listen.c70 #include <errno.h>
107 if (sk != -1 || errno != EAFNOSUPPORT) in main()
109 "error:%d, errno:%d", error, errno); in main()
115 if (sk != -1 || errno != EINVAL) in main()
117 "error:%d, errno:%d", error, errno); in main()
125 "error:%d, errno:%d", error, errno); in main()
131 if (error != -1 || errno ! in main()
[all...]
/kernel/liteos_a/testsuites/unittest/process/basic/process/smoke/
H A Dprocess_test_045.cpp48 ICUNIT_ASSERT_EQUAL(errno, EINVAL, errno); in Testcase()
52 ICUNIT_ASSERT_EQUAL(errno, EINVAL, errno); in Testcase()
56 ICUNIT_ASSERT_EQUAL(errno, ESRCH, errno); in Testcase()
60 ICUNIT_ASSERT_EQUAL(errno, EPERM, errno); in Testcase()
64 ICUNIT_ASSERT_EQUAL(errno, ESRCH, errno); in Testcase()
[all...]
/kernel/liteos_m/kal/posix/src/
H A Dmap_error.c35 #include <errno.h>
61 errno = EINVAL; in map_errno()
65 errno = EAGAIN; in map_errno()
70 errno = ENOSPC; in map_errno()
74 errno = ETIMEDOUT; in map_errno()
77 errno = ENFILE; in map_errno()
82 errno = EINTR; in map_errno()
86 errno = ENOMEM; in map_errno()
89 errno = EBUSY; in map_errno()
92 errno in map_errno()
[all...]
/kernel/liteos_a/syscall/
H A Dtime_syscall.c32 #include "errno.h"
52 errno = EINVAL; in SysUtime()
58 errno = ENOMEM; in SysUtime()
75 errno = EFAULT; in SysUtime()
101 errno = EFAULT; in SysTime()
115 errno = EINVAL; in SysSetiTimer()
120 errno = EFAULT; in SysSetiTimer()
130 errno = EFAULT; in SysSetiTimer()
143 errno = EINVAL; in SysGetiTimer()
153 errno in SysGetiTimer()
[all...]
/kernel/linux/linux-5.10/fs/hostfs/
H A Dhostfs_user.c10 #include <errno.h>
47 return -errno; in stat_file()
49 return -errno; in stat_file()
66 return -errno; in access_file()
86 return -errno; in open_file()
95 *err_out = errno; in open_dir()
130 return -errno; in read_file()
141 return -errno; in write_file()
152 return -errno; in lseek_file()
165 return -errno; in fsync_file()
[all...]
/kernel/linux/linux-6.6/fs/hostfs/
H A Dhostfs_user.c10 #include <errno.h>
48 return -errno; in stat_file()
50 return -errno; in stat_file()
67 return -errno; in access_file()
87 return -errno; in open_file()
96 *err_out = errno; in open_dir()
131 return -errno; in read_file()
142 return -errno; in write_file()
153 return -errno; in lseek_file()
166 return -errno; in fsync_file()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/futex/functional/
H A Dfutex_waitv.c8 #include <errno.h>
44 error("gettime64 failed\n", errno); in waiterfn()
51 errno, strerror(errno)); in waiterfn()
98 error("pthread_create failed\n", errno); in main()
105 res ? errno : res, in main()
106 res ? strerror(errno) : ""); in main()
131 error("pthread_create failed\n", errno); in main()
138 res ? errno : res, in main()
139 res ? strerror(errno) in main()
[all...]
/third_party/ltp/testcases/kernel/syscalls/sigprocmask/
H A Dsigprocmask01.c44 * Log the errno and Issue a FAIL message.
52 * Print errno log and/or timing stats if options given
58 * -e : Turn on errno logging.
76 #include <errno.h>
125 "sigprocmask() Failed, errno=%d : %s", in main()
141 errno = 0; in main()
146 "error:%d", errno); in main()
153 errno = 0; in main()
157 "error:%d", errno); in main()
166 errno in main()
[all...]
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/
H A D11-1.c23 #include <errno.h>
39 strerror(errno), errno); in child()
49 if (errno == EACCES || errno == EAGAIN) { in child()
55 strerror(errno), errno); in child()
78 strerror(errno), errno); in main()
84 strerror(errno), errn in main()
[all...]
H A D12-1.c41 #include <errno.h>
65 UNRESOLVED(errno, "Failed to initialize signal set"); in main()
71 UNRESOLVED(errno, "Failed to add SIGUSR1 to signal set"); in main()
77 UNRESOLVED(errno, "Failed to add SIGUSR2 to signal set"); in main()
83 UNRESOLVED(errno, "Sigprocmask failed"); in main()
90 UNRESOLVED(errno, "failed to kill with SIGUSR1"); in main()
96 UNRESOLVED(errno, "failed to kill with SIGUSR2"); in main()
103 UNRESOLVED(errno, in main()
110 UNRESOLVED(errno, in main()
118 UNRESOLVED(errno, in main()
[all...]
/kernel/uniproton/src/fs/littlefs/
H A Dlfs_adapter.c159 errno = EFAULT; in OsLfsMount()
166 errno = ENODEV; in OsLfsMount()
171 errno = EBADF; in OsLfsMount()
188 errno = OsLfsErrno(ret); in OsLfsMount()
199 errno = EFAULT; in OsLfsUmount()
204 errno = ENOENT; in OsLfsUmount()
210 errno = OsLfsErrno(ret); in OsLfsUmount()
224 errno = EFAULT; in OsLfsUnlink()
229 errno = ENOENT; in OsLfsUnlink()
235 errno in OsLfsUnlink()
[all...]
/kernel/liteos_m/components/fs/fatfs/
H A Dfatfs.c35 #include "errno.h"
105 errno = EINVAL; in Remount()
148 /* FatFs errno to Libc errno */ in FatfsErrno()
259 errno = EFAULT; in FatfsMount()
265 errno = ENOMEM; in FatfsMount()
275 errno = FatfsErrno(res); in FatfsMount()
293 errno = EINVAL; in FatfsUmount()
300 errno = EBUSY; in FatfsUmount()
306 errno in FatfsUmount()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/mincore/
H A Dmincore_selftest.c11 #include <errno.h>
44 errno = 0; in TEST()
47 EXPECT_EQ(ENOMEM, errno); in TEST()
49 errno = 0; in TEST()
53 TH_LOG("mmap error: %s", strerror(errno)); in TEST()
57 errno = 0; in TEST()
60 EXPECT_EQ(EINVAL, errno); in TEST()
63 errno = 0; in TEST()
66 EXPECT_EQ(ENOMEM, errno); in TEST()
69 errno in TEST()
[all...]
/kernel/liteos_m/components/fs/littlefs/
H A Dlfs_adapter.c180 errno = EFAULT; in LfsMount()
186 errno = ENOSYS; in LfsMount()
193 errno = ENODEV; in LfsMount()
212 errno = LittlefsErrno(ret); in LfsMount()
225 errno = EFAULT; in LfsUmount()
230 errno = ENOENT; in LfsUmount()
236 errno = LittlefsErrno(ret); in LfsUmount()
250 errno = EFAULT; in LfsUnlink()
255 errno = ENOENT; in LfsUnlink()
261 errno in LfsUnlink()
[all...]
/kernel/liteos_a/testsuites/unittest/basic/mem/shm/full/
H A Dshm_test_005.cpp41 errno = 0; in Testcase()
44 ICUNIT_ASSERT_EQUAL(errno, ENOENT, errno); in Testcase()
50 ICUNIT_ASSERT_EQUAL(errno, EINVAL, errno); in Testcase()
53 ICUNIT_ASSERT_EQUAL(errno, EINVAL, errno); in Testcase()
60 ICUNIT_ASSERT_EQUAL(errno, EINVAL, errno); in Testcase()
66 ICUNIT_ASSERT_EQUAL(errno, EINVA in Testcase()
[all...]
H A Dshm_test_012.cpp43 errno = 0; in Testcase()
46 ICUNIT_ASSERT_EQUAL(errno, EEXIST, errno); in Testcase()
48 errno = 0; in Testcase()
51 ICUNIT_ASSERT_EQUAL(errno, ENOENT, errno); in Testcase()
53 errno = 0; in Testcase()
56 ICUNIT_ASSERT_EQUAL(errno, EINVAL, errno); in Testcase()
58 errno in Testcase()
[all...]

Completed in 10 milliseconds

12345678910>>...568