libbinder: separate OS-specific code from Utils.cpp
Separate the OS-specific functions setNonBlocking and
getRandomBytes from Utils.cpp into a separate OS-specific
OS.cpp file that other operating systems can override at
build time.
Bug: 224644083
Test: build Trusty
Change-Id: I2703fb81d4370b5f6264556ae57fdddb0573971a
diff --git a/libs/binder/Android.bp b/libs/binder/Android.bp
index 3d515b5..25754e8 100644
--- a/libs/binder/Android.bp
+++ b/libs/binder/Android.bp
@@ -88,6 +88,7 @@
"IInterface.cpp",
"IResultReceiver.cpp",
"IShellCallback.cpp",
+ "OS.cpp",
"Parcel.cpp",
"ParcelFileDescriptor.cpp",
"RpcSession.cpp",