Home :: International :: Manuals :: Howto :: FAQ :: Man Pages :: Email Login

 
 

 

LLSEEK

Section: 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 ¤Ë¥¨¥é¡¼¤ò»Ø¼¨¤¹¤ë¡£  

¥¨¥é¡¼

EBADF
fd ¤¬¥ª¡¼¥×¥ó¤µ¤ì¤¿¥Õ¥¡¥¤¥ë¡¦¥Ç¥£¥¹¥¯¥ê¥×¥¿¡¼¤Ç¤Ê¤¤¡£
EINVAL
whence ¤¬ÉÔÀµ¤Ç¤¢¤ë¡£
 

½àµò

¤³¤Î´Ø¿ô¤Ï Linux ÆÃÍ­¤Ç¤¢¤ê°Ü¿¢À­¤ÎɬÍ×¤Ê¥×¥í¥°¥é¥à¤Ç¤Ï»ÈÍѤ·¤Æ¤Ï¤¤¤±¤Ê¤¤¡£  

¥Ð¥°

ext2 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ï 2GB °Ê¾å¤Î¥µ¥¤¥º¤Î¥Õ¥¡¥¤¥ë¤Ï¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Ê¤¤¡£  

´ØÏ¢¹àÌÜ

lseek(2)


 

Index

̾Á°
½ñ¼°
ÀâÌÀ
ÊÖ¤êÃÍ
¥¨¥é¡¼
½àµò
¥Ð¥°
´ØÏ¢¹àÌÜ

 
 
 
 
Google
  Web Linuxinfor   
 

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.