Deleted Added
full compact
libprocstat.h (249674) libprocstat.h (249676)
1/*-
2 * Copyright (c) 2009 Stanislav Sedov <stas@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
1/*-
2 * Copyright (c) 2009 Stanislav Sedov <stas@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: head/lib/libprocstat/libprocstat.h 249674 2013-04-20 07:59:44Z trociny $
26 * $FreeBSD: head/lib/libprocstat/libprocstat.h 249676 2013-04-20 08:02:43Z trociny $
27 */
28
29#ifndef _LIBPROCSTAT_H_
30#define _LIBPROCSTAT_H_
31
32/*
33 * Vnode types.
34 */

--- 129 unchanged lines hidden (view full) ---

164int procstat_get_shm_info(struct procstat *procstat, struct filestat *fst,
165 struct shmstat *shm, char *errbuf);
166int procstat_get_socket_info(struct procstat *procstat, struct filestat *fst,
167 struct sockstat *sock, char *errbuf);
168int procstat_get_vnode_info(struct procstat *procstat, struct filestat *fst,
169 struct vnstat *vn, char *errbuf);
170gid_t *procstat_getgroups(struct procstat *procstat, struct kinfo_proc *kp,
171 unsigned int *count);
27 */
28
29#ifndef _LIBPROCSTAT_H_
30#define _LIBPROCSTAT_H_
31
32/*
33 * Vnode types.
34 */

--- 129 unchanged lines hidden (view full) ---

164int procstat_get_shm_info(struct procstat *procstat, struct filestat *fst,
165 struct shmstat *shm, char *errbuf);
166int procstat_get_socket_info(struct procstat *procstat, struct filestat *fst,
167 struct sockstat *sock, char *errbuf);
168int procstat_get_vnode_info(struct procstat *procstat, struct filestat *fst,
169 struct vnstat *vn, char *errbuf);
170gid_t *procstat_getgroups(struct procstat *procstat, struct kinfo_proc *kp,
171 unsigned int *count);
172int procstat_getumask(struct procstat *procstat, struct kinfo_proc *kp,
173 unsigned short* umask);
172int procstat_getpathname(struct procstat *procstat, struct kinfo_proc *kp,
173 char *pathname, size_t maxlen);
174int procstat_getrlimit(struct procstat *procstat, struct kinfo_proc *kp,
175 int which, struct rlimit* rlimit);
174int procstat_getrlimit(struct procstat *procstat, struct kinfo_proc *kp,
175 int which, struct rlimit* rlimit);
176int procstat_getumask(struct procstat *procstat, struct kinfo_proc *kp,
177 unsigned short* umask);
176struct kinfo_vmentry *procstat_getvmmap(struct procstat *procstat,
177 struct kinfo_proc *kp, unsigned int *count);
178struct procstat *procstat_open_core(const char *filename);
179struct procstat *procstat_open_sysctl(void);
180struct procstat *procstat_open_kvm(const char *nlistf, const char *memf);
181__END_DECLS
182
183#endif /* !_LIBPROCSTAT_H_ */
178struct kinfo_vmentry *procstat_getvmmap(struct procstat *procstat,
179 struct kinfo_proc *kp, unsigned int *count);
180struct procstat *procstat_open_core(const char *filename);
181struct procstat *procstat_open_sysctl(void);
182struct procstat *procstat_open_kvm(const char *nlistf, const char *memf);
183__END_DECLS
184
185#endif /* !_LIBPROCSTAT_H_ */