.\" Hey Emacs! This file is -*- nroff -*- source. .\" .\" 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 .\" .\" $Id: acct.2,v 1.1 2003/04/28 18:43:34 bokkie Exp $ .\" .TH ACCT 2 "4 November 1998" "Linux 2.1.126" "Linux Programmeurs Handleiding" .SH NAAM acct \- zet proces accounting aan of uit .SH OVERZICHT .ad l .nf .B #include .sp .BI "int acct(const char *" bestandnaam ); .fi .ad b .SH BESCHRIJVING Accounting wordt aangezet als \fBacct\fP aangeroepen wordt met de naam van een bestaand bestand als argument. Voor elk proces wordt dan bij beëindigen een notering aan het einde van \fIbestandnaam\fP toegevoegd. Een \fBNULL\fP argument zorgt dat accounting uitgezet wordt. .SH "EIND WAARDE" Bij succes wordt nul teruggegeven. Bij falen wordt \-1 teruggegeven en wordt .I errno naar behoren gezet. .SH FOUTEN .TP .B ENOSYS {geen systeem} BSD proces accounting werd niet mogelijk gemaakt toen de kernel gecompileerd werd. De kernel configuratie vlag die dit bepaald is CONFIG_BSD_PROCESS_ACCT. .TP .B ENOMEM {geen geheugen} Geen geheugen meer. .TP .B EPERM {toestemming} Het aanroepende proces heeft geen toestemming om proces accounting aan te zetten. .TP .B EACCESS {toegang} Het argument .I bestandnaam is geen normaal bestand. .TP .B EIO {in/uit} Fout bij het schrijven naar het bestand .IR bestand . .TP .B EUSERS {gebruikers} Er zijn geen vrije bestandstructuren of het geheugen is op. .SH "VOLDOET AAN" SVr4 (maar niet POSIX). SVr4 beschrijft EACCES, EBUSY, EFAULT, ELOOP, ENAMETOOLONG, ENOTDIR, ENOENT, EPERM en EROFS foutcondities, maar geen ENOSYS. .SH OPMERKINGEN Geen accountingnoteringen worden gemaakt voor programma's die draaien als er een ongeluk {eng: crash} optreedt. In het bijzonder: voor nieteindigende programma's worden nooit noteringen gemaakt. .\" Translated Sat Nov 11 10:55:42 CET 2000 by JosBoersema .\" .SH VERTALING Dit is een handleiding uit \fBmanpages-dev 1.29\fR. Alles wat tussen `\fB{\fR'..`\fB}\fR' staat is \fBaanvullende vertaling\fR, en hoort \fBniet\fR bij de originele handleiding. Email naar . .\"Vertaling Jos Boersema $Id: acct.2,v 1.1 2003/04/28 18:43:34 bokkie Exp $