LLSEEK
Section: ¸®´ª½º ÇÁ·Î±×·¡¸Ó ¸Å´º¾ó
(2)
Updated: 1995³â 6¿ù 10ÀÏ
Index
Return to Main Contents
NAME
_llseek - Àбâ/¾²±â ÆÄÀÏ º¯À§(offset)À» Àç¹èÄ¡ÇÑ´Ù.
SYNOPSIS
#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);
DESCRIPTION
_llseek
ÇÔ¼ö´Â ÆÄÀÏ ½ÃÀÛ È¤Àº
whence
°¡
SEEK_SET,
SEEK_CUR,
SEEK_END,
¿¡ °¢°¢ ¿µÇâÀ» ¹Þ´Â
ÆÄÀÏÀÇ ³¡ºÎºÐ°ú °ü·ÃµÈ
(offset_high<<32) | offset_low
¹ÙÀÌÆ®¿¡ ÆÄÀÏ µð½ºÅ©¸³ÅÍ
fd
ÀÇ º¯À§(offset)¸¦ Àç¹èÄ¡ÇÑ´Ù.
Àμö
result
¿¡ °á°ú ÆÄÀÏ À§Ä¡¸¦ ¹ÝȯÇÑ´Ù.
RETURN VALUE
¼º°ø½Ã
_llseek
´Â 0À» ¹ÝȯÇÑ´Ù. ±× ¿Ü¿¡´Â -1À» ¹ÝȯÇÏ°í
errno
´Â ¿¡·¯¸¦ ÁöÁ¤Çϱâ À§ÇØ ¼³Á¤µÈ´Ù.
ERRORS
- EBADF
-
fd
´Â ÆÄÀÏ¿±â µð½ºÅ©¸³ÅÍ°¡ ¾Æ´Ï´Ù.
- EINVAL
-
whence
´Â À¯È¿ÇÏÁö ¾Ê´Ù.
CONFORMING TO
ÀÌ ÇÔ¼ö´Â ¸®´ª½º¿¡¼¸¸ ¾²À̸ç, ´Ù¸¥ ÇÁ·Î±×·¥¿¡¼ ¾²¿©¼´Â ¾ÈµÈ´Ù.
BUGS
ext2 ÆÄÀϽýºÅÛÀº 2GBÀÌ»óÀÇ ÆÄÀÏÀº Áö¿øÇÏÁö ¾Ê´Â´Ù.
SEE ALSO
lseek(2)
¿ªÀÚ
ASPLINUX<man@asp-linux.co.kr>, 2000³â 7¿ù 27ÀÏ
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- RETURN VALUE
-
- ERRORS
-
- CONFORMING TO
-
- BUGS
-
- SEE ALSO
-
- ¿ªÀÚ
-
This document was created by
man2html,
using the manual pages.
Time: 08:07:01 GMT, March 25, 2004