.\" -*- coding: UTF-8 -*- .\" Copyright (c) 1993 Michael Haardt .\" (michael@moria.de), .\" Fri Apr 2 11:32:09 MET DST 1993 .\" .\" %%%LICENSE_START(GPLv2+_DOC_FULL) .\" This is free documentation; you can redistribute it and/or .\" modify it under the terms of the GNU General Public License as .\" published by the Free Software Foundation; either version 2 of .\" the License, or (at your option) any later version. .\" .\" The GNU General Public License's references to "object code" .\" and "executables" are to be interpreted as the output of any .\" document formatting or typesetting system, including .\" intermediate and printed output. .\" .\" This manual is distributed in the hope that it will be useful, .\" but WITHOUT ANY WARRANTY; without even the implied warranty of .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the .\" GNU General Public License for more details. .\" .\" You should have received a copy of the GNU General Public .\" License along with this manual; if not, see .\" . .\" %%%LICENSE_END .\" .\" Modified 1993-07-22 by Rik Faith .\" Modified 1993-08-10 by Alan Cox .\" Modified 1998-11-04 by Tigran Aivazian .\" Modified 2004-05-27, 2004-06-17, 2004-06-23 by Michael Kerrisk .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH ACCT 2 "15 marca 2016 r." Linux "Podręcznik programisty Linuksa" .SH NAZWA acct \- włączenie/wyłączenie ewidencjonowania procesów .SH SKŁADNIA .ad l .nf \fB#include \fP .PP \fBint acct(const char *\fP\fIfilename\fP\fB);\fP .fi .ad b .PP .in -4n Wymagane ustawienia makr biblioteki glibc (patrz \fBfeature_test_macros\fP(7)): .in .PP \fBacct\fP(): .nf .\" commit 266865c0e7b79d4196e2cc393693463f03c90bd8 Od glibc 2.21: _DEFAULT_SOURCE W glibc 2.19 i 2.20: _DEFAULT_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE\ <\ 500) Do glibc 2.19 włącznie: _BSD_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE\ <\ 500) .fi .SH OPIS The \fBacct\fP() system call enables or disables process accounting. If called with the name of an existing file as its argument, accounting is turned on, and records for each terminating process are appended to \fIfilename\fP as it terminates. An argument of NULL causes accounting to be turned off. .SH "WARTOŚĆ ZWRACANA" Po pomyślnym zakończeniu zwracane jest zero. Po błędzie zwracane jest \-1 i odpowiednio ustawiane jest \fIerrno\fP. .SH BŁĘDY .TP \fBEACCES\fP Write permission is denied for the specified file, or search permission is denied for one of the directories in the path prefix of \fIfilename\fP (see also \fBpath_resolution\fP(7)), or \fIfilename\fP is not a regular file. .TP \fBEFAULT\fP \fIfilename\fP wskazuje poza dostępną dla użytkownika przestrzeń adresową. .TP \fBEIO\fP Błąd zapisu do pliku \fIfilename\fP. .TP \fBEISDIR\fP \fIfilename\fP jest katalogiem. .TP \fBELOOP\fP Podczas rozwiązywania \fIfilename\fP napotkano zbyt wiele dowiązań symbolicznych. .TP \fBENAMETOOLONG\fP Nazwa \fIfilename\fP jest za długa. .TP \fBENFILE\fP Zostało osiągnięte systemowe ograniczenie na całkowitą liczbę otwartych plików. .TP \fBENOENT\fP The specified file does not exist. .TP \fBENOMEM\fP Brak pamięci. .TP \fBENOSYS\fP Rozlicznie procesów nie zostało włączone w czasie kompilacji jądra systemu. Odpowiednim parametrem jądra ustawiającym tę opcję jest \fBCONFIG_BSD_PROCESS_ACCT\fP. .TP \fBENOTDIR\fP Składnik \fIfilename\fP, który powinien być katalogiem, w rzeczywistości nim nie jest. .TP \fBEPERM\fP The calling process has insufficient privilege to enable process accounting. On Linux, the \fBCAP_SYS_PACCT\fP capability is required. .TP \fBEROFS\fP \fIfilename\fP refers to a file on a read\-only filesystem. .TP \fBEUSERS\fP Brak wolnych struktur plikowych w jądrze lub brak pamięci. .SH "ZGODNE Z" .\" SVr4 documents an EBUSY error condition, but no EISDIR or ENOSYS. .\" Also AIX and HP-UX document EBUSY (attempt is made .\" to enable accounting when it is already enabled), as does Solaris .\" (attempt is made to enable accounting using the same file that is .\" currently being used). SVr4, 4.3BSD (but not POSIX). .SH UWAGI No accounting is produced for programs running when a system crash occurs. In particular, nonterminating processes are never accounted for. .PP The structure of the records written to the accounting file is described in \fBacct\fP(5). .SH "ZOBACZ TAKŻE" \fBacct\fP(5) .SH "O STRONIE" Angielska wersja tej strony pochodzi z wydania 5.04 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 . 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 .