.\" -*- coding: UTF-8 -*- .\" 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. .\" .\"******************************************************************* .TH LLSEEK 2 "21 декабря 2020 г." Linux "Руководство программиста Linux" .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 Данный системный вызов существует на различных 32\-битных платформах для поддержки перемещения по большим файловым смещениям. .SH "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ" В случае успеха \fB_llseek\fP() возвращает ноль. При ошибке возвращается \-1, а \fIerrno\fP устанавливается таким образом, чтобы указывать на ошибку. .SH ОШИБКИ .TP \fBEBADF\fP \fIfd\fP не является открытым файловым дескриптором. .TP \fBEFAULT\fP Проблема с копированием результатов в пространство пользователя. .TP \fBEINVAL\fP Значение \fIwhence\fP неверно. .SH "СООТВЕТСТВИЕ СТАНДАРТАМ" Данная функция есть только в Linux и не должна использоваться в программах, которые задуманы как переносимые. .SH ЗАМЕЧАНИЯ В glibc нет обёрточной функции для данного системного вызова. Вы можете вызвать его с помощью \fBsyscall\fP(2). Но лучше воспользоваться обёрточной функцией \fBlseek\fP(2). .SH "СМ. ТАКЖЕ" \fBlseek\fP(2), \fBopen\fP(2), \fBlseek64\fP(3) .SH ЗАМЕЧАНИЯ Эта страница является частью проекта Linux \fIman\-pages\fP версии 5.10. Описание проекта, информацию об ошибках и последнюю версию этой страницы можно найти по адресу \%https://www.kernel.org/doc/man\-pages/. .PP .SH ПЕРЕВОД Русский перевод этой страницы руководства был сделан Artyom Kunyov , Azamat Hackimov , Dmitry Bolkhovskikh , Katrin Kutepova , Konstantin Shvaykovskiy , Yuri Kozlov и Иван Павлов . .PP Этот перевод является бесплатной документацией; прочитайте .UR https://www.gnu.org/licenses/gpl-3.0.html Стандартную общественную лицензию GNU версии 3 .UE или более позднюю, чтобы узнать об условиях авторского права. Мы не несем НИКАКОЙ ОТВЕТСТВЕННОСТИ. .PP Если вы обнаружите ошибки в переводе этой страницы руководства, пожалуйста, отправьте электронное письмо на .MT man-pages-ru-talks@lists.sourceforge.net .ME .