scripts/functions: Use stat correctly on non-GNU (BSD/Darwin) systems.
Call to get the directory mode depending on $CT_SYS_OS
yann.morin.1998@anciens.enib.fr:
CT_SYS_OS has changed on Linuxsystem, it only gets the kernel name "Linux",
and not the system name, 'GNU/'.
1 diff -durN strace-4.5.19.orig/system.c strace-4.5.19/system.c
2 --- strace-4.5.19.orig/system.c 2009-06-01 11:59:11.000000000 +0200
3 +++ strace-4.5.19/system.c 2009-10-28 18:47:18.000000000 +0100
5 { CTL_KERN, "CTL_KERN" },
7 { CTL_NET, "CTL_NET" },
9 { CTL_PROC, "CTL_PROC" },
12 { CTL_DEBUG, "CTL_DEBUG" },
13 { CTL_DEV, "CTL_DEV" },