mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-11 04:26:38 +00:00
base: remove unix Fd type
All users have been migrated to the more portable Descriptor type. BUG=None TEST=tools/presubmit Change-Id: I41ea238995242c48f9ad02a78491a73e0d9bdbe6 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3616617 Reviewed-by: Dennis Kempin <denniskempin@google.com> Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
This commit is contained in:
parent
f058ca98bd
commit
7296fa5e12
2 changed files with 0 additions and 18 deletions
|
@ -39,7 +39,6 @@ mod notifiers;
|
|||
mod poll;
|
||||
mod priority;
|
||||
pub mod rand;
|
||||
mod raw_fd;
|
||||
mod sched;
|
||||
pub mod scoped_signal_handler;
|
||||
mod shm;
|
||||
|
@ -72,7 +71,6 @@ pub use mmap::*;
|
|||
pub use netlink::*;
|
||||
pub use poll::*;
|
||||
pub use priority::*;
|
||||
pub use raw_fd::*;
|
||||
pub use sched::*;
|
||||
pub use scoped_signal_handler::*;
|
||||
pub use shm::*;
|
||||
|
|
|
@ -1,16 +0,0 @@
|
|||
// Copyright 2019 The Chromium OS Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
// Utility file to provide a slightly safer Fd type that cannot be confused with c_int.
|
||||
// Also useful for situations that require something that is `AsRawFd` but
|
||||
// where we don't want to store more than the fd.
|
||||
|
||||
use std::os::unix::io::{AsRawFd, RawFd};
|
||||
|
||||
pub struct Fd(pub RawFd);
|
||||
impl AsRawFd for Fd {
|
||||
fn as_raw_fd(&self) -> RawFd {
|
||||
self.0
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue