Ignore:
Timestamp:
Jan 21, 2018, 12:10:09 AM (6 years ago)
Author:
coas-nagasima
Message:

prototoolに関連するプロジェクトをnewlibからmuslを使うよう変更・更新
ntshellをnewlibの下位の実装から、muslのsyscallの実装に変更・更新
以下のOSSをアップデート
・mruby-1.3.0
・musl-1.1.18
・onigmo-6.1.3
・tcc-0.9.27
以下のOSSを追加
・openssl-1.1.0e
・curl-7.57.0
・zlib-1.2.11
以下のmrbgemsを追加
・iij/mruby-digest
・iij/mruby-env
・iij/mruby-errno
・iij/mruby-iijson
・iij/mruby-ipaddr
・iij/mruby-mock
・iij/mruby-require
・iij/mruby-tls-openssl

File:
1 edited

Legend:

Unmodified
Added
Removed
  • EcnlProtoTool/trunk/mrbgems/mruby-io/src/file.c

    r321 r331  
    4646  #include <pwd.h>
    4747#endif
    48 #if defined(__NEWLIB__)
    49   #define _MAX_DIR              253
    50   #define _MAX_DRIVE    2
    51   #define PATH_MAX              (_MAX_DRIVE + _MAX_DIR)
    52   #define MAXPATHLEN    (_MAX_DRIVE + _MAX_DIR)
    53 #endif
    5448
    5549#define FILE_SEPARATOR "/"
     
    8175mrb_file_s_umask(mrb_state *mrb, mrb_value klass)
    8276{
    83 #if defined(_WIN32) || defined(_WIN64) || defined(__NEWLIB__)
     77#if defined(_WIN32) || defined(_WIN64)
    8478  /* nothing to do on windows */
    8579  return mrb_fixnum_value(0);
     
    126120  dst = mrb_string_value_cstr(mrb, &to);
    127121  if (rename(src, dst) < 0) {
     122#if defined(_WIN32) || defined(_WIN64)
    128123    if (CHMOD(dst, 0666) == 0 && UNLINK(dst) == 0 && rename(src, dst) == 0) {
    129124      return mrb_fixnum_value(0);
    130125    }
     126#endif
    131127    mrb_sys_fail(mrb, mrb_str_to_cstr(mrb, mrb_format(mrb, "(%S, %S)", from, to)));
    132128  }
     
    253249mrb_file__gethome(mrb_state *mrb, mrb_value klass)
    254250{
    255 #if !defined(_WIN32) && !defined(_WIN64) && !defined(__NEWLIB__)
     251#ifndef _WIN32
    256252  mrb_value username;
    257253  int argc;
     
    288284mrb_file_flock(mrb_state *mrb, mrb_value self)
    289285{
    290 #if defined(_WIN32) || defined(_WIN64) || defined(sun) || defined(__NEWLIB__)
     286#if defined(_WIN32) || defined(_WIN64) || defined(sun)
    291287  mrb_raise(mrb, E_NOTIMP_ERROR, "flock is not supported on Illumos/Solaris/Windows");
    292288#else
     
    322318mrb_file_s_symlink(mrb_state *mrb, mrb_value klass)
    323319{
    324 #if defined(_WIN32) || defined(_WIN64) || defined(__NEWLIB__)
     320#if defined(_WIN32) || defined(_WIN64)
    325321  mrb_raise(mrb, E_NOTIMP_ERROR, "symlink is not supported on this platform");
    326322#else
     
    362358static mrb_value
    363359mrb_file_s_readlink(mrb_state *mrb, mrb_value klass) {
    364 #if defined(_WIN32) || defined(_WIN64) || defined(__NEWLIB__)
     360#if defined(_WIN32) || defined(_WIN64)
    365361  mrb_raise(mrb, E_NOTIMP_ERROR, "readlink is not supported on this platform");
    366362  return mrb_nil_value(); // unreachable
Note: See TracChangeset for help on using the changeset viewer.