summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-06-24 04:38:10 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-06-24 04:38:10 +0000
commitf61858b1164eab2afd67c3814b79d50a386a92c0 (patch)
tree32c889c6af8c94b35fa34616d0f0ec559826922c /file.c
parent6a3c97169c8a671f5feda7eba2b2a7529252daf3 (diff)
thread->thred
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@250 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r--file.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/file.c b/file.c
index 8063850ab4..df17d65630 100644
--- a/file.c
+++ b/file.c
@@ -1376,10 +1376,10 @@ file_truncate(obj, len)
#if defined(THREAD) && defined(EWOULDBLOCK)
static int
-thread_flock(fd, op)
+thred_flock(fd, op)
int fd, op;
{
- if (thread_alone() || (op & LOCK_NB)) {
+ if (thred_alone() || (op & LOCK_NB)) {
return flock(fd, op);
}
op |= LOCK_NB;
@@ -1387,7 +1387,7 @@ thread_flock(fd, op)
switch (errno) {
case EINTR: /* can be happen? */
case EWOULDBLOCK:
- thread_schedule(); /* busy wait */
+ thred_schedule(); /* busy wait */
break;
default:
return -1;
@@ -1395,7 +1395,7 @@ thread_flock(fd, op)
}
return 0;
}
-#define flock thread_flock
+#define flock thred_flock
#endif
static VALUE