/third_party/rust/crates/rustix/src/process/ |
H A D | id.rs | 67 pub const fn as_raw(self) -> RawUid { 94 pub const fn as_raw(self) -> RawGid { 156 pub fn as_raw(pid: Option<Self>) -> RawPid { in as_raw() functions 181 pub const fn as_raw(self) -> RawCpuid { 315 Some(o) => o.as_raw(), 320 Some(g) => g.as_raw(),
|
H A D | wait.rs | 30 pub const fn as_raw(self) -> u32 {
|
/third_party/rust/crates/rustix/tests/process/ |
H A D | id.rs | 7 assert_eq!(process::getuid().as_raw(), libc::getuid()); in test_getuid() 16 assert_eq!(process::getgid().as_raw(), libc::getgid()); in test_getgid() 25 assert_eq!(process::geteuid().as_raw(), libc::geteuid()); in test_geteuid() 34 assert_eq!(process::getegid().as_raw(), libc::getegid()); in test_getegid() 56 process::Pid::as_raw(process::getppid()) as libc::pid_t, in test_getppid()
|
/third_party/rust/crates/nix/src/ |
H A D | time.rs | 69 pub const fn as_raw(self) -> clockid_t { 207 clock_id.as_raw() in from() 230 unsafe { libc::clock_getres(clock_id.as_raw(), c_time.as_mut_ptr()) }; in clock_getres() 241 unsafe { libc::clock_gettime(clock_id.as_raw(), c_time.as_mut_ptr()) }; in clock_gettime() 258 unsafe { libc::clock_settime(clock_id.as_raw(), timespec.as_ref()) }; in clock_settime()
|
/third_party/rust/crates/rust-openssl/openssl/src/ |
H A D | ocsp.rs | 55 pub fn as_raw(&self) -> c_int { in as_raw() functions 73 pub fn as_raw(&self) -> c_int { in as_raw() functions 105 pub fn as_raw(&self) -> c_int { in as_raw() functions 260 status.as_raw(), in create()
|
H A D | sign.rs | 96 pub(crate) fn as_raw(&self) -> c_int { 222 padding.as_raw(), in set_rsa_padding() 239 len.as_raw(), in set_rsa_pss_saltlen() 515 padding.as_raw(), in set_rsa_padding() 532 len.as_raw(), in set_rsa_pss_saltlen()
|
H A D | ex_data.rs | 29 pub fn as_raw(&self) -> c_int { in as_raw() functions
|
H A D | pkcs12.rs | 238 let nid_key = self.nid_key.as_raw(); in build2() 239 let nid_cert = self.nid_cert.as_raw(); in build2()
|
H A D | encrypt.rs | 121 padding.as_raw(), in set_rsa_padding() 325 padding.as_raw(), in set_rsa_padding()
|
H A D | pkey_ctx.rs | 136 let ptr = cvt_p(ffi::EVP_PKEY_CTX_new_id(id.as_raw(), ptr::null_mut()))?; in new_id() 443 padding.as_raw(), in set_rsa_padding() 459 len.as_raw(), in set_rsa_pss_saltlen()
|
H A D | ec.rs | 144 cvt_p(ffi::EC_GROUP_new_by_curve_name(nid.as_raw())).map(EcGroup) in from_curve_name() 801 cvt_p(ffi::EC_KEY_new_by_curve_name(nid.as_raw())).map(|p| EcKey::from_ptr(p)) in from_curve_name()
|
H A D | hash.rs | 74 let ptr = ffi::EVP_get_digestbynid(type_.as_raw()); in from_nid() 522 assert_eq!(MessageDigest::md5().type_().as_raw(), Nid::MD5.as_raw()); in test_md5() 585 assert_eq!(MessageDigest::sha1().type_().as_raw(), Nid::SHA1.as_raw()); in test_sha1() 602 MessageDigest::sha256().type_().as_raw(), in test_sha256() 603 Nid::SHA256.as_raw() in test_sha256() 622 MessageDigest::sha512().type_().as_raw(), in test_sha512() 623 Nid::SHA512.as_raw() in test_sha512() 642 MessageDigest::sha3_224().type_().as_raw(), in test_sha3_224() [all...] |
/third_party/rust/crates/rustix/examples/ |
H A D | process.rs | 12 println!("Parent Pid: {}", Pid::as_raw(getppid())); in main() 20 println!("Uid: {}", getuid().as_raw()); in main() 21 println!("Gid: {}", getgid().as_raw()); in main()
|
/third_party/rust/crates/rust-openssl/openssl/src/x509/ |
H A D | mod.rs | 97 let data = ffi::X509_STORE_CTX_get_ex_data(self.as_ptr(), index.as_raw()); in ex_data() 175 ffi::X509_STORE_CTX_set_error(self.as_ptr(), result.as_raw()); in set_error() 979 let name = name.as_raw(); in new_nid() 1017 cvt_p(ffi::X509V3_EXT_i2d(nid.as_raw(), critical as _, value)).map(X509Extension) 1032 cvt(ffi::X509V3_EXT_add_alias(to.as_raw(), from.as_raw())).map(|_| ()) in add_alias() 1111 ty.as_raw(), in append_entry_by_text_with_type() 1131 field.as_raw(), in append_entry_by_nid() 1157 field.as_raw(), in append_entry_by_nid_with_type() 1158 ty.as_raw(), in append_entry_by_nid_with_type() 1954 pub fn as_raw(&self) -> c_int { as_raw() functions 2467 pub fn as_raw(&self) -> c_int { as_raw() functions [all...] |
H A D | tests.rs | 129 email.object().nid().as_raw(), in test_nameref_iterator() 130 Nid::PKCS9_EMAILADDRESS.as_raw() in test_nameref_iterator() 135 assert_eq!(cn.object().nid().as_raw(), Nid::COMMONNAME.as_raw()); in test_nameref_iterator() 139 assert_eq!(friendly.object().nid().as_raw(), Nid::FRIENDLYNAME.as_raw()); in test_nameref_iterator() 643 .as_raw(), in test_verify_cert_with_wrong_purpose_fails() 1042 .as_raw(), in test_set_purpose_fails_verification()
|
H A D | store.rs | 132 unsafe { cvt(ffi::X509_STORE_set_purpose(self.as_ptr(), purpose.as_raw())).map(|_| ()) } in set_purpose() 181 file_type.as_raw(), in add_dir() 217 file_type.as_raw(), in load_cert_file() 235 file_type.as_raw(), in load_crl_file()
|
/third_party/rust/crates/rustix/src/backend/linux_raw/net/ |
H A D | types.rs | 40 pub const fn as_raw(self) -> RawSocketType { 137 pub const fn as_raw(self) -> RawAddressFamily { 224 pub const fn as_raw(self) -> RawProtocol {
|
/third_party/rust/crates/rustix/src/backend/libc/net/ |
H A D | types.rs | 41 pub const fn as_raw(self) -> RawSocketType { 435 pub const fn as_raw(self) -> RawAddressFamily { 624 pub const fn as_raw(self) -> RawProtocol {
|
/third_party/rust/crates/nix/src/sys/ |
H A D | timer.rs | 79 clockid.as_raw(), in new()
|
H A D | wait.rs | 373 Id::Pid(pid) => (libc::P_PID, pid.as_raw() as libc::id_t), in waitid() 374 Id::PGid(pid) => (libc::P_PGID, pid.as_raw() as libc::id_t), in waitid()
|
/third_party/rust/crates/rustix/src/backend/linux_raw/process/ |
H A D | syscalls.rs | 107 ret_usize(syscall_readonly!(__NR_getpgid, c_uint(Pid::as_raw(pid))))? as __kernel_pid_t; 201 c_uint(Pid::as_raw(pid)), 218 c_uint(Pid::as_raw(pid)), 265 c_uint(uid.as_raw()) 277 c_uint(Pid::as_raw(pgid)) 289 c_uint(Pid::as_raw(pid)) 300 c_uint(uid.as_raw()), 312 c_uint(Pid::as_raw(pgid)), 324 c_uint(Pid::as_raw(pid)), 412 c_uint(Pid::as_raw(pi [all...] |
/third_party/rust/crates/nix/test/ |
H A D | test_unistd.rs | 697 assert_ne!(resuids.real.as_raw(), libc::uid_t::MAX); in test_getresuid() 698 assert_ne!(resuids.effective.as_raw(), libc::uid_t::MAX); in test_getresuid() 699 assert_ne!(resuids.saved.as_raw(), libc::uid_t::MAX); in test_getresuid() 712 assert_ne!(resgids.real.as_raw(), libc::gid_t::MAX); in test_getresgid() 713 assert_ne!(resgids.effective.as_raw(), libc::gid_t::MAX); in test_getresgid() 714 assert_ne!(resgids.saved.as_raw(), libc::gid_t::MAX); in test_getresgid()
|
/third_party/rust/crates/rust-openssl/openssl/src/ssl/ |
H A D | mod.rs | 499 pub fn as_raw(&self) -> c_int { in as_raw() functions 519 pub fn as_raw(&self) -> c_int { in as_raw() functions 539 pub fn as_raw(&self) -> c_int { in as_raw() functions 981 file_type.as_raw(), in set_certificate_file() 1040 file_type.as_raw(), in set_private_key_file() 1569 ffi::SSL_CTX_set_ex_data(self.as_ptr(), index.as_raw(), data); in set_ex_data_inner() 1792 .or_insert_with(|| SslContext::new_ex_index::<T>().unwrap().as_raw()); in fmt() 1843 let data = ffi::SSL_CTX_get_ex_data(self.as_ptr(), index.as_raw()); in ex_data() 2242 .or_insert_with(|| Ssl::new_ex_index::<T>().unwrap().as_raw()); in fmt() 2864 cvt(ffi::SSL_set_tlsext_status_type(self.as_ptr(), type_.as_raw()) a in set_status_type() [all...] |
H A D | error.rs | 46 pub fn as_raw(&self) -> c_int { in as_raw() functions
|
/third_party/rust/crates/nix/test/sys/ |
H A D | test_socket.rs | 1374 assert_eq!(cred.pid(), getpid().as_raw()); in test_scm_credentials() 1375 assert_eq!(cred.uid(), getuid().as_raw()); in test_scm_credentials() 1376 assert_eq!(cred.gid(), getgid().as_raw()); in test_scm_credentials() 1438 pid: getpid().as_raw(), in test_impl_scm_credentials_and_rights() 1439 uid: getuid().as_raw(), in test_impl_scm_credentials_and_rights() 1440 gid: getgid().as_raw(), in test_impl_scm_credentials_and_rights() 1475 assert_eq!(cred.pid(), getpid().as_raw()); in test_impl_scm_credentials_and_rights() 1476 assert_eq!(cred.uid(), getuid().as_raw()); in test_impl_scm_credentials_and_rights() 1477 assert_eq!(cred.gid(), getgid().as_raw()); in test_impl_scm_credentials_and_rights()
|