cd9660.c (221807) | cd9660.c (235602) |
---|---|
1/* 2 * Copyright (c) 2000 Peter Edwards 3 * Copyright (c) 1988, 1993 4 * The Regents of the University of California. All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by Peter Edwards 7 * 8 * Redistribution and use in source and binary forms, with or without --- 27 unchanged lines hidden (view full) --- 36 37/* 38 * XXX - 39 * This had to be separated from fstat.c because cd9660s has namespace 40 * conflicts with UFS. 41 */ 42 43#include <sys/cdefs.h> | 1/* 2 * Copyright (c) 2000 Peter Edwards 3 * Copyright (c) 1988, 1993 4 * The Regents of the University of California. All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by Peter Edwards 7 * 8 * Redistribution and use in source and binary forms, with or without --- 27 unchanged lines hidden (view full) --- 36 37/* 38 * XXX - 39 * This had to be separated from fstat.c because cd9660s has namespace 40 * conflicts with UFS. 41 */ 42 43#include <sys/cdefs.h> |
44__FBSDID("$FreeBSD: head/lib/libprocstat/cd9660.c 221807 2011-05-12 10:11:39Z stas $"); | 44__FBSDID("$FreeBSD: head/lib/libprocstat/cd9660.c 235602 2012-05-18 10:15:46Z gleb $"); |
45 46#include <sys/param.h> 47#include <sys/stat.h> 48#include <sys/time.h> 49#include <sys/vnode.h> 50#include <sys/mount.h> 51 52#include <netinet/in.h> --- 26 unchanged lines hidden (view full) --- 79 if (!kvm_read_all(kd, (unsigned long)isonode.i_mnt, &mnt, 80 sizeof(mnt))) { 81 warnx("can't read iso_mnt at %p", 82 (void *)VTOI(vp)); 83 return (1); 84 } 85 vn->vn_fsid = dev2udev(kd, mnt.im_dev); 86 vn->vn_mode = (mode_t)isonode.inode.iso_mode; | 45 46#include <sys/param.h> 47#include <sys/stat.h> 48#include <sys/time.h> 49#include <sys/vnode.h> 50#include <sys/mount.h> 51 52#include <netinet/in.h> --- 26 unchanged lines hidden (view full) --- 79 if (!kvm_read_all(kd, (unsigned long)isonode.i_mnt, &mnt, 80 sizeof(mnt))) { 81 warnx("can't read iso_mnt at %p", 82 (void *)VTOI(vp)); 83 return (1); 84 } 85 vn->vn_fsid = dev2udev(kd, mnt.im_dev); 86 vn->vn_mode = (mode_t)isonode.inode.iso_mode; |
87 vn->vn_fileid = (long)isonode.i_number; 88 vn->vn_size = (u_long)isonode.i_size; | 87 vn->vn_fileid = isonode.i_number; 88 vn->vn_size = isonode.i_size; |
89 return (0); 90} | 89 return (0); 90} |