+eina (1.0.0.001+svn.60288slp2+build04) unstable; urgency=low
+
+ * Upload Package: SIGBUS handler override
+ * Important Changes
+ [eina_file]overrid sigbus handler in eina file mmap
+ * Git: 165.213.180.234:/slp/pkgs/e/eina
+ * Tag: eina_1.0.0.001+svn.60288slp2+build04
+
+ -- Jiyoun Park <jy0703.park@samsung.com> Tue, 16 Aug 2011 19:25:46 +0900
+
eina (1.0.0.001+svn.60288slp2+build03) unstable; urgency=low
* [Bug Fix] mutex lock is not released in error cases in eina_share_common functions
+ Accessor: can access items of a container randomly
+ Iterator: can access items of a container sequentially
-
-
%package devel
Summary: Data Type Library (devel)
Group: Development/Libraries
%prep
-%setup -q -n %{name}
+%setup -q -n %{name}-%{version}
%build
rm -rf %{buildroot}
%make_install
-
-
-
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
-
-
-
-
%files
%defattr(-,root,root,-)
%{_libdir}/libeina.so.*
if (siginfo->si_code == BUS_ADRALN)
{
ERR("Unaligned memory access. SIGBUS!!!");
- errno = perrno;
+ errno = perrno;
abort();
}
/* send this to stderr - not eina_log. Specifically want this on stderr */
/* mmap a pzge of zero's from /dev/zero in there */
if (mmap(addr, _eina_mmap_pagesize,
PROT_READ | PROT_WRITE | PROT_EXEC,
- MAP_PRIVATE | MAP_FIXED,
+ MAP_PRIVATE | MAP_FIXED,
_eina_mmap_zero_fd, 0) == MAP_FAILED)
{
/* mmap of /dev/zero failed :( */
perror("mmap");
ERR("Failed to mmap() /dev/zero in place of page. SIGBUS!!!");
- errno = perrno;
+ errno = perrno;
abort();
}
/* restore previous errno */
- errno = perrno;
+ errno = perrno;
}
#endif
return EINA_FALSE;
}
}
-
+
enabled = !!enabled;
-
+
if (mmap_safe == enabled) return mmap_safe;
if (enabled)
{
struct sigaction sa;
/* find out system page size the cleanest way we can */
-#ifdef _SC_PAGESIZE
+#ifdef _SC_PAGESIZE
_eina_mmap_pagesize = sysconf(_SC_PAGESIZE);
if (_eina_mmap_pagesize <= 0) return EINA_FALSE;
#else
}
mmap_safe = enabled;
return mmap_safe;
-#endif
+#endif
}
EAPI Eina_Bool