freebsd-dev/sys/compat
Ed Schouten ec492b4973 Make /proc/self/fd `work'.
On Linux, /proc/<pid>/fd is comparable to fdescfs, where it allows you
to inspect the file descriptors used by each process. Glibc's ttyname()
works by performing a readlink() on these nodes, since all nodes in this
directory are symlinks.

It is a bit hard to implement this in linprocfs right now, so I am not
going to bother. Add a way to make ttyname(3) work, by adding a
/proc/<pid>/fd symlink, which points to /dev/fd only if the calling
process matches. When fdescfs is mounted, this will cause the
readlink() in ttyname() to fail, causing it to fall back on manually
finding a matching node in /dev.

Discussed on:	emulation@
2010-03-07 10:43:45 +00:00
..
freebsd32 Remove unused LIBCOMPAT keyword from syscalls.master. 2010-02-08 10:02:01 +00:00
ia32 Make sure that the primary native brandinfo always gets added 2009-10-03 11:57:21 +00:00
linprocfs Make /proc/self/fd `work'. 2010-03-07 10:43:45 +00:00
linsysfs Add a pn_destroy field to pfs_node. This field points to a destructor 2007-03-12 12:16:52 +00:00
linux The NetBSD Foundation has granted permission to remove clause 3 and 4 from 2010-03-01 17:20:04 +00:00
ndis Revert a functional change that snuck in. 2009-11-02 19:13:12 +00:00
netbsd Start each of the license/copyright comments with /*- 2005-01-05 22:34:37 +00:00
svr4 Remove unused LIBCOMPAT keyword from syscalls.master. 2010-02-08 10:02:01 +00:00
x86bios Add two new debugging tunables for x86bios instead of abusing bootverbose, 2009-12-15 22:44:28 +00:00