Module Name: src Committed By: christos Date: Fri Oct 21 02:07:07 UTC 2011
Modified Files: src/sys/sys: proc.h sysctl.h Log Message: add proc_compare prototype. To generate a diff of this commit: cvs rdiff -u -r1.310 -r1.311 src/sys/sys/proc.h cvs rdiff -u -r1.196 -r1.197 src/sys/sys/sysctl.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/sys/proc.h diff -u src/sys/sys/proc.h:1.310 src/sys/sys/proc.h:1.311 --- src/sys/sys/proc.h:1.310 Fri Sep 2 16:10:19 2011 +++ src/sys/sys/proc.h Thu Oct 20 22:07:07 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: proc.h,v 1.310 2011/09/02 20:10:19 christos Exp $ */ +/* $NetBSD: proc.h,v 1.311 2011/10/21 02:07:07 christos Exp $ */ /*- * Copyright (c) 2006, 2007, 2008 The NetBSD Foundation, Inc. @@ -507,6 +507,8 @@ void proc_initspecific(struct proc *); void proc_finispecific(struct proc *); void * proc_getspecific(struct proc *, specificdata_key_t); void proc_setspecific(struct proc *, specificdata_key_t, void *); +int proc_compare(const struct proc *, const struct lwp *, + const struct proc *, const struct lwp *); int proclist_foreach_call(struct proclist *, int (*)(struct proc *, void *arg), void *); Index: src/sys/sys/sysctl.h diff -u src/sys/sys/sysctl.h:1.196 src/sys/sys/sysctl.h:1.197 --- src/sys/sys/sysctl.h:1.196 Wed Oct 12 19:04:22 2011 +++ src/sys/sys/sysctl.h Thu Oct 20 22:07:07 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: sysctl.h,v 1.196 2011/10/12 23:04:22 dholland Exp $ */ +/* $NetBSD: sysctl.h,v 1.197 2011/10/21 02:07:07 christos Exp $ */ /* * Copyright (c) 1989, 1993 @@ -1219,6 +1219,8 @@ int sysctlbyname(const char *, void *, s int sysctlgetmibinfo(const char *, int *, u_int *, char *, size_t *, struct sysctlnode **, int); int sysctlnametomib(const char *, int *, size_t *); +int proc_compare(const struct kinfo_proc2 *, const struct kinfo_lwp *, + const struct kinfo_proc2 *, const struct kinfo_lwp *); __END_DECLS #endif /* !_KERNEL */