Introduce the notion of a 'sample comment'.
- presence of the sample's reported.by file is now mandatory.
- when saving a sample, reporter name & URL are queried, to avoid operator forget about creating the reported.by file.
- when saving a sample, one can store a few-liner comment.
- when recalling a sample, the reporter name, URL and comment (if present) are printed.
- update the powerpc-e500v2-linux-gnuspe sample to include Nate's comment (from his original mail).
- update all samples that were missing the reported.by file.
/trunk/scripts/saveSample.sh | 46 35 11 0 ++++++++++++++++++------
/trunk/scripts/showSamples.sh | 12 6 6 0 +++---
/trunk/samples/powerpc-e500v2-linux-gnuspe/reported.by | 15 15 0 0 ++++++++
/trunk/samples/samples.mk | 22 17 5 0 +++++++++--
4 files changed, 73 insertions(+), 22 deletions(-)
1 diff -dur strace-4.5.15.orig/acinclude.m4 strace-4.5.15/acinclude.m4
2 --- strace-4.5.15.orig/acinclude.m4 2004-04-14 04:21:01.000000000 +0200
3 +++ strace-4.5.15/acinclude.m4 2007-07-14 19:25:25.000000000 +0200
8 +dnl ### A macro to determine whether statfs64 is defined.
9 +AC_DEFUN([AC_STATFS64],
10 +[AC_MSG_CHECKING(for statfs64 in sys/(statfs|vfs).h)
11 +AC_CACHE_VAL(ac_cv_type_statfs64,
12 +[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#ifdef LINUX
13 +#include <linux/types.h>
14 +#include <sys/statfs.h>
17 +#endif]], [[struct statfs64 st;]])],[ac_cv_type_statfs64=yes],[ac_cv_type_statfs64=no])])
18 +AC_MSG_RESULT($ac_cv_type_statfs64)
19 +if test "$ac_cv_type_statfs64" = yes
21 + AC_DEFINE([HAVE_STATFS64], 1,
22 +[Define if statfs64 is available in sys/statfs.h or sys/vfs.h.])
28 dnl ### A macro to determine if off_t is a long long
29 AC_DEFUN([AC_OFF_T_IS_LONG_LONG],
30 [AC_MSG_CHECKING(for long long off_t)
31 diff -dur strace-4.5.15.orig/configure.ac strace-4.5.15/configure.ac
32 --- strace-4.5.15.orig/configure.ac 2007-01-11 12:37:55.000000000 +0100
33 +++ strace-4.5.15/configure.ac 2007-07-14 19:25:25.000000000 +0200
42 diff -dur strace-4.5.15.orig/file.c strace-4.5.15/file.c
43 --- strace-4.5.15.orig/file.c 2007-01-15 21:25:52.000000000 +0100
44 +++ strace-4.5.15/file.c 2007-07-14 19:25:25.000000000 +0200
52 printstatfs64(tcp, addr)