.\" -*- nroff -*- .\" .\" Copyright (c) 1993 Michael Haardt .\" (michael@moria.de), .\" Fri Apr 2 11:32:09 MET DST 1993 .\" .\" 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, write to the Free .\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, .\" USA. .\" .\" Modified Thu Jul 22 14:00:08 1993 by Rik Faith .\" Modified Tue Aug 10 1993 by Alan Cox .\" Modified Wed Nov 4 1998 by Tigran Aivazian .\" .TH ACCT 2 "04/11/1998" "Linux 2.1.126" "Manual do Programador Linux" .SH NOME acct \- alterna o processo de contabilidade para ligado ou desligado .SH SINÓPSE .ad l .nf .B #include .sp .BI "int acct(const char *" arquivo ); .fi .ad b .SH DESCRIÇÃO Quando chamado com o nome de arquivo como argumento, a contabilidade é ativada, registros para cada processo encerrando é anexado no \fIaruivo\fP a medida que ele termina. Um argumento \fBNULO\fP faz a contabilidade ser desativada. .SH "VALORES RETORNADOS" Em caso de sucesso, zero é retornado. Caso contrário, \-1 é retornado, e .I errno é selecionado adequadamente. .SH ERROS .TP .B ENOSYS O processo de contabilidade do BSD não está habilitado quando o kernel do sistema operacional foi compilado. O parâmetro de configuração que controla esta característica é CONFIG_BSD_PROCESS_ACCT. .TP .B ENOMEM Sem memória. .TP .B EPERM O processo solicitante não tem permissão para habilitar o processo de contabilidade. .TP .B EACCESS O argumento .I arquivo não é um arquivo regular. .TP .B EIO Erro ao escrever para o .IR arquivo . .TP .B EUSERS Não há mais estruturas de arquivos livres ou nós executamos fora da memória. .SH "DE ACORDO COM" SVr4 (mas não POSIX). SVr4 documenta as condições de erro EACCES, EBUSY, EFAULT, ELOOP, ENAMETOOLONG, ENOTDIR, ENOENT, EPERM e EROFS, mas não ENOSYS. .SH NOTAS Nenhuma contabilização é produzida quando um falha ocorre. Em particular processos que não são finalizados nunca são contabilizados. .SH TRADUZIDO POR LDP-BR em 21/08/2000 \&\fR\&\f(CWAndré L. Fassone Canova (tradução)\fR \&\fR\&\f(CWFábio Henrique F. Silva (revisão)\fR