.\" -*- coding: UTF-8 -*- .\" Copyright 2001 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 .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH FSEEKO 3 "15 września 2017 r." "" "Podręcznik programisty Linuksa" .SH NAZWA fseeko, ftello \- ustawienie lub odczytanie pozycji pliku .SH SKŁADNIA .nf \fB#include \fP .PP \fBint fseeko(FILE *\fP\fIstream\fP\fB, off_t \fP\fIoffset\fP\fB, int \fP\fIwhence\fP\fB);\fP .PP \fBoff_t ftello(FILE *\fP\fIstream\fP\fB);\fP .fi .PP .RS -4 Wymagane ustawienia makr biblioteki glibc (patrz \fBfeature_test_macros\fP(7)): .RE .PP \fBfseeko\fP(), \fBftello\fP(): .br .RS 4 .ad l _FILE_OFFSET_BITS\ ==\ 64 || _POSIX_C_SOURCE\ >=\ 200112L .br (działa również zdefiniowanie przestarzałego makra _LARGEFILE_SOURCE) .RE .ad .SH OPIS Funkcje \fBfseeko\fP() i \fBftello\fP() są identyczne z odpowiednio \fBfseek\fP(3) i \fBftell\fP(3) (patrz \fBfseek\fP(3)) z tą różnicą, że argument \fIoffset\fP funkcji \fBfseeko\fP() i wartość zwracana przez \fBftello\fP() są typu \fIoff_t\fP zamiast \fIlong\fP. .PP Na niektórych architekturach zarówno \fIoff_t\fP jak i \fIlong\fP są typami 32\-bitowymi, lecz zdefiniowanie \fB_FILE_OFFSET_BITS\fP z wartością 64 (przed dołączeniem \fIjakiegokolwiek\fP pliku nagłówkowego) spowoduje, że \fIoff_t\fP będzie typem 64\-bitowym. .SH "WARTOŚĆ ZWRACANA" Jeśli zakończą się pomyślnie, to \fBfseeko\fP() zwraca 0, a \fBftello\fP() zwraca bieżący offset. W przeciwnym wypadku zwracane jest \-1, a \fIerrno\fP wskazuje na rodzaj błędu. .SH BŁĘDY Patrz rozdział BŁĘDY w \fBfseek\fP(3). .SH WERSJE Funkcje te są dostępne w glibc począwszy od wersji 2.1. .SH ATRYBUTY Informacje o pojęciach używanych w tym rozdziale można znaleźć w podręczniku \fBattributes\fP(7). .TS allbox; lbw18 lb lb l l l. Interfejs Atrybut Wartość T{ \fBfseeko\fP(), \fBftello\fP() T} Bezpieczeństwo wątkowe MT\-Safe .TE .sp 1 .SH "ZGODNE Z" POSIX.1\-2001, POSIX.1\-2008, SUSv2. .SH "ZOBACZ TAKŻE" \fBfseek\fP(3) .SH "O STRONIE" Angielska wersja tej strony pochodzi z wydania 5.10 projektu Linux \fIman\-pages\fP. Opis projektu, informacje dotyczące zgłaszania błędów oraz najnowszą wersję oryginału można znaleźć pod adresem \%https://www.kernel.org/doc/man\-pages/. .SH TŁUMACZENIE Autorami polskiego tłumaczenia niniejszej strony podręcznika są: Andrzej Krzysztofowicz , Robert Luberda i Michał Kułach . Niniejsze tłumaczenie jest wolną dokumentacją. Bliższe informacje o warunkach licencji można uzyskać zapoznając się z .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License w wersji 3 .UE lub nowszej. Nie przyjmuje się ŻADNEJ ODPOWIEDZIALNOŚCI. Błędy w tłumaczeniu strony podręcznika prosimy zgłaszać na adres .MT manpages-pl-list@lists.sourceforge.net .ME .