Home
last modified time | relevance | path

Searched defs:CStr (Results 1 – 25 of 261) sorted by relevance

1234567891011

/aosp_15_r20/external/rust/android-crates-io/crates/rustix/src/backend/linux_raw/fs/
Dsyscalls.rs59 pub(crate) fn open(path: &CStr, flags: OFlags, mode: Mode) -> io::Result<OwnedFd> { in open()
76 path: &CStr, in openat()
89 path: &CStr, in openat2()
116 pub(crate) fn chmod(path: &CStr, mode: Mode) -> io::Result<()> { in chmod()
130 path: &CStr, in chmodat()
151 path: &CStr, in chownat()
170 pub(crate) fn chown(path: &CStr, owner: Option<Uid>, group: Option<Gid>) -> io::Result<()> { in chown()
204 path: &CStr, in mknodat()
600 pub(crate) fn statat(dirfd: BorrowedFd<'_>, path: &CStr, flags: AtFlags) -> io::Result<Stat> { in statat()
632 fn statat_old(dirfd: BorrowedFd<'_>, path: &CStr, flags: AtFlags) -> io::Result<Stat> { in statat_old()
[all …]
/aosp_15_r20/external/rust/android-crates-io/crates/rustix/src/backend/libc/fs/
Dsyscalls.rs101 fn open_via_syscall(path: &CStr, oflags: OFlags, mode: Mode) -> io::Result<OwnedFd> { in open_via_syscall()
140 pub(crate) fn open(path: &CStr, oflags: OFlags, mode: Mode) -> io::Result<OwnedFd> { in open()
174 path: &CStr, in openat_via_syscall()
200 path: &CStr, in openat()
269 pub(crate) fn readlink(path: &CStr, buf: &mut [u8]) -> io::Result<usize> { in readlink()
281 path: &CStr, in readlinkat()
294 pub(crate) fn mkdir(path: &CStr, mode: Mode) -> io::Result<()> { in mkdir()
299 pub(crate) fn mkdirat(dirfd: BorrowedFd<'_>, path: &CStr, mode: Mode) -> io::Result<()> { in mkdirat()
330 pub(crate) fn link(old_path: &CStr, new_path: &CStr) -> io::Result<()> { in link()
337 old_path: &CStr, in linkat()
[all …]
/aosp_15_r20/external/rust/android-crates-io/crates/rustix/src/backend/linux_raw/mount/
Dsyscalls.rs19 source: Option<&CStr>, in mount()
20 target: &CStr, in mount()
21 file_system_type: Option<&CStr>, in mount()
23 data: Option<&CStr>, in mount()
38 pub(crate) fn unmount(target: &CStr, flags: super::types::UnmountFlags) -> io::Result<()> { in unmount()
44 pub(crate) fn fsopen(fs_name: &CStr, flags: super::types::FsOpenFlags) -> io::Result<OwnedFd> { in fsopen()
62 from_pathname: &CStr, in move_mount()
64 to_pathname: &CStr, in move_mount()
83 filename: &CStr, in open_tree()
93 path: &CStr, in fspick()
[all …]
/aosp_15_r20/external/rust/android-crates-io/crates/rustix/src/backend/libc/mount/
Dsyscalls.rs13 source: Option<&CStr>, in mount()
14 target: &CStr, in mount()
15 file_system_type: Option<&CStr>, in mount()
17 data: Option<&CStr>, in mount()
31 pub(crate) fn unmount(target: &CStr, flags: super::types::UnmountFlags) -> io::Result<()> { in unmount()
37 pub(crate) fn fsopen(fs_name: &CStr, flags: super::types::FsOpenFlags) -> io::Result<OwnedFd> { in fsopen()
68 from_pathname: &CStr, in move_mount()
70 to_pathname: &CStr, in move_mount()
97 filename: &CStr, in open_tree()
115 path: &CStr, in fspick()
[all …]
/aosp_15_r20/prebuilts/rust/linux-x86/1.80.1/lib/rustlib/src/rust/library/core/src/ffi/
H A Dc_str.rs108 pub struct CStr { struct
118 /// The slice used to create a [`CStr`] must have one and only one nul byte, argument
187 impl fmt::Debug for CStr { implementation
194 impl Default for &CStr { implementation
215 impl CStr { impl
284 pub const unsafe fn from_ptr<'a>(ptr: *const c_char) -> &'a CStr { in from_ptr()
329 pub const fn from_bytes_until_nul(bytes: &[u8]) -> Result<&CStr, FromBytesUntilNulError> { in from_bytes_until_nul()
420 pub const unsafe fn from_bytes_with_nul_unchecked(bytes: &[u8]) -> &CStr { in from_bytes_with_nul_unchecked()
422 fn rt_impl(bytes: &[u8]) -> &CStr { in from_bytes_with_nul_unchecked()
431 unsafe { &*(bytes as *const [u8] as *const CStr) } in from_bytes_with_nul_unchecked() constant
[all …]
/aosp_15_r20/prebuilts/rust/linux-x86/1.81.0.u1/lib/rustlib/src/rust/library/core/src/ffi/
H A Dc_str.rs108 pub struct CStr { struct
118 /// The slice used to create a [`CStr`] must have one and only one nul byte, argument
187 impl fmt::Debug for CStr { implementation
194 impl Default for &CStr { implementation
215 impl CStr { impl
282 pub const unsafe fn from_ptr<'a>(ptr: *const c_char) -> &'a CStr { in from_ptr()
327 pub const fn from_bytes_until_nul(bytes: &[u8]) -> Result<&CStr, FromBytesUntilNulError> { in from_bytes_until_nul()
418 pub const unsafe fn from_bytes_with_nul_unchecked(bytes: &[u8]) -> &CStr { in from_bytes_with_nul_unchecked()
420 fn rt_impl(bytes: &[u8]) -> &CStr { in from_bytes_with_nul_unchecked()
429 unsafe { &*(bytes as *const [u8] as *const CStr) } in from_bytes_with_nul_unchecked() constant
[all …]
/aosp_15_r20/prebuilts/rust/linux-musl-x86/1.81.0/lib/rustlib/src/rust/library/core/src/ffi/
H A Dc_str.rs108 pub struct CStr { struct
118 /// The slice used to create a [`CStr`] must have one and only one nul byte, argument
187 impl fmt::Debug for CStr { implementation
194 impl Default for &CStr { implementation
215 impl CStr { implementation
282 pub const unsafe fn from_ptr<'a>(ptr: *const c_char) -> &'a CStr { in from_ptr()
327 pub const fn from_bytes_until_nul(bytes: &[u8]) -> Result<&CStr, FromBytesUntilNulError> { in from_bytes_until_nul()
418 pub const unsafe fn from_bytes_with_nul_unchecked(bytes: &[u8]) -> &CStr { in from_bytes_with_nul_unchecked()
420 fn rt_impl(bytes: &[u8]) -> &CStr { in from_bytes_with_nul_unchecked()
429 unsafe { &*(bytes as *const [u8] as *const CStr) } in from_bytes_with_nul_unchecked() constant
[all …]
/aosp_15_r20/prebuilts/rust/linux-musl-x86/1.80.1/lib/rustlib/src/rust/library/core/src/ffi/
H A Dc_str.rs108 pub struct CStr { struct
118 /// The slice used to create a [`CStr`] must have one and only one nul byte, argument
187 impl fmt::Debug for CStr { implementation
194 impl Default for &CStr { implementation
215 impl CStr { implementation
284 pub const unsafe fn from_ptr<'a>(ptr: *const c_char) -> &'a CStr { in from_ptr()
329 pub const fn from_bytes_until_nul(bytes: &[u8]) -> Result<&CStr, FromBytesUntilNulError> { in from_bytes_until_nul()
420 pub const unsafe fn from_bytes_with_nul_unchecked(bytes: &[u8]) -> &CStr { in from_bytes_with_nul_unchecked()
422 fn rt_impl(bytes: &[u8]) -> &CStr { in from_bytes_with_nul_unchecked()
431 unsafe { &*(bytes as *const [u8] as *const CStr) } in from_bytes_with_nul_unchecked() constant
[all …]
/aosp_15_r20/prebuilts/rust/linux-x86/1.81.0/lib/rustlib/src/rust/library/core/src/ffi/
H A Dc_str.rs108 pub struct CStr { struct
118 /// The slice used to create a [`CStr`] must have one and only one nul byte, argument
187 impl fmt::Debug for CStr { implementation
194 impl Default for &CStr { implementation
215 impl CStr { implementation
282 pub const unsafe fn from_ptr<'a>(ptr: *const c_char) -> &'a CStr { in from_ptr()
327 pub const fn from_bytes_until_nul(bytes: &[u8]) -> Result<&CStr, FromBytesUntilNulError> { in from_bytes_until_nul()
418 pub const unsafe fn from_bytes_with_nul_unchecked(bytes: &[u8]) -> &CStr { in from_bytes_with_nul_unchecked()
420 fn rt_impl(bytes: &[u8]) -> &CStr { in from_bytes_with_nul_unchecked()
429 unsafe { &*(bytes as *const [u8] as *const CStr) } in from_bytes_with_nul_unchecked() constant
[all …]
/aosp_15_r20/prebuilts/rust/linux-x86/1.81.0/lib/rustlib/src/rust/library/alloc/src/ffi/
H A Dc_str.rs583 pub fn as_c_str(&self) -> &CStr { in as_c_str()
601 pub fn into_boxed_c_str(self) -> Box<CStr> { in into_boxed_c_str()
716 fn deref(&self) -> &CStr { in deref()
751 fn borrow(&self) -> &CStr { in borrow()
771 fn from(s: &CStr) -> Box<CStr> { in from()
782 fn from(cow: Cow<'_, CStr>) -> Box<CStr> { in from() argument
835 fn from(s: CString) -> Box<CStr> { in from()
844 fn from(s: CString) -> Cow<'a, CStr> { in from() argument
853 fn from(s: &'a CStr) -> Cow<'a, CStr> { in from() argument
862 fn from(s: &'a CString) -> Cow<'a, CStr> { in from() argument
[all …]
/aosp_15_r20/prebuilts/rust/linux-x86/1.80.1/lib/rustlib/src/rust/library/alloc/src/ffi/
H A Dc_str.rs583 pub fn as_c_str(&self) -> &CStr { in as_c_str()
601 pub fn into_boxed_c_str(self) -> Box<CStr> { in into_boxed_c_str()
716 fn deref(&self) -> &CStr { in deref()
751 fn borrow(&self) -> &CStr { in borrow()
771 fn from(s: &CStr) -> Box<CStr> { in from()
782 fn from(cow: Cow<'_, CStr>) -> Box<CStr> { in from() argument
835 fn from(s: CString) -> Box<CStr> { in from()
844 fn from(s: CString) -> Cow<'a, CStr> { in from() argument
853 fn from(s: &'a CStr) -> Cow<'a, CStr> { in from() argument
862 fn from(s: &'a CString) -> Cow<'a, CStr> { in from() argument
[all …]
/aosp_15_r20/prebuilts/rust/linux-x86/1.81.0.u1/lib/rustlib/src/rust/library/alloc/src/ffi/
H A Dc_str.rs583 pub fn as_c_str(&self) -> &CStr { in as_c_str()
601 pub fn into_boxed_c_str(self) -> Box<CStr> { in into_boxed_c_str()
716 fn deref(&self) -> &CStr { in deref()
751 fn borrow(&self) -> &CStr { in borrow()
771 fn from(s: &CStr) -> Box<CStr> { in from()
782 fn from(cow: Cow<'_, CStr>) -> Box<CStr> { in from() argument
835 fn from(s: CString) -> Box<CStr> { in from()
844 fn from(s: CString) -> Cow<'a, CStr> { in from() argument
853 fn from(s: &'a CStr) -> Cow<'a, CStr> { in from() argument
862 fn from(s: &'a CString) -> Cow<'a, CStr> { in from() argument
[all …]
/aosp_15_r20/prebuilts/rust/linux-musl-x86/1.80.1/lib/rustlib/src/rust/library/alloc/src/ffi/
H A Dc_str.rs583 pub fn as_c_str(&self) -> &CStr { in as_c_str()
601 pub fn into_boxed_c_str(self) -> Box<CStr> { in into_boxed_c_str()
716 fn deref(&self) -> &CStr { in deref()
751 fn borrow(&self) -> &CStr { in borrow()
771 fn from(s: &CStr) -> Box<CStr> { in from()
782 fn from(cow: Cow<'_, CStr>) -> Box<CStr> { in from() argument
835 fn from(s: CString) -> Box<CStr> { in from()
844 fn from(s: CString) -> Cow<'a, CStr> { in from() argument
853 fn from(s: &'a CStr) -> Cow<'a, CStr> { in from() argument
862 fn from(s: &'a CString) -> Cow<'a, CStr> { in from() argument
[all …]
/aosp_15_r20/prebuilts/rust/linux-musl-x86/1.81.0/lib/rustlib/src/rust/library/alloc/src/ffi/
H A Dc_str.rs583 pub fn as_c_str(&self) -> &CStr { in as_c_str()
601 pub fn into_boxed_c_str(self) -> Box<CStr> { in into_boxed_c_str()
716 fn deref(&self) -> &CStr { in deref()
751 fn borrow(&self) -> &CStr { in borrow()
771 fn from(s: &CStr) -> Box<CStr> { in from()
782 fn from(cow: Cow<'_, CStr>) -> Box<CStr> { in from() argument
835 fn from(s: CString) -> Box<CStr> { in from()
844 fn from(s: CString) -> Cow<'a, CStr> { in from() argument
853 fn from(s: &'a CStr) -> Cow<'a, CStr> { in from() argument
862 fn from(s: &'a CString) -> Cow<'a, CStr> { in from() argument
[all …]
/aosp_15_r20/external/rust/android-crates-io/crates/rustix/src/path/
Darg.rs76 fn as_cow_c_str(&self) -> io::Result<Cow<'_, CStr>>; in as_cow_c_str() argument
106 fn as_cow_c_str(&self) -> io::Result<Cow<'_, CStr>> { in as_cow_c_str() argument
148 fn as_cow_c_str(&self) -> io::Result<Cow<'_, CStr>> { in as_cow_c_str() argument
188 fn as_cow_c_str(&self) -> io::Result<Cow<'_, CStr>> { in as_cow_c_str() argument
230 fn as_cow_c_str(&self) -> io::Result<Cow<'_, CStr>> { in as_cow_c_str() argument
272 fn as_cow_c_str(&self) -> io::Result<Cow<'_, CStr>> { in as_cow_c_str() argument
313 fn as_cow_c_str(&self) -> io::Result<Cow<'_, CStr>> { in as_cow_c_str() argument
355 fn as_cow_c_str(&self) -> io::Result<Cow<'_, CStr>> { in as_cow_c_str() argument
400 fn as_cow_c_str(&self) -> io::Result<Cow<'_, CStr>> { in as_cow_c_str() argument
441 fn as_cow_c_str(&self) -> io::Result<Cow<'_, CStr>> { in as_cow_c_str() argument
[all …]
/aosp_15_r20/external/rust/android-crates-io/crates/serde_yaml/src/libyaml/
Dcstr.rs8 pub(crate) struct CStr<'a> { struct
13 unsafe impl<'a> Send for CStr<'a> {} argument
14 unsafe impl<'a> Sync for CStr<'a> {} implementation
16 impl<'a> CStr<'a> { implementation
47 impl<'a> Display for CStr<'a> { implementation
56 impl<'a> Debug for CStr<'a> { implementation
/aosp_15_r20/external/rust/android-crates-io/crates/rustix/src/
Dsystem.rs58 pub fn sysname(&self) -> &CStr { in sysname()
70 pub fn nodename(&self) -> &CStr { in nodename()
76 pub fn release(&self) -> &CStr { in release()
82 pub fn version(&self) -> &CStr { in version()
88 pub fn machine(&self) -> &CStr { in machine()
95 pub fn domainname(&self) -> &CStr { in domainname()
100 fn to_cstr<'a>(ptr: *const u8) -> &'a CStr { in to_cstr()
/aosp_15_r20/external/crosvm/fuse/src/
H A Dfilesystem.rs535 linkname: &CStr, in symlink()
537 name: &CStr, in symlink()
538 security_ctx: Option<&CStr>, in symlink()
558 name: &CStr, in mknod()
562 security_ctx: Option<&CStr>, in mknod()
579 name: &CStr, in mkdir()
582 security_ctx: Option<&CStr>, in mkdir()
594 security_ctx: Option<&CStr>, in chromeos_tmpfile()
633 oldname: &CStr, in rename()
635 newname: &CStr, in rename()
[all …]
/aosp_15_r20/external/rust/android-crates-io/crates/jni/src/wrapper/java_vm/init_args/
Dchar_encoding_windows.rs35 ) -> Result<Cow<'static, CStr>, JvmError> { in str_to_cstr_win32() argument
188 ) -> Result<Cow<'a, CStr>, JvmError> { in str_to_cstr_win32_default_codepage() argument
311 result: Result<Cow<'static, CStr>, JvmError>, in test_overflow() argument
325 result: Result<Cow<'static, CStr>, JvmError>, in test_overflow() argument
338 result: Result<Cow<'static, CStr>, JvmError>, in test_overflow() argument
/aosp_15_r20/bootable/libbootloader/gbl/libgbl/src/
H A Dops.rs258 fn avb_read_persistent_value(&mut self, name: &CStr, value: &mut [u8]) -> AvbIoResult<usize>; in avb_read_persistent_value()
263 fn avb_write_persistent_value(&mut self, name: &CStr, value: &[u8]) -> AvbIoResult<()>; in avb_write_persistent_value()
298 digest: Option<&CStr>, in avb_handle_verification_result()
328 commandline: &CStr, in fixup_os_commandline()
375 name: &CStr, in fastboot_variable()
388 cb: impl FnMut(&[&CStr], &CStr), in fastboot_visit_all_variables()
504 pub(crate) fn add_raw_device(&mut self, name: &CStr, data: impl AsRef<[u8]>) { in add_raw_device()
692 name: &CStr, in avb_read_persistent_value()
698 fn avb_write_persistent_value(&mut self, name: &CStr, value: &[u8]) -> AvbIoResult<()> { in avb_write_persistent_value()
709 _digest: Option<&CStr>, in avb_handle_verification_result()
[all …]
/aosp_15_r20/prebuilts/rust/linux-x86/1.81.0/lib/rustlib/src/rust/library/std/src/sys/pal/unix/
H A Dthread.rs120 pub fn set_name(name: &CStr) { in set_name()
134 pub fn set_name(name: &CStr) { in set_name()
147 pub fn set_name(name: &CStr) { in set_name()
154 pub fn set_name(name: &CStr) { in set_name()
164 pub fn set_name(name: &CStr) { in set_name()
176 pub fn set_name(name: &CStr) { in set_name()
196 pub fn set_name(name: &CStr) { in set_name()
209 pub fn set_name(name: &CStr) { in set_name()
227 pub fn set_name(_name: &CStr) { in set_name()
/aosp_15_r20/prebuilts/rust/linux-musl-x86/1.80.1/lib/rustlib/src/rust/library/std/src/sys/pal/unix/
H A Dthread.rs120 pub fn set_name(name: &CStr) { in set_name()
134 pub fn set_name(name: &CStr) { in set_name()
147 pub fn set_name(name: &CStr) { in set_name()
154 pub fn set_name(name: &CStr) { in set_name()
164 pub fn set_name(name: &CStr) { in set_name()
176 pub fn set_name(name: &CStr) { in set_name()
196 pub fn set_name(name: &CStr) { in set_name()
209 pub fn set_name(name: &CStr) { in set_name()
227 pub fn set_name(_name: &CStr) { in set_name()
/aosp_15_r20/prebuilts/rust/linux-x86/1.81.0.u1/lib/rustlib/src/rust/library/std/src/sys/pal/unix/
H A Dthread.rs120 pub fn set_name(name: &CStr) { in set_name()
134 pub fn set_name(name: &CStr) { in set_name()
147 pub fn set_name(name: &CStr) { in set_name()
154 pub fn set_name(name: &CStr) { in set_name()
164 pub fn set_name(name: &CStr) { in set_name()
176 pub fn set_name(name: &CStr) { in set_name()
196 pub fn set_name(name: &CStr) { in set_name()
209 pub fn set_name(name: &CStr) { in set_name()
227 pub fn set_name(_name: &CStr) { in set_name()
/aosp_15_r20/prebuilts/rust/linux-musl-x86/1.81.0/lib/rustlib/src/rust/library/std/src/sys/pal/unix/
H A Dthread.rs120 pub fn set_name(name: &CStr) { in set_name()
134 pub fn set_name(name: &CStr) { in set_name()
147 pub fn set_name(name: &CStr) { in set_name()
154 pub fn set_name(name: &CStr) { in set_name()
164 pub fn set_name(name: &CStr) { in set_name()
176 pub fn set_name(name: &CStr) { in set_name()
196 pub fn set_name(name: &CStr) { in set_name()
209 pub fn set_name(name: &CStr) { in set_name()
227 pub fn set_name(_name: &CStr) { in set_name()
/aosp_15_r20/prebuilts/rust/linux-x86/1.80.1/lib/rustlib/src/rust/library/std/src/sys/pal/unix/
H A Dthread.rs120 pub fn set_name(name: &CStr) { in set_name()
134 pub fn set_name(name: &CStr) { in set_name()
147 pub fn set_name(name: &CStr) { in set_name()
154 pub fn set_name(name: &CStr) { in set_name()
164 pub fn set_name(name: &CStr) { in set_name()
176 pub fn set_name(name: &CStr) { in set_name()
196 pub fn set_name(name: &CStr) { in set_name()
209 pub fn set_name(name: &CStr) { in set_name()
227 pub fn set_name(_name: &CStr) { in set_name()

1234567891011