OSDN Git Service

(split) Convert release and draft pages to UTF-8.
[linuxjm/LDP_man-pages.git] / release / man3 / fseeko.3
1 .\" Copyright 2001 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 .\" 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>
26 .\"
27 .TH FSEEKO 3  2001-11-05 "" "Linux Programmer's Manual"
28 .SH 名前
29 fseeko, ftello \- ファイル位置を探す/報告する
30 .SH 書式
31 .nf
32 .B #include <stdio.h>
33 .sp
34 .BI "int fseeko(FILE *" stream ", off_t " offset ", int " whence );
35 .sp
36 .BI "off_t ftello(FILE *" stream );
37 .BI
38 .fi
39 .SH 説明
40 .BR fseeko ()
41 関数および
42 .BR ftello ()
43 関数は、
44 それぞれ
45 .BR fseek (3)
46 および
47 .BR ftell (3)
48 と同一の機能を持つ
49 .RB ( fseek (3)
50 を見よ) が、ただし
51 .BR fseeko ()
52 関数の \fIoffset\fP 引数と
53 .BR ftello ()
54 の返り値が、
55 \fIlong\fP ではなく \fIoff_t\fP になっている。
56 .LP
57 多くのアーキテクチャでは
58 \fIoff_t\fP も \fIlong\fP も共に 32 ビットの型であるが、
59 .RS
60 .nf
61
62 #define _FILE_OFFSET_BITS 64
63
64 .fi
65 .RE
66 でコンパイルすると \fIoff_t\fP は 64 ビット型となる。
67 .SH 返り値
68 成功した場合、
69 .BR fseeko ()
70 は 0 を、
71 .BR ftello ()
72 は現在のオフセットを返す。
73 失敗した場合、\-1 を返し、
74 .I errno
75 にエラーを示す値をセットする。
76 .SH エラー
77 .BR fseek (3)
78 の「エラー」の節を参照。
79 .SH 準拠
80 SUSv2, POSIX.1-2001.
81 .SH 注意
82 これらの関数は System V 的なシステムにある。
83 libc4, libc5, glibc 2.0 にはなかったが、
84 glibc 2.1 から使えるようになった。
85 .SH 関連項目
86 .BR fseek (3)