Changeset 434 for EcnlProtoTool/trunk/ntshell/src/io_stub.c
- Timestamp:
- Jul 5, 2020, 10:12:16 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
EcnlProtoTool/trunk/ntshell/src/io_stub.c
r433 r434 1 1 /* 2 * TOPPERS ECHONET Lite Communication Middleware2 * TOPPERS PROJECT Home Network Working Group Software 3 3 * 4 * Copyright (C) 2017 Cores Co., Ltd. Japan4 * Copyright (C) 2017-2019 Cores Co., Ltd. Japan 5 5 * 6 6 * 上記著作権者は,以下の(1)~(4)の条件を満たす場合に限り,本ソフトウェ … … 100 100 return -ENOMEM; 101 101 102 DIR *dir = &fp->dir;102 FATFS_DIR *dir = &fp->dir; 103 103 FRESULT res; 104 104 if ((res = f_opendir(dir, path)) != FR_OK) { … … 405 405 FILINFO fi; 406 406 FRESULT ret; 407 #if _USE_LFN408 static char lfn[ _MAX_LFN + 1]; /* Buffer to store the LFN */407 #if FF_USE_LFN 408 static char lfn[FF_MAX_LFN + 1]; /* Buffer to store the LFN */ 409 409 fi.lfname = lfn; 410 410 fi.lfsize = sizeof lfn; 411 411 #endif 412 412 if (ntlibc_strcmp(path, ".") == 0) { 413 char cwd[ _MAX_LFN];413 char cwd[FF_MAX_LFN]; 414 414 if ((ret = f_getcwd(cwd, sizeof(cwd))) != FR_OK) { 415 415 return fresult2errno(ret); … … 578 578 579 579 FILINFO fno; 580 #if _USE_LFN581 static char lfn[ _MAX_LFN + 1]; /* Buffer to store the LFN */580 #if FF_USE_LFN 581 static char lfn[FF_MAX_LFN + 1]; /* Buffer to store the LFN */ 582 582 fno.lfname = lfn; 583 583 fno.lfsize = sizeof lfn; … … 589 589 590 590 memset(de, 0, sizeof(*de)); 591 #if _USE_LFN591 #if FF_USE_LFN 592 592 ntlibc_strlcpy(de->d_name, *fno.lfname ? fno.lfname : fno.fname, sizeof(de->d_name)); 593 593 #else … … 622 622 else { 623 623 FILINFO fno; 624 #if _USE_LFN625 static char lfn[ _MAX_LFN + 1]; /* Buffer to store the LFN */624 #if FF_USE_LFN 625 static char lfn[FF_MAX_LFN + 1]; /* Buffer to store the LFN */ 626 626 fno.lfname = lfn; 627 627 fno.lfsize = sizeof lfn;
Note:
See TracChangeset
for help on using the changeset viewer.