From 79b2a732729219e2b4b0bc5ef8ab3ac23f28e562 Mon Sep 17 00:00:00 2001 From: Zach Reizner Date: Thu, 29 Jun 2017 11:35:17 -0700 Subject: sys_util: move handle_eintr!() to sys_util so it can be reused This CL takes the handle_intr!() macro, changes its name to handle_eintr!(), and overloads it so it can handle EINTR embedded in other kinds of Result types. BUG=None TEST=cargo test Change-Id: I920ea7d9f156137f42e9e8ea44a3e6946d06b746 Reviewed-on: https://chromium-review.googlesource.com/556348 Commit-Ready: Zach Reizner Tested-by: Zach Reizner Reviewed-by: Dylan Reid --- sys_util/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys_util/src/lib.rs') diff --git a/sys_util/src/lib.rs b/sys_util/src/lib.rs index 0d652ad..a1be658 100644 --- a/sys_util/src/lib.rs +++ b/sys_util/src/lib.rs @@ -7,6 +7,8 @@ extern crate data_model; extern crate libc; +#[macro_use] +pub mod handle_eintr; mod mmap; mod eventfd; mod errno; -- cgit 1.4.1