[Bug 190912] [libc] shmctl(2) get shared memory state returning error attached process number
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Jun 29 22:11:31 UTC 2014
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=190912
Jilles Tjoelker <jilles at FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|Needs Triage |In Discussion
CC| |jilles at FreeBSD.org
--- Comment #2 from Jilles Tjoelker <jilles at FreeBSD.org> ---
When called through the FreeBSD ABI, shmctl(SHM_STAT) will always fail with
[EINVAL]. The SHM_STAT cmd is really only intended for Linux's ipcs tool,
allowing it to iterate over all shared memory segments in the system. It is
probably a bug that the <sys/shm.h> header exposes SHM_STAT and a few other
unsupported cmd values to applications.
To request the state of a shared memory segment, use IPC_STAT.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list