OSDN Git Service

(split) LDP: draft snapshot generated from latest ja.po files.
[linuxjm/LDP_man-pages.git] / draft / 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 .\"*******************************************************************
27 .\"
28 .\" This file was generated with po4a. Translate the source file.
29 .\"
30 .\"*******************************************************************
31 .TH LLSEEK 2 2007\-06\-01 Linux "Linux Programmer's Manual"
32 .SH 名前
33 _llseek \- ファイルの読み書きオフセットの位置を変える
34 .SH 書式
35 .nf
36 \fB#include <sys/types.h>\fP
37 \fB#include <unistd.h>\fP
38 .sp
39 \fBint _llseek(unsigned int \fP\fIfd\fP\fB, unsigned long \fP\fIoffset_high\fP\fB,\fP
40 \fB            unsigned long \fP\fIoffset_low\fP\fB, loff_t *\fP\fIresult\fP\fB,\fP
41 \fB            unsigned int \fP\fIwhence\fP\fB);\fP
42 .fi
43 .SH 説明
44 \fB_llseek\fP()  関数は、ファイル・ディスクリプター (descriptor)  \fIfd\fP
45 に関連づけられたオープンされたファイルのオフセットの位置を、相対的に \fI(offset_high<<32) | offset_low\fP
46 バイトだけ変更する。 基準となる位置を表す \fIwhence\fP には \fBSEEK_SET\fP, \fBSEEK_CUR\fP, \fBSEEK_END\fP
47 のいずれかを指定し、それぞれ ファイルの先頭、ファイルの現在位置、 ファイルの最後を表す。 結果のファイル位置を \fIresult\fP 引き数に返す。
48 .SH 返り値
49 成功した場合は、 \fB_llseek\fP()  は 0 を返す。 そうでなれば \-1 という値が返り、エラーを示す \fIerrno\fP が設定される。
50 .SH エラー
51 .TP 
52 \fBEBADF\fP
53 \fIfd\fP がオープンされたファイルディスクリプタでない。
54 .TP 
55 \fBEFAULT\fP
56 結果をユーザ空間にコピーするときに問題があった。
57 .TP 
58 \fBEINVAL\fP
59 \fIwhence\fP が不正である。
60 .SH 準拠
61 この関数は Linux 特有であり、移植性の必要なプログラムでは使用してはいけない。
62 .SH 注意
63 glibc はこのシステムコールに対するラッパー関数を提供していない。 \fBsyscall\fP(2)  を使って呼び出すこと。
64 .SH 関連項目
65 \fBlseek\fP(2), \fBlseek64\fP(3)