Line data Source code
1 : #include <cerrno> 2 : 3 : #include "source/common/api/os_sys_calls_impl_hot_restart.h" 4 : 5 : namespace Envoy { 6 : namespace Api { 7 : 8 0 : SysCallIntResult HotRestartOsSysCallsImpl::shmOpen(const char* name, int oflag, mode_t mode) { 9 0 : const int rc = ::shm_open(name, oflag, mode); 10 0 : return {rc, errno}; 11 0 : } 12 : 13 0 : SysCallIntResult HotRestartOsSysCallsImpl::shmUnlink(const char* name) { 14 0 : const int rc = ::shm_unlink(name); 15 0 : return {rc, errno}; 16 0 : } 17 : 18 : } // namespace Api 19 : } // namespace Envoy