.\" -*- coding: UTF-8 -*- .\" Copyright (c) 1993 Michael Haardt .\" (michael@moria.de), .\" Fri Apr 2 11:32:09 MET DST 1993 .\" .\" SPDX-License-Identifier: GPL-2.0-or-later .\" .\" 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 "30 Marzo 2023" "Páginas de manual de Linux 6.05.01" .SH NOMBRE acct \- activa/desactiva la contabilidad de procesos .SH BIBLIOTECA Biblioteca Estándar C (\fIlibc\fP, \fI\-lc\fP) .SH SINOPSIS .nf \fB#include \fP .PP \fBint acct(const char *_Nullable \fP\fIfilename\fP\fB);\fP .fi .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 para indicar el error. .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 ESTÁNDARES None. .SH HISTORIAL .\" 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. .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) .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 .