summaryrefslogtreecommitdiff
path: root/src/runtime/linux/thread.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-03-24 15:04:18 -0700
committerRuss Cox <rsc@golang.org>2009-03-24 15:04:18 -0700
commit54568208f5c893218268baede6f8d0868fa6af97 (patch)
tree3ecf5c330d15193f7f4aa3fdd55a3bd7152eecf2 /src/runtime/linux/thread.c
parent30c27d9b1fa84d00f18845ff253e9f8293fbf918 (diff)
downloadgolang-54568208f5c893218268baede6f8d0868fa6af97.tar.gz
convert Linux to auto-generated defs.h
TBR=r OCL=26686 CL=26688
Diffstat (limited to 'src/runtime/linux/thread.c')
-rw-r--r--src/runtime/linux/thread.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/runtime/linux/thread.c b/src/runtime/linux/thread.c
index df24b0712..4375eca9f 100644
--- a/src/runtime/linux/thread.c
+++ b/src/runtime/linux/thread.c
@@ -5,6 +5,7 @@
#include "runtime.h"
#include "defs.h"
#include "signals.h"
+#include "os.h"
// Linux futex.
//
@@ -24,12 +25,12 @@ enum
EAGAIN = 11,
};
-// TODO(rsc) I tried using 1<<40 here but futex woke up (-ETIMEDOUT).
+// TODO(rsc): I tried using 1<<40 here but futex woke up (-ETIMEDOUT).
// I wonder if the timespec that gets to the kernel
-// actually has two 32-bit numbers in it, so tha
+// actually has two 32-bit numbers in it, so that
// a 64-bit 1<<40 ends up being 0 seconds,
// 1<<8 nanoseconds.
-static struct timespec longtime =
+static Timespec longtime =
{
1<<30, // 34 years
0