2011-12-01ãã1ã¶æéã®è¨äºä¸è¦§
ã¯ããã« ä»åã¯ãã¤ããè¦ã¦ããã¾ããã½ã¼ã¹ã³ã¼ãã®unix/pipe.cãä¸å¿ã«è¿½ã£ã¦ããã¾ãã ãã¤ãã®ä»çµã¿ ãã¤ãã¨ã¯ããã»ã¹éã®éä¿¡ãå®ç¾ããä»çµã¿ã®ãã¨ã§ããåããã»ã¹æ¯ã«åºæã®ã¢ãã¬ã¹ç©ºéãæã£ã¦ãããããé常ã¯ä»ããã»ã¹ãæã£ã¦ãããã¼â¦
ã¯ããã« ä»åã¯unix/sys3.cãè¦ã¦ããã¾ãã fstat( ), stat( ) fstat( )(6014è¡ç®)ã¯fstatã·ã¹ãã ã³ã¼ã«ã®ãã³ãã©ã§ããstat( )(6028è¡ç®)ã¯statã·ã¹ãã ã³ã¼ã«ã®ãã³ãã©ã§ããfstatãstatããã¡ã¤ã«ã®inodeæ å ±ãåå¾ããã·ã¹ãã ã³ã¼ã«ã§ããç°ãªãã®â¦
ã¯ããã« ä»åã¯unix/sys2.cãè¦ã¦ããã¾ãããã¡ã¤ã«ã·ã¹ãã é¢é£ã®ã·ã¹ãã ã³ã¼ã«ãããã£ã¦ãã¾ããåã·ã¹ãã ã³ã¼ã«ã®èª¬æã¯ã¦ã¼ã¶ããã¥ã¢ã«ã«ãè¼ã£ã¦ããã®ã§ãåããã¦ç®ãéããã¨ããå§ããã¾ãã read( ), write( ) read( )(5711è¡ç®)ã¯readã·ã¹â¦
ã¯ããã« ä»åã¯unix/rdwri.cãè¦ã¦ããã¾ãããã¡ã¤ã«ã®èªã¿æ¸ãå¦çãä¸å¿ã§ãã readi( ) readi( )(6221è¡ç®)ã¯ãinodeã«å¯¾å¿ãããã¼ã¿ã®å 容ããã£ã¹ã¯ããèªã¿åºãã¾ããreadi( )ãå¼ã³åºãåã«ãu.u_base, u.u_offset, u.u_count, u.u_segflgãè¨å®ãâ¦
ã¯ããã« ä»åã¯unix/fio.cãè¦ã¦ããã¾ããu.u_ofile[ ]ãfile[ ]ã®å²ãå½ã¦ãã権éãã§ãã¯ãªã©ã®é¢æ°ãæã£ã¦ãã¾ãã getf( ) getf( )(6619è¡ç®)ã¯ããã¡ã¤ã«ãã£ã¹ã¯ãªãã¿ããã該å½ã®fileæ§é ä½ãåå¾ãã¦ãããreturnãã¾ãããã¡ã¤ã«ãã£ã¹ã¯ãªãâ¦
ã¯ããã« ä»åã¯unix/subr.cãè¦ã¦ããã¾ããä»®æ³çãªblock Noããç©çããã¤ã¹ã®block Noã«å¤æããbmap( )ãä¸å¿ã«ãsubr(ãµãã«ã¼ãã³)ã®ååã®éããä»ã®é¢æ°ããããå¼ã°ããé¢æ°ãæã£ã¦ãã¾ãã bmap( ) ãã¡ã¤ã«ä¸ã®ã¢ã¯ã»ã¹ããããã¼ã¿ã®ãªãã»ãâ¦
ã¯ããã« ä»åã¯unix/namei.cãè¦ã¦ããã¾ããã·ã¹ãã ã®ä¸ã§ããã¡ã¤ã«ãã©ã®ããã«æ±ããã¦ããããè¦ãã¦ããã¨æãã¾ãã namei( ) 以åã®ã¨ã³ããªã§æ¸ããããã«ããã¡ã¤ã«ã¯ãã£ã¬ã¯ããªã«ãã£ã¦æ¨æ§é ã¨ãã¦ç®¡çããã¦ãã¾ãããã¹ã使ããã¨ã§ãåãâ¦
ã¯ããã« ä»åã¯unix/iget.cãè¦ã¦ããã¾ããiget.cã¯ã³ã¢ä¸ã®inode[ ]ãªã½ã¼ã¹ç®¡çã主ã§ããä»ã«ãæ°ããªinodeã®çæ(ãã¡ã¤ã«ã®çæ)ãããã£ã¬ã¯ããªã¸ã®ã¨ã³ããªè¿½å ã«é¢ããå¦çãªã©ãããã¾ãã ã³ã¢ä¸ã®inode[ ] unix/inode.hã®ä¸ã§inodeæ§é ä½ã®é â¦
ã¯ããã« å æ¥ãLions' Commentary on UNIXã®èªæ¸ä¼ã«åå ããã¨ãã«UNIX v6ã®ãã¡ã¤ã«ã·ã¹ãã å¨ãã®ã³ã¼ããèªã¿ã¾ããããã¡ã¤ã«ã®ã¯ãã¼ãºã»åé¤ã®ããããèªãã§ããã¨ãã«ããããã¨ã«æ°ã¥ãã¾ãããããã¡ã¤ã«åé¤ããã¨ãã«ããããã¯ããã¤ã¹ã®ãã¼â¦
ã¯ããã« Lionsæ¬èªæ¸ä¼#12ã«åå ãã¦ãã¾ãããã¡ã¢ãæ®ãã¦ããã¾ããä»åã¯18ç« ãèªã¿ã¾ããã togetter é¢é£ãã¤ã¼ããtogetterã§ã¾ã¨ãã¾ããã http://togetter.com/li/222603 ç§ã®ãã¤ã¼ãã¯è¡¨è¨ã®ããã大ããã®ã§ãåèã«ãããå ´åã¯æ³¨æãã¦å¼ãâ¦