]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC 250223,250233:
authorjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 24 Jun 2013 16:04:59 +0000 (16:04 +0000)
committerjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 24 Jun 2013 16:04:59 +0000 (16:04 +0000)
commit5763e58d9a27565c87a1ccd647854ad022f46ce4
tree6854a07dff72b59832afa1b7a9085349e7aec689
parent8c4700315e53a74b69cf3ade06a960683974c706
MFC 250223,250233:
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 the fo_stat() method of shared memory objects and ksem_info() to
  export the path, mode, and value of a semaphore via struct kinfo_file.
- Add a struct semstat to the libprocstat(3) interface along with a
  procstat_get_sem_info() to export the mode and value of a semaphore.
- Teach fstat about semaphores and to display their path, mode, and value.

git-svn-id: svn://svn.freebsd.org/base/stable/9@252163 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libprocstat/Symbol.map
lib/libprocstat/libprocstat.3
lib/libprocstat/libprocstat.c
lib/libprocstat/libprocstat.h
sys/kern/kern_descrip.c
sys/kern/uipc_sem.c
sys/sys/ksem.h
sys/sys/user.h
usr.bin/fstat/fstat.1
usr.bin/fstat/fstat.c