/xnu-2422.115.4/tools/tests/xnu_quick_test/ |
H A D | commpage_tests.c | 37 int ret; local 50 ret = get_sys_int32("hw.ncpu", &sys_i32); 51 if (ret) goto fail; 55 ret = -1; 62 ret = -1; 66 ret = get_sys_int32("hw.logicalcpu", &sys_i32); 67 if (ret) goto fail; 71 ret = -1; 77 ret = get_sys_int32("hw.optional.mmx", &sys_i32); 78 if (ret) got 248 int ret; local 264 int ret; local 291 kern_return_t ret; local [all...] |
/xnu-2422.115.4/tools/tests/execperf/ |
H A D | run.c | 21 int ret; local 35 ret = pthread_create(&threads[i], NULL, work, (void *)(intptr_t)count); 36 if (ret) { 42 ret = pthread_join(threads[i], NULL); 43 if (ret) { 61 int ret; local 65 ret = posix_spawn(&pid, newargv[0], NULL, NULL, newargv, environ); 66 if (ret != 0) { 67 errc(1, ret, "posix_spawn(%s)", newargv[0]); 70 while (-1 == waitpid(pid, &ret, [all...] |
/xnu-2422.115.4/tools/tests/superpages/ |
H A D | testsp.c | 107 boolean_t ret; local 109 if ((ret = check_r(addr+i*PAGE_SIZE, PAGE_SIZE, res))) { 136 boolean_t ret; local 139 if ((ret = check_w(addr+i*PAGE_SIZE, PAGE_SIZE))) { 149 int ret; local 151 if (!(ret = check_w(addr, size))) return ret; 152 if (!(ret = check_r(addr, size, &res))) return ret; 173 int kr, ret; local 195 int kr, ret; local 219 int ret; local 245 int ret; local 266 int ret; local 286 int ret; local 307 int ret; local 327 int kr, ret; local 357 int ret; local 386 int ret; local 416 int ret; local 444 int ret; local 472 int kr, ret; local 507 int kr, ret; local 555 int kr, ret; local 582 int kr, ret; local 614 boolean_t ret; local 664 boolean_t ret; local [all...] |
/xnu-2422.115.4/libsyscall/wrappers/legacy/ |
H A D | lchown.c | 47 int ret = __lchown(path, owner, group); local 50 if (ret < 0 && errno == EOPNOTSUPP) 52 return ret;
|
H A D | listen.c | 47 int ret = __listen(socket, backlog); local 50 if (ret < 0 && errno == EOPNOTSUPP) 52 return ret;
|
H A D | recvmsg.c | 47 int ret = __recvmsg_nocancel(s, msg, flags); local 50 if (ret < 0 && errno == EOPNOTSUPP) 52 return ret;
|
H A D | socketpair.c | 49 int ret = __socketpair(domain, type, protocol, socket_vector); local 52 if (ret < 0 && errno == EOPNOTSUPP) 54 return ret;
|
H A D | accept.c | 48 int ret = __accept_nocancel(s, addr, addrlen); local 51 if (ret < 0 && errno == EOPNOTSUPP) 53 return ret;
|
H A D | bind.c | 48 int ret = __bind(s, name, namelen); local 51 if (ret < 0 && errno == EOPNOTSUPP) 53 return ret;
|
H A D | connect.c | 48 int ret = __connect_nocancel(s, name, namelen); local 51 if (ret < 0 && errno == EOPNOTSUPP) 53 return ret;
|
H A D | getpeername.c | 48 int ret = __getpeername(socket, address, address_len); local 51 if (ret < 0 && errno == EOPNOTSUPP) 53 return ret;
|
H A D | getsockname.c | 48 int ret = __getsockname(socket, address, address_len); local 51 if (ret < 0 && errno == EOPNOTSUPP) 53 return ret;
|
H A D | sendmsg.c | 48 int ret = __sendmsg_nocancel(s, msg, flags); local 51 if (ret < 0 && errno == EOPNOTSUPP) 53 return ret;
|
H A D | getattrlist.c | 57 int ret = __getattrlist(path, attrList, attrBuf, attrBufSize, options); local 60 if (ret < 0 && errno == EOPNOTSUPP) 62 return ret;
|
H A D | recvfrom.c | 47 int ret = __recvfrom_nocancel(s, buf, len, flags, from, fromlen); local 50 if (ret < 0 && errno == EOPNOTSUPP) 52 return ret;
|
H A D | sendto.c | 48 int ret = __sendto_nocancel(s, msg, len, flags, to, tolen); local 51 if (ret < 0 && errno == EOPNOTSUPP) 53 return ret;
|
H A D | setattrlist.c | 57 int ret = __setattrlist(path, attrList, attrBuf, attrBufSize, options); local 60 if (ret < 0 && errno == EOPNOTSUPP) 62 return ret;
|
/xnu-2422.115.4/SETUP/installfile/ |
H A D | installfile.c | 48 int ret; local 89 ret = fstat(srcfd, &sb); 90 if (ret < 0) 102 ret = fcopyfile(srcfd, dstfd, NULL, 104 if (ret < 0) 107 ret = futimes(dstfd, NULL); 108 if (ret < 0) 112 ret = fchmod(dstfd, mode); 113 if (ret < 0) 117 ret [all...] |
/xnu-2422.115.4/iokit/Kernel/ |
H A D | RootDomainUserClient.cpp | 89 IOReturn ret = kIOReturnNotPrivileged; local 93 ret = clientHasPrivilege(fOwningTask, kIOClientPrivilegeLocalUser); 94 local_priv = (kIOReturnSuccess == ret); 96 ret = clientHasPrivilege(fOwningTask, kIOClientPrivilegeAdministrator); 97 admin_priv = (kIOReturnSuccess == ret); 149 IOReturn ret = kIOReturnNotPrivileged; local 151 ret = clientHasPrivilege(fOwningTask, kIOClientPrivilegeLocalUser); 152 local_priv = (kIOReturnSuccess == ret); 154 ret = clientHasPrivilege(fOwningTask, kIOClientPrivilegeAdministrator); 155 admin_priv = (kIOReturnSuccess == ret); 170 IOReturn ret = kIOReturnNotPrivileged; local 187 IOReturn ret = kIOReturnNotPrivileged; local 204 IOReturn ret; local 259 IOReturn ret = kIOReturnBadArgument; local [all...] |
/xnu-2422.115.4/tools/tests/affinity/ |
H A D | tags.c | 46 kern_return_t ret; local 50 ret = thread_policy_set( 54 if (ret != KERN_SUCCESS) { 55 printf("thread_policy_set(1) returned %d\n", ret); 63 kern_return_t ret; local 68 ret = thread_policy_get( 71 if (ret != KERN_SUCCESS) { 72 printf("thread_policy_set(1) returned %d\n", ret); 83 kern_return_t ret; local 117 ret [all...] |
/xnu-2422.115.4/tools/tests/unit_tests/ptrace_test_12507045_src/ |
H A D | ptrace_test.c | 107 int ret; local 111 ret = pipe(fds); 112 if (-1 == ret) { 120 ret = close(fds[0]); 121 if (ret == -1) { 128 ret = close(fds[1]); 129 if (ret == -1) { 148 ret = close(fds[1]); 149 if (ret == -1) { 158 ret 218 int ret; local 260 int ret; local 367 int ret; local 474 int ret; local 504 int ret; local 736 int ret; local [all...] |
/xnu-2422.115.4/libsyscall/os/ |
H A D | tsd.h | 56 void *ret; local 58 __asm__("mov %%gs:%1, %0" : "=r" (ret) : "m" (*(void **)(slot * sizeof(void *)))); 62 return ret;
|
/xnu-2422.115.4/osfmk/i386/vmx/ |
H A D | vmx_shims.c | 41 kern_return_t ret; local 42 ret = kmem_alloc_kobject(kernel_map, (vm_offset_t *)&pptr, PAGE_SIZE); 43 if (ret != KERN_SUCCESS) return (NULL);
|
/xnu-2422.115.4/tools/tests/kqueue_tests/ |
H A D | kqueue_timer_tests.c | 18 int ret; local 29 ret = kevent64(kq, kev, 1, kev, 1, 0, &timeout); 32 if (ret < 1 || (kev->flags & EV_ERROR)) { 33 printf("\tfailure: kevent returned %d, error %d\n", ret, 34 (ret == -1 ? errno : (int) kev->data)); 60 int ret; local 93 ret = do_simple_kevent(&kev, expected); 95 if (ret) 104 int ret; local 136 ret 149 int expected_pops, ret; local 193 int ret; local [all...] |
/xnu-2422.115.4/tools/tests/testkext/ |
H A D | testvmx.cpp | 23 int ret; local 32 ret = host_vmxon(FALSE); 33 IOLog("host_vmxon: %d\n", ret);
|