summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2024-04-05src/xshmfence_futex.h: fix build on 32-bit architectures using 64-bit time_tHEADmasterThomas Devoogdt1-0/+4
Fix the following build failure on 32-bit architectures using 64-bit time_t (e.g. riscv32): xshmfence_futex.h: In function 'sys_futex': xshmfence_futex.h:58:24: error: 'SYS_futex' undeclared (first use in this function); did you mean 'sys_futex'? 58 | return syscall(SYS_futex, addr1, op, val1, timeout, addr2, val3); | ^~~~~~~~~ | sys_futex Similar to: https://gitlab.freedesktop.org/mesa/mesa/-/commit/7d87478124061915582412ba410759afe863d679 Fixes: https://gitlab.com/buildroot.org/buildroot/-/commit/e39ad96136a8c340b3aea6b036024e28f14584f3 Signed-off-by: Thomas Devoogdt <thomas@devoogdt.com> Part-of: <https://gitlab.freedesktop.org/xorg/lib/libxshmfence/-/merge_requests/8>
2023-12-02configure: replace deprecated AC_TRY_COMPILE with AC_COMPILE_IFELSEAlan Coopersmith1-6/+6
Clears autoconf warnings: configure.ac:127: warning: The macro 'AC_TRY_COMPILE' is obsolete. configure.ac:127: You should run autoupdate. ./lib/autoconf/general.m4:2845: AC_TRY_COMPILE is expanded from... configure.ac:127: the top level Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-03-08configure: replace deprecated AC_HELP_STRING with AS_HELP_STRINGAlan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-03-08configure: Use LT_INIT from libtool 2 instead of deprecated AC_PROG_LIBTOOLAlan Coopersmith1-1/+5
AC_PROG_LIBTOOL was replaced by LT_INIT in libtool 2 in 2008, so it's time to rely on it. Clears autoconf warnings: configure.ac:13: warning: The macro `AC_PROG_LIBTOOL' is obsolete. configure.ac:13: You should run autoupdate. aclocal.m4:3465: AC_PROG_LIBTOOL is expanded from... configure.ac:13: the top level libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac, libtoolize: and rerunning libtoolize and aclocal. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-12-08libxshmfence 1.3.2libxshmfence-1.3.2Matt Turner1-1/+1
Signed-off-by: Matt Turner <mattst88@gmail.com>
2022-11-29configure: Use AC_SYS_LARGEFILE to enable large file supportMatt Turner1-1/+3
Signed-off-by: Matt Turner <mattst88@gmail.com>
2022-10-18libxshmfence 1.3.1libxshmfence-1.3.1Alan Coopersmith1-2/+3
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-07-17gitlab CI: add a basic build testAlan Coopersmith1-0/+98
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-07-17Fix spelling/wording issuesAlan Coopersmith2-2/+2
Found by using: codespell --builtin clear,rare,usage,informal,code,names Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-07-17Build xz tarballs instead of bzip2Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2019-08-03alloc: prefer SHM_ANON on FreeBSD a la memfd_createJan Beich1-0/+4
Signed-off-by: Jan Beich <jbeich@FreeBSD.org>
2019-08-03alloc: prefer atomic close-on-exec without O_TMPFILE as wellJan Beich2-1/+17
Signed-off-by: Jan Beich <jbeich@FreeBSD.org>
2018-12-07Update configure.ac bug URL for gitlab migrationAlan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-19Update README for gitlab migrationAlan Coopersmith2-13/+6
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-02-26libxshmfence 1.3libxshmfence-1.3Matt Turner1-1/+1
Signed-off-by: Matt Turner <mattst88@gmail.com>
2018-02-22Fix missing <limits.h> include for HAVE_UMTX branch of futexMichał Górny1-0/+1
This fixes build on Gentoo/FreeBSD which failed due to undefined 'INT_MAX'. Signed-off-by: Michał Górny <mgorny@gentoo.org> Signed-off-by: Matt Turner <mattst88@gmail.com>
2018-01-29Revert "configure: Nerf a thing"Adam Jackson1-1/+1
Definitely didn't mean to push this. This reverts commit 1f194603cb927352c42798bead29c8ac3a680d02.
2018-01-29configure.ac: call AC_USE_SYSTEM_EXTENSIONSRoss Burton1-0/+2
With glibc 2.27 memfd_create() is inside a _GNU_SOURCE guard, so call AC_USE_SYSTEM_EXTENSIONS to get this defined. Signed-off-by: Ross Burton <ross.burton@intel.com>
2017-12-14configure: Nerf a thingAdam Jackson1-1/+1
Signed-off-by: Adam Jackson <ajax@redhat.com>
2017-01-26autogen: add default patch prefixMihail Konev1-0/+3
Signed-off-by: Mihail Konev <k.mvc@ya.ru>
2017-01-26autogen.sh: use quoted string variablesEmil Velikov1-4/+4
Place quotes around the $srcdir, $ORIGDIR and $0 variables to prevent fall-outs, when they contain space. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-01-26autogen.sh: use exec instead of waiting for configure to finishPeter Hutterer1-1/+1
Syncs the invocation of configure with the one from the server. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
2015-01-02Bump version to 1.2libxshmfence-1.2Keith Packard1-1/+1
Release with memfd support Signed-off-by: Keith Packard <keithp@keithp.com>
2014-10-09Use linux 3.17 memfd_create syscall when availableKeith Packard2-8/+48
Linux 3.17 introduces a new anonymous memory allocation that returns a file descriptor which we can pass around. Use this in preference to creating a file in the filesystem where available. Signed-off-by: Keith Packard <keithp@keithp.com>
2014-06-17Use /dev/shm as an optional shared memory directoryKeith Packard1-1/+1
This is the path coded into glibc, so it should exist and be useful on any glibc-based system Signed-off-by: Keith Packard <keithp@keithp.com>
2014-06-17Add support for FreeBSD using umtx (v3).Jung-uk Kim2-1/+34
This fixes a sign-extension bug in the previous versions. Signed-off-by: Jung-uk Kim <jkim@FreeBSD.org> Signed-off-by: Keith Packard <keithp@keithp.com>
2014-06-04autogen.sh: Honor NOCONFIGURE=1Alan Coopersmith1-1/+3
See http://people.gnome.org/~walters/docs/build-api.txt Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-06-04configure: Drop AM_MAINTAINER_MODEAlan Coopersmith2-2/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-12-03Check return value from ftruncateJulien Cristau1-1/+4
Silences compiler warning: xshmfence_alloc.c: In function 'xshmfence_alloc_shm': xshmfence_alloc.c:54:11: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate(fd, sizeof (struct xshmfence)); ^ Signed-off-by: Julien Cristau <jcristau@debian.org> Reviewed-by: Keith Packard <keithp@keithp.com>
2013-11-26Update to version 1.1libxshmfence-1.1Keith Packard1-1/+1
Signed-off-by: Keith Packard <keithp@keithp.com>
2013-11-25Describe the library better in the README fileKeith Packard1-1/+12
Signed-off-by: Keith Packard <keithp@keithp.com>
2013-11-20Ignore test build files and release announcementsKeith Packard1-0/+6
Signed-off-by: Keith Packard <keithp@keithp.com>
2013-11-20Set symbol visibility attribute to hide internal symbolsKeith Packard3-8/+53
Expose only the official API. Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Adam Jackson <ajax@redhat.com>
2013-11-20Provide pthread-based alternative implementationKeith Packard7-1/+212
This uses pthread mutexes and condition variables instead of futexes. Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Adam Jackson <ajax@redhat.com>
2013-11-20Split out futex implementation from general APIKeith Packard5-107/+164
This splits the futex-specific code out into a separate file so that future versions of the library could use some other underlying primitive. Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Adam Jackson <ajax@redhat.com>
2013-11-20Add test programKeith Packard4-1/+189
Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Adam Jackson <ajax@redhat.com>
2013-11-20Use O_TMPFILE if availableKeith Packard2-4/+12
Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Adam Jackson <ajax@redhat.com>
2013-11-20Locate directory for shared memory files at configure timeKeith Packard2-1/+49
Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Adam Jackson <ajax@redhat.com>
2013-11-20Change fence memory type from 'int32_t' to 'struct shmfence'Keith Packard3-23/+30
This will allow other implementations to use alternate representations, as well as providing additional typechecking. Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Adam Jackson <ajax@redhat.com>
2013-11-05lint: remove usage of libxshmfence_la_SOURCESGaetan Nadon1-1/+1
This variable is always empty. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2013-11-05make: list non installed headers under the _SOURCES variableGaetan Nadon1-3/+2
Recommended by Automake: http://www.gnu.org/software/automake/manual/automake.html#Headers Also, this header is missing in the lint target $(libxshmfence_la_SOURCES) As a bonus, all other libraries are following this advice. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2013-11-05make: add $(CWARNFLAGS)Gaetan Nadon1-0/+2
It's required for all X libraries Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2013-11-05Add the required README fileGaetan Nadon1-0/+25
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2013-11-05Add mandatory COPYING file.Gaetan Nadon1-0/+19
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2013-11-01Copy autotools boilerplate from http://www.x.org/wiki/NewModuleGuidelines/Aaron Plattner1-17/+18
I verified that this works with autoconf both 2.60 and 2.69. Signed-off-by: Aaron Plattner <aplattner@nvidia.com> Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
2013-11-01Copy the standard .gitignore from other lib packagesAaron Plattner1-0/+78
Signed-off-by: Aaron Plattner <aplattner@nvidia.com> Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
2013-10-31Update to verion 1.0libxshmfence-1.0Keith Packard1-1/+1
Signed-off-by: Keith Packard <keithp@keithp.com>
2013-04-29Import first version of the libraryKeith Packard8-0/+394
Signed-off-by: Keith Packard <keithp@keithp.com>