| /xnu-11215/doc/allocators/ |
| H A D | read-only.md | 3 Allocating read-only data in xnu. 8 "read-only" allocations. Data allocated from a read-only zone can only be 43 Data under the control of the Read-Only Allocator can be read from just as 56 1. Pointers to read-only elements should either reside in read-only memory 58 2. Where there is a 1:1 mapping between read/write and read-only elements, the 59 read-only element should include a pointer back to the read/write side (a 60 "back reference") that is validated when traversing from read/write to 61 read-only. 68 On Point 2: by storing a back reference on the read-only side of 1:1 91 read-only, and secondly to allow for more stringent validation at the API [all …]
|
| /xnu-11215/osfmk/libsa/ |
| H A D | string.h | 296 __xnu_struct_size_check(s1, n, read); in bcmp() 297 __xnu_struct_size_check(s2, n, read); in bcmp() 322 __xnu_struct_size_check(s1, n, read); in memcmp() 323 __xnu_struct_size_check(s2, n, read); in memcmp() 413 __xnu_object_size_check(src, n, read); in __sized_by() 437 __xnu_struct_size_check(src, n, read); in __sized_by() 588 __xnu_member_size_check(s1, s1len, read); in strlcmp() 614 __xnu_member_size_check(s1, s1len, read); in strbufcmp() 615 __xnu_member_size_check(s2, s2len, read); in strbufcmp() 680 __xnu_member_size_check(s1, s1len, read); in strlcasecmp() [all …]
|
| /xnu-11215/tests/ |
| H A D | tty_hang.c | 103 read(sock_fd[1], buf, sizeof(buf)); in get_new_session_and_terminal_and_fork_child_to_read() 118 (void)read(pty_fd_child, buf, sizeof(buf)); in get_new_session_and_terminal_and_fork_child_to_read() 129 T_ASSERT_POSIX_SUCCESS(read(sock_fd[0], buf, sizeof(buf)), NULL); in get_new_session_and_terminal_and_fork_child_to_read()
|
| H A D | ioperf.c | 86 T_ASSERT_GE_INT((int)read(rndfd, data_buf, IO_SIZE * 16), 0, "read /dev/urandom"); in io_perf_test_io_init() 179 read(test_file_fd, data_buf, IO_SIZE); in perform_io() 184 ret = read(test_file_fd, data_buf, IO_SIZE); in perform_io()
|
| H A D | extract_right_soft_fail.c | 118 read(fd2[0], data, 6); /* Sync point 2 */ 124 read(fd[0], data, 6); /* Sync point 1 */
|
| H A D | vsock.c | 552 ssize_t read_bytes = read(socketB, buffer, 1024); 588 ssize_t read_bytes = read(socketB, buffer, 1024); 610 ssize_t read_bytes = read(socketB, buffer, 1024); 629 read_bytes = read(socketB, buffer, 1024); 652 ssize_t read_bytes = read(socketB, buffer, 1024); 679 ssize_t read_bytes = read(socketB, buffer, 1024); 756 ssize_t read_bytes = read(socketB, buffer, size);
|
| H A D | iopolicy.c | 113 err = (int)read(fd, g_testdata, sizeof(g_testdata)); 130 err = (int)read(fd, g_testdata, sizeof(g_testdata));
|
| H A D | read_nullbuf.c | 50 result = read(fd, NULL, 8);
|
| H A D | dev_zero.c | 18 int rd_sz = read(dev, buffer, sizeof(buffer));
|
| H A D | kevent_pty.c | 108 bytes_rd = read(child_ready[0], end, sizeof(buf) - buf_len); 148 ssize_t rdsize = read(fd, &c, sizeof(c)); in reader_thread()
|
| H A D | pipe_drain.c | 54 read(fd, buf, 10); in thread_read()
|
| H A D | posix_spawn_file_actions_add_fileportdup2_np.c | 70 ssize_t rc = read(pipes[0], buf, sizeof(buf));
|
| H A D | pty_121077498.c | 50 T_EXPECT_POSIX_FAILURE(read(primary, &c, 1), EAGAIN, "read with no data returns EAGAIN");
|
| /xnu-11215/tools/lldbmacros/core/ |
| H A D | io.py | 55 def read(self, size=-1): member in SBProcessRawIO 83 data = self.read(len(bytes))
|
| /xnu-11215/tools/lldbmacros/ |
| H A D | log.py | 192 read = cursor 193 if read + self.block_count < logged: 194 read = logged 196 read -= self.block_count 197 return read % self.block_count
|
| /xnu-11215/tests/skywalk/ |
| H A D | skt_mpsimple.c | 53 if ((ret = read(MPTEST_SEQ_FILENO, buf, sizeof(buf))) == -1) { in skt_mp100noop_main()
|
| H A D | skt_closenfd.c | 114 ret = read(nfd, buf, sizeof(buf)); in skt_readnfd_main()
|
| /xnu-11215/iokit/IOKit/nvram/ |
| H A D | IONVRAMController.h | 45 virtual IOReturn read(IOByteCount offset, UInt8 *buffer,
|
| /xnu-11215/tests/vfs/ |
| H A D | freeable_vnodes.c | 221 T_ASSERT_POSIX_SUCCESS(read(sock_fd[1], buf, sizeof(buf)), NULL); 233 T_ASSERT_POSIX_SUCCESS(read(sock_fd[0], buf, sizeof(buf)), NULL);
|
| /xnu-11215/san/memory/ |
| H A D | kasan-blacklist-dynamic | 3 # <type> = [ kfree zfree fsfree memr memw strr strw read write rw free mem str poison ]
|
| /xnu-11215/tools/lldbmacros/plugins/ |
| H A D | speedtracer.py | 31 response_str = response.read()
|
| /xnu-11215/osfmk/i386/ |
| H A D | lapic.h | 178 uint32_t (*read)(lapic_register_t); member 187 #define LAPIC_READ(reg) lapic_ops->read(reg)
|
| /xnu-11215/iokit/DriverKit/ |
| H A D | IODMACommand.iig | 16 * http://www.opensource.apple.com/apsl/ and read it before using this file. 171 kIODMACommandPerformOperationOptionRead read from the DMA mapping to 179 * @param data Callers buffer to read into or write from. Pass NULL when
|
| /xnu-11215/EXTERNAL_HEADERS/corecrypto/ |
| H A D | ccrng_schedule.h | 41 ccrng_schedule_action_t (*read)(ccrng_schedule_ctx_t *ctx); member
|
| /xnu-11215/tools/lldbmacros/lint/ |
| H A D | syntax_checker.py | 52 source = file.read() + '\n'
|