1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00
nixpkgs/pkgs/tools/X11
aszlig 1964b0c1b1
xkbvalidate: Don't rely on GNU extensions
The only reason why I was using _GNU_SOURCE was because of vasprintf(),
so getting rid of that extension should make the source way more
portable.

When using vsnprintf() with a null pointer for the output buffer and a
size of 0, I wasn't quite sure whether this would be undefined
behaviour, so I looked it up in the C11 standard.

In section 7.21.6.5, it explicitly mentions this case, so we're lucky:

  If n is zero, nothing is written, and s may be a null pointer.

Additionally, section 7.21.6.12 writes the following about vsnprintf():

  The vsnprintf function does not invoke the va_end macro.

So to be sure to avoid undefined behaviour I subsequently added the
corresponding va_end() calls.

With this, the platforms attribute is now "unix", because the program
should now even run on OS X, even though it usually wouldn't be needed.

Signed-off-by: aszlig <aszlig@nix.build>
2019-08-15 00:59:58 +02:00
..
alttab alttab: init at 1.4.0 2019-05-10 10:59:06 +02:00
arandr arandr: Use wrapGAppsHook 2019-05-20 22:23:22 +10:00
autocutsel Treewide: use HTTPS on NonGNU domains 2018-12-02 15:21:04 +01:00
bgs
bumblebee pkgs/*: remove unreferenced function arguments 2018-07-21 02:48:04 +00:00
caffeine-ng gdk-pixbuf: rename from gdk_pixbuf 2019-07-22 18:50:57 -04:00
ckbcomp ckbcomp: 1.191 -> 1.192 2019-07-15 15:56:05 +02:00
dex dex: grab simple upstream patch so it reports the right version 2018-10-08 19:45:01 -05:00
dispad confuse: remove and replace with libconfuse 2018-11-25 18:20:42 +01:00
dragon-drop dragon-drop: git-2014-08-14 -> 1.1.0 2019-07-27 09:54:31 +02:00
ffcast
go-sct go-sct: 20160529 -> 20180605 2018-10-13 10:45:44 +02:00
grobi grobi: 0.3.0 -> 0.5.1 2018-12-07 15:45:57 +01:00
hsetroot treewide/xorg: replace *proto with xorgproto 2019-01-04 14:38:57 +01:00
imwheel imwheel: init at 1.0.0pre12 2018-11-23 15:17:56 -08:00
jumpapp jumpapp: init at 1.0 (#57893) 2019-03-19 10:20:21 +02:00
keynav treewide/xorg: replace *proto with xorgproto 2019-01-04 14:38:57 +01:00
ksuperkey treewide/xorg: replace *proto with xorgproto 2019-01-04 14:38:57 +01:00
libstrangle libstrangle: init at 2017-02-22 2019-07-15 22:49:32 +03:00
ncview treewide: fix config.allowAliases = false evaluation 2018-09-13 06:47:22 -07:00
nitrogen nitrogen: update homepage 2018-09-07 23:51:50 +02:00
numlockx
nx-libs treewide: remove unused variables (#63177) 2019-06-16 19:59:05 +00:00
obconf
oblogout
primus primus: fix for libglvnd 2019-07-17 11:44:21 +03:00
ratmen treewide/xorg: replace *proto with xorgproto 2019-01-04 14:38:57 +01:00
run-scaled run-scaled: init at 2018-06-03 (#44385) 2018-08-03 17:18:13 +02:00
runningx
screen-message
sct
setroot setroot: 2.0.1 -> 2.0.2 2019-05-28 20:00:03 -05:00
skippy-xd treewide/xorg: replace *proto with xorgproto 2019-01-04 14:38:57 +01:00
srandrd srandrd: init at v0.6.0 2019-05-28 15:33:28 +09:00
sselp
vdpauinfo pkgs/*: remove unreferenced function arguments 2018-07-21 02:48:04 +00:00
virtualgl virtualglLib: 2.5.2 -> 2.6.2 2019-06-04 01:36:27 +03:00
wayv
winswitch
wmctrl wmctrl: mv site&upstream from Google+ to current official site 2019-04-11 19:30:45 +03:00
wmutils-core
wmutils-opt
wpgtk wpgtk: 6.0.7 -> 6.0.8 2019-07-17 09:32:43 +02:00
x2vnc treewide/xorg: replace *proto with xorgproto 2019-01-04 14:38:57 +01:00
x2x treewide: Change URLs to HTTPS 2019-04-22 10:19:54 +02:00
x11vnc x11vnc: 0.9.15 -> 0.9.16 2019-01-16 16:57:43 +01:00
xannotate
xautomation
xbanish xbanish: 1.5 -> 1.6 2019-05-29 09:55:35 +02:00
xbindkeys Treewide: use HTTPS on NonGNU domains 2018-12-02 15:21:04 +01:00
xbindkeys-config pkgs/*: remove unreferenced function arguments 2018-07-21 02:48:04 +00:00
xbrightness xbrightness: use imake setup hook 2018-11-28 20:14:39 -06:00
xcalib
xcape xcape: 1.2 -> 20180301 2019-07-15 20:29:39 +08:00
xchainkeys
xcwd
xdg-user-dirs
xdg-utils xdg-utils: 1.1.2 -> 1.1.3 (#48089) 2018-10-10 23:35:09 +02:00
xdotool treewide/xorg: replace *proto with xorgproto 2019-01-04 14:38:57 +01:00
xgeometry-select
xidlehook treewide: update cargoSha256 hashes for cargo-vendor upgrade 2019-06-01 15:17:52 +00:00
xinput_calibrator treewide/xorg: replace *proto with xorgproto 2019-01-04 14:38:57 +01:00
xkb-switch xkb-switch: 1.3.1 -> 1.5.0, rename from xkb_switch 2019-01-02 21:59:41 -05:00
xkbset
xkbvalidate xkbvalidate: Don't rely on GNU extensions 2019-08-15 00:59:58 +02:00
xlayoutdisplay xlayoutdisplay: limit to linux 2019-04-28 00:57:08 -05:00
xloadimage xloadimage: init at 4.1 (#47198) 2018-09-24 00:04:07 +02:00
xmacro treewide/xorg: replace *proto with xorgproto 2019-01-04 14:38:57 +01:00
xmagnify treewide/xorg: replace *proto with xorgproto 2019-01-04 14:38:57 +01:00
xnee treewide: use ${stdenv.shell} instead of /bin/sh where possible 2019-01-16 20:37:15 +01:00
xosview2 xosview2: 2.3.0 -> 2.3.1 (#57515) 2019-03-14 00:07:02 +01:00
xpointerbarrier xpointerbarrier: 17.11 -> 18.06 2019-01-04 15:58:46 +07:00
xpra gdk-pixbuf: rename from gdk_pixbuf 2019-07-22 18:50:57 -04:00
xprintidle-ng xprintidle-ng: refactor and patch configure.ac 2019-04-25 19:13:47 +02:00
xrectsel
xrestop xrestop: add license 2018-07-22 17:01:46 +02:00
xsecurelock xsecurelock: 1.3.1 -> 1.4.0 2019-06-18 11:45:30 -07:00
xsettingsd xsettingsd: git-2015-06-14 -> 1.0.0 2018-09-09 09:50:48 -03:00
xtrace xtrace: 1.3.1 -> 1.4.0 2019-06-25 12:26:35 -04:00
xtruss xtruss: init at 20181001-82973f5 2019-03-19 00:09:10 -05:00
xvkbd treewide/xorg: replace *proto with xorgproto 2019-01-04 14:38:57 +01:00
xwinmosaic
xwinwrap reewide: Purge all uses stdenv.system and top-level system 2018-08-30 17:20:32 -04:00
xzoom xzoom: use imake setup hook 2018-11-28 20:14:40 -06:00