.\" -*- coding: UTF-8 -*- .\" Copyright (C) 1995, Thomas K. Dyas .\" .\" %%%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 .\" .\" Created Wed Aug 9 1995 Thomas K. Dyas .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH SYSFS 2 "9 czerwca 2020 r." Linux "Podręcznik programisty Linuksa" .SH NAZWA sysfs \- pobranie informacji o rodzaju systemu plików .SH SKŁADNIA \fBint sysfs(int \fP\fIoption\fP\fB, const char *\fP\fIfsname\fP\fB);\fP .PP \fBint sysfs(int \fP\fIoption\fP\fB, unsigned int \fP\fIfs_index\fP\fB, char *\fP\fIbuf\fP\fB);\fP .PP \fBint sysfs(int \fP\fIoption\fP\fB);\fP .SH OPIS \fBNote\fP: if you are looking for information about the \fBsysfs\fP filesystem that is normally mounted at \fI/sys\fP, see \fBsysfs\fP(5). .PP The (obsolete) \fBsysfs\fP() system call returns information about the filesystem types currently present in the kernel. The specific form of the \fBsysfs\fP() call and the information returned depends on the \fIoption\fP in effect: .TP 3 \fB1\fP Tłumaczy łańcuch znakowy \fIfsname\fP, identyfikujący system plików, na indeks typu systemu plików. .TP \fB2\fP Tłumaczy indeks typu systemu plików \fIfs_index\fP na zakończony znakiem NUL łańcuch znakowy identyfikujący system plików. Łańcuch ten zostanie zapisany do bufora \fIbuf\fP. Należy się upewnić, że w \fIbuf\fP jest dość miejsca na przyjęcie łańcucha. .TP \fB3\fP Zwraca ogólną liczbę rodzajów systemów plików aktualnie obecnych w jądrze. .PP Numerowanie rodzajów systemów plików rozpoczyna się od zera. .SH "WARTOŚĆ ZWRACANA" Po pomyślnym zakończeniu \fBsysfs\fP() zwraca dla opcji \fB1\fP indeks systemu plików, dla opcji \fB2\fP zero, a dla opcji \fB3\fP liczbę aktualnie skonfigurowanych systemów plików. W przypadku błędu, zwracane jest \-1 i odpowiednio ustawiane \fIerrno\fP. .SH BŁĘDY .TP \fBEFAULT\fP \fIfsname\fP albo \fIbuf\fP jest poza dostępną dla użytkownika przestrzenią adresową. .TP \fBEINVAL\fP \fIfsname\fP nie jest prawidłowym identyfikatorem systemu plików; \fIfs_index\fP jest poza granicami; \fIoption\fP jest nieprawidłowe. .SH "ZGODNE Z" SVr4. .SH UWAGI This System\-V derived system call is obsolete; don't use it. On systems with \fI/proc\fP, the same information can be obtained via \fI/proc\fP; use that interface instead. .SH BŁĘDY Nie ma wsparcia w libc ani w glibc. Nie ma metody umożliwiającej zgadnięcie, jaki duży powinien być bufor\fIbuf\fP. .SH "ZOBACZ TAKŻE" \fBproc\fP(5), \fBsysfs\fP(5) .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ą: Przemek Borys i Andrzej Krzysztofowicz . 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 .