Deleted Added
full compact
libprocstat.h (221807) libprocstat.h (224859)
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 221807 2011-05-12 10:11:39Z stas $
26 * $FreeBSD: head/lib/libprocstat/libprocstat.h 224859 2011-08-14 00:42:09Z rwatson $
27 */
28
29#ifndef _LIBPROCSTAT_H_
30#define _LIBPROCSTAT_H_
31
32/*
33 * Vnode types.
34 */

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

83#define PS_FST_FFLAG_SYNC 0x0080
84#define PS_FST_FFLAG_NOFOLLOW 0x0100
85#define PS_FST_FFLAG_CREAT 0x0200
86#define PS_FST_FFLAG_TRUNC 0x0400
87#define PS_FST_FFLAG_EXCL 0x0800
88#define PS_FST_FFLAG_DIRECT 0x1000
89#define PS_FST_FFLAG_EXEC 0x2000
90#define PS_FST_FFLAG_HASLOCK 0x4000
27 */
28
29#ifndef _LIBPROCSTAT_H_
30#define _LIBPROCSTAT_H_
31
32/*
33 * Vnode types.
34 */

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

83#define PS_FST_FFLAG_SYNC 0x0080
84#define PS_FST_FFLAG_NOFOLLOW 0x0100
85#define PS_FST_FFLAG_CREAT 0x0200
86#define PS_FST_FFLAG_TRUNC 0x0400
87#define PS_FST_FFLAG_EXCL 0x0800
88#define PS_FST_FFLAG_DIRECT 0x1000
89#define PS_FST_FFLAG_EXEC 0x2000
90#define PS_FST_FFLAG_HASLOCK 0x4000
91#define PS_FST_FFLAG_CAPABILITY 0x8000
91
92struct procstat;
93struct filestat {
94 int fs_type; /* Descriptor type. */
95 int fs_flags; /* filestat specific flags. */
96 int fs_fflags; /* Descriptor access flags. */
97 int fs_uflags; /* How this file is used. */
98 int fs_fd; /* File descriptor number. */
99 int fs_ref_count; /* Reference count. */
100 off_t fs_offset; /* Seek location. */
101 void *fs_typedep; /* Type dependent data. */
102 char *fs_path;
103 STAILQ_ENTRY(filestat) next;
92
93struct procstat;
94struct filestat {
95 int fs_type; /* Descriptor type. */
96 int fs_flags; /* filestat specific flags. */
97 int fs_fflags; /* Descriptor access flags. */
98 int fs_uflags; /* How this file is used. */
99 int fs_fd; /* File descriptor number. */
100 int fs_ref_count; /* Reference count. */
101 off_t fs_offset; /* Seek location. */
102 void *fs_typedep; /* Type dependent data. */
103 char *fs_path;
104 STAILQ_ENTRY(filestat) next;
105 cap_rights_t fs_cap_rights; /* Capability rights, if flag set. */
104};
105struct vnstat {
106 uint64_t vn_fileid;
107 uint64_t vn_size;
108 char *vn_mntdir;
109 uint32_t vn_dev;
110 uint32_t vn_fsid;
111 int vn_type;

--- 49 unchanged lines hidden ---
106};
107struct vnstat {
108 uint64_t vn_fileid;
109 uint64_t vn_size;
110 char *vn_mntdir;
111 uint32_t vn_dev;
112 uint32_t vn_fsid;
113 int vn_type;

--- 49 unchanged lines hidden ---