|
|||||||
|
|
GETDENTSSection: Linux Programmer's Manual (2)Updated: 22 July 1995 Index Return to Main Contents ̾Á°getdents - ¥Ç¥£¥ì¥¯¥È¥ê¡¦¥¨¥ó¥È¥ê¤ò¼èÆÀ¤¹¤ë½ñ¼°#include <unistd.h> #include <linux/types.h> #include <linux/dirent.h> #include <linux/unistd.h> _syscall3(int, getdents, uint, fd, struct dirent *, dirp, uint, count); int getdents(unsigned int fd, struct dirent *dirp, unsigned int count); ÀâÌÀgetdents ¤Ï fd ¤Ç»ØÄꤷ¤¿¥Ç¥£¥ì¥¯¥È¥ê¤«¤é dirp ¤¬»Ø¤·¤Æ¤¤¤ë¥á¥â¥êÎΰè¤Ë¤¤¤¯¤Ä¤«¤Î dirent ¹½Â¤ÂΤòÆÉ¤ß¹þ¤à¡£ count ¥Ñ¥é¥á¡¼¥¿¡¼¤Ï ¥á¥â¥êÎΰè¤Î¥µ¥¤¥º¤Ç¤¢¤ë¡£dirent ¹½Â¤ÂΤϰʲ¼¤Î¤è¤¦¤ËÀë¸À¤µ¤ì¤ë:
d_ino ¤Ï inode ÈÖ¹æ¤Ç¤¢¤ë¡£ d_off ¤Ï¥Ç¥£¥ì¥¯¥È¥ê¤ÎÀèÆ¬¤«¤é¼¡¤Î dirent ¤ÎÀèÆ¬¤Þ¤Ç¤Îµ÷Î¥¤Ç¤¢¤ë¡£ d_reclen ¤Ï¤³¤Î dirent Á´ÂΤΥµ¥¤¥º¤Ç¤¢¤ë¡£ d_name ¤Ï¥Ì¥ë(null)ʸ»ú¤Ç½ª¤ë¥Õ¥¡¥¤¥ë̾¤Ç¤¢¤ë¡£ ¤³¤Î¥³¡¼¥ë¤Ï readdir(2) ¤Ë¼è¤Ã¤ÆÂå¤ï¤ë¡£ ÊÖ¤êÃÍÀ®¸ù¤·¤¿¾ì¹ç¤Ï¡¢ÆÉ¤ß¹þ¤ó¤À¥Ð¥¤¥È¿ô¤¬ÊÖ¤µ¤ì¤ë¡£ ¥Ç¥£¥ì¥¯¥È¥ê¤Î½ª¤ê¤Ê¤é¤Ð 0 ¤¬ÊÖ¤µ¤ì¤ë¡£ ¥¨¥é¡¼¤Î¾ì¹ç¤Ï -1 ¤òÊÖ¤µ¤ì¡¢ errno ¤ËŬÀÚ¤ÊÃͤ¬ÀßÄꤵ¤ì¤ë¡£¥¨¥é¡¼
½àµòSVr4, SVID¡£ SVr4 ¤Ç¤Ï¾¤Ë ENOLINK, EIO ¥¨¥é¡¼¾õÂ֤ˤĤ¤¤Æ¤â µ½Ò¤·¤Æ¤¤¤ë¡£´ØÏ¢¹àÌÜreaddir(2), readdir(3)
Index | ||||||
|
|
|
Home :: Copyright :: Privacy :: Credits :: Get a free Linuxinfor Email Account Document on this page is part of "Linuxinfor Man Pages in HTML Format: man2". See Index Page for more info about Authorship and Copyright. 1999-2008 Linuxinfor.com. No rights reserved. |