Provided by: manpages-es-dev_4.27.0-1_all bug

NOMBRE

       acct - activa/desactiva la contabilidad de procesos

BIBLIOTECA

       Biblioteca Estándar C (libc, -lc)

SINOPSIS

       #include <unistd.h>

       int acct(const char *_Nullable filename);

   Requisitos de Macros de Prueba de Características para glibc (véase feature_test_macros(7)):

       acct():
           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)

DESCRIPCIÓN

       The  acct()   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
       filename as it terminates.  An argument of NULL causes accounting to be turned off.

VALOR DEVUELTO

       En  caso de éxito se devuelve cero. En caso de error se devuelve -1, y errno se configura para indicar el
       error.

ERRORES

       EACCES Write permission is denied for the specified file, or search permission is denied for one  of  the
              directories  in  the  path  prefix of filename (see also path_resolution(7)), or filename is not a
              regular file.

       EFAULT filename apunta fuera del espacio de direcciones accesible.

       EIO    Error al escribir en el fichero filename.

       EISDIR filename es un directorio.

       ELOOP  Demasiados enlaces simbólicos encontrados al resolver filename.

       ENAMETOOLONG
              filename es demasiado largo.

       ENFILE Se ha alcanzado el límite máximo de archivos abiertos para el conjunto del sistema.

       ENOENT The specified file does not exist.

       ENOMEM Sin memoria.

       ENOSYS 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 CONFIG_BSD_PROCESS_ACCT.

       ENOTDIR
              Un componente usado como directorio en filename no es un directorio.

       EPERM  The  calling  process  has  insufficient  privilege  to  enable process accounting.  On Linux, the
              CAP_SYS_PACCT capability is required.

       EROFS  filename hace referencia a un fichero en un sistema de ficheros de solo-lectura.

       EUSERS No hay más estructuras de fichero disponibles o no hay memoria suficiente.

ESTÁNDARES

       None.

HISTORIAL

       SVr4, 4.3BSD.

NOTAS

       No accounting is produced for programs running when a system crash occurs.  In particular, nonterminating
       processes are never accounted for.

       The structure of the records written to the accounting file is described in acct(5).

VÉASE TAMBIÉN

       acct(5)

TRADUCCIÓN

       La  traducción  al  español  de  esta  página  del  manual  fue  creada  por   Miguel   Angel   Sepulveda
       <angel@vivaldi.princeton.edu>, Nicolás Lichtmaier <nick@debian.org>, Juan Piernas <piernas@ditec.um.es> y
       Miguel Pérez Ibars <mpi79470@alu.um.es>

       Esta  traducción  es  documentación  libre;  lea  la GNU General Public License Version 3 o posterior con
       respecto a las condiciones de copyright.  No existe NINGUNA RESPONSABILIDAD.

       Si encuentra algún error en la traducción de esta página  del  manual,  envíe  un  correo  electrónico  a
       debian-l10n-spanish@lists.debian.org.

Páginas de Manual de Linux 6.9.1                   2 Mayo 2024                                           acct(2)