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 moved

Legend:

Unmodified
Added
Removed
  • EcnlProtoTool/trunk/ntshell/fatfs/fftime.c

    r330 r331  
    3030#include "ff.h"
    3131
     32int shell_errno;
     33
    3234/* 2000-03-01 (mod 400 year, immediately after feb29 */
    3335#define LEAPOCH (946684800LL + 86400*(31+29))
     
    200202        * __secs_to_zone cannot safely handle them. */
    201203        if (*t < INT_MIN * 31622400LL || *t > INT_MAX * 31622400LL) {
    202                 errno = EOVERFLOW;
     204                shell_errno = EOVERFLOW;
    203205                return 0;
    204206        }
    205207        //TODO:__secs_to_zone(*t, 0, &tm->tm_isdst, &tm->__tm_gmtoff, 0, &tm->__tm_zone);
    206208        if (__secs_to_tm((long long)*t /*+ tm->__tm_gmtoff*/, tm) < 0) {
    207                 errno = EOVERFLOW;
     209                shell_errno = EOVERFLOW;
    208210                return 0;
    209211        }
     
    220222{
    221223        if (__secs_to_tm(*t, tm) < 0) {
    222                 errno = EOVERFLOW;
     224                shell_errno = EOVERFLOW;
    223225                return 0;
    224226        }
     
    249251
    250252error:
    251         errno = EOVERFLOW;
     253        shell_errno = EOVERFLOW;
    252254        return -1;
    253255}
     
    258260        struct tm _tm;
    259261
    260         time(&temp);
     262        temp = rtc_read();
    261263        gmtime_r(&temp, &_tm);
    262264
Note: See TracChangeset for help on using the changeset viewer.