Home
last modified time | relevance | path

Searched refs:use (Results 1 – 25 of 198) sorted by relevance

12345678

/xnu-11215/tests/bounded_ptr_src/
H A Dexample.malloc.cpp41 use(SomeType*) in use() function
62 use(array.discard_bounds()); // must manually discard bounds here
67 use(&array[idx]);
/xnu-11215/doc/primitives/
H A Dstring-handling.md14 * use `strl*` when you have the length of _one_ string, and the other is
16 * use `str*` when you don't have the length for any of the strings, and they
32 direct replacement. The first person who needs to use -fbounds-safety in a file
35 If you try to use `strlcmp` and you get a diagnostic like this:
54 never use `str` functions to write to strings. Functions that simply read
96 * When -fbounds-safety flags that the use of a string function was improper,
99 The most common use of character buffers is to build a string, and then this
189 pointer to you for convenience, not all use cases are resolved by calling
195 build a string with successive calls to `scnprintf`, you would use
211 # I have a choice between `strn*`, `strl*`, `strbuf*`. Which one do I use?
[all …]
/xnu-11215/doc/allocators/
H A Dapi-basics.md112 as attackers tend to use data/pointer overlaps to carry out their exploitations.
114 The typed allocators use compiler support to infer signatures
213 Note that this is absolutely OK to use this variant
242 Note that this is absolutely OK to use this variant
282 This section covers how typed allocators should be adopted to use
287 should probably use OSObject as a base class. C++ operators
296 Note that idiomatic IOKit is supposed to use `OSTypeAlloc(Class)`.
320 Alternatively, if you cannot use the mixin approach, you can use the
332 their implementation, you can use `IODeclareTypedOperators` paired with
385 The blessed way of wrapping and passing a C++ type allocation for use in the
[all …]
H A Dread-only.md11 Read-only zones are intended for very specific use cases where the data being
53 To make best use of the Read-Only Allocator, some simple advice should be
70 If this is violated, it suggests that a use-after-free has happened -- perhaps
77 threats. This means that for most data, it simply doesn't make sense to use
78 it. Its use is primarily geared toward allocations supporting security
/xnu-11215/osfmk/conf/
H A Dcopyright.osf10 # The OSF/RI grants you (hereafter, Licensee) a license to use the
26 # Any Licensee wishing to make commercial use of the Software should
28 # license for such commercial use. Commercial use includes (1)
/xnu-11215/doc/debugging/
H A Ddebugging.md27 Instead, always use the inheritance-sensitive `isinstance(obj, type)`.
31 It’s recommended to use **bytearray**, **bytes**, and **memoryviews** instead of a string.
38 be hugely beneficial performance-wise to make use of the `io.SBProcessRawIO` class. Furthermore, if…
50 And instead use:
90 # And then use buffered_io for your accesses
111 Which to use depends on the transformation goals. The lossy conversion produces a printable string
131 Always use **unsigned()** or **signed()** regardless of what the actual underlying type is
132 to ensure that macros use the correct semantics.
232 # Get HTML report or use other subcommands to inspect.
304 To report an actionable radar, please use re-run your failing macro with `--radar`.
[all …]
/xnu-11215/doc/observability/
H A Dcpu_counters.md23 It can use PMIs from these counters to trigger kperf samples and counter values can be recorded in …
28 …ystem provides a policy layer on top of kpc and Monotonic to prevent malicious use of the hardware.
34 - The Recount subsystem makes extensive use of the fixed CPMU counters to attribute CPU resources b…
/xnu-11215/bsd/crypto/doc/
H A DKernelCrypto.txt11 * This library is free for commercial and non-commercial use as long as
25 * Redistribution and use in source and binary forms, with or without
33 * 3. All advertising materials mentioning features or use of this software
69 The free distribution and use of this software in both source and binary
99 The free distribution and use of this software in both source and binary
131 The free distribution and use of this software is allowed (with or without
/xnu-11215/libkern/zlib/
H A DREADME19 machines. For Unix: "./configure; make test; make install". For MSDOS, use one
20 of the special makefiles such as Makefile.msc. For VMS, use make_vms.com.
99 arising from the use of this software.
101 Permission is granted to anyone to use this software for any purpose,
106 claim that you wrote the original software. If you use this software
116 If you use the zlib library in a product, we would appreciate *not*
/xnu-11215/tools/lldbmacros/
H A DREADME.md4 A. How to use lldb for kernel debugging
23 A. How to use lldb for kernel debugging
126 Using xnu debug commands is very similar to kgmacros in gdb. You can use 'kgmhelp' to get a listing…
170 … - use kern.globals.\<variable_name> & kern.GetValueFromAddress for building values from addresses.
195 * Alternatively, you can use lldb`s command for script loading as
220 Also if you wish to quickly disable the summaries for a particular command use the `showraw` comman…
236 [ use `kern.globals` & `kern.GetValueFromAddress` for building args to core functions. ]
266 …seem that the lldb process is hung. But it is not. You can use "-i" option to get immediate output…
324 …* If you need to print a string from a core.value object then use str() to get string representati…
359 * A variable for internal use in object should start with '_'.
[all …]
/xnu-11215/
H A DREADME.md58 To install the kernel into a DSTROOT, use the `install_kernels` target:
139 To build a kernelcache you can use the following mechanisms:
189 The `--nextonly` flag specifies that use the `boot.plist` configs only for one boot.
277 use a machine-dependent install list (e.g. `INSTALL_MD_LIST`). If your header
278 should be installed for all architectures, then you should use a
389 You can use C language's pre-processor directive (#ifdef, #endif, #ifndef)
464 targeted, use this option. Prefer checking for features of the
468 and use the resulting `CONFIG` preprocessor token (e.g. for a feature
472 3. *Existing Features* You can use existing features if your code is
473 strongly tied to them (e.g. use `SECURE_KERNEL` if your code implements
[all …]
H A DAPPLE_LICENSE7 of this License, please do not download or use the software.
20 necessary to use, reproduce and/or distribute the Original Code
35 anyone other than You; and/or (b) to use Covered Code, alone or as
82 2.1 Unmodified Code. You may use, reproduce, display, perform,
98 2.2 Modified Code. You may modify Covered Code and use, reproduce,
152 rights (other than patent) owned or controlled by You, to use,
185 under the terms of that version. You may also choose to use such
211 You acknowledge that the Covered Code is not intended for use in the
231 10. Trademarks. This License does not grant any rights to use the
271 stop any further use, reproduction, modification, sublicensing and
[all …]
/xnu-11215/doc/building/
H A Dbound_checks.md56 * (nothing): -fbounds-safety is disabled; it is an error to use `__indexable`
89 For this step, you use `bound-checks-debug`. `bound-checks-debug` enables the
91 debugged bounds checks. You should also use bound-checks-debug for xnu changes
110 `__bidi_indexable` keywords are **undefined**. It is a syntax error to use them.
112 ABI-compatible with plain C: if they were defined to nothing instead, and a use
117 However, adopting -fbounds-safety may require the explicit use of `__indexable`
154 If you want to enable `bound-checks` for internal users but want to use
156 (e.g. during seeding), use `bound-checks-seed`.
/xnu-11215/iokit/DriverKit/
H A DIOWorkGroup.iig8 * Version 2.0 (the 'License'). You may not use this file except in
47 …* Applications that open user clients to a DriverKit driver can send a workgroup to use in the dri…
50 * workgroup port with os_workgroup_copy_port(). To send the workgroup port to the driver, use:
108 * a workgroup with Leave(), use the same token that was passed to Join().
H A DIOMemoryMap.iig8 * Version 2.0 (the 'License'). You may not use this file except in
54 * To allocate memory for I/O or sharing, use IOBufferMemoryDescriptor::Create()
/xnu-11215/makedefs/
H A DMakeInc.rule593 # in their local Makefiles. Those that do will use a "::" rule to augment this.
600 # in their local Makefiles. Those that do will use a "::" rule to augment this.
607 # in their local Makefiles. Those that do will use a "::" rule to augment this.
640 # in their local Makefiles. Those that do will use a "::" rule to augment this.
645 # in their local Makefiles. Those that do will use a "::" rule to augment this.
652 # in their local Makefiles. Those that do will use a "::" rule to augment this.
659 # in their local Makefiles. Those that do will use a "::" rule to augment this.
666 # in their local Makefiles. Those that do will use a "::" rule to augment this.
673 # in their local Makefiles. Those that do will use a "::" rule to augment this.
680 # in their local Makefiles. Those that do will use a "::" rule to augment this.
/xnu-11215/iokit/IOKit/
H A DIOLocksPrivate.h36 #error IOLocksPrivate.h is for kernel use only
/xnu-11215/bsd/vfs/
H A Dvnode_if.src6 # Redistribution and use in source and binary forms, with or without
14 # 3. All advertising materials mentioning features or use of this software
/xnu-11215/bsd/conf/
H A Dcopyright5 * the terms and conditions for use and redistribution.
/xnu-11215/pexpert/conf/
H A Dcopyright5 * the terms and conditions for use and redistribution.
/xnu-11215/iokit/conf/
H A Dcopyright5 * the terms and conditions for use and redistribution.
/xnu-11215/libsyscall/mach/servers/
H A Dnetname.defs8 * Version 2.0 (the 'License'). You may not use this file except in
32 * the terms and conditions for use and redistribution.
/xnu-11215/EXTERNAL_HEADERS/
H A Dstdbool.h37 #error Do not build with -nostdinc (use GCC_USE_STANDARD_INCLUDE_SEARCHING=NO)
/xnu-11215/tests/
H A Dmach_exc.defs8 * Version 2.0 (the 'License'). You may not use this file except in
36 * Permission to use, copy, modify and distribute this software and its
/xnu-11215/san/coverage/
H A Dkcov-blacklist-arm646 # These use a local variable to work out which stack we're on, but can end up with

12345678