]>
git.ipfire.org Git - thirdparty/squid.git/blob - compat/shm.cc
2 #include "compat/shm.h"
4 #if _SQUID_FREEBSD_ && (__FreeBSD__ >= 7)
5 #include <sys/sysctl.h>
10 * Some systems have filesystem-based resources and interpret segment names
11 * as file paths. The so-called 'portable' "/name" format does not work well
12 * for them. And, according to Boost::interprocess, recent FreeBSD versions
13 * make this decision depending on whether the shm_open() caller is jailed!
16 shm_portable_segment_name_is_path()
18 #if _SQUID_HPUX_ || _SQUID_OSF_ || defined(__vms) || (_SQUID_FREEBSD_ && (__FreeBSD__ < 7))
22 size_t len
= sizeof(jailed
);
23 ::sysctlbyname("security.jail.jailed", &jailed
, &len
, NULL
, 0);