Why FreeBSD procfs is so different from the Linux one?

Josh Paetzel josh at tcbug.org
Wed Oct 17 13:53:56 PDT 2007


Jonathan Chen wrote:
> On Wed, Oct 17, 2007 at 02:24:49AM -0700, Yuri wrote:
> > Hi,
> > 
> > When I look at /proc/PID/ in FreeBSD I see the files:
> > cmdline ctl     dbregs  etype   file    fpregs  map     mem     note    notepg 
> > regs    rlimit  status
> > and in Linux:
> > cmdline  cpu  cwd  environ  exe  fd  maps  mem  mounts  root  stat  statm  status
> > 
> > Why there's such a difference in procfs interface to the process information?
> > 
> > In addition Linux has /proc/self/ link which is named curproc in FreeBSD.
> > 
> > Isn't it better to have the same interface across the systems?
> 
> Maybe. Why don't you get the Linux guys to change theirs? FreeBSD has
> been around longer.

Well, technically no.  BSD predates linux, but linux predates FreeBSD
by a few years.  In general though, linux is a reimplimentation and
they've had a habit of changing things in the process, but for any
given interface it's not generally accurate to say linux is the
reimplimentation....sometimes they are, sometimes they aren't.

-- 
Thanks,

Josh Paetzel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20071017/9d4d54d3/attachment.pgp


More information about the freebsd-questions mailing list