Properly inherit the environment on darwin where environ is not available for shared...
[oota-llvm.git] / lib / System / Unix / Alarm.inc
index 1480802a32c1b2507108dd9bffe443b377eeb4cc..fb42b6c65da106d29a995e718938f40b7e03a1ff 100644 (file)
@@ -1,9 +1,9 @@
-//===-- Alarm.inc - Implement Unix Alarm Support --------------------------===//
+//===-- Alarm.inc - Implement Unix Alarm Support ----------------*- C++ -*-===//
 //
 //                     The LLVM Compiler Infrastructure
 //
-// This file was developed by the Reid Spencer and is distributed under the
-// University of Illinois Open Source License. See LICENSE.TXT for details.
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
 //
 //===----------------------------------------------------------------------===//
 //
@@ -20,11 +20,11 @@ using namespace llvm;
 /// user presses CTRL-C.
 static volatile bool AlarmCancelled = false;
 
-/// AlarmTriggered - This flag is set by the SIGALRM signal handler if the 
+/// AlarmTriggered - This flag is set by the SIGALRM signal handler if the
 /// alarm was triggered.
 static volatile bool AlarmTriggered = false;
 
-/// NestedSOI - Sanity check.  Alarms cannot be nested or run in parallel.  
+/// NestedSOI - Sanity check.  Alarms cannot be nested or run in parallel.
 /// This ensures that they never do.
 static bool NestedSOI = false;
 
@@ -66,3 +66,7 @@ int sys::AlarmStatus() {
     return 1;
   return 0;
 }
+
+void sys::Sleep(unsigned n) {
+  ::sleep(n);
+}