1 .\" Copyright 2001 Andries Brouwer <aeb@cwi.nl>.
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.
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.
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
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
23 .\" Japanese Version Copyright (c) 2002 NAKANO Takeo all rights reserved.
24 .\" Translated 2002-01-06, NAKANO Takeo <nakano@apm.seikei.ac.jp>
25 .\" Updated 2006-01-18, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
27 .TH FSEEKO 3 2001-11-05 "" "Linux Programmer's Manual"
29 .\"O fseeko, ftello \- seek to or report file position
31 fseeko, ftello \- ¥Õ¥¡¥¤¥ë°ÌÃÖ¤òõ¤¹/Êó¹ð¤¹¤ë
37 .BI "int fseeko(FILE *" stream ", off_t " offset ", int " whence );
39 .BI "off_t ftello(FILE *" stream );
48 .\"O functions are identical to
54 .\"O respectively, except that the \fIoffset\fP argument of
56 .\"O and the return value of
58 .\"O is of type \fIoff_t\fP
59 .\"O instead of \fIlong\fP.
72 ´Ø¿ô¤Î \fIoffset\fP °ú¿ô¤È
75 \fIlong\fP ¤Ç¤Ï¤Ê¤¯ \fIoff_t\fP ¤Ë¤Ê¤Ã¤Æ¤¤¤ë¡£
77 .\"O On many architectures both \fIoff_t\fP and \fIlong\fP are 32-bit types,
78 .\"O but compilation with
79 ¿¤¯¤Î¥¢¡¼¥¥Æ¥¯¥Á¥ã¤Ç¤Ï
80 \fIoff_t\fP ¤â \fIlong\fP ¤â¶¦¤Ë 32 ¥Ó¥Ã¥È¤Î·¿¤Ç¤¢¤ë¤¬¡¢
84 #define _FILE_OFFSET_BITS 64
89 .\"O will turn \fIoff_t\fP into a 64-bit type.
90 ¤Ç¥³¥ó¥Ñ¥¤¥ë¤¹¤ë¤È \fIoff_t\fP ¤Ï 64 ¥Ó¥Ã¥È·¿¤È¤Ê¤ë¡£
93 .\"O On successful completion,
97 .\"O returns the current offset.
98 .\"O Otherwise, \-1 is returned and
100 .\"O is set to indicate the error.
105 ¤Ï¸½ºß¤Î¥ª¥Õ¥»¥Ã¥È¤òÊÖ¤¹¡£
106 ¼ºÇÔ¤·¤¿¾ì¹ç¡¢\-1 ¤òÊÖ¤·¡¢
108 ¤Ë¥¨¥é¡¼¤ò¼¨¤¹Ãͤò¥»¥Ã¥È¤¹¤ë¡£
111 .\"O See the ERRORS in
114 ¤Î¡Ö¥¨¥é¡¼¡×¤ÎÀá¤ò»²¾È¡£
115 .\"O .SH "CONFORMING TO"
120 .\"O These functions are found on System V-like systems.
121 .\"O They are not present in libc4, libc5, glibc 2.0
122 .\"O but are available since glibc 2.1.
123 ¤³¤ì¤é¤Î´Ø¿ô¤Ï System V Ū¤Ê¥·¥¹¥Æ¥à¤Ë¤¢¤ë¡£
124 libc4, libc5, glibc 2.0 ¤Ë¤Ï¤Ê¤«¤Ã¤¿¤¬¡¢
125 glibc 2.1 ¤«¤é»È¤¨¤ë¤è¤¦¤Ë¤Ê¤Ã¤¿¡£