Deleted Added
full compact
linprocfs.c (124407) linprocfs.c (125630)
1/*
2 * Copyright (c) 2000 Dag-Erling Co�dan Sm�rgrav
3 * Copyright (c) 1999 Pierre Beyssac
4 * Copyright (c) 1993 Jan-Simon Pendry
5 * Copyright (c) 1993
6 * The Regents of the University of California. All rights reserved.
7 *
8 * This code is derived from software contributed to Berkeley by

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

35 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
36 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
37 * SUCH DAMAGE.
38 *
39 * @(#)procfs_status.c 8.4 (Berkeley) 6/15/94
40 */
41
42#include <sys/cdefs.h>
1/*
2 * Copyright (c) 2000 Dag-Erling Co�dan Sm�rgrav
3 * Copyright (c) 1999 Pierre Beyssac
4 * Copyright (c) 1993 Jan-Simon Pendry
5 * Copyright (c) 1993
6 * The Regents of the University of California. All rights reserved.
7 *
8 * This code is derived from software contributed to Berkeley by

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

35 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
36 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
37 * SUCH DAMAGE.
38 *
39 * @(#)procfs_status.c 8.4 (Berkeley) 6/15/94
40 */
41
42#include <sys/cdefs.h>
43__FBSDID("$FreeBSD: head/sys/compat/linprocfs/linprocfs.c 124407 2004-01-12 03:14:37Z rwatson $");
43__FBSDID("$FreeBSD: head/sys/compat/linprocfs/linprocfs.c 125630 2004-02-09 20:33:42Z des $");
44
45#include <sys/param.h>
46#include <sys/queue.h>
47#include <sys/blist.h>
48#include <sys/conf.h>
49#include <sys/exec.h>
50#include <sys/filedesc.h>
51#include <sys/jail.h>

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

356 lep = linux_emul_path;
357 else
358 lep = dlep;
359 lep_len = strlen(lep);
360
361 mtx_lock(&mountlist_mtx);
362 error = 0;
363 TAILQ_FOREACH(mp, &mountlist, mnt_list) {
44
45#include <sys/param.h>
46#include <sys/queue.h>
47#include <sys/blist.h>
48#include <sys/conf.h>
49#include <sys/exec.h>
50#include <sys/filedesc.h>
51#include <sys/jail.h>

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

356 lep = linux_emul_path;
357 else
358 lep = dlep;
359 lep_len = strlen(lep);
360
361 mtx_lock(&mountlist_mtx);
362 error = 0;
363 TAILQ_FOREACH(mp, &mountlist, mnt_list) {
364 error = VFS_STATFS(mp, &mp->mnt_stat, td);
365 if (error)
366 break;
367
368 /* determine device name */
369 mntfrom = mp->mnt_stat.f_mntfromname;
370
371 /* determine mount point */
372 mntto = mp->mnt_stat.f_mntonname;
373 if (strncmp(mntto, lep, lep_len) == 0 &&
374 mntto[lep_len] == '/')
375 mntto += lep_len;

--- 695 unchanged lines hidden ---
364 /* determine device name */
365 mntfrom = mp->mnt_stat.f_mntfromname;
366
367 /* determine mount point */
368 mntto = mp->mnt_stat.f_mntonname;
369 if (strncmp(mntto, lep, lep_len) == 0 &&
370 mntto[lep_len] == '/')
371 mntto += lep_len;

--- 695 unchanged lines hidden ---