Replace use of deprecated C Standard library headers in C++ code.

Change-Id: I9fa6630c7e4bdb2897df34d417635d8c7d8253bc
Signed-off-by: Tyler Chatow <tchatow@gmail.com>
diff --git a/aos/die.cc b/aos/die.cc
index ad5f2a8..d1d3d40 100644
--- a/aos/die.cc
+++ b/aos/die.cc
@@ -1,16 +1,16 @@
 #include "aos/die.h"
 
-#include <stdlib.h>
-#include <stdio.h>
-#include <errno.h>
 #include <sys/types.h>
 #include <unistd.h>
-#include <string.h>
-#include <signal.h>
-#include <stdint.h>
 
-#include <string>
 #include <atomic>
+#include <cerrno>
+#include <csignal>
+#include <cstdint>
+#include <cstdio>
+#include <cstdlib>
+#include <cstring>
+#include <string>
 
 namespace aos {
 
@@ -38,9 +38,10 @@
     free(filename);
     return r;
   } else {
-    fprintf(stderr, "aos fatal: asprintf(%p, \"thingie with %%jd\", %jd)"
-            " failed with %d\n", &filename,
-            static_cast<intmax_t>(getpid()), errno);
+    fprintf(stderr,
+            "aos fatal: asprintf(%p, \"thingie with %%jd\", %jd)"
+            " failed with %d\n",
+            &filename, static_cast<intmax_t>(getpid()), errno);
     return std::string();
   }
 #endif
@@ -78,8 +79,6 @@
   abort();
 }
 
-void SetDieTestMode(bool new_test_mode) {
-  test_mode.store(new_test_mode);
-}
+void SetDieTestMode(bool new_test_mode) { test_mode.store(new_test_mode); }
 
 }  // namespace aos