kern_acct.c (9672) | kern_acct.c (11921) |
---|---|
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.6 1994/10/02 17:35:09 phk Exp $ | 40 * $Id: kern_acct.c,v 1.7 1995/07/23 23:02:20 mpp Exp $ |
41 */ 42 43#include <sys/param.h> 44#include <sys/systm.h> 45#include <sys/proc.h> 46#include <sys/mount.h> 47#include <sys/vnode.h> 48#include <sys/file.h> --- 107 unchanged lines hidden (view full) --- 156 157int 158acct_process(p) 159 struct proc *p; 160{ 161 struct acct acct; 162 struct rusage *r; 163 struct timeval ut, st, tmp; | 41 */ 42 43#include <sys/param.h> 44#include <sys/systm.h> 45#include <sys/proc.h> 46#include <sys/mount.h> 47#include <sys/vnode.h> 48#include <sys/file.h> --- 107 unchanged lines hidden (view full) --- 156 157int 158acct_process(p) 159 struct proc *p; 160{ 161 struct acct acct; 162 struct rusage *r; 163 struct timeval ut, st, tmp; |
164 int s, t; | 164 int t; |
165 struct vnode *vp; 166 167 /* If accounting isn't enabled, don't bother */ 168 vp = acctp; 169 if (vp == NULLVP) 170 return (0); 171 172 /* --- 132 unchanged lines hidden --- | 165 struct vnode *vp; 166 167 /* If accounting isn't enabled, don't bother */ 168 vp = acctp; 169 if (vp == NULLVP) 170 return (0); 171 172 /* --- 132 unchanged lines hidden --- |