/third_party/rust/crates/rustix/src/path/ |
D | arg.rs | 8 use crate::ffi::{CStr, CString}; 77 fn as_cow_c_str(&self) -> io::Result<Cow<'_, CStr>>; in as_cow_c_str() argument 81 fn into_c_str<'b>(self) -> io::Result<Cow<'b, CStr>> in into_c_str() 89 F: FnOnce(&CStr) -> io::Result<T>; in into_with_c_str() 104 fn as_cow_c_str(&self) -> io::Result<Cow<'_, CStr>> { in as_cow_c_str() argument 111 fn into_c_str<'b>(self) -> io::Result<Cow<'b, CStr>> in into_c_str() 124 F: FnOnce(&CStr) -> io::Result<T>, in into_with_c_str() 142 fn as_cow_c_str(&self) -> io::Result<Cow<'_, CStr>> { in as_cow_c_str() argument 149 fn into_c_str<'b>(self) -> io::Result<Cow<'b, CStr>> in into_c_str() 160 F: FnOnce(&CStr) -> io::Result<T>, in into_with_c_str() [all …]
|
D | dec_int.rs | 10 use crate::ffi::CStr; 80 pub fn as_c_str(&self) -> &CStr { in as_c_str() argument 82 debug_assert!(CStr::from_bytes_with_nul(bytes_with_nul).is_ok()); in as_c_str() 86 unsafe { CStr::from_bytes_with_nul_unchecked(bytes_with_nul) } in as_c_str()
|
/third_party/rust/crates/rustix/src/process/ |
D | uname.rs | 10 use crate::ffi::CStr; 27 pub fn sysname(&self) -> &CStr { in sysname() argument 37 pub fn nodename(&self) -> &CStr { in nodename() argument 43 pub fn release(&self) -> &CStr { in release() argument 49 pub fn version(&self) -> &CStr { in version() argument 55 pub fn machine(&self) -> &CStr { in machine() argument 62 pub fn domainname(&self) -> &CStr { in domainname() argument 67 fn to_cstr<'a>(ptr: *const u8) -> &'a CStr { in to_cstr() argument 69 unsafe { CStr::from_ptr(ptr.cast()) } in to_cstr()
|
/third_party/skia/third_party/externals/icu/source/common/ |
D | cstr.h | 46 class U_COMMON_API CStr : public UMemory { 48 CStr(const UnicodeString &in); 49 ~CStr(); 54 CStr(const CStr &other); // Forbid copying of this class. 55 CStr &operator =(const CStr &other); // Forbid assignment.
|
D | cstr.cpp | 21 CStr::CStr(const UnicodeString &in) { in CStr() function in CStr 47 CStr::~CStr() { in ~CStr() 50 const char * CStr::operator ()() const { in operator ()()
|
/third_party/icu/icu4c/source/common/ |
D | cstr.h | 46 class U_COMMON_API CStr : public UMemory { 48 CStr(const UnicodeString &in); 49 ~CStr(); 54 CStr(const CStr &other) = delete; // Forbid copying of this class. 55 CStr &operator =(const CStr &other) = delete; // Forbid assignment.
|
D | cstr.cpp | 21 CStr::CStr(const UnicodeString &in) { in CStr() function in CStr 47 CStr::~CStr() { in ~CStr() 50 const char * CStr::operator ()() const { in operator ()()
|
/third_party/node/deps/icu-small/source/common/ |
D | cstr.h | 46 class U_COMMON_API CStr : public UMemory { 48 CStr(const UnicodeString &in); 49 ~CStr(); 54 CStr(const CStr &other) = delete; // Forbid copying of this class. 55 CStr &operator =(const CStr &other) = delete; // Forbid assignment.
|
D | cstr.cpp | 21 CStr::CStr(const UnicodeString &in) { in CStr() function in CStr 47 CStr::~CStr() { in ~CStr() 50 const char * CStr::operator ()() const { in operator ()()
|
/third_party/rust/crates/rustix/src/backend/linux_raw/fs/ |
D | syscalls.rs | 25 use crate::ffi::CStr; 50 pub(crate) fn open(filename: &CStr, flags: OFlags, mode: Mode) -> io::Result<OwnedFd> { in open() argument 74 filename: &CStr, in openat() argument 91 pathname: &CStr, in openat2() argument 127 pub(crate) fn chmod(filename: &CStr, mode: Mode) -> io::Result<()> { in chmod() argument 139 pub(crate) fn chmodat(dirfd: BorrowedFd<'_>, filename: &CStr, mode: Mode) -> io::Result<()> { in chmodat() argument 151 filename: &CStr, in chownat() argument 180 filename: &CStr, in mknodat() argument 447 pub(crate) fn stat(filename: &CStr) -> io::Result<Stat> { in stat() 477 fn stat_old(filename: &CStr) -> io::Result<Stat> { in stat_old() [all …]
|
/third_party/rust/crates/nix/src/ |
D | lib.rs | 157 use std::ffi::{CStr, CString, OsStr}; 193 F: FnOnce(&CStr) -> T; in with_nix_path() 207 F: FnOnce(&CStr) -> T, in with_nix_path() 224 F: FnOnce(&CStr) -> T, in with_nix_path() 230 impl NixPath for CStr { implementation 241 F: FnOnce(&CStr) -> T, in with_nix_path() 258 F: FnOnce(&CStr) -> T, in with_nix_path() 280 match CStr::from_bytes_with_nul(unsafe { in with_nix_path() 293 F: FnOnce(&CStr) -> T, in with_nix_path_allocating() 312 F: FnOnce(&CStr) -> T, in with_nix_path() [all …]
|
D | kmod.rs | 5 use std::ffi::CStr; 45 pub fn init_module(module_image: &[u8], param_values: &CStr) -> Result<()> { in init_module() 84 param_values: &CStr, in finit_module() argument 122 pub fn delete_module(name: &CStr, flags: DeleteModuleFlags) -> Result<()> { in delete_module() argument
|
/third_party/rust/crates/rust-openssl/openssl/src/ |
D | version.rs | 18 use std::ffi::CStr; 56 CStr::from_ptr(OpenSSL_version(OPENSSL_VERSION)) in version() 67 CStr::from_ptr(OpenSSL_version(OPENSSL_CFLAGS)) in c_flags() 77 CStr::from_ptr(OpenSSL_version(OPENSSL_BUILT_ON)) in built_on() 87 CStr::from_ptr(OpenSSL_version(OPENSSL_PLATFORM)) in platform() 97 CStr::from_ptr(OpenSSL_version(OPENSSL_DIR)) in dir()
|
/third_party/rust/crates/libloading/src/ |
D | util.rs | 2 use std::ffi::{CStr, CString}; 10 pub(crate) fn cstr_cow_from_bytes(slice: &[u8]) -> Result<Cow<'_, CStr>, Error> { in cstr_cow_from_bytes() argument 14 None => unsafe { Cow::Borrowed(CStr::from_ptr(&ZERO)) }, in cstr_cow_from_bytes() 17 CStr::from_bytes_with_nul(slice) in cstr_cow_from_bytes()
|
/third_party/rust/crates/rustix/src/backend/libc/fs/ |
D | syscalls.rs | 62 use crate::ffi::CStr; 178 path: &CStr, in openat_via_syscall() argument 200 path: &CStr, in openat() argument 232 pub(crate) fn statfs(filename: &CStr) -> io::Result<StatFs> { in statfs() 248 pub(crate) fn statvfs(filename: &CStr) -> io::Result<StatVfs> { in statvfs() 258 pub(crate) fn readlinkat(dirfd: BorrowedFd<'_>, path: &CStr, buf: &mut [u8]) -> io::Result<usize> { in readlinkat() argument 271 pub(crate) fn mkdirat(dirfd: BorrowedFd<'_>, path: &CStr, mode: Mode) -> io::Result<()> { in mkdirat() argument 300 old_path: &CStr, in linkat() argument 302 new_path: &CStr, in linkat() argument 317 pub(crate) fn unlinkat(dirfd: BorrowedFd<'_>, path: &CStr, flags: AtFlags) -> io::Result<()> { in unlinkat() argument [all …]
|
/third_party/rust/crates/nix/src/mount/ |
D | bsd.rs | 10 ffi::{CStr, CString}, 129 fn new(error: Error, errmsg: Option<&CStr>) -> Self { in new() 132 errmsg: errmsg.map(CStr::to_string_lossy).map(Cow::into_owned), in new() 278 name: &'a CStr, in mut_ptr_opt() argument 298 pub fn null_opt(&mut self, name: &'a CStr) -> &mut Self { in null_opt() 341 pub fn str_opt(&mut self, name: &'a CStr, val: &'a CStr) -> &mut Self { in str_opt() argument 404 Some(CStr::from_bytes_with_nul(sl).unwrap()) in nmount()
|
/third_party/icu/icu4c/source/test/intltest/ |
D | rbbimonkeytest.cpp | 135 printf("epandedDef: %s\n", CStr(expandedDef)()); in addCharClass() 141 … __FILE__, __LINE__, u_errorName(status), CStr(name)(), CStr(expandedDef)()); in addCharClass() 154 IntlTest::gTest->logln("Redefinition of character class %s\n", CStr(cclass->fName)()); in addCharClass() 178 __FILE__, __LINE__, CStr(name)(), CStr(definition)()); in addRule() 216 printf("fExpandedRule: %s\n", CStr(thisRule->fExpandedRule)()); in addRule() 223 __FILE__, __LINE__, CStr(thisRule->fExpandedRule)()); in addRule() 235 localeName.append(CStr(value)(), -1, status); in setKeywordParameter() 249 … IntlTest::gTest->errln("%s:%d Unrecognized break type %s", __FILE__, __LINE__, CStr(value)()); in setKeywordParameter() 313 printf("scanned class: %s = %s\n", CStr(className)(), CStr(classDef)()); in compileRules() 330 printf("scanned rule: %s : %s\n", CStr(ruleName)(), CStr(ruleDef)()); in compileRules() [all …]
|
/third_party/rust/crates/rustix/src/backend/linux_raw/ |
D | vdso.rs | 17 use crate::ffi::CStr; 43 fn elf_hash(name: &CStr) -> u32 { in elf_hash() 209 unsafe fn match_version(&self, mut ver: u16, name: &CStr, hash: u32) -> bool { in match_version() argument 250 && (name == CStr::from_ptr(self.symstrings.add(aux.vda_name as usize).cast())) in match_version() 254 pub(super) fn sym(&self, version: &CStr, name: &CStr) -> *mut c::c_void { in sym() argument 277 || (name != CStr::from_ptr(self.symstrings.add(sym.st_name as usize).cast())) in sym()
|
/third_party/rust/crates/rustix/src/backend/linux_raw/runtime/ |
D | syscalls.rs | 15 use crate::ffi::CStr; 40 path: &CStr, in execveat() argument 56 path: &CStr, in execve() argument 99 pub(crate) unsafe fn set_thread_name(name: &CStr) -> io::Result<()> { in set_thread_name()
|
/third_party/rust/crates/rustix/src/fs/ |
D | raw_dir.rs | 9 use crate::ffi::CStr; 123 file_name: &'a CStr, 143 pub fn file_name(&self) -> &CStr { in file_name() argument 201 file_name: unsafe { CStr::from_ptr(dirent.d_name.as_ptr().cast()) }, in next()
|
/third_party/rust/crates/rustix/src/backend/libc/param/ |
D | auxv.rs | 6 use crate::ffi::CStr; 48 pub(crate) fn linux_execfn() -> &'static CStr { in linux_execfn() 50 unsafe { CStr::from_ptr(libc_getauxval(c::AT_EXECFN).cast()) } in linux_execfn()
|
/third_party/rust/crates/rustix/src/ |
D | runtime.rs | 24 use crate::ffi::CStr; 78 pub unsafe fn set_thread_name(name: &CStr) -> io::Result<()> { in set_thread_name() 245 path: &CStr, in execveat() argument 267 pub unsafe fn execve(path: &CStr, argv: *const *const u8, envp: *const *const u8) -> io::Errno { in execve() argument
|
/third_party/rust/crates/rustix/src/backend/linux_raw/param/ |
D | libc_auxv.rs | 12 use crate::ffi::CStr; 41 pub(crate) fn linux_execfn() -> &'static CStr { in linux_execfn() 44 CStr::from_ptr(execfn.cast()) in linux_execfn()
|
/third_party/skia/third_party/externals/icu/source/i18n/ |
D | repattrn.cpp | 771 printf("'%s'", CStr(UnicodeString(val))()); in dumpOp() 782 printf("%s", CStr(str)()); in dumpOp() 792 printf("%s", CStr(s)()); in dumpOp() 806 printf("%s", CStr(s)()); in dumpOp() 828 printf("Original Pattern: \"%s\"\n", CStr(patStr)()); in dumpPattern() 833 printf(" Initial match string: \"%s\"\n", CStr(initialString)()); in dumpPattern() 837 printf(" Match First Chars: %s\n", CStr(s)()); in dumpPattern() 842 printf("'%s'\n", CStr(UnicodeString(fInitialChar))()); in dumpPattern() 857 printf(" %d\t%s\n", number, CStr(*name)()); in dumpPattern()
|
/third_party/icu/icu4c/source/i18n/ |
D | repattrn.cpp | 771 printf("'%s'", CStr(UnicodeString(val))()); in dumpOp() 782 printf("%s", CStr(str)()); in dumpOp() 792 printf("%s", CStr(s)()); in dumpOp() 806 printf("%s", CStr(s)()); in dumpOp() 828 printf("Original Pattern: \"%s\"\n", CStr(patStr)()); in dumpPattern() 833 printf(" Initial match string: \"%s\"\n", CStr(initialString)()); in dumpPattern() 837 printf(" Match First Chars: %s\n", CStr(s)()); in dumpPattern() 842 printf("'%s'\n", CStr(UnicodeString(fInitialChar))()); in dumpPattern() 857 printf(" %d\t%s\n", number, CStr(*name)()); in dumpPattern()
|