.\" Copyright 1993 Rickard E. Faith (faith@cs.unc.edu) .\" Portions extracted from /usr/include/dirent.h are: .\" Copyright 1991, 1992 Free Software Foundation .\" .\" %%%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 © 1993 Rickard E. Faith .\" Copyright © of Polish translation: .\" Andrzej Krzysztofowicz (PTM) , 2001. .\" Robert Luberda , 2014. .\" Michał Kułach , 2014, 2016. .TH GETDIRENTRIES 3 2016\-03\-15 GNU "Podręcznik programisty Linuksa" .SH NAZWA getdirentries \- odczytanie wpisów z katalogu w formacie niezależnym od systemu plików .SH SKŁADNIA \fB#include \fP .sp \fBssize_t getdirentries(int \fP\fIfd\fP\fB, char *\fP\fIbuf\fP\fB, size_t \fP\fInbytes\fP \fB, off_t *\fP\fIbasep\fP\fB);\fP .sp .in -4n Wymagane ustawienia makr biblioteki glibc (patrz \fBfeature_test_macros\fP(7)): .in .sp \fBgetdirentries\fP(): Od glibc 2.19: _DEFAULT_SOURCE Glibc 2.19 i wcześniejsze: _BSD_SOURCE || _SVID_SOURCE .SH OPIS Wczytuje do \fIbuf\fP wpisy z katalogu określonego przez \fIfd\fP. Odczytywanych jest co najwyżej \fInbytes\fP bajtów. Czytanie rozpoczyna się od przesunięcia \fI*basep\fP i \fI*basep\fP jest przesuwane do nowej pozycji po przeczytaniu. .SH "WARTOŚĆ ZWRACANA" \fBgetdirentries\fP() zwraca liczbę przeczytanych bajtów lub zero, gdy próba czytania następuje na końcu katalogu. Gdy wystąpi błąd, zwracane jest \-1 i odpowiednio ustawiane \fIerrno\fP. .SH BŁĘDY Szczegóły znajdują się z kodzie źródłowym biblioteki linuksowej. .SH ATRYBUTY Informacje o pojęciach używanych w tym rozdziale można znaleźć w podręczniku \fBattributes\fP(7). .TS allbox; lb lb lb l l l. Interfejs Atrybut Wartość T{ \fBgetdirentries\fP() T} Bezpieczeństwo wątkowe MT\-Safe .TE .SH "ZGODNE Z" Nie występuje w POSIX.1. Obecna w systemach BSD, Solaris i wielu innych. Należy zamiast niej używać \fBopendir\fP(3) i \fBreaddir\fP(3). .SH "ZOBACZ TAKŻE" \fBlseek\fP(2), \fBopen\fP(2) .SH "O STRONIE" Angielska wersja tej strony pochodzi z wydania 4.07 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 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 4.07 \fPoryginału.