Ignore:
Timestamp:
Jul 5, 2020, 9:26:49 PM (4 years ago)
Author:
coas-nagasima
Message:

dateコマンド追加
コードの整理

File:
1 edited

Legend:

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

    r432 r433  
    11/*
    2  *  TOPPERS ECHONET Lite Communication Middleware
     2 *  TOPPERS PROJECT Home Network Working Group Software
    33 *
    4  *  Copyright (C) 2014-2017 Cores Co., Ltd. Japan
     4 *  Copyright (C) 2014-2019 Cores Co., Ltd. Japan
    55 *
    66 *  上記著作権者は,以下の(1)~(4)の条件を満たす場合に限り,本ソフトウェ
     
    4545#include <sil.h>
    4646#include <setjmp.h>
    47 //#include <string.h>
     47#include <string.h>
    4848#include "syssvc/serial.h"
    4949#include "syssvc/syslog.h"
     
    7070#include "usrcmd.h"
    7171#include "util/ntopt.h"
    72 #include "socket_stub.h"
     72#include "fdtable.h"
     73#include "target_syssvc.h"
    7374
    7475ID ws_api_mailboxid = MAIN_DATAQUEUE;
    7576ID ws_mempoolid = MPF_NET_BUF_256;
    76 
    77 #define SIO_PORTID 1
    7877
    7978char command[NTOPT_TEXT_MAXLEN];
     
    9897const struct utsname host_name = {
    9998        "TOPPERS/ASP3",
    100     "GR-PEACH",
    101     "3.1.0",
    102     "3.1.0",
    103     "GR-PEACH",
     99        TARGET_NAME,
     100        "3.5.0",
     101        "3.5.0",
     102        TARGET_NAME,
    104103    "toppers.jp"
    105104};
     
    315314        {"mkdir", "Make directory", usrcmd_mkdir},
    316315        {"hexdump", "Hex dump", usrcmd_hexdump},
     316        {"date", "print date and time", usrcmd_date},
    317317        {"info", "This is a description text string for info command.", usrcmd_info},
    318318        {"exit", "Exit Natural Tiny Shell", usrcmd_exit},
Note: See TracChangeset for help on using the changeset viewer.