]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC 250223:
authorjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 24 Jun 2013 17:09:28 +0000 (17:09 +0000)
committerjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 24 Jun 2013 17:09:28 +0000 (17:09 +0000)
commit719f0494a897b12720c7f471f3098fa58ac5ce6c
tree555e0fc8618ff44cb11b5e2228f31e0b301b0b11
parent42fafa0702d5565374f7a9870006805426e23e80
MFC 250223:
Similar to 233760 and 236717, export some more useful info about the
kernel-based POSIX semaphore descriptors to userland via procstat(1) and
fstat(1):
- Change sem file descriptors to track the pathname they are associated
  with and add a ksem_info() method to copy the path out to a
  caller-supplied buffer.
- Use ksem_info() to export the path of a semaphore via struct kinfo_file.
- Teach fstat about semaphores and to display their path, mode, and value.

git-svn-id: svn://svn.freebsd.org/base/stable/8@252164 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/kern/kern_descrip.c
sys/kern/uipc_sem.c
sys/sys/ksem.h
usr.bin/fstat/fstat.1
usr.bin/fstat/fstat.c