Home
last modified time | relevance | path

Searched defs:c_void (Results 1 – 25 of 216) sorted by relevance

123456789

/third_party/rust/crates/rustix/src/mm/
Dmmap.rs37 ptr: *mut c_void, in mmap()
43 ) -> io::Result<*mut c_void> { in mmap()
65 ptr: *mut c_void, in mmap_anonymous()
69 ) -> io::Result<*mut c_void> { in mmap_anonymous()
86 pub unsafe fn munmap(ptr: *mut c_void, len: usize) -> io::Result<()> { in munmap()
107 old_address: *mut c_void, in mremap()
111 ) -> io::Result<*mut c_void> { in mremap()
133 old_address: *mut c_void, in mremap_fixed()
137 new_address: *mut c_void, in mremap_fixed()
138 ) -> io::Result<*mut c_void> { in mremap_fixed()
[all …]
/third_party/rust/crates/rustix/src/backend/linux_raw/mm/
Dsyscalls.rs24 pub(crate) fn madvise(addr: *mut c::c_void, len: usize, advice: Advice) -> io::Result<()> { in madvise()
36 pub(crate) unsafe fn msync(addr: *mut c::c_void, len: usize, flags: MsyncFlags) -> io::Result<()> { in msync()
46 addr: *mut c::c_void, in mmap()
52 ) -> io::Result<*mut c::c_void> { in mmap()
88 addr: *mut c::c_void, in mmap_anonymous()
92 ) -> io::Result<*mut c::c_void> { in mmap_anonymous()
121 ptr: *mut c::c_void, in mprotect()
133 pub(crate) unsafe fn munmap(addr: *mut c::c_void, length: usize) -> io::Result<()> { in munmap()
143 old_address: *mut c::c_void, in mremap()
147 ) -> io::Result<*mut c::c_void> { in mremap()
[all …]
/third_party/rust/crates/rustix/src/backend/libc/mm/
Dsyscalls.rs21 pub(crate) fn madvise(addr: *mut c::c_void, len: usize, advice: Advice) -> io::Result<()> { in madvise()
54 pub(crate) unsafe fn msync(addr: *mut c::c_void, len: usize, flags: MsyncFlags) -> io::Result<()> { in msync()
70 ptr: *mut c::c_void, in mmap()
76 ) -> io::Result<*mut c::c_void> { in mmap()
97 ptr: *mut c::c_void, in mmap_anonymous()
101 ) -> io::Result<*mut c::c_void> { in mmap_anonymous()
118 ptr: *mut c::c_void, in mprotect()
125 pub(crate) unsafe fn munmap(ptr: *mut c::c_void, len: usize) -> io::Result<()> { in munmap()
135 old_address: *mut c::c_void, in mremap()
139 ) -> io::Result<*mut c::c_void> { in mremap()
[all …]
/third_party/rust/crates/nix/src/sys/
Dmman.rs375 pub unsafe fn mlock(addr: *const c_void, length: size_t) -> Result<()> { in mlock()
388 pub unsafe fn munlock(addr: *const c_void, length: size_t) -> Result<()> { in munlock()
426 ) -> Result<*mut c_void> { in mmap()
450 addr: *mut c_void, in mremap()
454 new_address: Option<*mut c_void>, in mremap()
455 ) -> Result<*mut c_void> { in mremap()
488 pub unsafe fn munmap(addr: *mut c_void, len: size_t) -> Result<()> { in munmap()
501 addr: *mut c_void, in madvise()
535 addr: *mut c_void, in mprotect()
551 addr: *mut c_void, in msync()
/third_party/rust/crates/rust-openssl/openssl-sys/src/handwritten/
Dpem.rs85 user_data: *mut c_void, in PEM_read_bio_X509()
91 user_data: *mut c_void, in PEM_read_bio_X509_REQ()
97 user_data: *mut c_void, in PEM_read_bio_X509_CRL()
103 user_data: *mut c_void, in PEM_read_bio_RSAPrivateKey()
109 user_data: *mut c_void, in PEM_read_bio_RSAPublicKey()
116 user_data: *mut c_void, in PEM_read_bio_RSA_PUBKEY()
122 user_data: *mut c_void, in PEM_read_bio_DSAPrivateKey()
128 user_data: *mut c_void, in PEM_read_bio_DSA_PUBKEY()
134 user_data: *mut c_void, in PEM_read_bio_ECPrivateKey()
140 user_data: *mut c_void, in PEM_read_bio_EC_PUBKEY()
[all …]
Dcrypto.rs25 argp: *mut c_void, in CRYPTO_get_ex_new_index()
79 pub fn CRYPTO_memcmp(a: *const c_void, b: *const c_void, len: size_t) -> c_int; in CRYPTO_memcmp()
/third_party/rust/crates/cxx/src/
Dweak_ptr.rs47 let this = self as *const Self as *const c_void; in upgrade() constant
103 unsafe fn __null(new: *mut c_void); in __null()
105 unsafe fn __clone(this: *const c_void, new: *mut c_void); in __clone()
107 unsafe fn __downgrade(shared: *const c_void, new: *mut c_void); in __downgrade()
109 unsafe fn __upgrade(weak: *const c_void, shared: *mut c_void); in __upgrade()
111 unsafe fn __drop(this: *mut c_void); in __drop()
Dunique_ptr.rs225 unsafe fn __raw(raw: *mut Self) -> MaybeUninit<*mut c_void>; in __raw()
231 unsafe fn __drop(repr: MaybeUninit<*mut c_void>); in __drop()
236 fn unique_ptr_std_string_null(this: *mut MaybeUninit<*mut c_void>); in unique_ptr_std_string_null()
238 fn unique_ptr_std_string_raw(this: *mut MaybeUninit<*mut c_void>, raw: *mut CxxString); in unique_ptr_std_string_raw()
244 fn unique_ptr_std_string_drop(this: *mut MaybeUninit<*mut c_void>); in unique_ptr_std_string_drop()
258 unsafe fn __raw(raw: *mut Self) -> MaybeUninit<*mut c_void> { in __raw()
269 unsafe fn __drop(mut repr: MaybeUninit<*mut c_void>) { in __drop()
284 unsafe fn __raw(raw: *mut Self) -> MaybeUninit<*mut c_void> { in __raw()
293 unsafe fn __drop(repr: MaybeUninit<*mut c_void>) { in __drop()
Dshared_ptr.rs55 let this = self as *const Self as *const c_void; in is_null() constant
63 let this = self as *const Self as *const c_void; in as_ref() constant
76 let this = self as *const Self as *const c_void; in downgrade() constant
188 unsafe fn __null(new: *mut c_void); in __null()
201 unsafe fn __clone(this: *const c_void, new: *mut c_void); in __clone()
205 unsafe fn __drop(this: *mut c_void); in __drop()
/third_party/rust/rust/src/tools/miri/tests/pass/concurrency/
Dwindows_condvar_shared.rs16 condvar: *mut *mut c_void, in SleepConditionVariableSRW()
17 lock: *mut *mut c_void, in SleepConditionVariableSRW()
21 fn WakeAllConditionVariable(condvar: *mut *mut c_void); in WakeAllConditionVariable()
23 fn AcquireSRWLockExclusive(lock: *mut *mut c_void); in AcquireSRWLockExclusive()
24 fn AcquireSRWLockShared(lock: *mut *mut c_void); in AcquireSRWLockShared()
25 fn ReleaseSRWLockExclusive(lock: *mut *mut c_void); in ReleaseSRWLockExclusive()
26 fn ReleaseSRWLockShared(lock: *mut *mut c_void); in ReleaseSRWLockShared()
/third_party/rust/crates/nix/src/sys/socket/
Dsockopt.rs1071 fn ffi_ptr(&mut self) -> *mut c_void; in ffi_ptr()
1085 fn ffi_ptr(&self) -> *const c_void; in ffi_ptr()
1105 fn ffi_ptr(&mut self) -> *mut c_void { in ffi_ptr()
1133 fn ffi_ptr(&self) -> *const c_void { in ffi_ptr()
1134 self.ptr as *const T as *const c_void in ffi_ptr() constant
1156 fn ffi_ptr(&mut self) -> *mut c_void { in ffi_ptr()
1186 fn ffi_ptr(&self) -> *const c_void { in ffi_ptr()
1187 &self.val as *const c_int as *const c_void in ffi_ptr() constant
1209 fn ffi_ptr(&mut self) -> *mut c_void { in ffi_ptr()
1237 fn ffi_ptr(&self) -> *const c_void { in ffi_ptr()
[all …]
/third_party/rust/rust/tests/ui/lint/dead-code/
Dlint-dead-code-3.rs48 enum c_void {} enum
51 fn free(p: *const c_void); in free()
52 fn malloc(size: usize) -> *const c_void; in malloc()
60 enum c_void {} //~ ERROR: enum `c_void` is never used enum
62 fn free(p: *const c_void); //~ ERROR: function `free` is never used in free()
/third_party/rust/rust/src/tools/rust-analyzer/crates/parser/test_data/parser/ok/
D0031_extern.rs12 optval: *mut ::c_void, in getsockopt()
15 value: *const ::c_void, in setsockopt()
19 pub fn sendto(socket: ::c_int, buf: *const ::c_void, len: ::size_t, in sendto()
22 pub fn send(socket: ::c_int, buf: *const ::c_void, len: ::size_t, in send()
24 pub fn recvfrom(socket: ::c_int, buf: *mut ::c_void, len: ::size_t, in recvfrom()
27 pub fn recv(socket: ::c_int, buf: *mut ::c_void, len: ::size_t, in recv()
/third_party/rust/rust/library/panic_unwind/src/
Demcc.rs113 extern "C" fn exception_cleanup(ptr: *mut libc::c_void) -> *mut libc::c_void { in exception_cleanup()
124 fn __cxa_allocate_exception(thrown_size: libc::size_t) -> *mut libc::c_void; in __cxa_allocate_exception()
125 fn __cxa_begin_catch(thrown_exception: *mut libc::c_void) -> *mut libc::c_void; in __cxa_begin_catch()
128 thrown_exception: *mut libc::c_void, in __cxa_throw()
130 dest: extern "C" fn(*mut libc::c_void) -> *mut libc::c_void, in __cxa_throw()
/third_party/rust/crates/libc/src/windows/msvc/
Dmod.rs15 dest: *mut ::c_void, in memccpy()
16 src: *const ::c_void, in memccpy()
19 ) -> *mut ::c_void; in memccpy()
/third_party/rust/crates/io-lifetimes/src/
Dexample_ffi.rs32 pub fn read(fd: BorrowedFd<'_>, ptr: *mut c_void, size: size_t) -> ssize_t; in read()
33 pub fn write(fd: BorrowedFd<'_>, ptr: *const c_void, size: size_t) -> ssize_t; in write()
54 lpbuffer: *mut c_void, in ReadFile()
61 lpbuffer: *const c_void, in WriteFile()
/third_party/rust/rust/src/tools/miri/tests/fail/function_calls/
Dexported_symbol_shim_clashing.rs2 extern "C" fn malloc(_: usize) -> *mut std::ffi::c_void { in malloc()
9 fn malloc(_: usize) -> *mut std::ffi::c_void; in main()
/third_party/rust/rust/src/tools/miri/tests/fail/shims/
Dshim_arg_size.rs4 fn memchr(s: *const std::ffi::c_void, c: u8, n: usize) -> *mut std::ffi::c_void; in main()
/third_party/rust/crates/nix/src/sys/ptrace/
Dlinux.rs195 data: *mut c_void, in ptrace_peek()
239 &regs as *const _ as *const c_void, in setregs() constant
256 data.as_mut_ptr() as *const _ as *const c_void, in ptrace_get_data() constant
267 data: *mut c_void, in ptrace_other()
309 sig as *const _ as *const c_void, in setsiginfo() constant
540 data: *mut c_void, in write()
561 data: *mut c_void, in write_user()
/third_party/mesa3d/src/gallium/frontends/rusticl/api/
Dmemory.rs170 fn validate_host_ptr(host_ptr: *mut ::std::os::raw::c_void, flags: cl_mem_flags) -> CLResult<()> { in validate_host_ptr()
266 host_ptr: *mut ::std::os::raw::c_void, in create_buffer_with_properties()
317 host_ptr: *mut ::std::os::raw::c_void, in create_buffer()
327 buffer_create_info: *const ::std::os::raw::c_void, in create_sub_buffer()
378 user_data: *mut ::std::os::raw::c_void, in set_mem_object_destructor_callback()
422 host_ptr: *mut ::std::os::raw::c_void, in validate_image_desc()
612 host_ptr: *mut ::std::os::raw::c_void, in validate_buffer()
767 host_ptr: *mut ::std::os::raw::c_void, in create_image_with_properties()
823 host_ptr: *mut ::std::os::raw::c_void, in create_image()
843 host_ptr: *mut ::std::os::raw::c_void, in create_image_2d()
[all …]
Dicd.rs445 param_value: *mut ::std::ffi::c_void, in clGetPlatformInfo()
479 ) -> *mut c_void { in clGetExtensionFunctionAddress()
535 user_data: *mut ::std::os::raw::c_void, in clLinkProgram()
559 ) -> *mut ::std::os::raw::c_void { in clGetExtensionFunctionAddressForPlatform()
568 ) -> *mut ::std::os::raw::c_void { in clSVMAlloc()
572 extern "C" fn clSVMFree(context: cl_context, svm_pointer: *mut ::std::os::raw::c_void) { in clSVMFree()
581 input_value: *const ::std::os::raw::c_void, in clGetKernelSubGroupInfo()
583 param_value: *mut ::std::os::raw::c_void, in clGetKernelSubGroupInfo()
/third_party/rust/rust/src/tools/miri/tests/fail/concurrency/
Dlibc_pthread_create_too_many_args.rs7 extern "C" fn thread_start(_null: *mut libc::c_void, _x: i32) -> *mut libc::c_void { in thread_start()
/third_party/rust/crates/rust-openssl/openssl-sys/src/
Dcrypto.rs63 pub unsafe fn OPENSSL_malloc(num: usize) -> *mut c_void { in OPENSSL_malloc()
74 pub unsafe fn OPENSSL_malloc(num: c_int) -> *mut c_void { in OPENSSL_malloc()
85 pub unsafe fn OPENSSL_free(addr: *mut c_void) { in OPENSSL_free()
95 pub unsafe fn OPENSSL_free(addr: *mut c_void) { in OPENSSL_free()
/third_party/rust/crates/memchr/src/memchr/
Dc.rs12 haystack.as_ptr() as *const c_void, in memchr() constant
34 haystack.as_ptr() as *const c_void, in memrchr() constant
/third_party/rust/crates/libc/src/
Dpsp.rs2615 buf: *mut c_void, in sceAudioOutputPanned()
2621 buf: *mut c_void, in sceAudioOutputPannedBlocking()
2642 pub fn sceAudioInputBlocking(sample_count: i32, freq: AudioInputFrequency, buf: *mut c_void); in sceAudioInputBlocking()
2643 pub fn sceAudioInput(sample_count: i32, freq: AudioInputFrequency, buf: *mut c_void); in sceAudioInput()
2649 pub fn sceAtracSetDataAndGetID(buf: *mut c_void, bufsize: usize) -> i32; in sceAtracSetDataAndGetID()
2740 top_addr: *mut *mut c_void, in sceDisplayGetFrameBuf()
2765 list: *const c_void, in sceGeListEnQueue()
2766 stall: *mut c_void, in sceGeListEnQueue()
2771 list: *const c_void, in sceGeListEnQueueHead()
2772 stall: *mut c_void, in sceGeListEnQueueHead()
[all …]

123456789