mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-24 11:29:10 +00:00
958aa57537
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. MFC after: 2 weeks |
||
---|---|---|
.. | ||
fstat.1 | ||
fstat.c | ||
functions.h | ||
fuser.1 | ||
fuser.c | ||
main.c | ||
Makefile |