summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2022-11-13xlsatoms 1.1.4HEADxlsatoms-1.1.4masterAlan Coopersmith1-2/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-10-22usage: add cold & noreturn attributes to functionAlan Coopersmith1-1/+11
As suggested by clang: xlsatoms.c:56:1: warning: function 'usage' could be declared with attribute 'noreturn' [-Wmissing-noreturn] { ^ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-10-22Resolve clang -Wshorten-64-to-32 warningsAlan Coopersmith1-2/+2
xlsatoms.c:175:13: warning: implicit conversion loses integer precision: 'long long' to 'xcb_atom_t' (aka 'unsigned int') [-Wshorten-64-to-32] *atom = value; ~ ^~~~~ xlsatoms.c:244:37: warning: implicit conversion loses integer precision: 'long' to 'xcb_atom_t' (aka 'unsigned int') [-Wshorten-64-to-32] cookie[i] = xcb_get_atom_name(c, i + low); ~~~~~~~~~~~~~~~~~ ~~^~~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-10-22Variable scope reductions as suggested by cppcheckAlan Coopersmith1-5/+4
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-10-22gitlab CI: stop requiring Signed-off-by in commitsAlan Coopersmith1-2/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-12-06Build xz tarballs instead of bzip2Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-12-06gitlab CI: add a basic build testAlan Coopersmith1-0/+98
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2019-02-19xlsatoms 1.1.3xlsatoms-1.1.3Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-21Update configure.ac bug URL for gitlab migrationAlan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-16Update README for gitlab migrationAlan Coopersmith3-28/+22
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-12Adjust man page to show default format.Tobias Stoeckmann1-1/+1
The default format is %lu\t%s, not %ld\t%s, i.e. unsigned. Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-12Always use chunks when retrieving atoms.Tobias Stoeckmann1-37/+14
If a low and high range limit has been specified, all atoms are retrieved at once. This is also the reason why malloc() is used: All cookies are stored before collecting the data. By using chunks it is possible to specify a huge range or even all possible atoms without running out of memory. Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-12Actually stop after an invalid atom.Tobias Stoeckmann1-7/+9
The manual page states that if no upper range limit has been specified, no higher atoms will be printed. This is not true for $ xlsatoms -range 0- This prints the first 100 atoms, even though it already encountered an invalid one at 0. The reason is that say_batch works as a batch, i.e. retrieves 100 atoms at a time. If one of them is invalid, the rest is still printed. With this adjustment, xlsatoms behaves as stated in manual page. Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-12Support xcb_atom_t in range specification.Tobias Stoeckmann1-10/+41
The data type xcb_atom_t is an unsigned int (32 bit), but the optional range argument is parsed with atoi(), which returns a signed int. Even though it is possible to reach all values through clever casting, it is more readable by properly using correct data types. This also fixes a segmentation fault on 32 bit systems if a range is supplied which overflows size_t: $ xlsatoms -range 0-1073741824 Segmentation fault (core dumped) If an invalid range is supplied, an error message is printed. This is new because previously an invalid range was silently accepted. $ xlsatoms -range 0--1 $ _ $ xlsatoms-new -range 0--1 xlsatoms-new: invalid range: 0--1 Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.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-04-16xlsatoms 1.1.2xlsatoms-1.1.2Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-31Add -version option to print program versionAlan Coopersmith2-1/+16
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-31Print which option was in error along with usage messageAlan Coopersmith1-6/+11
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-31autogen.sh: Honor NOCONFIGURE=1Alan Coopersmith1-2/+3
See http://people.gnome.org/~walters/docs/build-api.txt Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-31configure: Drop AM_MAINTAINER_MODEAlan Coopersmith2-2/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-31config: Add missing AC_CONFIG_SRCDIRAlan Coopersmith1-4/+5
Regroup AC statements under the Autoconf initialization section. Regroup AM statements under the Automake initialization section. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-02-23Combine usage message into single string/callAlan Coopersmith1-10/+5
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-03-31xlsatoms 1.1.1xlsatoms-1.1.1Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-11-11Fix gcc -Wwrite-strings warningsAlan Coopersmith1-10/+10
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-01-19config: move man pages into their own directoryGaetan Nadon4-36/+17
Use services provided by XORG_MANPAGE_SECTIONS. Use standard Makefile for man pages. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-01-13man: replace hard coded man page section with substitution stringsGaetan Nadon1-1/+1
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-01-13man: remove trailing spaces and tabsGaetan Nadon1-5/+5
Using s/[ \t]*$// Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-01-12config: replace deprecated AM_CONFIG_HEADER with AC_CONFIG_HEADERSGaetan Nadon1-1/+1
This silences an Autoconf warning
2011-01-12config: remove unrequired AC_SUBST([*_LIBS])Gaetan Nadon1-1/+0
This macro is called by PKG_CHECK_MODULES Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-01-12config: remove unrequired AC_SUBST([*_CFLAGS])Gaetan Nadon1-1/+0
This macro is called by PKG_CHECK_MODULES Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-01-12config: remove AC_PROG_CC as it overrides AC_PROG_C_C99Gaetan Nadon1-1/+0
XORG_STRICT_OPTION from XORG_DEFAULT_OPTIONS calls AC_PROG_C_C99. This sets gcc with -std=gnu99. If AC_PROG_CC macro is called afterwards, it resets CC to gcc. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-01-12config: use AC_PROG_INSTALL now supplied by XORG_DEFAULT_OPTIONSGaetan Nadon1-1/+0
It depends on util-macros 1.8 or later The existing statement can now be removed from the configuration file. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-01-12config: upgrade to util-macros 1.8 for additional man page supportGaetan Nadon1-3/+3
Use MAN_SUBST now supplied in XORG_MANPAGE_SECTIONS The value of MAN_SUBST is the same for all X.Org packages. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-01-12config: update AC_PREREQ statement to 2.60Gaetan Nadon1-1/+1
Unrelated to the previous patches, the new value simply reflects the reality that the minimum level for autoconf to configure all x.org modules in one pass is 2.60 dated June 2006. A version later than 2.60 can be used, but no new features from such a later version can be used in configure.ac. Although the code in this module can be configured with a version earlier than 2.60, most of code is now contained in macros from util-macros which use features of version 2.60, at the present or in the future. ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.60.tar.gz Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-10-06Purge cvs tags.Jesse Adkins1-3/+0
Signed-off-by: Jesse Adkins <jesserayadkins@gmail.com>
2010-06-03xlsatoms 1.1.0xlsatoms-1.1.0Alan Coopersmith2-1/+6
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2009-12-01Convert xlsatoms to XCBPeter Harris2-51/+86
This dramatically improves latency, at the cost of a small amount of bandwidth. (Theoretically. In practice, it actually saves bandwidth by reducing the number of IP headers, Ethernet frames, PPP headers, ATM frames...) Signed-off-by: Peter Harris <pharris@opentext.com> Reviewed-By: Jeremy Huddleston <jeremyhu@apple.com>
2009-11-26Makefile.am: add ChangeLog and INSTALL on MAINTAINERCLEANFILESGaetan Nadon1-0/+1
Now that the INSTALL file is generated. Allows running make maintainer-clean.
2009-10-28INSTALL, NEWS, README or AUTHORS files are missing/incorrect #24206Gaetan Nadon4-2/+5
Add missing INSTALL file. Use standard GNU file on building tarball README may have been updated Remove AUTHORS file as it is empty and no content available yet. Remove NEWS file as it is empty and no content available yet.
2009-10-26Makefile.am: ChangeLog not required: EXTRA_DIST or *CLEANFILES #24432Gaetan Nadon1-2/+0
ChangeLog filename is known to Automake and requires no further coding in the makefile.
2009-10-22.gitignore: use common defaults with custom section # 24239Gaetan Nadon1-11/+66
Using common defaults will reduce errors and maintenance. Only the very small or inexistent custom section need periodic maintenance when the structure of the component changes. Do not edit defaults.
2009-10-21This is not a GNU project, so declare it foreign.Jeremy Huddleston1-1/+1
On Wed, 2009-10-21 at 13:36 +1000, Peter Hutterer wrote: > On Tue, Oct 20, 2009 at 08:23:55PM -0700, Jeremy Huddleston wrote: > > I noticed an INSTALL file in xlsclients and libXvMC today, and it > > was quite annoying to work around since 'autoreconf -fvi' replaces > > it and git wants to commit it. Should these files even be in git? > > Can I nuke them for the betterment of humanity and since they get > > created by autoreconf anyways? > > See https://bugs.freedesktop.org/show_bug.cgi?id=24206 As an interim measure, replace AM_INIT_AUTOMAKE([dist-bzip2]) with AM_INIT_AUTOMAKE([foreign dist-bzip2]). This will prevent the generation of the INSTALL file. It is also part of the 24206 solution. Signed-off-by: Jeremy Huddleston <jeremyhu@freedesktop.org>
2009-10-12xlsatoms 1.0.2xlsatoms-1.0.2Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-10-12Fill in COPYING with copyright/license notices from codeAlan Coopersmith1-8/+17
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-10-12Migrate to xorg macros 1.3 & XORG_DEFAULT_OPTIONSAlan Coopersmith2-11/+7
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-10-01Add README with pointers to mailing lists, bugzilla, & gitAlan Coopersmith1-0/+25
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-01-22Correct make distcheck and sparse warnings.Paulo Cesar Pereira de Andrade4-2/+14
2007-12-06Replace static ChangeLog with dist-hook to generate from git logJames Cloos2-31/+10