kern_acct.c (11921) | kern_acct.c (12221) |
---|---|
1/*- 2 * Copyright (c) 1994 Christopher G. Demetriou 3 * Copyright (c) 1982, 1986, 1989, 1993 4 * The Regents of the University of California. All rights reserved. 5 * (c) UNIX System Laboratories, Inc. 6 * All or some portions of this file are derived from material licensed 7 * to the University of California by American Telephone and Telegraph 8 * Co. or Unix System Laboratories, Inc. and are reproduced herein with --- 23 unchanged lines hidden (view full) --- 32 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 33 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 34 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 35 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 36 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 37 * SUCH DAMAGE. 38 * 39 * @(#)kern_acct.c 8.1 (Berkeley) 6/14/93 | 1/*- 2 * Copyright (c) 1994 Christopher G. Demetriou 3 * Copyright (c) 1982, 1986, 1989, 1993 4 * The Regents of the University of California. All rights reserved. 5 * (c) UNIX System Laboratories, Inc. 6 * All or some portions of this file are derived from material licensed 7 * to the University of California by American Telephone and Telegraph 8 * Co. or Unix System Laboratories, Inc. and are reproduced herein with --- 23 unchanged lines hidden (view full) --- 32 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 33 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 34 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 35 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 36 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 37 * SUCH DAMAGE. 38 * 39 * @(#)kern_acct.c 8.1 (Berkeley) 6/14/93 |
40 * $Id: kern_acct.c,v 1.7 1995/07/23 23:02:20 mpp Exp $ | 40 * $Id: kern_acct.c,v 1.8 1995/10/29 15:30:56 phk Exp $ |
41 */ 42 43#include <sys/param.h> 44#include <sys/systm.h> | 41 */ 42 43#include <sys/param.h> 44#include <sys/systm.h> |
45#include <sys/sysproto.h> |
|
45#include <sys/proc.h> 46#include <sys/mount.h> 47#include <sys/vnode.h> 48#include <sys/file.h> 49#include <sys/syslog.h> 50#include <sys/kernel.h> 51#include <sys/namei.h> 52#include <sys/errno.h> --- 33 unchanged lines hidden (view full) --- 86int acctsuspend = 2; /* stop accounting when < 2% free space left */ 87int acctresume = 4; /* resume when free space risen to > 4% */ 88int acctchkfreq = 15; /* frequency (in seconds) to check space */ 89 90/* 91 * Accounting system call. Written based on the specification and 92 * previous implementation done by Mark Tinguely. 93 */ | 46#include <sys/proc.h> 47#include <sys/mount.h> 48#include <sys/vnode.h> 49#include <sys/file.h> 50#include <sys/syslog.h> 51#include <sys/kernel.h> 52#include <sys/namei.h> 53#include <sys/errno.h> --- 33 unchanged lines hidden (view full) --- 87int acctsuspend = 2; /* stop accounting when < 2% free space left */ 88int acctresume = 4; /* resume when free space risen to > 4% */ 89int acctchkfreq = 15; /* frequency (in seconds) to check space */ 90 91/* 92 * Accounting system call. Written based on the specification and 93 * previous implementation done by Mark Tinguely. 94 */ |
95#ifndef _SYS_SYSPROTO_H_ |
|
94struct acct_args { 95 char *path; 96}; 97 | 96struct acct_args { 97 char *path; 98}; 99 |
100#endif |
|
98int 99acct(p, uap, retval) 100 struct proc *p; 101 struct acct_args *uap; 102 int *retval; 103{ 104 struct nameidata nd; 105 int error; --- 199 unchanged lines hidden --- | 101int 102acct(p, uap, retval) 103 struct proc *p; 104 struct acct_args *uap; 105 int *retval; 106{ 107 struct nameidata nd; 108 int error; --- 199 unchanged lines hidden --- |