Home
last modified time | relevance | path

Searched refs:read (Results 1 – 25 of 201) sorted by relevance

123456789

/xnu-11215/doc/allocators/
H A Dread-only.md3 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 Dstring.h296 __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 Dtty_hang.c103 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 Dioperf.c86 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 Dextract_right_soft_fail.c118 read(fd2[0], data, 6); /* Sync point 2 */
124 read(fd[0], data, 6); /* Sync point 1 */
H A Dvsock.c552 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 Diopolicy.c113 err = (int)read(fd, g_testdata, sizeof(g_testdata));
130 err = (int)read(fd, g_testdata, sizeof(g_testdata));
H A Dread_nullbuf.c50 result = read(fd, NULL, 8);
H A Ddev_zero.c18 int rd_sz = read(dev, buffer, sizeof(buffer));
H A Dkevent_pty.c108 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 Dpipe_drain.c54 read(fd, buf, 10); in thread_read()
H A Dposix_spawn_file_actions_add_fileportdup2_np.c70 ssize_t rc = read(pipes[0], buf, sizeof(buf));
H A Dpty_121077498.c50 T_EXPECT_POSIX_FAILURE(read(primary, &c, 1), EAGAIN, "read with no data returns EAGAIN");
/xnu-11215/tools/lldbmacros/core/
H A Dio.py55 def read(self, size=-1): member in SBProcessRawIO
83 data = self.read(len(bytes))
/xnu-11215/tools/lldbmacros/
H A Dlog.py192 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 Dskt_mpsimple.c53 if ((ret = read(MPTEST_SEQ_FILENO, buf, sizeof(buf))) == -1) { in skt_mp100noop_main()
H A Dskt_closenfd.c114 ret = read(nfd, buf, sizeof(buf)); in skt_readnfd_main()
/xnu-11215/iokit/IOKit/nvram/
H A DIONVRAMController.h45 virtual IOReturn read(IOByteCount offset, UInt8 *buffer,
/xnu-11215/tests/vfs/
H A Dfreeable_vnodes.c221 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 Dkasan-blacklist-dynamic3 # <type> = [ kfree zfree fsfree memr memw strr strw read write rw free mem str poison ]
/xnu-11215/tools/lldbmacros/plugins/
H A Dspeedtracer.py31 response_str = response.read()
/xnu-11215/osfmk/i386/
H A Dlapic.h178 uint32_t (*read)(lapic_register_t); member
187 #define LAPIC_READ(reg) lapic_ops->read(reg)
/xnu-11215/iokit/DriverKit/
H A DIODMACommand.iig16 * 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 Dccrng_schedule.h41 ccrng_schedule_action_t (*read)(ccrng_schedule_ctx_t *ctx); member
/xnu-11215/tools/lldbmacros/lint/
H A Dsyntax_checker.py52 source = file.read() + '\n'

123456789