OSDN Git Service

(split) Import translated manuals from JM CVS Repository.
[linuxjm/LDP_man-pages.git] / release / man2 / llseek.2
1 .\" Copyright (C) 1995 Andries Brouwer (aeb@cwi.nl)
2 .\"
3 .\" Permission is granted to make and distribute verbatim copies of this
4 .\" manual provided the copyright notice and this permission notice are
5 .\" preserved on all copies.
6 .\"
7 .\" Permission is granted to copy and distribute modified versions of this
8 .\" manual under the conditions for verbatim copying, provided that the
9 .\" entire resulting derived work is distributed under the terms of a
10 .\" permission notice identical to this one.
11 .\"
12 .\" Since the Linux kernel and libraries are constantly changing, this
13 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
14 .\" responsibility for errors or omissions, or for damages resulting from
15 .\" the use of the information contained herein.  The author(s) may not
16 .\" have taken the same level of care in the production of this manual,
17 .\" which is licensed free of charge, as they might when working
18 .\" professionally.
19 .\"
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
22 .\"
23 .\" Written 10 June 1995 by Andries Brouwer <aeb@cwi.nl>
24 .\" Modified Thu Oct 31 15:16:23 1996 by Eric S. Raymond <esr@thyrsus.com>
25 .\"
26 .\" Japanese Version Copyright (c) 1997 HANATAKA Shinya
27 .\"         all rights reserved.
28 .\" Translated Sun Feb 23 16:22:27 JST 1997
29 .\"         by HANATAKA Shinya <hanataka@abyss.rim.or.jp>
30 .\" Updated & Modified Sat Jun  2 18:27:49 JST 2001
31 .\"         by Yuichi SATO <ysato@h4.dion.ne.jp>
32 .\" Updated & Modified Sat Sep  6 17:05:03 JST 2003
33 .\"         by Yuichi SATO <ysato444@yahoo.co.jp>
34 .\" Updated & Modified Fri Dec 31 00:50:01 JST 2004 by Yuichi SATO
35 .\"
36 .\"WORD:        offset                  ¥ª¥Õ¥»¥Ã¥È
37 .\"WORD:        descriptor              ¥Ç¥£¥¹¥¯¥ê¥×¥¿¡¼
38 .\"WORD:        argument                °ú¤­¿ô
39 .\"WORD:        open                    ¥ª¡¼¥×¥ó
40 .\"WORD:        support                 ¥µ¥Ý¡¼¥È
41 .\"
42 .TH LLSEEK 2 2007-06-01 "Linux" "Linux Programmer's Manual"
43 .SH Ì¾Á°
44 _llseek \- ¥Õ¥¡¥¤¥ë¤ÎÆɤ߽ñ¤­¥ª¥Õ¥»¥Ã¥È¤Î°ÌÃÖ¤òÊѤ¨¤ë
45 .SH ½ñ¼°
46 .nf
47 .B #include <sys/types.h>
48 .B #include <unistd.h>
49 .sp
50 .BI "int _llseek(unsigned int " fd ", unsigned long " offset_high ,
51 .BI "            unsigned long " offset_low ", loff_t *" result ,
52 .BI "            unsigned int " whence );
53 .fi
54 .SH ÀâÌÀ
55 .BR _llseek ()
56 ´Ø¿ô¤Ï¡¢¥Õ¥¡¥¤¥ë¡¦¥Ç¥£¥¹¥¯¥ê¥×¥¿¡¼ (descriptor)
57 .I fd
58 ¤Ë´ØÏ¢¤Å¤±¤é¤ì¤¿¥ª¡¼¥×¥ó¤µ¤ì¤¿¥Õ¥¡¥¤¥ë¤Î¥ª¥Õ¥»¥Ã¥È¤Î°ÌÃÖ¤ò¡¢ÁêÂÐŪ¤Ë
59 .I (offset_high<<32) | offset_low
60 ¥Ð¥¤¥È¤À¤±Êѹ¹¤¹¤ë¡£
61 ´ð½à¤È¤Ê¤ë°ÌÃÖ¤òɽ¤¹
62 .I  whence
63 ¤Ë¤Ï
64 .BR SEEK_SET ,
65 .BR SEEK_CUR ,
66 .B SEEK_END
67 ¤Î¤¤¤º¤ì¤«¤ò»ØÄꤷ¡¢¤½¤ì¤¾¤ì
68 ¥Õ¥¡¥¤¥ë¤ÎÀèƬ¡¢¥Õ¥¡¥¤¥ë¤Î¸½ºß°ÌÃÖ¡¢
69 ¥Õ¥¡¥¤¥ë¤ÎºÇ¸å¤òɽ¤¹¡£
70 ·ë²Ì¤Î¥Õ¥¡¥¤¥ë°ÌÃÖ¤ò
71 .I result
72 °ú¤­¿ô¤ËÊÖ¤¹¡£
73 .SH ÊÖ¤êÃÍ
74 À®¸ù¤·¤¿¾ì¹ç¤Ï¡¢
75 .BR _llseek ()
76 ¤Ï 0 ¤òÊÖ¤¹¡£
77 ¤½¤¦¤Ç¤Ê¤ì¤Ð \-1 ¤È¤¤¤¦Ãͤ¬Ê֤ꡢ¥¨¥é¡¼¤ò¼¨¤¹
78 .I errno
79 ¤¬ÀßÄꤵ¤ì¤ë¡£
80 .SH ¥¨¥é¡¼
81 .TP
82 .B EBADF
83 .I fd
84 ¤¬¥ª¡¼¥×¥ó¤µ¤ì¤¿¥Õ¥¡¥¤¥ë¡¦¥Ç¥£¥¹¥¯¥ê¥×¥¿¡¼¤Ç¤Ê¤¤¡£
85 .TP
86 .B EFAULT
87 ·ë²Ì¤ò¥æ¡¼¥¶¶õ´Ö¤Ë¥³¥Ô¡¼¤¹¤ë¤È¤­¤ËÌäÂ꤬¤¢¤Ã¤¿¡£
88 .TP
89 .B EINVAL
90 .I whence
91 ¤¬ÉÔÀµ¤Ç¤¢¤ë¡£
92 .SH ½àµò
93 ¤³¤Î´Ø¿ô¤Ï Linux ÆÃÍ­¤Ç¤¢¤ê¡¢°Ü¿¢À­¤ÎɬÍ×¤Ê¥×¥í¥°¥é¥à¤Ç¤Ï»ÈÍѤ·¤Æ¤Ï¤¤¤±¤Ê¤¤¡£
94 .SH Ãí°Õ
95 glibc ¤Ï¤³¤Î¥·¥¹¥Æ¥à¥³¡¼¥ë¤ËÂФ¹¤ë¥é¥Ã¥Ñ¡¼´Ø¿ô¤òÄ󶡤·¤Æ¤¤¤Ê¤¤¡£
96 .BR syscall (2)
97 ¤ò»È¤Ã¤Æ¸Æ¤Ó½Ð¤¹¤³¤È¡£
98 .SH ´ØÏ¢¹àÌÜ
99 .BR lseek (2),
100 .BR lseek64 (3)