Deleted Added
full compact
fstat.c (233760) fstat.c (235602)
1/*-
2 * Copyright (c) 2009 Stanislav Sedov <stas@FreeBSD.org>
3 * Copyright (c) 1988, 1993
4 * The Regents of the University of California. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28 * SUCH DAMAGE.
29 */
30
31#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2009 Stanislav Sedov <stas@FreeBSD.org>
3 * Copyright (c) 1988, 1993
4 * The Regents of the University of California. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28 * SUCH DAMAGE.
29 */
30
31#include <sys/cdefs.h>
32__FBSDID("$FreeBSD: head/usr.bin/fstat/fstat.c 233760 2012-04-01 18:22:48Z jhb $");
32__FBSDID("$FreeBSD: head/usr.bin/fstat/fstat.c 235602 2012-05-18 10:15:46Z gleb $");
33
34#include <sys/param.h>
35#include <sys/user.h>
36#include <sys/stat.h>
37#include <sys/socket.h>
38#include <sys/socketvar.h>
39#include <sys/sysctl.h>
40#include <sys/queue.h>

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

239 return;
240 error = procstat_get_vnode_info(procstat, fst, &vn, errbuf);
241 if (error != 0)
242 return;
243
244 for (d = devs; d != NULL; d = d->next)
245 if (d->fsid == vn.vn_fsid) {
246 fsmatch = 1;
33
34#include <sys/param.h>
35#include <sys/user.h>
36#include <sys/stat.h>
37#include <sys/socket.h>
38#include <sys/socketvar.h>
39#include <sys/sysctl.h>
40#include <sys/queue.h>

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

239 return;
240 error = procstat_get_vnode_info(procstat, fst, &vn, errbuf);
241 if (error != 0)
242 return;
243
244 for (d = devs; d != NULL; d = d->next)
245 if (d->fsid == vn.vn_fsid) {
246 fsmatch = 1;
247 if ((unsigned)d->ino == vn.vn_fileid) {
247 if (d->ino == vn.vn_fileid) {
248 filename = d->name;
249 break;
250 }
251 }
252 if (fsmatch == 0 || (filename == NULL && fsflg == 0))
253 return;
254 }
255

--- 283 unchanged lines hidden ---
248 filename = d->name;
249 break;
250 }
251 }
252 if (fsmatch == 0 || (filename == NULL && fsflg == 0))
253 return;
254 }
255

--- 283 unchanged lines hidden ---