Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys/miscfs/procfs



Module Name:    src
Committed By:   jmcneill
Date:           Sun Sep  4 17:32:10 UTC 2011

Modified Files:
        src/sys/miscfs/procfs: procfs.h procfs_linux.c procfs_subr.c
            procfs_vnops.c

Log Message:
PR# kern/45021: Please support /emul/linux/proc/version

Add /proc/version for procfs with -o linux. The version reported depends
on the emulation type of the calling process:

$ cat /proc/version
NetBSD version 5.99.55 (netbsd@localhost) (gcc version 4.1.3 20080704 
prerelease (NetBSD nb2 20081120)) NetBSD 5.99.55 (GENERIC) #39: Sun Sep  4 
09:10:05 EDT 2011

$ /emul/linux/bin/cat /proc/version
Linux version 2.6.18 (linux@localhost) (gcc version 4.1.3 20080704 prerelease 
(NetBSD nb2 20081120)) #0 Wed Mar 3 03:03:03 PST 2010

$ /emul/linux32/bin/cat /proc/version
Linux version 2.6.18 (linux32@localhost) (gcc version 4.1.3 20080704 prerelease 
(NetBSD nb2 20081120)) #0 Wed Mar 3 03:03:03 PST 2010


To generate a diff of this commit:
cvs rdiff -u -r1.65 -r1.66 src/sys/miscfs/procfs/procfs.h
cvs rdiff -u -r1.60 -r1.61 src/sys/miscfs/procfs/procfs_linux.c
cvs rdiff -u -r1.99 -r1.100 src/sys/miscfs/procfs/procfs_subr.c
cvs rdiff -u -r1.181 -r1.182 src/sys/miscfs/procfs/procfs_vnops.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index