summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-04-05src/xshmfence_futex.h: fix build on 32-bit architectures using 64-bit time_tHEADmasterThomas Devoogdt
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 Coopersmith
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 Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-03-08configure: Use LT_INIT from libtool 2 instead of deprecated AC_PROG_LIBTOOLAlan Coopersmith
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 Turner
Signed-off-by: Matt Turner <mattst88@gmail.com>
2022-11-29configure: Use AC_SYS_LARGEFILE to enable large file supportMatt Turner
Signed-off-by: Matt Turner <mattst88@gmail.com>
2022-10-18libxshmfence 1.3.1libxshmfence-1.3.1Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-07-17gitlab CI: add a basic build testAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-07-17Fix spelling/wording issuesAlan Coopersmith
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 Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2019-08-03alloc: prefer SHM_ANON on FreeBSD a la memfd_createJan Beich
Signed-off-by: Jan Beich <jbeich@FreeBSD.org>
2019-08-03alloc: prefer atomic close-on-exec without O_TMPFILE as wellJan Beich
Signed-off-by: Jan Beich <jbeich@FreeBSD.org>
2018-12-07Update configure.ac bug URL for gitlab migrationAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-19Update README for gitlab migrationAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-02-26libxshmfence 1.3libxshmfence-1.3Matt Turner
Signed-off-by: Matt Turner <mattst88@gmail.com>
2018-02-22Fix missing <limits.h> include for HAVE_UMTX branch of futexMichał Górny
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 Jackson
Definitely didn't mean to push this. This reverts commit 1f194603cb927352c42798bead29c8ac3a680d02.
2018-01-29configure.ac: call AC_USE_SYSTEM_EXTENSIONSRoss Burton
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 Jackson
Signed-off-by: Adam Jackson <ajax@redhat.com>
2017-01-26autogen: add default patch prefixMihail Konev
Signed-off-by: Mihail Konev <k.mvc@ya.ru>
2017-01-26autogen.sh: use quoted string variablesEmil Velikov
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 Hutterer
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 Packard
Release with memfd support Signed-off-by: Keith Packard <keithp@keithp.com>
2014-10-09Use linux 3.17 memfd_create syscall when availableKeith Packard
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 Packard
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 Kim
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 Coopersmith
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 Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-12-03Check return value from ftruncateJulien Cristau
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 Packard
Signed-off-by: Keith Packard <keithp@keithp.com>
2013-11-25Describe the library better in the README fileKeith Packard
Signed-off-by: Keith Packard <keithp@keithp.com>
2013-11-20Ignore test build files and release announcementsKeith Packard
Signed-off-by: Keith Packard <keithp@keithp.com>
2013-11-20Set symbol visibility attribute to hide internal symbolsKeith Packard
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 Packard
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 Packard
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 Packard
Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Adam Jackson <ajax@redhat.com>
2013-11-20Use O_TMPFILE if availableKeith Packard
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 Packard
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 Packard
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 Nadon
This variable is always empty. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2013-11-05make: list non installed headers under the _SOURCES variableGaetan Nadon
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 Nadon
It's required for all X libraries Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2013-11-05Add the required README fileGaetan Nadon
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2013-11-05Add mandatory COPYING file.Gaetan Nadon
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2013-11-01Copy autotools boilerplate from http://www.x.org/wiki/NewModuleGuidelines/Aaron Plattner
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 Plattner
Signed-off-by: Aaron Plattner <aplattner@nvidia.com> Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
2013-10-31Update to verion 1.0libxshmfence-1.0Keith Packard
Signed-off-by: Keith Packard <keithp@keithp.com>
2013-04-29Import first version of the libraryKeith Packard
Signed-off-by: Keith Packard <keithp@keithp.com>