| /TwlSDK-5.1.0/include/twl/fatfs/common/ |
| D | api.h | 140 BOOL FATFS_SetDefaultDrive(const char *path); 151 BOOL FATFS_FormatDrive(const char *path); 163 BOOL FATFSi_FormatDriveEx(const char *path, BOOL formatMedia); 174 SDK_INLINE BOOL FATFSi_FormatMedia(const char *path) in FATFSi_FormatMedia() argument 176 return FATFSi_FormatDriveEx(path, TRUE); in FATFSi_FormatMedia() 205 BOOL FATFS_GetDriveResource(const char *path, FATFSDriveResource *resource); 230 BOOL FATFS_GetFileInfo(const char *path, FATFSFileInfo *info); 242 BOOL FATFS_SetFileInfo(const char *path, const FATFSFileInfo *info); 255 BOOL FATFS_CreateFile(const char *path, BOOL trunc, const char *permit); 266 BOOL FATFS_DeleteFile(const char *path); [all …]
|
| D | types.h | 274 char path[FATFS_ARCHIVE_FULLPATH_MAX + 1]; member 283 char path[FATFS_ARCHIVE_FULLPATH_MAX + 1]; member 294 char path[FATFS_ARCHIVE_FULLPATH_MAX + 1]; member 302 char path[FATFS_ARCHIVE_FULLPATH_MAX + 1]; member 310 char path[FATFS_ARCHIVE_FULLPATH_MAX + 1]; member 320 char path[FATFS_ARCHIVE_FULLPATH_MAX + 1]; member 328 char path[FATFS_ARCHIVE_FULLPATH_MAX + 1]; member 336 char path[FATFS_ARCHIVE_FULLPATH_MAX + 1]; member 347 char path[FATFS_ARCHIVE_FULLPATH_MAX + 1]; member 423 char path[FATFS_ARCHIVE_FULLPATH_MAX + 1]; member [all …]
|
| /TwlSDK-5.1.0/build/demos.TWL/aes/common-perl/ |
| D | aes-demo-lib.pl | 5 { my( $path ) = @_; 8 open(IN, $path) or die "cant open '$path'\n"; 10 read(IN, $data, -s $path); 17 { my( $path, $rData ) = @_; 19 open(OUT, ">$path") or die "can't open '$path'\n";
|
| /TwlSDK-5.1.0/include/nitro/fs/ |
| D | file.h | 307 BOOL FS_CreateFile(const char *path, u32 permit); 318 BOOL FS_DeleteFile(const char *path); 342 BOOL FS_GetPathInfo(const char *path, FSPathInfo *info); 354 BOOL FS_SetPathInfo(const char *path, const FSPathInfo *info); 366 BOOL FS_CreateDirectory(const char *path, u32 permit); 377 BOOL FS_DeleteDirectory(const char *path); 401 BOOL FS_CreateFileAuto(const char *path, u32 permit); 412 BOOL FS_DeleteFileAuto(const char *path); 436 BOOL FS_CreateDirectoryAuto(const char *path, u32 permit); 447 BOOL FS_DeleteDirectoryAuto(const char *path); [all …]
|
| D | api.h | 121 BOOL FS_SetCurrentDirectory(const char *path); 315 FSResult FSi_FormatSpecialArchive(const char *path); 498 BOOL FS_ChangeDir(const char *path);
|
| D | archive.h | 45 …FSResult (*FindPath)(struct FSArchive*, u32 base_dir_id, const char *path, u32 *target_id, BOOL ta… 55 …FSResult (*OpenFile)(struct FSArchive*, struct FSFile*, u32 base_dir_id, const char *path, u32 mod… 75 …FSResult (*OpenDirectory)(struct FSArchive*, struct FSFile*, u32 base_dir_id, const char *path, u3… 150 FSArchive* FS_NormalizePath(const char *path, u32 *baseid, char *relpath);
|
| /TwlSDK-5.1.0/build/libraries/fs/common/src/ |
| D | fs_file.c | 285 BOOL FS_CreateFile(const char *path, u32 permit) in FS_CreateFile() argument 288 FS_DEBUG_TRACE( "%s(%s)\n", __FUNCTION__, path); in FS_CreateFile() 289 SDK_NULL_ASSERT(path); in FS_CreateFile() 294 FSArchive *arc = FS_NormalizePath(path, &baseid, relpath); in FS_CreateFile() 320 BOOL FS_DeleteFile(const char *path) in FS_DeleteFile() argument 323 FS_DEBUG_TRACE( "%s(%s)\n", __FUNCTION__, path); in FS_DeleteFile() 324 SDK_NULL_ASSERT(path); in FS_DeleteFile() 329 FSArchive *arc = FS_NormalizePath(path, &baseid, relpath); in FS_DeleteFile() 400 BOOL FS_GetPathInfo(const char *path, FSPathInfo *info) in FS_GetPathInfo() argument 404 SDK_NULL_ASSERT(path); in FS_GetPathInfo() [all …]
|
| D | fs_archive_fatfs.c | 335 static BOOL FSi_UsingInvalidCharacterW(const u16 *path) in FSi_UsingInvalidCharacterW() argument 344 while (path[pos] && (path[pos] != L':')) in FSi_UsingInvalidCharacterW() 349 pos += (path[pos] == L':'); in FSi_UsingInvalidCharacterW() 350 pos += (path[pos] == L'/'); in FSi_UsingInvalidCharacterW() 352 if (path[pos] == L'<') in FSi_UsingInvalidCharacterW() 358 while (path[pos]) in FSi_UsingInvalidCharacterW() 360 pos += FSi_GetUnicodeSpanExcluding(&path[pos], list); in FSi_UsingInvalidCharacterW() 361 if (path[pos]) in FSi_UsingInvalidCharacterW() 363 if (foundLT && (path[pos] == L'>') && (path[pos + 1] == L'\0')) in FSi_UsingInvalidCharacterW() 382 OS_TWarning("specified path includes invalid character '%c'\n", (char)path[pos]); in FSi_UsingInvalidCharacterW() [all …]
|
| D | fs_archive.c | 688 BOOL FS_SetCurrentDirectory(const char *path) in FS_SetCurrentDirectory() argument 695 SDK_NULL_ASSERT(path); in FS_SetCurrentDirectory() 699 arc = FS_NormalizePath(path, &baseid, relpath); in FS_SetCurrentDirectory() 772 FSArchive* FS_NormalizePath(const char *path, u32 *baseid, char *relpath) in FS_NormalizePath() argument 788 if (FSi_IsSlash((u8)*path)) in FS_NormalizePath() 791 ++path; in FS_NormalizePath() 800 for (i = 0; ; i = FSi_IncrementSjisPosition(path, i)) in FS_NormalizePath() 802 u32 c = (u8)path[i]; in FS_NormalizePath() 827 arc = FS_FindArchive(path, i); in FS_NormalizePath() 830 OS_Warning("archive \"%*s\" is not found.", i, path); in FS_NormalizePath() [all …]
|
| D | fs_proc_default.c | 278 const char *path = p_dir->arg.findpath.path; in FSi_FindPathDefault() local 284 for (; *path; path += (*path ? 1 : 0)) in FSi_FindPathDefault() 287 int name_len = FSi_IncrementSjisPositionToSlash(path, 0); in FSi_FindPathDefault() 288 u32 is_directory = ((path[name_len] != '\0') || is_dir); in FSi_FindPathDefault() 295 else if (*path == '.') in FSi_FindPathDefault() 300 path += 1; in FSi_FindPathDefault() 304 else if ((name_len == 2) & (path[1] == '.')) in FSi_FindPathDefault() 310 path += 2; in FSi_FindPathDefault() 314 else if (*path == '*') in FSi_FindPathDefault() 339 … (name_len == etr.name_len) && (FSi_StrNICmp(path, etr.name, (u32)name_len) == 0)) in FSi_FindPathDefault() [all …]
|
| /TwlSDK-5.1.0/build/tools/defval/ |
| D | misc.c | 298 void UnpackFileName(const char *path, char **dir, char **base, char **ext) in UnpackFileName() argument 301 int path_len = strlen(path); in UnpackFileName() 309 if (path[i] == '.' && ext_top == path_len) in UnpackFileName() 313 if (path[i] == '/' || path[i] == '\\' || path[i] == ':') in UnpackFileName() 321 if (!strcmp(path + base_top, ".") || !strcmp(path + base_top, "..")) in UnpackFileName() 328 *dir = StrNDup(path, base_top); in UnpackFileName() 330 *base = StrNDup(path + base_top, ext_top - base_top); in UnpackFileName() 332 *ext = StrDup(path + ext_top); in UnpackFileName()
|
| D | misc.h | 45 void UnpackFileName(const char *path, char **dir, char **base, char **ext);
|
| /TwlSDK-5.1.0/build/demos.TWL/nandApp/backup/src/ |
| D | main.c | 26 static char* LoadFile(const char* path); 27 static BOOL SaveFile(const char* path, void* pData, u32 size); 29 static void PrintDirectory(const char* path); 31 static void DeleteData(char *path); 32 static BOOL WriteData(const char *path, void* pData, u32 size); 37 static void PrintTree(const char* path, u32 space); 143 static char* LoadFile(const char* path) in LoadFile() argument 153 bSuccess = FS_OpenFileEx(&f, path, FS_FILEMODE_R); in LoadFile() 185 static BOOL SaveFile(const char* path, void* pData, u32 size) in SaveFile() argument 194 (void)FS_CreateFile(path, (FS_PERMIT_R|FS_PERMIT_W)); in SaveFile() [all …]
|
| /TwlSDK-5.1.0/build/demos/fs/explorer/src/ |
| D | main.c | 86 char path[FS_ENTRY_LONGNAME_MAX]; in CommandLS() local 87 (void)STD_TSPrintf(path, "%s/*", context->current); in CommandLS() 88 (void)FS_OpenDirectory(file, path, FS_FILEMODE_R); in CommandLS() 121 static void CommandCD(ExplorerContext *context, const char *path) in CommandCD() argument 125 if (STD_CompareString(path, ".") == 0) in CommandCD() 128 else if(STD_CompareString(path, "..") == 0) in CommandCD() 135 else if(*path) in CommandCD() 138 (cur[0] != '\0') ? "/" : "", path); in CommandCD() 207 char path[FS_ENTRY_LONGNAME_MAX]; in NitroMain() local 210 … (void)STD_TSPrintf(path, "%s/%s", explorer->current, explorer->entry[cursor].longname); in NitroMain() [all …]
|
| /TwlSDK-5.1.0/build/demos.TWL/nandApp/other_backup/src/ |
| D | main.c | 26 static char* LoadFile(const char* path); 27 static BOOL SaveFile(const char* path, void* pData, u32 size); 29 static void PrintDirectory(const char* path); 31 static void DeleteData(char *path); 32 static BOOL WriteData(const char *path, void* pData, u32 size); 37 static void PrintTree(const char* path, u32 space); 167 static char* LoadFile(const char* path) in LoadFile() argument 177 bSuccess = FS_OpenFileEx(&f, path, FS_FILEMODE_R); in LoadFile() 209 static BOOL SaveFile(const char* path, void* pData, u32 size) in SaveFile() argument 218 (void)FS_CreateFile(path, (FS_PERMIT_R|FS_PERMIT_W)); in SaveFile() [all …]
|
| /TwlSDK-5.1.0/build/tools/mic2wav/ |
| D | main.cpp | 84 bool Save(const char *path); 161 bool LogToWav::Save(const char *path) in Save() argument 164 FILE *f = fopen(path, "wb"); in Save() 258 char path[32]; in main() local 259 sprintf(path, "%s%08d.wav", s_dir, file_index++); in main() 261 if(wav.Save(path)) in main() 262 printf("output. \"%s\"\n", path); in main() 264 printf("failed! \"%s\"\n", path); in main()
|
| /TwlSDK-5.1.0/include/twl/ |
| D | dbghost.h | 76 int dbghost_dos_mkdir(char *path); 77 int dbghost_dos_rmdir(char *path); 80 int dbghost_dos_getcwd(char *path,int drvno); 81 int dbghost_dos_chdir(char *path);
|
| /TwlSDK-5.1.0/include/nitro/ |
| D | dbghost.h | 76 int dbghost_dos_mkdir(char *path); 77 int dbghost_dos_rmdir(char *path); 80 int dbghost_dos_getcwd(char *path,int drvno); 81 int dbghost_dos_chdir(char *path);
|
| /TwlSDK-5.1.0/build/tools/bin2obj/ |
| D | cookargs.c | 428 void UnpackFileName(const char *path, char **dir, char **base, char **ext) in UnpackFileName() argument 431 int path_len = strlen(path); in UnpackFileName() 437 if (path[i] == '.' && ext_top == path_len) in UnpackFileName() 441 if (path[i] == '/' || path[i] == '\\' || path[i] == ':') in UnpackFileName() 450 *dir = StrNDup(path, base_top); in UnpackFileName() 452 *base = StrNDup(path + base_top, ext_top - base_top - 1); in UnpackFileName() 454 *ext = StrDup(path + ext_top); in UnpackFileName()
|
| /TwlSDK-5.1.0/build/demos/fs/file-2/src/ |
| D | main.c | 66 static void DumpRomDir(const char *path) in DumpRomDir() argument 71 (void)FS_ChangeDir(path); in DumpRomDir() 119 const char *path = paths[i]; in NitroMain() local 122 open_is_ok = FS_OpenFileEx(&file, path, FS_FILEMODE_R); in NitroMain() 123 … OS_TPrintf("FS_OpenFileEx(\"%s\", FS_FILEMODE_R) ... %s!\n", path, open_is_ok ? "OK" : "ERROR"); in NitroMain()
|
| /TwlSDK-5.1.0/include/twl/dsp/common/ |
| D | pipe.h | 248 int DSP_OpenFile(const char *path, int mode); 260 #define fopen(path, mode) (FILE*)DSP_OpenFile(path, mode)
|
| /TwlSDK-5.1.0/build/demos/os/forChina-fs/src/ |
| D | os_china_override.c | 85 const char *path = path_table[index]; in LoadImage() local 90 if (!FS_OpenFileEx(file, path, FS_FILEMODE_R)) in LoadImage() 92 OS_TPanic("failed to open file \"%s\"", path); in LoadImage() 100 OS_TPanic("failed to allocate memory for image \"%s\"", path); in LoadImage() 110 OS_TPanic("failed to read file \"%s\"", path); in LoadImage()
|
| /TwlSDK-5.1.0/build/demos.TWL/aes/ctr-compatible/src/ |
| D | main.c | 36 static void* DEMO_LoadFile(u32* pSize, const char* path); 389 static void* DEMO_LoadFile(u32* pSize, const char* path) in DEMO_LoadFile() argument 399 bSuccess = FS_OpenFileEx(&f, path, FS_FILEMODE_R); in DEMO_LoadFile() 402 OS_Warning("fail to FS_OpenFileEx(%s)\n", path); in DEMO_LoadFile()
|
| /TwlSDK-5.1.0/build/libraries/os/ARM9/src/ |
| D | os_china.c | 126 const char *path = path_table[index]; in LoadImage() local 131 if (!FS_OpenFileEx(file, path, FS_FILEMODE_R)) in LoadImage() 133 OS_TPanic("failed to open file \"%s\"", path); in LoadImage() 141 OS_TPanic("failed to allocate memory for image \"%s\"", path); in LoadImage() 151 OS_TPanic("failed to read file \"%s\"", path); in LoadImage()
|
| /TwlSDK-5.1.0/build/demos/fs/arc-1/src/ |
| D | main.c | 128 static void DumpRomDir(const char *path) in DumpRomDir() argument 133 (void)FS_ChangeDir(path); in DumpRomDir()
|