summaryrefslogtreecommitdiffstats
path: root/missing/x68.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-01-20 04:59:39 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-01-20 04:59:39 +0000
commita2af08da0c33d2dcde870b491f62a8bd0c1c6b81 (patch)
treefeb35473da45947378fbc02defe39bcd79ef600e /missing/x68.c
parentc5f4657aaa8a92db27dc722dee741f1b8e0da809 (diff)
downloadruby-a2af08da0c33d2dcde870b491f62a8bd0c1c6b81.tar.gz
ruby-a2af08da0c33d2dcde870b491f62a8bd0c1c6b81.tar.xz
ruby-a2af08da0c33d2dcde870b491f62a8bd0c1c6b81.zip
This commit was generated by cvs2svn to compensate for changes in r372,
which included commits to RCS files with non-trunk default branches. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@373 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'missing/x68.c')
-rw-r--r--missing/x68.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/missing/x68.c b/missing/x68.c
index 8fd9c3e87..dbfe66287 100644
--- a/missing/x68.c
+++ b/missing/x68.c
@@ -10,3 +10,27 @@
#include "x68/_round.c"
#include "x68/fconvert.c"
#endif
+
+/* missing some basic syscalls */
+int
+link(const char *src, const char *dst)
+{
+ return symlink(src, dst);
+}
+
+#include <time.h>
+#include <sys/time.h>
+
+struct timezone {
+ int tz_minueswest;
+ int tz_dsttime;
+};
+
+int
+gettimeofday(struct timeval *tv, struct timezone *tz)
+{
+ tv->tv_sec = (long)time((time_t*)0);
+ tv->tv_usec = 0;
+
+ return 0;
+}