|
|||||||
|
|
LLSEEKSection: Linux Programmer's Manual (2)Updated: 10 June 1995 Index Return to Main Contents ̾Á°_llseek - ¥Õ¥¡¥¤¥ë¤ÎÆÉ¤ß½ñ¤¥ª¥Õ¥»¥Ã¥È¤Î°ÌÃÖ¤òÊѤ¨¤ë½ñ¼°#include <unistd.h>#include <linux/unistd.h> _syscall5(int, _llseek, uint, fd, ulong, hi, ulong, lo, loff_t *, res, uint, wh); int _llseek(unsigned int fd, unsigned long offset_high, unsigned long offset_low, loff_t *result, unsigned int whence); ÀâÌÀ_llseek ´Ø¿ô¤Ï¥Õ¥¡¥¤¥ë¡¦¥Ç¥£¥¹¥¯¥ê¥×¥¿¡¼ (descriptor) fd ¤Î¥ª¥Õ¥»¥Ã¥È¤Î°ÌÃÖ¤ò whence ¤¬ SEEK_SET, SEEK_CUR, SEEK_END ¤Î¤É¤ì¤Ç¤¢¤ë¤«¤Ë¤è¤Ã¤Æ¡¢¤½¤ì¤¾¤ì ¥Õ¥¡¥¤¥ë¤ÎÀèÆ¬¡¢¥Õ¥¡¥¤¥ë¤Î¸½ºß°ÌÃÖ¡¢ ¥Õ¥¡¥¤¥ë¤ÎºÇ¸å¤«¤éÁêÂÐŪ¤Ë (offset_high<<32) | offset_low ¥Ð¥¤¥È¤ËÊѹ¹¤¹¤ë¡£ ·ë²Ì¤Î¥Õ¥¡¥¤¥ë°ÌÃÖ¤ò result °ú¤¿ô¤ËÊÖ¤¹¡£ÊÖ¤êÃÍÀ®¸ù¤·¤¿¾ì¹ç¤Ï¡¢ _llseek ¤Ï 0 ¤òÊÖ¤¹¡£¤½¤¦¤Ç¤Ê¤ì¤ÐÃͤȤ·¤Æ -1 ¤òÊÖ¤·¡¢ errno ¤Ë¥¨¥é¡¼¤ò»Ø¼¨¤¹¤ë¡£¥¨¥é¡¼
½àµò¤³¤Î´Ø¿ô¤Ï Linux ÆÃͤǤ¢¤ê°Ü¿¢À¤ÎɬÍ×¤Ê¥×¥í¥°¥é¥à¤Ç¤Ï»ÈÍѤ·¤Æ¤Ï¤¤¤±¤Ê¤¤¡£¥Ð¥°ext2 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ï 2GB °Ê¾å¤Î¥µ¥¤¥º¤Î¥Õ¥¡¥¤¥ë¤Ï¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Ê¤¤¡£´ØÏ¢¹àÌÜlseek(2)
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. |