diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-03-23 09:49:17 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-03-23 09:49:17 +0000 |
commit | 3fe16354fba0675f5384bb2e4d7b65fcc9df5cbc (patch) | |
tree | d13bc72b7ea29bec168400fed877b4f46692b656 /missing | |
parent | 530491c72fe537787ad3b0324aa6d6a61c87f0d3 (diff) |
String#chomp! etc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'missing')
-rw-r--r-- | missing/x68.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/missing/x68.c b/missing/x68.c index 8fd9c3e879..dbfe662874 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; +} |