Home
last modified time | relevance | path

Searched refs:errno (Results 1 – 25 of 222) sorted by relevance

123456789

/xnu-11215/tests/vfs/
H A Do_search.c79 T_ASSERT_TRUE((retval == -1) && (errno == EBADF),
81 tmpdir, retval, errno);
84 T_ASSERT_TRUE((fd == -1) && (errno == EACCES),
86 tmpdir, retval, errno);
91 T_ASSERT_TRUE((fd == -1) && (errno == ENOTDIR),
93 tmpdir, retval, errno);
98 T_ASSERT_TRUE((retval == -1) && (errno == EBADF),
100 g_testfile, retval, errno);
105 g_testfile, retval, errno);
111 g_testfile, (long)mapped, errno);
[all …]
/xnu-11215/libsyscall/wrappers/libproc/
H A Dlibproc.c55 errno = EINVAL; in proc_listpids()
320 return errno; in proc_current_thread_schedinfo()
324 return errno; in proc_current_thread_schedinfo()
333 return errno; in proc_current_thread_schedinfo()
360 return errno; in proc_setpcontrol()
375 return errno; in proc_setthreadname()
385 return errno; in proc_track_dirty()
395 return errno; in proc_set_dirty()
412 return errno; in proc_get_dirty()
424 return errno; in proc_clear_dirty()
[all …]
/xnu-11215/libsyscall/wrappers/
H A Dwork_interval.c52 errno = EINVAL; in work_interval_create()
68 errno = ENOMEM; in work_interval_create()
85 errno = EINVAL; in work_interval_get_flags_from_port()
117 errno = EINVAL; in work_interval_notify()
146 errno = EINVAL; in work_interval_destroy()
202 errno = EINVAL; in work_interval_join()
207 errno = EINVAL; in work_interval_join()
214 errno = EINVAL; in work_interval_join()
225 errno = EINVAL; in work_interval_join_port()
244 errno = EINVAL; in work_interval_copy_port()
[all …]
H A Dsystem-version-compat.c139 int stashed_errno = errno; in _system_version_compat_open_shim()
145 if (errno == EINTR) { in _system_version_compat_open_shim()
148 errno = EINTR; in _system_version_compat_open_shim()
152 errno = stashed_errno; in _system_version_compat_open_shim()
160 errno = stashed_errno; in _system_version_compat_open_shim()
165 errno = stashed_errno; in _system_version_compat_open_shim()
189 if ((new_fd == -1) && (errno == ENOENT)) { in _system_version_compat_open_shim()
191 errno = stashed_errno; in _system_version_compat_open_shim()
200 stashed_errno = errno; in _system_version_compat_open_shim()
202 errno = stashed_errno; in _system_version_compat_open_shim()
/xnu-11215/tests/vm/
H A Dmmap_resilient_media.c76 errno, strerror(errno));
85 errno, strerror(errno));
94 errno, strerror(errno));
142 errno, strerror(errno));
149 errno, strerror(errno));
156 errno, strerror(errno));
/xnu-11215/tests/
H A Dtest_ip_drop_membership.c116 if (errno == ETOOMANYREFS || errno == EADDRNOTAVAIL || errno == ENOMEM) { in test_ip_drop_membership()
117 T_LOG("setsockopt(IPPROTO_IP, IP_ADD_MEMBERSHIP) %s", strerror(errno)); in test_ip_drop_membership()
132 if (errno == ETOOMANYREFS || errno == EADDRNOTAVAIL || errno == ENOMEM) { in test_ip_drop_membership()
133 T_LOG("setsockopt(IPPROTO_IP, IP_ADD_SOURCE_MEMBERSHIP) %s", strerror(errno)); in test_ip_drop_membership()
146 if (errno == ETOOMANYREFS || errno == EADDRNOTAVAIL) { in test_ip_drop_membership()
147 T_LOG("setsockopt(IPPROTO_IP, IP_ADD_MEMBERSHIP) %s", strerror(errno)); in test_ip_drop_membership()
H A Dpwrite.c72 int err = errno; in test_pwrite_should_fail()
78 err = errno; in test_pwrite_should_fail()
84 err = errno; in test_pwrite_should_fail()
90 err = errno; in test_pwrite_should_fail()
149 errno = 0;
155 errno = 0;
157 err = errno;
162 errno = 0;
164 err = errno;
169 errno = 0;
[all …]
H A Dinet_transfer.c210 strerror(errno), errno); in socket_bind_to_interface()
264 strerror(errno), errno); in inet_socket_init_server()
286 endpoint->port, strerror(errno), errno); in inet_socket_init_server()
301 strerror(errno), errno); in inet_socket_init_server()
319 strerror(errno), errno); in inet_socket_init_server()
344 strerror(errno), errno); in inet_socket_init_client()
369 __func__, strerror(errno), errno); in inet_socket_client_connect()
400 __func__, strerror(errno), errno); in inet_socket_server_accept()
439 __func__, strerror(errno), errno); in wait_for_receive()
466 data_size, n, strerror(errno), errno); in send_receive()
[all …]
H A Dproc_rlimit.c68 …URCE_STRING[i], orig_rlimit[i].rlim_cur, orig_rlimit[i].rlim_max, err == 0 ? "" : strerror(errno)); in get_initial_rlimits()
86 …rd 0x%16llx) %s", RESOURCE_STRING[i], lim.rlim_cur, lim.rlim_max, err == 0 ? "" : strerror(errno)); in print_rlimits()
113 …16llx) %s", RESOURCE_STRING[i], newlim.rlim_cur, newlim.rlim_max, err == 0 ? "" : strerror(errno)); in change_rlimits()
166 …x) failed as expected: %s", RESOURCE_STRING[i], newlim.rlim_cur, newlim.rlim_max, strerror(errno)); in change_rlimits()
167 T_EXPECT_EQ(expect_errno, errno, "Expect errno %d, errno returned %d", expect_errno, errno); in change_rlimits()
170 …16llx) %s", RESOURCE_STRING[i], newlim.rlim_cur, newlim.rlim_max, err == 0 ? "" : strerror(errno)); in change_rlimits()
175 … %s", RESOURCE_STRING[i], verifylim.rlim_cur, verifylim.rlim_max, err == 0 ? "" : strerror(errno)); in change_rlimits()
262 …-1, err, "Expect getrlimit to fail when accessing a non-existing resource: %s\n", strerror(errno));
263 T_EXPECT_EQ(EINVAL, errno, "Expect errno %d, errno returned %d", EINVAL, errno);
266 …-1, err, "Expect setrlimit to fail when accessing a non-existing resource: %s\n", strerror(errno));
[all …]
H A Dtestposixshm.c32 T_QUIET; T_EXPECT_EQ(errno, EEXIST, "Expected EEXIST"); in worker_thread_func()
45 T_QUIET; T_EXPECT_EQ(errno, EINVAL, "Expected EINVAL"); in worker_thread_func()
57 T_QUIET; T_EXPECT_EQ(errno, EBADF, "Expected EBADF"); in worker_thread_func()
69 T_QUIET; T_EXPECT_EQ(errno, ENOENT, "Expected ENOENT"); in worker_thread_func()
118 T_EXPECT_EQ(errno, ENOENT, "Expected ENOENT");
124 T_EXPECT_EQ(errno, ENAMETOOLONG, "Expected ENAMETOOLONG");
130 T_EXPECT_EQ(errno, EINVAL, "Expected EINVAL");
147 T_EXPECT_EQ(errno, EEXIST, "Expected EEXIST");
155 T_EXPECT_EQ(errno, EINVAL, "Expected EINVAL");
172 T_EXPECT_EQ(errno, ENOENT, "Expected ENOENT");
H A Dxnu_quick_test_helpers.c46 err = errno; in create_target_directory()
50 &g_target_path[0], errno, strerror( err)); in create_target_directory()
87 T_EXPECT_TRUE((my_fd != -1 || errno == EEXIST), "open file with name %s", the_pathp); in create_random_name()
89 if (errno == EEXIST) { in create_random_name()
96 T_EXPECT_TRUE((my_err == 0 || errno == ENOENT), "make sure the name is unique"); in create_random_name()
98 if (errno == ENOENT) { in create_random_name()
H A Dproc_pidpath_audittoken.c44 …FAIL("proc_pidinfo(%d, PROC_PIDUNIQIDENTIFIERINFO) failed unexpectedly with errno %d", pid, errno); in idversion_for_pid()
65 if (errno == ESRCH) { in show_pidpaths()
68 T_ASSERT_FAIL("proc_pidpath(%d) failed unexpectedly with errno %d", pid, errno); in show_pidpaths()
86 if (errno == ESRCH) { in show_pidpaths()
89 T_ASSERT_FAIL("proc_pidpath_audittoken(%d) failed unexpectedly with errno %d", pid, errno); in show_pidpaths()
96 T_ASSERT_EQ(errno, ESRCH, "errno is ESRCH as expected"); in show_pidpaths()
H A Dvm_test_code_signing_helper.c50 errno, strerror(errno)); in main()
61 errno, strerror(errno)); in main()
101 errno, strerror(errno)); in main()
H A Dturnstile_multihop_helper.h124 errno = -ret; in ull_lock()
126 if (errno == EFAULT) { in ull_lock()
129 printf("[%d,%d]%s>ull_wait() error: %s\n", id, mach_id, __FUNCTION__, strerror(errno)); in ull_lock()
178 errno = -ret; in ull_unlock()
180 if ((flags & ULF_WAKE_THREAD) && (ret < 0) && (errno == EALREADY)) { in ull_unlock()
184 errno = -ret; in ull_unlock()
190 if (errno == ENOENT) { in ull_unlock()
193 printf("[%d,%d]%s>ull_wake() error: %s\n", id, mach_id, __FUNCTION__, strerror(errno)); in ull_unlock()
H A Dxnu_quick_test_getsetpriority.c20 errno = 0;
24 T_ASSERT_FALSE(my_priority == -1 && errno != 0, "Verify getpriority is successful", NULL);
33 errno = 0;
36 T_ASSERT_FALSE(my_priority == -1 && errno != 0, "Verify getpriority change is successful", NULL);
H A Dkqueue_fifo_18776047.c42 errno = 0; in write_some_data()
45 if (errno == EAGAIN) { in write_some_data()
67 errno = 0; in read_data()
70 if (errno == EAGAIN) { in read_data()
86 errno = 0; in create_fifo()
91 } else if (errno == ENOENT) { in create_fifo()
H A Dproc_uuid_policy_26567533.c31 T_ASSERT_TRUE(errno = EINVAL, "errno is %d", errno);
42 T_ASSERT_TRUE(errno = EINVAL, "errno is %d", errno);
/xnu-11215/tests/skywalk/
H A Dskt_netifcompat.c72 SKT_LOG("error %d errno %d\n", error, errno); in skt_netifcompat_common()
73 SKTC_ASSERT_ERR(errno == ESRCH); in skt_netifcompat_common()
79 SKTC_ASSERT_ERR(errno == EINVAL); in skt_netifcompat_common()
92 SKTC_ASSERT_ERR(errno == EBUSY); in skt_netifcompat_common()
113 SKTC_ASSERT_ERR(errno == ESRCH); in skt_netifcompata_main()
159 SKTC_ASSERT_ERR(errno == ENOENT); in skt_netifcompatc_main()
224 error, errno); in skt_fsw_common()
226 SKTC_ASSERT_ERR(errno == EBUSY); in skt_fsw_common()
233 SKT_LOG("%s:%d error %d errno %d\n", __func__, __LINE__, error, errno); in skt_fsw_common()
239 SKT_LOG("%s:%d error %d errno %d\n", __func__, __LINE__, error, errno); in skt_fsw_common()
[all …]
H A Dskt_utunleak.c69 SKT_LOG("Expected: Failed on count %d errno %d\n", i + 1, errno); in skt_utunleak_main()
70 assert(errno != EBUSY); in skt_utunleak_main()
71 assert(errno == ENOMEM); in skt_utunleak_main()
92 SKT_LOG("Expected: Failed on count %d errno %d\n", i + 1, errno); in skt_utunleak_main()
93 assert(errno != EBUSY); in skt_utunleak_main()
94 assert(errno == ENOMEM); in skt_utunleak_main()
H A Dskt_bind.c171 SKTC_ASSERT_ERR(errno == EEXIST); in skt_bind_common()
179 SKTC_ASSERT_ERR(errno == EEXIST); in skt_bind_common()
200 SKTC_ASSERT_ERR(errno == EACCES); in skt_bind_common()
224 SKTC_ASSERT_ERR(errno == EACCES); in skt_bind_common()
249 SKTC_ASSERT_ERR(errno == EACCES); in skt_bind_common()
259 SKTC_ASSERT_ERR(errno == EACCES); in skt_bind_common()
266 SKTC_ASSERT_ERR(errno == EACCES); in skt_bind_common()
416 SKTC_ASSERT_ERR(errno == ENXIO); in skt_bindupipeanon_main()
421 SKTC_ASSERT_ERR(errno == ENXIO); in skt_bindupipeanon_main()
451 SKTC_ASSERT_ERR(errno == ENXIO); in skt_bindfswanon_common()
[all …]
H A Dskywalk_test_driver.c203 errno, strerror(errno)); in skywalk_test_driver_run()
216 errno, strerror(errno)); in skywalk_test_driver_run()
257 errno, strerror(errno)); in skywalk_test_driver_run()
299 if (error == -1 && errno != ESRCH) { in skywalk_test_driver_run()
300 SKT_LOG(stderr, "pid_shutdown_sockets: %s", strerror(errno)); in skywalk_test_driver_run()
358 errno, strerror(errno)); in skywalk_test_driver_run()
/xnu-11215/tools/
H A Dcred_dump_backtraces.c49 printf( "\terrno %d - \"%s\" \n", errno, strerror( errno )); in main()
56 printf( "malloc error %d - \"%s\" \n", errno, strerror( errno )); in main()
62 printf( "\terrno %d - \"%s\" \n", errno, strerror( errno )); in main()
H A Dcred_dump_creds.c53 printf( "\terrno %d - \"%s\" \n", errno, strerror( errno )); in main()
60 printf( "malloc error %d - \"%s\" \n", errno, strerror( errno )); in main()
66 printf( "\terrno %d - \"%s\" \n", errno, strerror( errno )); in main()
/xnu-11215/libsyscall/custom/
H A Derrno.c48 #undef errno
49 int errno; variable
58 return &errno; in __error()
65 errno = err; in cerror_nocancel()
/xnu-11215/tests/vm_memory_tests_src/
H A Dcommon.c39 …"mach_server_data_setup: cannot open file %s - %d (%s).\n", TEST_TXT_FILE, errno, strerror(errno)); in mach_server_data_setup()
40 return errno; in mach_server_data_setup()
44 …"mach_server_data_setup: cannot stat file %s - %d (%s).\n", TEST_TXT_FILE, errno, strerror(errno)); in mach_server_data_setup()
45 return errno; in mach_server_data_setup()
52 printf("mach_server_remap: mmap failed - %d (%s).\n", errno, strerror(errno)); in mach_server_data_setup()

123456789