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 This is a somewhat ordered TODO list:
5 - update versions for every tools...
7 - update and/or upgrade all samples
12 - update newlib (for enhanced bare metal)
13 - confirm existing implementation on targets other than AVR32
14 - try to make it generic, will help for uClibc++
18 - Cygwin target (needs newlib)
19 - so we can build toolchains that generate code for Windows/Cygwin
22 - so we can build toolchains that run natively under Windows/Cygwin
25 - so we can build toolchains that generate code for Windows/Win32
28 - so we can build toolchains that run natively under Windows/Win32
29 (without requiring Cygwin)
35 - check whether we can use newlib under uClinux (?)