.\" Copyright (C) 1995 Andries Brouwer (aeb@cwi.nl) .\" Written 10 June 1995 by Andries Brouwer .\" .\" %%%LICENSE_START(VERBATIM) .\" 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. .\" %%%LICENSE_END .\" .\" Modified Thu Oct 31 15:16:23 1996 by Eric S. Raymond .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .\" .\" Japanese Version Copyright (c) 1997 HANATAKA Shinya .\" all rights reserved. .\" Translated Sun Feb 23 16:22:27 JST 1997 .\" by HANATAKA Shinya .\" Updated & Modified Sat Jun 2 18:27:49 JST 2001 .\" by Yuichi SATO .\" Updated & Modified Sat Sep 6 17:05:03 JST 2003 .\" by Yuichi SATO .\" Updated & Modified Fri Dec 31 00:50:01 JST 2004 by Yuichi SATO .\" .TH LLSEEK 2 2012\-07\-13 Linux "Linux Programmer's Manual" .SH 名前 _llseek \- ファイルの読み書きオフセットの位置を変える .SH 書式 .nf \fB#include \fP \fB#include \fP .sp \fBint _llseek(unsigned int \fP\fIfd\fP\fB, unsigned long \fP\fIoffset_high\fP\fB,\fP \fB unsigned long \fP\fIoffset_low\fP\fB, loff_t *\fP\fIresult\fP\fB,\fP \fB unsigned int \fP\fIwhence\fP\fB);\fP .fi \fI注\fP: このシステムコールには glibc のラッパー関数は存在しない。「注意」の節を参照。 .SH 説明 \fB_llseek\fP() 関数は、ファイルディスクリプター (descriptor) \fIfd\fP に関連づけられたオープンされたファイルのオフセットの位置を、相対的に \fI(offset_high<<32) | offset_low\fP バイトだけ変更する。 基準となる位置を表す \fIwhence\fP には \fBSEEK_SET\fP, \fBSEEK_CUR\fP, \fBSEEK_END\fP のいずれかを指定し、それぞれ ファイルの先頭、ファイルの現在位置、 ファイルの最後を表す。 結果のファイル位置を \fIresult\fP 引き数に返す。 .SH 返り値 成功した場合は、 \fB_llseek\fP() は 0 を返す。 そうでなれば \-1 という値が返り、エラーを示す \fIerrno\fP が設定される。 .SH エラー .TP \fBEBADF\fP \fIfd\fP がオープンされたファイルディスクリプターでない。 .TP \fBEFAULT\fP 結果をユーザー空間にコピーするときに問題があった。 .TP \fBEINVAL\fP \fIwhence\fP が不正である。 .SH 準拠 この関数は Linux 特有であり、移植性の必要なプログラムでは使用してはいけない。 .SH 注意 glibc はこのシステムコールに対するラッパー関数を提供していない。 \fBsyscall\fP(2) を使って呼び出すこと。 .SH 関連項目 \fBlseek\fP(2), \fBlseek64\fP(3) .SH この文書について この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.79 の一部 である。プロジェクトの説明とバグ報告に関する情報は http://www.kernel.org/doc/man\-pages/ に書かれている。