.\" Copyright (C) 1995 Andries Brouwer (aeb@cwi.nl) .\" Written 10 June 1995 by Andries Brouwer .\" and Copyright (C) 2007, 2015, 2020, Michael Kerrisk .\" .\" %%%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 2020\-12\-21 Linux "Linux Programmer's Manual" .SH 名前 _llseek \- ファイルの読み書きオフセットの位置を変える .SH 書式 .nf \fB#include \fP \fB#include \fP .PP \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 .PP \fI注\fP: このシステムコールには glibc のラッパー関数は存在しない。「注意」の節を参照。 .SH 説明 Note: for information about the \fBllseek\fP(3) library function, see \fBlseek64\fP(3). .PP The \fB_llseek\fP() system call repositions the offset of the open file description associated with the file descriptor \fIfd\fP to the value .IP (offset_high << 32) | offset_low .PP This new offset is a byte offset relative to the beginning of the file, the current file offset, or the end of the file, depending on whether \fIwhence\fP is \fBSEEK_SET\fP, \fBSEEK_CUR\fP, or \fBSEEK_END\fP, respectively. .PP The new file offset is returned in the argument \fIresult\fP. The type \fIloff_t\fP is a 64\-bit signed type. .PP This system call exists on various 32\-bit platforms to support seeking to large file offsets. .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 does not provide a wrapper for this system call. To invoke it directly, use \fBsyscall\fP(2). However, you probably want to use the \fBlseek\fP(2) wrapper function instead. .SH 関連項目 \fBlseek\fP(2), \fBopen\fP(2), \fBlseek64\fP(3) .SH この文書について この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 5.10 の一部である。プロジェクトの説明とバグ報告に関する情報は \%https://www.kernel.org/doc/man\-pages/ に書かれている。