Thu Sep 24 14:17:20 2015 UTC ()
We have libproc now


(christos)
diff -r1.2 -r1.3 src/external/cddl/osnet/include/libproc.h

cvs diff -r1.2 -r1.3 src/external/cddl/osnet/include/libproc.h (expand / switch to unified diff)

--- src/external/cddl/osnet/include/libproc.h 2010/02/21 01:46:34 1.2
+++ src/external/cddl/osnet/include/libproc.h 2015/09/24 14:17:20 1.3
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: libproc.h,v 1.2 2010/02/21 01:46:34 darran Exp $ */ 1/* $NetBSD: libproc.h,v 1.3 2015/09/24 14:17:20 christos Exp $ */
2 2
3/* 3/*
4 * Copyright (C) 2008 John Birrell <jb@freebsd.org> 4 * Copyright (C) 2008 John Birrell <jb@freebsd.org>
5 * All rights reserved. 5 * All rights reserved.
6 *  6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer. 11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright 12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the 13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution. 14 * documentation and/or other materials provided with the distribution.
@@ -44,23 +44,16 @@ @@ -44,23 +44,16 @@
44#define PGRAB_FORCE 0 44#define PGRAB_FORCE 0
45 45
46struct proc_handle; 46struct proc_handle;
47typedef void (*proc_child_func)(void *); 47typedef void (*proc_child_func)(void *);
48 48
49/* Values returned by proc_state(). */ 49/* Values returned by proc_state(). */
50#define PS_IDLE 1 50#define PS_IDLE 1
51#define PS_STOP 2 51#define PS_STOP 2
52#define PS_RUN 3 52#define PS_RUN 3
53#define PS_UNDEAD 4 53#define PS_UNDEAD 4
54#define PS_DEAD 5 54#define PS_DEAD 5
55#define PS_LOST 6 55#define PS_LOST 6
56 56
57 
58typedef struct prmap { 
59 uintptr_t pr_vaddr; /* Virtual address. */ 
60} prmap_t; 
61 
62#if 0 
63#include_next <libproc.h> 57#include_next <libproc.h>
64#endif 
65 58
66#endif 59#endif