X-Git-Url: http://cloudbase.mooo.com/gitweb/z180-stamp.git/blobdiff_plain/7b78a5a287827db9e9b16286f3604aef69b37c5c..refs/tags/fatfs-0.12b:/fatfs/doc/ja/filename.html?ds=sidebyside diff --git a/fatfs/doc/ja/filename.html b/fatfs/doc/ja/filename.html index 524566c..5f38eaa 100644 --- a/fatfs/doc/ja/filename.html +++ b/fatfs/doc/ja/filename.html @@ -11,16 +11,16 @@
FatFsã¢ã¸ã¥ã¼ã«ã§ã®ãã¡ã¤ã«ããã£ã¬ã¯ããªããã©ã¤ãã®æå®æ¹æ³ã¯DOS/Windows APIã¨ã»ã¼åãã§ãããã¹åã®ãã©ã¼ãããã¯æ¬¡ã®éãã§ãã
+FatFsã¢ã¸ã¥ã¼ã«ã§ã¯ããã¹åã«ãããã¡ã¤ã«ããã£ã¬ã¯ããªããã©ã¤ãã®æå®æ¹æ³ã¯DOS/Windows APIã¨ã»ã¼åãã§ãããã¹åã®ãã©ã¼ãããã¯æ¬¡ã®éãã§ãã
"[è«çãã©ã¤ãçªå·:][/]ãã£ã¬ã¯ããªå/ãã¡ã¤ã«å"-
FatFsã¢ã¸ã¥ã¼ã«ã¯é·ããã¡ã¤ã«å(LFN)ããã³8.3å½¢å¼ãã¡ã¤ã«å(SFN)ã«å¯¾å¿ãã¦ãã¾ããLFNã¯ã(_USE_LFN > 0)ã®ã¨ã使ç¨å¯è½ã«ãªãã¾ãããã£ã¬ã¯ã㪠ã»ãã¬ã¼ã¿ã«ã¯DOS/Windows APIã¨åãã'/'ã¨'\'ã使ç¨ãã¾ããé£ç¶ããã»ãã¬ã¼ã¿ã¯ç¡è¦ãã1åã¨ãã¦æ±ããã¾ããå¯ä¸ã®éãã¯ãè«çãã©ã¤ãã®æå®ã ãã§ããè«çãã©ã¤ãçªå·ã¯ã'0'ï½'9'ã®ä¸æåã®æ°åã¨ã³ãã³ã§æå®ããçç¥ããå ´åã¯ããã©ã«ã ãã©ã¤ã(0ã¾ãã¯ã«ã¬ã³ã ãã©ã¤ã)ãé¸æããã¾ãã
+FatFsã¢ã¸ã¥ã¼ã«ã¯é·ããã¡ã¤ã«å(LFN)ããã³8.3å½¢å¼ãã¡ã¤ã«å(SFN)ã«å¯¾å¿ãã¦ãã¾ããLFNã¯ã(_USE_LFN > 0)ã®ã¨ã使ç¨å¯è½ã«ãªãã¾ãããã£ã¬ã¯ã㪠ã»ãã¬ã¼ã¿ã«ã¯DOS/Windows APIã¨åãã'/'ã¨'\'ã使ç¨ãã¾ããé£ç¶ããã»ãã¬ã¼ã¿ã¯ç¡è¦ãã1åã¨ãã¦æ±ããã¾ããå¯ä¸ã®éãã¯ãè«çãã©ã¤ãã®æå®ã ãã§ããè«çãã©ã¤ãçªå·ã¯ã'0'ï½'9'ã®ä¸æåã®æ°åã¨ã³ãã³ã§æå®ããçç¥ããå ´åã¯ããã©ã«ã ãã©ã¤ã(0ã¾ãã¯ã«ã¬ã³ã ãã©ã¤ã)ãé¸æããã¾ãã
ãã«æåãå¶å¾¡æå('\0'ï½'\x1F')ã¯ããã¹åã®çµç«¯ã¨ãã¦èªèããã¾ãããã¹åã«å è¡ãããã¯ä¸ã«å«ã¾ããã¹ãã¼ã¹ã¯ãLFNæ§æã§ã¯ååã®ä¸é¨ã¨ãã¦æå¹ã§ãããéLFNæ§æã§ã¯ã¹ãã¼ã¹ã¯ãã¹åã®çµç«¯ã¨ãã¦èªèããã¾ãã
-æ¨æºæ§æ(_FS_RPATH == 0)ã®ã¨ãã¯ãå ¨ã¦ã®ãªãã¸ã§ã¯ããã«ã¼ã ãã£ã¬ã¯ããªãã辿ã絶対ãã¹ã§æå®ããã¾ããOSæåãªã«ã¬ã³ã ãã£ã¬ã¯ããªã¨ããæ¦å¿µã¯ç¡ããã¾ãããã ãã£ã¬ã¯ããª("."ã"..")ã¯ä½¿ç¨ã§ãã¾ããããã¹åå é ã®ã»ãã¬ã¼ã¿ã¯ç¡è¦ããã¾ããããã©ã«ã ãã©ã¤ãçªå·ã¯å¸¸ã«0ã«ãªãã¾ãã
-ç¸å¯¾ãã¹ãæå¹(_FS_RPATH == 1)ã«ããã¨ãã¯ãå è¡ããã»ãã¬ã¼ã¿ã®æç¡ã«ãã£ã¦æ¤ç´¢éå§ãã£ã¬ã¯ããªãå¤ãããã»ãã¬ã¼ã¿ãããå ´åã¯ã«ã¼ã ãã£ã¬ã¯ããªãããç¡ãå ´åã¯f_chdir()ã§è¨å®ãããã«ã¬ã³ã ãã£ã¬ã¯ããªããã«ãªãã¾ããã¾ããã¹åã«ããã ãã£ã¬ã¯ããªã使ç¨ã§ãã¾ããããã©ã«ã ãã©ã¤ãçªå·ã¯f_chdrive()ã§è¨å®ãããå¤ã¨ãªãã¾ãã
+æ¨æºæ§æ(_FS_RPATH == 0)ã®ã¨ãã¯ãå ¨ã¦ã®ãªãã¸ã§ã¯ããã«ã¼ã ãã£ã¬ã¯ããªãã辿ã絶対ãã¹ã§æå®ããã¾ããOSæåãªã«ã¬ã³ã ãã£ã¬ã¯ããªã¨ããæ¦å¿µã¯ç¡ããã¾ãããã ãã£ã¬ã¯ããª("."ã"..")ã¯ä½¿ç¨ã§ãã¾ããããã¹åå é ã®ã»ãã¬ã¼ã¿ã¯ç¡è¦ããã¾ããããã©ã«ã ãã©ã¤ãçªå·ã¯å¸¸ã«0ã«ãªãã¾ãã
+ç¸å¯¾ãã¹ãæå¹(_FS_RPATH >= 1)ã«ããã¨ãã¯ãå è¡ããã»ãã¬ã¼ã¿ã®æç¡ã«ãã£ã¦æ¤ç´¢éå§ãã£ã¬ã¯ããªãå¤ãããã»ãã¬ã¼ã¿ãããå ´åã¯ã«ã¼ã ãã£ã¬ã¯ããªãããç¡ãå ´åã¯f_chdiré¢æ°ã§è¨å®ãããã«ã¬ã³ã ãã£ã¬ã¯ããªããã«ãªãã¾ããã¾ããã¹åã«ããã ãã£ã¬ã¯ããªã使ç¨ã§ãã¾ããããã©ã«ã ãã©ã¤ãçªå·ã¯f_chdriveé¢æ°ã§è¨å®ãããå¤ã¨ãªãã¾ãã
ãã¹åã®ä¾ | _FS_RPATH == 0 | _FS_RPATH == 1 |
ãã¹åã®ä¾ | _FS_RPATH == 0 | _FS_RPATH >= 1 |
file.txt | ãã©ã¤ã0ã®ã«ã¼ã ãã£ã¬ã¯ããªä¸ã®ãã¡ã¤ã« | ã«ã¬ã³ã ãã©ã¤ãã®ã«ã¬ã³ã ãã£ã¬ã¯ããªä¸ã®ãã¡ã¤ã« |
/file.txt | ãã©ã¤ã0ã®ã«ã¼ã ãã£ã¬ã¯ããªä¸ã®ãã¡ã¤ã« | ã«ã¬ã³ã ãã©ã¤ãã®ã«ã¼ã ãã£ã¬ã¯ããªä¸ã®ãã¡ã¤ã« |
ãã©ã¤ã0ã®ã«ã¼ã ãã£ã¬ã¯ã㪠| ã«ã¬ã³ã ãã©ã¤ãã®ã«ã¬ã³ã ãã£ã¬ã¯ã㪠| |
dir1/.. | ç¡å¹ | ã«ã¬ã³ã ãã£ã¬ã¯ã㪠|
/.. | ç¡å¹ | ã«ã¼ã ãã£ã¬ã¯ããª(ãã®ä¸ã¯è¾¿ããªã) |
ã¾ãã_STR_VOLUME_IDãªãã·ã§ã³ãæå¹ã«ãããã¨ã§ãã©ã¤ãçªå·ã®èå¥ã«ã¯æ°åã®ã»ãã"sd:file1.txt"ã"ram:swapfile.dat"ã®ããã«ãä»»æã®æååã使ç¨ãããã¨ãå¯è½ã«ãªãã¾ãã
+ã¾ãã_STR_VOLUME_IDãªãã·ã§ã³ãæå¹ã«ãããã¨ã§ãã©ã¤ãçªå·ã®èå¥ã«ã¯æ°åã®ã»ãã"sd:file1.txt"ã"ram:swapfile.dat"ã®ããã«ãä»»æã®æåå(ãã¡ããDOS/Windowsã©ã¤ã¯ãªãã©ã¤ãæåã)ã使ç¨ãããã¨ãå¯è½ã«ãªãã¾ãã
+ã注æãç¾ãªãã¸ã§ã³(R0.12)ã§ã¯ãexFATããªã¥ã¼ã ä¸ã«ããã¦ããã« ããã".."ã¯ã·ã³ã°ã« ããã"."ã¨ãã¦æ©è½ãã親ãã£ã¬ã¯ããªã辿ããã¨ã¯ã§ãã¾ããã
FATãã¡ã¤ã« ã·ã¹ãã ã§ãã¡ã¤ã«åã«ä½¿ç¨å¯è½ãªæåã¯ã0ï½9 Aï½Z ! # $ % & ' ( ) - @ ^ _ ` { } ~ããã³æ¡å¼µæå(\x80ï½\xFF)ã¨ãªã£ã¦ãã¾ããLFNæ¡å¼µã§ã¯ãããã«å ãã+ , ; = [ ]ããã³ã¹ãã¼ã¹ã使ç¨å¯è½ã«ãªããã¹ãã¼ã¹ã¨ããªãªãã¯ãã¡ã¤ã«åã®æ«å°¾ãé¤ãä»»æã®ä½ç½®ã«æ¿å ¥ã§ãã¾ãã
+FATãã¡ã¤ã« ã·ã¹ãã ã§ã¯ããã¹åã«ã¤ãã¦ã±ã¼ã¹ ã¤ã³ã»ã³ã·ãã£ãã§ãããã¨ãã°ãfile.txt, File.Txt, FILE.TXTã®3ã¤ã®ååã¯åãç©ã¨ãã¦æ±ããã¾ããããã¯ãASCIIæåã ãã§ãªãæ¡å¼µæåã«ã¤ãã¦ãé©ç¨ããã¾ãããã¡ã¤ã«ãä½æãããéãSFNã¨ã³ããªã«ã¯å ¨ã¦å¤§æåã«å¤æãããååãè¨é²ããã¾ããLFN対å¿ã·ã¹ãã ã§ã¯ãLFNã¨ã³ããªã«ã¯å¤§æåå¤æãããªãååãè¨é²ããã¾ãã
+å¤ãæ¥æ¬èªMS-DOSã§ã¯æ¡å¼µæå(ããããå ¨è§æå)ã«ã¤ãã¦ã¯ã±ã¼ã¹ ã»ã³ã·ãã£ãã§ãããFatFsã¢ã¸ã¥ã¼ã«ã§ã¯ããã«ãããããéLFNæ§æã§æåã³ã¼ãã«DBCSãé¸æãããã¨ãã«éããæ¡å¼µæåã«å¯¾ãã¦å¤§æåå¤æãè¡ããã«SFNã¨ã³ããªã«è¨é²ããã³æ¤ç´¢ããã¾ã(æ¥æ¬èªMSDOSä»æ§)ãLFNæ§æã§ã¯æ¡å¼µæåã«ã¤ãã¦ã大æåå¤æãè¡ãã¾ã(WindowsNTä»æ§)ããã®ãããéLFNæ§æã§å ¨è§å°æåãå«ãååã§ãã¡ã¤ã«ãä½æããã¨ãWindowsã§ãã®ãã¡ã¤ã«ãéããªããªããªã©ã®äºææ§åé¡ãèµ·ããã®ã§ããããã®ã·ã¹ãã ã§ç¸äºå©ç¨ããããªã¥ã¼ã ä¸ã§ã¯DBCSæ¡å¼µæåã®ä½¿ç¨ã¯é¿ããã¹ãã§ãã
+ãã¡ã¤ã«é¢æ°ã®å ¥åºåã®ãã¡ãã¡ã¤ã«åããã¹åãæå®ããå¼æ°ã®åã¯ãTCHARã§å®ç¾©ããã¦ãã¾ãããããã¯é常ã¯charã®ã¨ãªã¢ã¹ã«ãªã£ã¦ãã¾ããããã¦ã_CODE_PAGEã§æå®ãããANSI/OEMã³ã¼ã(SBCSã¾ãã¯DBCS)ã®æååã¨ãã¦æ±ããã¾ãããã¡ã¤ã«åå ¥åºåãUnicodeã¨ããæ§æ(_LFN_UNICODE == 1)ã«ããã¨ãã¯ãTCHARã¯ã¯ã¤ãæå(WCHAR, unsigned short)ã«åãæ¿ããããã¹åã®å ¥åºåã«Unicodeã使ç¨ããããã«ãªãã¾ããããã«ããLFNè¦æ ¼ã«å®å ¨å¯¾å¿ã¨ãªããANSI/OEMã³ã¼ãã«ãªãæå(ãã¨ãã° ââªâ¡â¸âãªã©)ã使ç¨ã§ãã¾ãããã®è¨å®ã¯æååå ¥åºåé¢æ°ã®ãã¼ã¿åã¨ãã¡ã¤ã«ä¸ã®ã¨ã³ã³ã¼ãã£ã³ã°ã«ãå½±é¿ãä¸ãã¾ãããªãã©ã«æååãå®ç¾©ããã¨ãã次ã«ç¤ºãããã«_T(s)ããã³_TEXT(s)ãã¯ãã使ã£ã¦ANSI/OEMã¨Unicodeãèªååãæ¿ããããã¨ãã§ãã¾ãã
+ãã¡ã¤ã«é¢æ°ã®å ¥åºåã®ãã¡ãã¡ã¤ã«åããã¹åãæå®ããå¼æ°ã®åã¯ãTCHARã§å®ç¾©ããã¦ãã¾ãããããã¯é常ã¯charã®ã¨ãªã¢ã¹ã«ãªã£ã¦ãã¾ããããã¦ã_CODE_PAGEã§æå®ãããANSI/OEMã³ã¼ã(SBCSã¾ãã¯DBCS)ã®æååã¨ãã¦æ±ããã¾ãããã¡ã¤ã«åå ¥åºåãUnicodeã¨ããæ§æ(_LFN_UNICODE == 1)ã«ããã¨ãã¯ãTCHARã¯ã¯ã¤ãæå(WCHAR, unsigned short)ã«åãæ¿ããããã¹åã®å ¥åºåã«Unicodeã使ç¨ããããã«ãªãã¾ããããã«ããLFNè¦æ ¼ã«å®å ¨å¯¾å¿ã¨ãªãããã¡ã¤ã«åã¨ãã¦ANSI/OEMã³ã¼ãã«ãªãæå(ãã¨ãã° ââªâ¡â¸âãªã©)ã使ç¨ã§ãã¾ãããã®è¨å®ã¯æååå ¥åºåé¢æ°ã«ããã¦ã¯ããã¼ã¿åã¨ãã¡ã¤ã«ä¸ã®ã¨ã³ã³ã¼ãã£ã³ã°ã«å½±é¿ãä¸ãã¾ãããªãã©ã«æååãå®ç¾©ããã¨ãã次ã«ç¤ºãããã«_T(s)ããã³_TEXT(s)ãã¯ãã使ã£ã¦ANSI/OEMã¨Unicodeãèªååãæ¿ããããã¨ãã§ãã¾ãã
f_open(fp, "filename.txt", FA_READ); /* ANSI/OEMå°ç¨ã³ã¼ã */ f_open(fp, L"filename.txt", FA_READ); /* Unicodeå°ç¨ã³ã¼ã */ @@ -47,23 +54,22 @@
ããã©ã«ãã®æ§æã§ã¯ãããããã®è«çãã©ã¤ãã¯åãçªå·ã®ç©çãã©ã¤ãã«1:1ã§çµã³ã¤ãããã¦ãã¦ãèªåæ¤åºæ©è½ã«ãããã®ç©çãã©ã¤ãä¸ã®ä¸ã¤ã®FATããªã¥ã¼ã ããã¦ã³ãããã¾ããFATããªã¥ã¼ã ã®æ¤åºã¯ãã»ã¯ã¿0ã第ä¸åºç»ï½ç¬¬ååºç»ã®é ã«è¡ããã¾ãã
-_MULTI_PARTITIONã«1ãæå®ããã¨ãããããã®è«çãã©ã¤ãã«å¯¾ãã¦åå¥ã«ç©çãã©ã¤ãçªå·ã¨åºç»ãæå®ã§ããããã«ãªãã¾ãããã®æ§æã§ã¯ãè«çãã©ã¤ãã¨åºç»ã®å¯¾å¿ã解決ããããã®ãã¼ãã«ã次ã«ç¤ºãããã«å®ç¾©ããå¿ è¦ãããã¾ãã
+ããã©ã«ãã®æ§æã§ã¯ãããããã®è«çãã©ã¤ãã¯åãçªå·ã®ç©çãã©ã¤ãã«1:1ã§çµã³ã¤ãããã¦ãã¦ãèªåæ¤åºæ©è½ã«ãããã®ç©çãã©ã¤ãä¸ã®ä¸ã¤ã®FATããªã¥ã¼ã ããã¦ã³ãããã¾ããFATããªã¥ã¼ã ã®æ¤åºã¯ãã»ã¯ã¿0(SFD)ã第ä¸åºç»ï½ç¬¬ååºç»(FDISK)ã®é ã«è¡ããã¾ãã
+_MULTI_PARTITIONã«1ãæå®ããã¨ãããããã®è«çãã©ã¤ãã«å¯¾ãã¦åå¥ã«ç©çãã©ã¤ãçªå·ã¨åºç»ãæå®ã§ããããã«ãªãã¾ãããã®æ§æã§ã¯ãè«çãã©ã¤ãã¨åºç»ã®å¯¾å¿ã解決ããããã®ãã¼ãã«ã次ã«ç¤ºãããã«å®ç¾©ããå¿ è¦ãããã¾ãã
ä¾:è«çãã©ã¤ã0ï½2ãç©çãã©ã¤ã0(éãªã ã¼ããã«)ã®3ã¤ã®åºæ¬åºç»ã«å²ãå½ã¦ã è«çãã©ã¤ã3ãç©çãã©ã¤ã1(ãªã ã¼ããã«)ã«å²ãå½ã¦ãå ´åã PARTITION VolToPart[] = { - {0, 1}, /* è«çãã©ã¤ã 0 ==> ç©çãã©ã¤ã 0, 第1åºç» */ - {0, 2}, /* è«çãã©ã¤ã 1 ==> ç©çãã©ã¤ã 0, 第2åºç» */ - {0, 3}, /* è«çãã©ã¤ã 2 ==> ç©çãã©ã¤ã 0, 第3åºç» */ - {1, 0} /* è«çãã©ã¤ã 3 ==> ç©çãã©ã¤ã 1, èªåæ¤åº */ + {0, 1}, /* "0:" ==> ç©çãã©ã¤ã 0, 第1åºç» */ + {0, 2}, /* "1:" ==> ç©çãã©ã¤ã 0, 第2åºç» */ + {0, 3}, /* "2:" ==> ç©çãã©ã¤ã 0, 第3åºç» */ + {1, 0} /* "3:" ==> ç©çãã©ã¤ã 1, èªåæ¤åº */ };-
è¤æ°åºç»æå®ã使ç¨ããå ´åã次ã®ç¹ã«æ³¨æããªããã°ãªãã¾ããã