mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-20 11:11:24 +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
39 lines
690 B
Plaintext
39 lines
690 B
Plaintext
/*
|
|
* $FreeBSD$
|
|
*/
|
|
FBSD_1.2 {
|
|
procstat_close;
|
|
procstat_freefiles;
|
|
procstat_freeprocs;
|
|
procstat_get_pipe_info;
|
|
procstat_get_pts_info;
|
|
procstat_get_socket_info;
|
|
procstat_get_vnode_info;
|
|
procstat_getfiles;
|
|
procstat_getprocs;
|
|
procstat_open_kvm;
|
|
procstat_open_sysctl;
|
|
};
|
|
|
|
FBSD_1.3 {
|
|
procstat_freeargv;
|
|
procstat_freeauxv;
|
|
procstat_freeenvv;
|
|
procstat_freegroups;
|
|
procstat_freekstack;
|
|
procstat_freevmmap;
|
|
procstat_get_sem_info;
|
|
procstat_get_shm_info;
|
|
procstat_getargv;
|
|
procstat_getauxv;
|
|
procstat_getenvv;
|
|
procstat_getgroups;
|
|
procstat_getkstack;
|
|
procstat_getosrel;
|
|
procstat_getpathname;
|
|
procstat_getrlimit;
|
|
procstat_getumask;
|
|
procstat_getvmmap;
|
|
procstat_open_core;
|
|
};
|