]> granicus.if.org Git - p11-kit/commit
common: use /proc only on Linux
authorLeonardo Brondani Schenkel <leo@tradeshift.com>
Mon, 28 May 2018 14:18:05 +0000 (16:18 +0200)
committerDaiki Ueno <ueno@gnu.org>
Wed, 12 Sep 2018 12:51:20 +0000 (14:51 +0200)
commitf4a9fa674e17cc470d9280237032f18a70313d8e
tree97f14faaeaea253b34f65ffaf6101d5bda2ac562
parent7f1df14e041c6de9603a4720753ca8f31e32b4ff
common: use /proc only on Linux

Non-Linux systems do not have /proc, so do not attempt to open it and
eliminate an unnecessary access() syscall on those systems.
common/compat.c