Ignore:
Timestamp:
Jul 13, 2020, 8:07:55 PM (4 years ago)
Author:
coas-nagasima
Message:

ntshellアプリはnewlibを使うよう変更し、syscallの実装部分と区別がつくよう更新。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • EcnlProtoTool/trunk/ntshell/src/io_stub.c

    r441 r442  
    3636 */
    3737#include "shellif.h"
    38 #include <stdint.h>
    3938#include "ff.h"
    4039#include <kernel.h>
     
    4241#include <t_stdlib.h>
    4342#include <sil.h>
    44 #include <string.h>
    4543#include "syssvc/serial.h"
    4644#include "syssvc/syslog.h"
    4745#include "fdtable.h"
    48 #include "util/ntstdio.h"
    4946#include "usrcmd.h"
    5047#include "core/ntlibc.h"
     
    305302        fi.lfsize = sizeof lfn;
    306303#endif
    307         if (ntlibc_strcmp(path, ".") == 0) {
     304        if (strcmp(path, ".") == 0) {
    308305                char cwd[FF_MAX_LFN];
    309306                if ((ret = f_getcwd(cwd, sizeof(cwd))) != FR_OK) {
    310307                        return fresult2errno(ret);
    311308                }
    312                 int l = ntlibc_strlen(cwd);
     309                int l = strlen(cwd);
    313310                // ルートディレクトリの場合
    314311                if (cwd[l - 2] == ':' && cwd[l - 1] == '/') {
     
    485482        memset(de, 0, sizeof(*de));
    486483#if FF_USE_LFN
    487         ntlibc_strlcpy(de->d_name, *fno.lfname ? fno.lfname : fno.fname, sizeof(de->d_name));
     484        strlcpy(de->d_name, *fno.lfname ? fno.lfname : fno.fname, sizeof(de->d_name));
    488485#else
    489         ntlibc_strlcpy(de->d_name, fno.fname, sizeof(de->d_name));
     486        strlcpy(de->d_name, fno.fname, sizeof(de->d_name));
    490487#endif
    491488
     
    559556pid_t shell_getpid(void)
    560557{
    561         return 1;
     558        return 2;
    562559}
    563560
Note: See TracChangeset for help on using the changeset viewer.