freebsd-skq/sys
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
..
amd64 The NetBSD Foundation has granted permission to remove clause 3 and 4 from 2010-03-03 17:55:51 +00:00
arm Provide correct TCLK value for Kirkwood A1 silicon revision. 2010-03-05 19:45:45 +00:00
boot Add bwn(4) driver. 2010-02-25 19:47:47 +00:00
bsm Add audit events for process descriptor system calls, which will appear in 2009-09-29 21:25:59 +00:00
cam Make PUIS detection more strict. Previous implementation caused false 2010-02-26 10:42:46 +00:00
cddl Remove racy assertion. 2010-03-06 20:03:26 +00:00
compat Make /proc/self/fd `work'. 2010-03-07 10:43:45 +00:00
conf Look for "compile" to decide if this is run as part of the kernel build. 2010-03-07 10:08:00 +00:00
contrib Merge ACPICA 20100304. 2010-03-05 21:39:16 +00:00
crypto
ddb Add a space before printing 'thread pid ...' to match the space before 2010-02-12 19:52:51 +00:00
dev Merge ACPICA 20100304. 2010-03-05 21:39:16 +00:00
fs When returning error from msdosfs_lookup(), make sure that *vpp is NULL. 2010-03-03 21:59:45 +00:00
gdb
geom Please welcome HAST - Highly Avalable Storage. 2010-02-18 23:16:19 +00:00
gnu Bring in the ext2fs work done by Aditya Sarawgi during and after Google Summer 2010-01-14 14:30:54 +00:00
i386 The NetBSD Foundation has granted permission to remove clause 3 and 4 from 2010-03-03 17:55:51 +00:00
ia64 The NetBSD Foundation has granted permission to remove clause 3 and 4 from 2010-03-03 17:55:51 +00:00
isa Introduce the new kernel sub-tree x86 which should contain all the code 2010-02-25 14:13:39 +00:00
kern put calls to gzclose() under ifdef COMPRESS_USER_CORES to prevent 2010-03-04 21:53:45 +00:00
kgssapi
libkern Merge from head at r201628. 2010-01-06 05:58:07 +00:00
mips Check for device faults and for failures to set DRQ when expected, rather 2010-03-06 05:49:15 +00:00
modules Add a missing ar9285_reset.c file. 2010-03-03 20:01:31 +00:00
net Introduce a function rn_detachhead() that will free the 2010-03-06 21:27:26 +00:00
net80211 Ensure that tkip_mixing_phase1() is called after a rekeying event when 2010-02-08 18:16:59 +00:00
netatalk
netgraph Declare a new EVENTHANDLER called iflladdr_event which signals that the L2 2010-01-18 20:34:00 +00:00
netinet Remove unnecessary locking of divcbinfo lock from div_output(): this has not 2010-03-06 22:04:45 +00:00
netinet6 Use reference counting instead of locking to secure an address while 2010-02-27 07:12:25 +00:00
netipsec Correct typo in comment. 2010-02-18 22:34:29 +00:00
netipx
netnatm
netncp
netsmb
nfs Factor out the code shared between NFS client and server into its own 2010-02-16 20:00:21 +00:00
nfsclient Simplify code a bit. 2010-02-18 22:10:55 +00:00
nfsserver Factor out the code shared between NFS client and server into its own 2010-02-16 20:00:21 +00:00
nlm Handle GRANTED_RES messages more gracefully: Send along a grant cookie 2009-10-07 19:50:14 +00:00
opencrypto Add comments trying to explain what bad things happen here, i.e. 2010-01-09 15:43:47 +00:00
pc98 MFx86: the part of r204641 2010-03-05 11:11:42 +00:00
pci Add initial support for RTL8103E PCIe fastethernet. 2010-01-27 17:49:27 +00:00
powerpc Fix an obvious lock escape and fix a typo in a comment. 2010-03-04 17:24:31 +00:00
rpc Replace the static NGROUPS=NGROUPS_MAX+1=1024 with a dynamic 2010-01-12 07:49:34 +00:00
security Update device-labeling logic for Biba, LOMAC, and MLS to recognize new-style 2010-03-02 15:05:48 +00:00
sparc64 The NetBSD Foundation has granted permission to remove clause 3 and 4 from 2010-03-03 17:55:51 +00:00
sun4v The NetBSD Foundation has granted permission to remove clause 3 and 4 from 2010-03-03 17:55:51 +00:00
sys The NetBSD Foundation has granted permission to remove clause 3 and 4 from 2010-03-03 17:55:51 +00:00
teken Fall back to ASCII codepoints for box drawing. 2010-02-08 09:16:59 +00:00
tools Output a comment on top of each generated file explaining where it came 2009-10-25 09:48:21 +00:00
ufs When ffs_realloccg() failed to allocate bigger fragment and, because 2010-02-13 10:34:50 +00:00
vm Update comment for vm_page_alloc(9), listing all acceptable flags [1]. 2010-02-27 17:09:28 +00:00
x86 Improving the clocks auto-tunning by firstly checking if the atrtc may be 2010-03-03 17:13:29 +00:00
xdr
xen don't hold spin lock across free 2010-02-21 01:12:18 +00:00
Makefile