wrap stdlib calls into cpp namespace

Wrap the stdlib calls into the cpp namespace.

Change-Id: I7ae16d0d18312f3d4118b1d5345df07e28773484
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/psu.cpp b/psu.cpp
index addf0d1..46e097a 100644
--- a/psu.cpp
+++ b/psu.cpp
@@ -19,6 +19,7 @@
 #include "main.hpp"
 
 #include <cstdint>
+#include <cstring>
 #include <fstream>
 #include <phosphor-logging/log.hpp>
 #include <sdbusplus/bus.hpp>
@@ -48,26 +49,26 @@
 {
     if ((*dataLen) < sizeof(struct PsuResetRequest))
     {
-        fprintf(stderr, "Invalid command length: %u\n",
-                static_cast<uint32_t>(*dataLen));
+        std::fprintf(stderr, "Invalid command length: %u\n",
+                     static_cast<uint32_t>(*dataLen));
         return IPMI_CC_INVALID;
     }
 
     struct PsuResetRequest request;
-    memcpy(&request, &reqBuf[0], sizeof(struct PsuResetRequest));
+    std::memcpy(&request, &reqBuf[0], sizeof(struct PsuResetRequest));
 
     std::ofstream ofs;
     ofs.open(TIME_DELAY_FILENAME, std::ofstream::out);
     if (!ofs.good())
     {
-        fprintf(stderr, "Unable to open file for output.\n");
+        std::fprintf(stderr, "Unable to open file for output.\n");
         return IPMI_CC_INVALID;
     }
 
     ofs << "PSU_HARDRESET_DELAY=" << request.delay << std::endl;
     if (ofs.fail())
     {
-        fprintf(stderr, "Write failed\n");
+        std::fprintf(stderr, "Write failed\n");
         ofs.close();
         return IPMI_CC_INVALID;
     }