.\" -*- 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 Marzo 2016" Linux "Manual del Programador de Linux" .SH NOMBRE acct \- activa/desactiva la contabilidad de procesos .SH SINOPSIS .ad l .nf \fB#include \fP .PP \fBint acct(const char *\fP\fIfilename\fP\fB);\fP .fi .ad b .PP .RS -4 Requisitos de Macros de Prueba de Características para glibc (véase \fBfeature_test_macros\fP(7)): .RE .PP \fBacct\fP(): .nf .\" commit 266865c0e7b79d4196e2cc393693463f03c90bd8 Since glibc 2.21: _DEFAULT_SOURCE In glibc 2.19 and 2.20: _DEFAULT_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE\ <\ 500) Up to and including glibc 2.19: _BSD_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE\ <\ 500) .fi .SH DESCRIPCIÓN 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 "VALOR DEVUELTO" En caso de éxito se devuelve cero. En caso de error se devuelve \-1, y \fIerrno\fP se configura adecuadamente. .SH ERRORES .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 apunta fuera del espacio de direcciones accesible. .TP \fBEIO\fP Error al escribir en el fichero \fIfilename\fP. .TP \fBEISDIR\fP \fIfilename\fP es un directorio. .TP \fBELOOP\fP Demasiados enlaces simbólicos encontrados al resolver \fIfilename\fP. .TP \fBENAMETOOLONG\fP \fIfilename\fP es demasiado largo. .TP \fBENFILE\fP Se ha alcanzado el límite máximo de archivos abiertos para el conjunto del sistema. .TP \fBENOENT\fP The specified file does not exist. .TP \fBENOMEM\fP Sin memoria. .TP \fBENOSYS\fP No se activó la contabilidad BSD de procesos cuando se compiló el núcleo. EL parámetro de configuración del núcleo que controla esta característica es \fBCONFIG_BSD_PROCESS_ACCT\fP. .TP \fBENOTDIR\fP Un componente usado como directorio en \fIfilename\fP no es un directorio. .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 hace referencia a un fichero en un sistema de ficheros de solo\-lectura. .TP \fBEUSERS\fP No hay más estructuras de fichero disponibles o no hay memoria suficiente. .SH "CONFORME A" .\" 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 (pero no a POSIX). .SH NOTAS 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 "VÉASE TAMBIÉN" \fBacct\fP(5) .SH COLOFÓN Esta página es parte de la versión 5.10 del proyecto Linux \fIman\-pages\fP. Puede encontrar una descripción del proyecto, información sobre cómo informar errores y la última versión de esta página en \%https://www.kernel.org/doc/man\-pages/. .PP .SH TRADUCCIÓN La traducción al español de esta página del manual fue creada por Miguel Angel Sepulveda , Nicolás Lichtmaier , Juan Piernas y Miguel Pérez Ibars . .PP Esta traducción es documentación libre; lea la .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3 .UE o posterior con respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD. .PP Si encuentra algún error en la traducción de esta página del manual, envíe un correo electrónico a .MT debian-l10n-spanish@lists.debian.org .ME .