From: Nick Mathewson Date: Thu, 17 Apr 2014 02:22:47 +0000 (-0400) Subject: Log the name of the failing syscall on failure X-Git-Tag: tor-0.2.5.4-alpha~36^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f41491816ca1ac8dc39c4da0f6b9fe1065c5228a;p=thirdparty%2Ftor.git Log the name of the failing syscall on failure --- diff --git a/src/common/gen_linux_syscalls.pl b/src/common/gen_linux_syscalls.pl new file mode 100755 index 0000000000..3c64098a0b --- /dev/null +++ b/src/common/gen_linux_syscalls.pl @@ -0,0 +1,37 @@ +#!/usr/bin/perl -w + +use strict; +my %syscalls = (); + +while (<>) { + if (/^#define (__NR_\w+) /) { + $syscalls{$1} = 1; + } +} + +print <