.\" Copyright 2001 Andries Brouwer . .\" .\" Permission is granted to make and distribute verbatim copies of this .\" manual provided the copyright notice and this permission notice are .\" preserved on all copies. .\" .\" Permission is granted to copy and distribute modified versions of this .\" manual under the conditions for verbatim copying, provided that the .\" entire resulting derived work is distributed under the terms of a .\" permission notice identical to this one. .\" .\" Since the Linux kernel and libraries are constantly changing, this .\" manual page may be incorrect or out-of-date. The author(s) assume no .\" responsibility for errors or omissions, or for damages resulting from .\" the use of the information contained herein. The author(s) may not .\" have taken the same level of care in the production of this manual, .\" which is licensed free of charge, as they might when working .\" professionally. .\" .\" Formatted or processed versions of this manual, if unaccompanied by .\" the source, must acknowledge the copyright and authors of this work. .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH FSEEKO 3 2001\-11\-05 "" "Linux Programmer's Manual" .SH 名前 fseeko, ftello \- ファイル位置を探す/報告する .SH 書式 .nf \fB#include \fP .sp \fBint fseeko(FILE *\fP\fIstream\fP\fB, off_t \fP\fIoffset\fP\fB, int \fP\fIwhence\fP\fB);\fP .sp \fBoff_t ftello(FILE *\fP\fIstream\fP\fB);\fP .fi .SH 説明 \fBfseeko\fP() 関数および \fBftello\fP() 関数は、 それぞれ \fBfseek\fP(3) および \fBftell\fP(3) と同一の機能を持つ (\fBfseek\fP(3) を見よ) が、ただし \fBfseeko\fP() 関数の \fIoffset\fP 引数と \fBftello\fP() の返り値が、 \fIlong\fP ではなく \fIoff_t\fP になっている。 .LP 多くのアーキテクチャでは \fIoff_t\fP も \fIlong\fP も共に 32 ビットの型であるが、 .RS .nf #define _FILE_OFFSET_BITS 64 .fi .RE .PP でコンパイルすると \fIoff_t\fP は 64 ビット型となる。 .SH 返り値 成功した場合、 \fBfseeko\fP() は 0 を、 \fBftello\fP() は現在のオフセットを返す。 失敗した場合、\-1 を返し、 \fIerrno\fP にエラーを示す値をセットする。 .SH エラー \fBfseek\fP(3) の「エラー」の節を参照。 .SH 準拠 SUSv2, POSIX.1\-2001. .SH 注意 これらの関数は System V 的なシステムにある。 libc4, libc5, glibc 2.0 にはなかったが、 glibc 2.1 から使えるようになった。 .SH 関連項目 \fBfseek\fP(3) .SH この文書について この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.41 の一部 である。プロジェクトの説明とバグ報告に関する情報は http://www.kernel.org/doc/man\-pages/ に書かれている。