summaryrefslogtreecommitdiff
path: root/shm
Commit message (Collapse)AuthorAgeFilesLines
* Tests: replace usage of dlsym with separate modules containing functions ↵Daniel Playfair Cal2019-02-124-3/+95
| | | | that need to be mocked out
* build: Enable G_LOG_USE_STRUCTURED=1Philip Withnall2018-08-161-1/+1
| | | | | | | This enables structured logging for all parts of dconf, which will make it easier to check for certain log messages in the unit tests. Signed-off-by: Philip Withnall <withnall@endlessm.com>
* build: Add trailing commas where necessaryIñigo Martínez2018-08-111-2/+2
| | | | | | Having trailing commas in place means that if another source file or parameter is added to the end of the list or function, there won't be noise when adding the comma to the line above.
* build: Do not make heavy use of project_nameIñigo Martínez2018-08-111-7/+3
| | | | | | | | | The current meson build files make heavy use of meson's `project_name` function. However this makes difficult for any developer to find for given program/library/file names. The project name is also never going to change. Due to this reason these calls have been changed for `dconf` itself.
* build: Fix internal dependenciesIñigo Martínez2018-08-111-3/+8
| | | | | | | | | meson is able to generate internal dependencies for handling built libraries. These internal dependencies depend on other dependencies as well, based on the includes exposed by their headers. This have been fixed by using proper internal dependencies for these libraries.
* build: Avoid building libraries twiceIñigo Martínez2018-08-111-11/+1
| | | | | | | | | | | dconf builts a number of internal static libraries which in some cases are duplicated. This duplication comes from autotools that used to built two libraries for each library, one with PIC enabled and the other one without it. This has been changed to build only one library for each library to be built, except `libdconf-common-hidden` which hides some symbols for the GIO module to be built.
* Remove .gitignore filesIñigo Martínez2017-10-221-2/+0
| | | | | | | | | | meson does not allow to build source code inside the source code tree, for this reason there is no need for .gitignore files to ignore built files. This patch removes .gitignore files which are no longer needed. https://bugzilla.gnome.org/show_bug.cgi?id=784910
* build: Remove autotoolsIñigo Martínez2017-10-171-13/+0
| | | | | | | To avoid the burden of maintaining multiple build systems, this patch removes autotools support. https://bugzilla.gnome.org/show_bug.cgi?id=784910
* build: Port to meson build systemIñigo Martínez2017-10-172-0/+24
| | | | | | | | meson is a build system focused on speed an ease of use, which helps speeding up the software development. This patch adds meson support along autotools. https://bugzilla.gnome.org/show_bug.cgi?id=784910
* Updated FSF's addressDaniel Mustieles2014-01-312-6/+2
|
* Add missing "config.h" include everywhereRyan Lortie2013-11-241-0/+2
| | | | We ought to be including this from each .c file.
* Use G_LOG_DOMAIN in all library componentsRyan Lortie2013-02-211-1/+1
|
* docs/comments: make some corrections/updatesRyan Lortie2013-02-111-2/+2
| | | | | Many fixes for typos but also some adjustments for the recent refactoring (particularly updating HACKING).
* Add a comment for the previous commitRyan Lortie2012-11-051-0/+3
| | | | Provide a link to the bug with a justification for the unusual code.
* workaround OpenBSD mmap() bugAntoine Jacoutot2012-11-051-1/+1
| | | | | On OpenBSD, mapping descriptors PROT_WRITE without also specifying PROT_READ triggers a segfault.
* massive Makefile reorganisationRyan Lortie2012-07-081-3/+2
| | | | | | | | | | Clean up the Makefiles and make them as similar as possible. Move CFLAGS to a common point of definition and stop using -I so much. Replace the 'dbus stub' with libdconf-mock.a in tests/. Fill in some stubs for future mock code for shm and gvdb (just to get things compiling for now).
* shm/: add inline dconf_shm_is_flagged()Ryan Lortie2012-07-081-0/+6
|
* shm/: make some adjustments after researchRyan Lortie2012-07-081-23/+36
| | | | | | | | | | | | | | | | After doing some research it has been discovered that ftruncate() isn't sufficient for allocating space for a file. It can create a sparse file and you don't find out that the space doesn't exist until you get a SIGBUS later upon trying to write to the mmap region. posix_fallocate() isn't doing quite what we want either (due to a flaky glibc emulation of it when the native syscall is unavailable -- which is the case for tmpfs). Use a workaround based on pwrite() instead. Also: mmap() really can't fail here except in the cases where we would also abort due to g_malloc() failing, so we should just abort too.
* clean up and factor out the 'shm' codeRyan Lortie2012-07-084-0/+186
Remove the shm code from the engine and the service and put it in a separate convenience library in shm/. Remove the vestigial shmdir weirdness from the service (since shmdir is now always relative to XDG_RUNTIME_DIR and has been for some time). The purpose of this is so that dconf-engine can be properly unit-tested. dconf-engine now has five points of contact with the world (excluding the users of the engine themselves): - the DCONF_PROFILE environment variable - fopen() of profile files - shm - gvdb - dbus The environment variable is quite easily controlled. fopen() is intercepted in the engine testcase with a interpose of the libc symbol. With this commit now each of dbus, gvdb and shm are implemented in separate utility modules that can be mocked from the testcases.