.\" 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. .\" .\"******************************************************************* .\" This file is distributed under the same license as original manpage .\" Copyright of the original manpage: .\" Copyright © 2001 Andries Brouwer .\" Copyright © of Polish translation: .\" Andrzej Krzysztofowicz (PTM) , 2002. .\" Robert Luberda , 2014. .\" Michał Kułach , 2014. .TH FSEEKO 3 2014\-08\-19 "" "Podręcznik programisty Linuksa" .SH NAZWA fseeko, ftello \- ustawienie lub odczytanie pozycji pliku .SH SKŁADNIA .nf \fB#include \fP .sp \fBint fseeko(FILE *\fP\fIstream\fP\fB, off_t \fP\fIoffset\fP\fB, int \fP\fIwhence\fP\fB);\fP .sp \fBoff_t ftello(FILE *\fP\fIstream\fP\fB);\fP .fi .sp .in -4n Wymagane ustawienia makr biblioteki glibc (patrz \fBfeature_test_macros\fP(7)): .in .sp \fBfseeko\fP(), \fBftello\fP(): .br .RS 4 .ad l _FILE_OFFSET_BITS\ ==\ 64 || _POSIX_C_SOURCE\ >=\ 200112L || _XOPEN_SOURCE\ >=\ 600 .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. .LP Na wielu architekturach zarówno \fIoff_t\fP, jak i \fIlong\fP są typami 32\-bitowymi, ale kompilacja z .RS .nf #define _FILE_OFFSET_BITS 64 .fi .RE .PP przełącza \fIoff_t\fP w typ 64\-bitowy. .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 "ZGODNE Z" SUSv2, POSIX.1\-2001. .SH UWAGI Funkcje te są wykorzystywane w systemach pochodnych do System V. .SH "ZOBACZ TAKŻE" \fBfseek\fP(3) .SH "O STRONIE" Angielska wersja tej strony pochodzi z wydania 3.71 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 \%http://www.kernel.org/doc/man\-pages/. .SH TŁUMACZENIE Autorami polskiego tłumaczenia niniejszej strony podręcznika man są: Andrzej Krzysztofowicz (PTM) , Robert Luberda i Michał Kułach . .PP Polskie tłumaczenie jest częścią projektu manpages-pl; uwagi, pomoc, zgłaszanie błędów na stronie http://sourceforge.net/projects/manpages-pl/. Jest zgodne z wersją \fB 3.71 \fPoryginału.